|
|
(function(lf){var to={};function Do(io){if(to[io])return to[io].exports;var Ro=to[io]={i:io,l:!1,exports:{}};return lf[io].call(Ro.exports,Ro,Ro.exports,Do),Ro.l=!0,Ro.exports}return Do.m=lf,Do.c=to,Do.d=function(io,Ro,Ps){Do.o(io,Ro)||Object.defineProperty(io,Ro,{enumerable:!0,get:Ps})},Do.r=function(io){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(io,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(io,"__esModule",{value:!0})},Do.t=function(io,Ro){if(Ro&1&&(io=Do(io)),Ro&8)return io;if(Ro&4&&typeof io=="object"&&io&&io.__esModule)return io;var Ps=Object.create(null);if(Do.r(Ps),Object.defineProperty(Ps,"default",{enumerable:!0,value:io}),Ro&2&&typeof io!="string")for(var Mt in io)Do.d(Ps,Mt,function(pr){return io[pr]}.bind(null,Mt));return Ps},Do.n=function(io){var Ro=io&&io.__esModule?function(){return io.default}:function(){return io};return Do.d(Ro,"a",Ro),Ro},Do.o=function(io,Ro){return Object.prototype.hasOwnProperty.call(io,Ro)},Do.p="/react/build/",Do(Do.s="0MeG")})({"0MeG":function(lf,to,Do){"use strict";Do.r(to);class io{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(a){setTimeout(()=>{throw a.stack?new Error(a.message+`
|
|
|
|
|
|
`+a.stack):a},0)}}emit(a){this.listeners.forEach(H=>{H(a)})}onUnexpectedError(a){this.unexpectedErrorHandler(a),this.emit(a)}onUnexpectedExternalError(a){this.unexpectedErrorHandler(a)}}const Ro=new io;function Ps(a){Bi(a)||Ro.onUnexpectedError(a);return}function Mt(a){Bi(a)||Ro.onUnexpectedExternalError(a);return}function pr(a){if(a instanceof Error){let{name:H,message:Ae}=a;const nn=a.stacktrace||a.stack;return{$isError:!0,name:H,message:Ae,stack:nn}}return a}const Ma="Canceled";function Bi(a){return a instanceof Error&&a.name===Ma&&a.message===Ma}function Yo(){const a=new Error(Ma);return a.name=a.message,a}function Qo(a){return a?new Error(`Illegal argument: ${a}`):new Error("Illegal argument")}function mn(a){return a?new Error(`Illegal state: ${a}`):new Error("Illegal state")}class Nc extends Error{constructor(a){super("NotSupported");a&&(this.message=a)}}function ru(a){const H=this;let Ae=!1,nn;return function(){return Ae||(Ae=!0,nn=a.apply(H,arguments)),nn}}var Gc;(function(a){function H(qr){return qr&&typeof qr=="object"&&typeof qr[Symbol.iterator]=="function"}a.is=H;const Ae=Object.freeze([]);function nn(){return Ae}a.empty=nn;function*In(qr){yield qr}a.single=In;function Gn(qr){return qr||Ae}a.from=Gn;function bt(qr){return!qr||qr[Symbol.iterator]().next().done===!0}a.isEmpty=bt;function pt(qr){return qr[Symbol.iterator]().next().value}a.first=pt;function It(qr,pi){for(const Ya of qr)if(pi(Ya))return!0;return!1}a.some=It;function Pt(qr,pi){for(const Ya of qr)if(pi(Ya))return Ya;return}a.find=Pt;function*er(qr,pi){for(const Ya of qr)pi(Ya)&&(yield Ya)}a.filter=er;function*jr(qr,pi){let Ya=0;for(const ki of qr)yield pi(ki,Ya++)}a.map=jr;function*Qa(...qr){for(const pi of qr)for(const Ya of pi)yield Ya}a.concat=Qa;function*Wi(qr){for(const pi of qr)for(const Ya of pi)yield Ya}a.concatNested=Wi;function uo(qr,pi,Ya){let ki=Ya;for(const Hi of qr)ki=pi(ki,Hi);return ki}a.reduce=uo;function*$o(qr,pi,Ya=qr.length){for(pi<0&&(pi+=qr.length),Ya<0?Ya+=qr.length:Ya>qr.length&&(Ya=qr.length);pi<Ya;pi++)yield qr[pi]}a.slice=$o;function hs(qr,pi=Number.POSITIVE_INFINITY){const Ya=[];if(pi===0)return[Ya,qr];const ki=qr[Symbol.iterator]();for(let Hi=0;Hi<pi;Hi++){const Ci=ki.next();if(Ci.done)return[Ya,a.empty()];Ya.push(Ci.value)}return[Ya,{[Symbol.iterator](){return ki}}]}a.consume=hs;function es(qr,pi,Ya=(ki,Hi)=>ki===Hi){const ki=qr[Symbol.iterator](),Hi=pi[Symbol.iterator]();for(;;){const Ci=ki.next(),jo=Hi.next();if(Ci.done!==jo.done)return!1;if(Ci.done)return!0;if(!Ya(Ci.value,jo.value))return!1}}a.equals=es})(Gc||(Gc={}));const Pp=!1;let fl=null;function Oc(a){fl=a}if(Pp){const a="__is_disposable_tracked__";Oc(new class{trackDisposable(H){const Ae=new Error("Potentially leaked disposable").stack;setTimeout(()=>{H[a]||console.log(Ae)},3e3)}setParent(H,Ae){if(H&&H!==_e.None)try{H[a]=!0}catch(nn){}}markAsDisposed(H){if(H&&H!==_e.None)try{H[a]=!0}catch(Ae){}}markAsSingleton(H){}})}function hl(a){return fl==null||fl.trackDisposable(a),a}function km(a){fl==null||fl.markAsDisposed(a)}function Rp(a,H){fl==null||fl.setParent(a,H)}function Ug(a,H){if(!fl)return;for(const Ae of a)fl.setParent(Ae,H)}function e(a){return fl==null||fl.markAsSingleton(a),a}class s extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function ue(a){return typeof a.dispose=="function"&&a.dispose.length===0}function ee(a){if(Gc.is(a)){let H=[];for(const Ae of a)if(Ae)try{Ae.dispose()}catch(nn){H.push(nn)}if(H.length===1)throw H[0];if(H.length>1)throw new s(H);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function Y(...a){const H=V(()=>ee(a));return Ug(a,H),H}function V(a){const H=hl({dispose:ru(()=>{km(H),a()})});return H}class ne{constructor(){this._toDispose=new Set,this._isDisposed=!1,hl(this)}dispose(){if(this._isDisposed)return;km(this),this._isDisposed=!0,this.clear()}clear(){try{ee(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return Rp(a,this),this._isDisposed?ne.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(a),a}}ne.DISABLE_DISPOSED_WARNING=!1;class _e{constructor(){this._store=new ne,hl(this),Rp(this._store,this)}dispose(){km(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}_e.None=Object.freeze({dispose(){}});class O{constructor(){this._isDisposed=!1,hl(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var H;if(this._isDisposed||a===this._value)return;(H=this._value)===null||H===void 0||H.dispose(),a&&Rp(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,km(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&Rp(a,null),a}}class w{constructor(a){this.object=a}dispose(){}}class b{constructor(a){this.element=a,this.next=b.Undefined,this.prev=b.Undefined}}b.Undefined=new b(void 0);class de{constructor(){this._first=b.Undefined,this._last=b.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===b.Undefined}clear(){let a=this._first;for(;a!==b.Undefined;){const H=a.next;a.prev=b.Undefined,a.next=b.Undefined,a=H}this._first=b.Undefined,this._last=b.Undefined,this._size=0}unshift(a){return this._insert(a,!1)}push(a){return this._insert(a,!0)}_insert(a,H){const Ae=new b(a);if(this._first===b.Undefined)this._first=Ae,this._last=Ae;else if(H){const In=this._last;this._last=Ae,Ae.prev=In,In.next=Ae}else{const In=this._first;this._first=Ae,Ae.next=In,In.prev=Ae}this._size+=1;let nn=!1;return()=>{nn||(nn=!0,this._remove(Ae))}}shift(){if(this._first===b.Undefined)return;{const a=this._first.element;return this._remove(this._first),a}}pop(){if(this._last===b.Undefined)return;{const a=this._last.element;return this._remove(this._last),a}}_remove(a){if(a.prev!==b.Undefined&&a.next!==b.Undefined){const H=a.prev;H.next=a.next,a.next.prev=H}else a.prev===b.Undefined&&a.next===b.Undefined?(this._first=b.Undefined,this._last=b.Undefined):a.next===b.Undefined?(this._last=this._last.prev,this._last.next=b.Undefined):a.prev===b.Undefined&&(this._first=this._first.next,this._first.prev=b.Undefined);this._size-=1}*[Symbol.iterator](){let a=this._first;for(;a!==b.Undefined;)yield a.element,a=a.next}}var fe=Do("MNsG");const _=fe.a.performance&&typeof fe.a.performance.now=="function";class U{constructor(a){this._highResolution=_&&a,this._startTime=this._now(),this._stopTime=-1}static create(a=!0){return new U(a)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?fe.a.performance.now():Date.now()}}var Z;(function(a){a.None=()=>_e.None;function H(qr){return(pi,Ya=null,ki)=>{let Hi=!1,Ci;return Ci=qr(jo=>Hi?void 0:(Ci?Ci.dispose():Hi=!0,pi.call(Ya,jo)),null,ki),Hi&&Ci.dispose(),Ci}}a.once=H;function Ae(qr,pi){return It((Ya,ki=null,Hi)=>qr(Ci=>Ya.call(ki,pi(Ci)),null,Hi))}a.map=Ae;function nn(qr,pi){return It((Ya,ki=null,Hi)=>qr(Ci=>{pi(Ci),Ya.call(ki,Ci)},null,Hi))}a.forEach=nn;function In(qr,pi){return It((Ya,ki=null,Hi)=>qr(Ci=>pi(Ci)&&Ya.call(ki,Ci),null,Hi))}a.filter=In;function Gn(qr){return qr}a.signal=Gn;function bt(...qr){return(pi,Ya=null,ki)=>Y(...qr.map(Hi=>Hi(Ci=>pi.call(Ya,Ci),null,ki)))}a.any=bt;function pt(qr,pi,Ya){let ki=Ya;return Ae(qr,Hi=>(ki=pi(ki,Hi),ki))}a.reduce=pt;function It(qr){let pi;const Ya=new $({onFirstListenerAdd(){pi=qr(Ya.fire,Ya)},onLastListenerRemove(){pi.dispose()}});return Ya.event}function Pt(qr,pi,Ya=100,ki=!1,Hi){let Ci,jo,Gs,Cs=0;const ho=new $({leakWarningThreshold:Hi,onFirstListenerAdd(){Ci=qr(qc=>{Cs++,jo=pi(jo,qc),ki&&!Gs&&(ho.fire(jo),jo=void 0),clearTimeout(Gs),Gs=setTimeout(()=>{const Pf=jo;jo=void 0,Gs=void 0,(!ki||Cs>1)&&ho.fire(Pf),Cs=0},Ya)})},onLastListenerRemove(){Ci.dispose()}});return ho.event}a.debounce=Pt;function er(qr,pi=(Ya,ki)=>Ya===ki){let Ya=!0,ki;return In(qr,Hi=>{const Ci=Ya||!pi(Hi,ki);return Ya=!1,ki=Hi,Ci})}a.latch=er;function jr(qr,pi){return[a.filter(qr,pi),a.filter(qr,Ya=>!pi(Ya))]}a.split=jr;function Qa(qr,pi=!1,Ya=[]){let ki=Ya.slice(),Hi=qr(Gs=>{ki?ki.push(Gs):jo.fire(Gs)});const Ci=()=>{ki&&ki.forEach(Gs=>jo.fire(Gs)),ki=null},jo=new $({onFirstListenerAdd(){Hi||(Hi=qr(Gs=>jo.fire(Gs)))},onFirstListenerDidAdd(){ki&&(pi?setTimeout(Ci):Ci())},onLastListenerRemove(){Hi&&Hi.dispose(),Hi=null}});return jo.event}a.buffer=Qa;class Wi{constructor(qr){this.event=qr}map(qr){return new Wi(Ae(this.event,qr))}forEach(qr){return new Wi(nn(this.event,qr))}filter(qr){return new Wi(In(this.event,qr))}reduce(qr,pi){return new Wi(pt(this.event,qr,pi))}latch(){return new Wi(er(this.event))}debounce(qr,pi=100,Ya=!1,ki){return new Wi(Pt(this.event,qr,pi,Ya,ki))}on(qr,pi,Ya){return this.event(qr,pi,Ya)}once(qr,pi,Ya){return H(this.event)(qr,pi,Ya)}}function uo(qr){return new Wi(qr)}a.chain=uo;function $o(qr,pi,Ya=ki=>ki){const ki=(...Gs)=>jo.fire(Ya(...Gs)),Hi=()=>qr.on(pi,ki),Ci=()=>qr.removeListener(pi,ki),jo=new $({onFirstListenerAdd:Hi,onLastListenerRemove:Ci});return jo.event}a.fromNodeEventEmitter=$o;function hs(qr,pi,Ya=ki=>ki){const ki=(...Gs)=>jo.fire(Ya(...Gs)),Hi=()=>qr.addEventListener(pi,ki),Ci=()=>qr.removeEventListener(pi,ki),jo=new $({onFirstListenerAdd:Hi,onLastListenerRemove:Ci});return jo.event}a.fromDOMEventEmitter=hs;function es(qr){return new Promise(pi=>H(qr)(pi))}a.toPromise=es})(Z||(Z={}));class v{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${v._idPool++}`}start(a){this._stopWatch=new U(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}v._idPool=0;let W=-1;class x{constructor(a,H=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=H,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let H=W;if(typeof this.customThreshold=="number"&&(H=this.customThreshold),H<=0||a<H)return;this._stacks||(this._stacks=new Map);const Ae=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),nn=this._stacks.get(Ae)||0;if(this._stacks.set(Ae,nn+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=H*.5;let In,Gn=0;for(const[bt,pt]of this._stacks)(!In||Gn<pt)&&(In=bt,Gn=pt);console.warn(`[${this.name}] potential listener LEAK detected, having ${a} listeners already. MOST frequent listener (${Gn}):`),console.warn(In)}return()=>{const In=this._stacks.get(Ae)||0;this._stacks.set(Ae,In-1)}}}class ${constructor(a){var H;this._disposed=!1,this._options=a,this._leakageMon=W>0?new x(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((H=this._options)===null||H===void 0?void 0:H._profName)?new v(this._options._profName):void 0}get event(){return this._event||(this._event=(a,H,Ae)=>{var nn;this._listeners||(this._listeners=new de);const In=this._listeners.isEmpty();In&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const Gn=this._listeners.push(H?[a,H]:a);In&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,H);const bt=(nn=this._leakageMon)===null||nn===void 0?void 0:nn.check(this._listeners.size),pt=V(()=>{if(bt&&bt(),!this._disposed&&(Gn(),this._options&&this._options.onLastListenerRemove)){const It=this._listeners&&!this._listeners.isEmpty();It||this._options.onLastListenerRemove(this)}});return Ae instanceof ne?Ae.add(pt):Array.isArray(Ae)&&Ae.push(pt),pt}),this._event}fire(a){var H,Ae;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new de);for(let nn of this._listeners)this._deliveryQueue.push([nn,a]);for((H=this._perfMon)===null||H===void 0||H.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[nn,In]=this._deliveryQueue.shift();try{typeof nn=="function"?nn.call(void 0,In):nn[0].call(nn[1],In)}catch(Gn){Ps(Gn)}}(Ae=this._perfMon)===null||Ae===void 0||Ae.stop()}}dispose(){var a,H,Ae,nn,In;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(H=this._deliveryQueue)===null||H===void 0||H.clear(),(nn=(Ae=this._options)===null||Ae===void 0?void 0:Ae.onLastListenerRemove)===null||nn===void 0||nn.call(Ae),(In=this._leakageMon)===null||In===void 0||In.dispose())}}class L extends ${constructor(a){super(a);this._isPaused=0,this._eventQueue=new de,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class E extends L{constructor(a){var H;super(a);this._delay=(H=a.delay)!==null&&H!==void 0?H:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class ae{constructor(){this.buffers=[]}wrapEvent(a){return(H,Ae,nn)=>a(In=>{const Gn=this.buffers[this.buffers.length-1];Gn?Gn.push(()=>H.call(Ae,In)):H.call(Ae,In)},void 0,nn)}bufferEvents(a){const H=[];this.buffers.push(H);const Ae=a();return this.buffers.pop(),H.forEach(nn=>nn()),Ae}}class X{constructor(){this.listening=!1,this.inputEvent=Z.None,this.inputEventListener=_e.None,this.emitter=new $({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function ie(a){return Array.isArray(a)}function le(a){return typeof a=="string"}function P(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)&&!(a instanceof RegExp)&&!(a instanceof Date)}function I(a){return typeof a=="number"&&!isNaN(a)}function re(a){return a===!0||a===!1}function B(a){return typeof a=="undefined"}function A(a){return!f(a)}function f(a){return B(a)||a===null}function F(a,H){if(!a)throw new Error(H?`Unexpected type, expected '${H}'`:"Unexpected type")}function g(a){if(f(a))throw new Error("Assertion Failed: argument is undefined or null");return a}function p(a){return typeof a=="function"}function d(a,H){const Ae=Math.min(a.length,H.length);for(let nn=0;nn<Ae;nn++)T(a[nn],H[nn])}function T(a,H){if(le(H)){if(typeof a!==H)throw new Error(`argument does not match constraint: typeof ${H}`)}else if(p(H)){try{if(a instanceof H)return}catch(Ae){}if(!f(a)&&a.constructor===H)return;if(H.length===1&&H.call(void 0,a)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function m(a){let H=[],Ae=Object.getPrototypeOf(a);for(;Object.prototype!==Ae;)H=H.concat(Object.getOwnPropertyNames(Ae)),Ae=Object.getPrototypeOf(Ae);return H}function k(a){const H=[];for(const Ae of m(a))typeof a[Ae]=="function"&&H.push(Ae);return H}function N(a,H){const Ae=In=>function(){const Gn=Array.prototype.slice.call(arguments,0);return H(In,Gn)};let nn={};for(const In of a)nn[In]=Ae(In);return nn}function D(a){return a===null?void 0:a}function R(a,H="Unreachable"){throw new Error(H)}function me(a){return!a||typeof a!="string"?!0:a.trim().length===0}const q=/{(\d+)}/g;function J(a,...H){return H.length===0?a:a.replace(q,function(Ae,nn){const In=parseInt(nn,10);return isNaN(In)||In<0||In>=H.length?Ae:H[In]})}function C(a){return a.replace(/[<>&]/g,function(H){switch(H){case"<":return"<";case">":return">";case"&":return"&";default:return H}})}function we(a){return a.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Oe(a,H=" "){const Ae=te(a,H);return Te(Ae,H)}function te(a,H){if(!a||!H)return a;const Ae=H.length;if(Ae===0||a.length===0)return a;let nn=0;for(;a.indexOf(H,nn)===nn;)nn=nn+Ae;return a.substring(nn)}function Te(a,H){if(!a||!H)return a;const Ae=H.length,nn=a.length;if(Ae===0||nn===0)return a;let In=nn,Gn=-1;for(;!(Gn=a.lastIndexOf(H,In-1),Gn===-1||Gn+Ae!==In);){if(Gn===0)return"";In=Gn}return a.substring(0,In)}function be(a){return a.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Ce(a){return a.replace(/\*/g,"")}function Ue(a,H,Ae={}){if(!a)throw new Error("Cannot create regex from empty string");H||(a=we(a)),Ae.wholeWord&&(/\B/.test(a.charAt(0))||(a="\\b"+a),/\B/.test(a.charAt(a.length-1))||(a=a+"\\b"));let nn="";return Ae.global&&(nn+="g"),Ae.matchCase||(nn+="i"),Ae.multiline&&(nn+="m"),Ae.unicode&&(nn+="u"),new RegExp(a,nn)}function Se(a){if(a.source==="^"||a.source==="^$"||a.source==="$"||a.source==="^\\s*$")return!1;const H=a.exec("");return!!(H&&a.lastIndex===0)}function $e(a){return(a.global?"g":"")+(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")}function ce(a){return a.split(/\r\n|\r|\n/)}function Le(a){for(let H=0,Ae=a.length;H<Ae;H++){const nn=a.charCodeAt(H);if(nn!==32&&nn!==9)return H}return-1}function qe(a,H=0,Ae=a.length){for(let nn=H;nn<Ae;nn++){const In=a.charCodeAt(nn);if(In!==32&&In!==9)return a.substring(H,nn)}return a.substring(H,Ae)}function pe(a,H=a.length-1){for(let Ae=H;Ae>=0;Ae--){const nn=a.charCodeAt(Ae);if(nn!==32&&nn!==9)return Ae}return-1}function Me(a,H){return a<H?-1:a>H?1:0}function fn(a,H,Ae=0,nn=a.length,In=0,Gn=H.length){for(;Ae<nn&&In<Gn;Ae++,In++){let It=a.charCodeAt(Ae),Pt=H.charCodeAt(In);if(It<Pt)return-1;if(It>Pt)return 1}const bt=nn-Ae,pt=Gn-In;return bt<pt?-1:bt>pt?1:0}function Ye(a,H){return Ne(a,H,0,a.length,0,H.length)}function Ne(a,H,Ae=0,nn=a.length,In=0,Gn=H.length){for(;Ae<nn&&In<Gn;Ae++,In++){let It=a.charCodeAt(Ae),Pt=H.charCodeAt(In);if(It===Pt)continue;if(It>=128||Pt>=128)return fn(a.toLowerCase(),H.toLowerCase(),Ae,nn,In,Gn);je(It)&&(It-=32),je(Pt)&&(Pt-=32);const er=It-Pt;if(er===0)continue;return er}const bt=nn-Ae,pt=Gn-In;return bt<pt?-1:bt>pt?1:0}function je(a){return a>=97&&a<=122}function xn(a){return a>=65&&a<=90}function Wn(a,H){return a.length===H.length&&Ne(a,H)===0}function dn(a,H){const Ae=H.length;return H.length>a.length?!1:Ne(a,H,0,Ae)===0}function vn(a,H){let Ae,nn=Math.min(a.length,H.length);for(Ae=0;Ae<nn;Ae++)if(a.charCodeAt(Ae)!==H.charCodeAt(Ae))return Ae;return nn}function o(a,H){let Ae,nn=Math.min(a.length,H.length);const In=a.length-1,Gn=H.length-1;for(Ae=0;Ae<nn;Ae++)if(a.charCodeAt(In-Ae)!==H.charCodeAt(Gn-Ae))return Ae;return nn}function Cn(a){return 55296<=a&&a<=56319}function z(a){return 56320<=a&&a<=57343}function tn(a,H){return(a-55296<<10)+(H-56320)+65536}function $n(a,H,Ae){const nn=a.charCodeAt(Ae);if(Cn(nn)&&Ae+1<H){const In=a.charCodeAt(Ae+1);if(z(In))return tn(nn,In)}return nn}function Un(a,H){const Ae=a.charCodeAt(H-1);if(z(Ae)&&H>1){const nn=a.charCodeAt(H-2);if(Cn(nn))return tn(nn,Ae)}return Ae}function oe(a,H){const Ae=Vn.getInstance(),nn=H,In=a.length,Gn=$n(a,In,H);H+=Gn>=65536?2:1;let bt=Ae.getGraphemeBreakType(Gn);for(;H<In;){const pt=$n(a,In,H),It=Ae.getGraphemeBreakType(pt);if(Ke(bt,It))break;H+=pt>=65536?2:1,bt=It}return H-nn}function Pe(a,H){const Ae=Vn.getInstance(),nn=H,In=Un(a,H);H-=In>=65536?2:1;let Gn=Ae.getGraphemeBreakType(In);for(;H>0;){const bt=Un(a,H),pt=Ae.getGraphemeBreakType(bt);if(Ke(pt,Gn))break;H-=bt>=65536?2:1,Gn=pt}return nn-H}const ke=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Qe(a){return ke.test(a)}const gn=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function xe(a){return gn.test(a)}const Ze=/^[\t\n\r\x20-\x7E]*$/;function wn(a){return Ze.test(a)}const Be=/[\u2028\u2029]/;function hn(a){return Be.test(a)}function Kn(a){for(let H=0,Ae=a.length;H<Ae;H++)if(Je(a.charCodeAt(H)))return!0;return!1}function Je(a){return a=+a,a>=11904&&a<=55215||a>=63744&&a<=64255||a>=65281&&a<=65374}function En(a){return a>=127462&&a<=127487||a===8986||a===8987||a===9200||a===9203||a>=9728&&a<=10175||a===11088||a===11093||a>=127744&&a<=128591||a>=128640&&a<=128764||a>=128992&&a<=129003||a>=129280&&a<=129535||a>=129648&&a<=129750}const Nn=String.fromCharCode(65279);function ct(a){return!!(a&&a.length>0&&a.charCodeAt(0)===65279)}function yt(a,H=!1){return a?(H&&(a=a.replace(/\\./g,"")),a.toLowerCase()!==a):!1}function Gt(a){const H=90-65+1;return a=a%(2*H),a<H?String.fromCharCode(97+a):String.fromCharCode(65+a-H)}function $t(a){const H=Vn.getInstance();return H.getGraphemeBreakType(a)}function Ke(a,H){return a===0?H!==5&&H!==7:a===2&&H===3?!1:a===4||a===2||a===3||(H===4||H===2||H===3)?!0:a===8&&(H===8||H===9||H===11||H===12)||((a===11||a===9)&&(H===9||H===10)||((a===12||a===10)&&H===10||(H===5||H===13||(H===7||(a===1||a===13&&H===14)))))?!1:!(a===6&&H===6)}class Vn{constructor(){this._data=Zn()}static getInstance(){return Vn._INSTANCE||(Vn._INSTANCE=new Vn),Vn._INSTANCE}getGraphemeBreakType(a){if(a<32)return a===10?3:a===13?2:4;if(a<127)return 0;const H=this._data,Ae=H.length/3;let nn=1;for(;nn<=Ae;)if(a<H[3*nn])nn=2*nn;else if(a>H[3*nn+1])nn=2*nn+1;else return H[3*nn+2];return 0}}Vn._INSTANCE=null;function Zn(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,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,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,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,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,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,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,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,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,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,2259,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,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,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,6848,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,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,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,9776,9783,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,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,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,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,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Re(a,H){if(a===0)return 0;const Ae=Pn(a,H);if(Ae!==void 0)return Ae;const nn=Un(H,a);return a-=rt(nn),a}function Pn(a,H){let Ae=Un(H,a);for(a-=rt(Ae);Yn(Ae)||Ae===65039||Ae===8419;){if(a===0)return;Ae=Un(H,a),a-=rt(Ae)}if(!En(Ae))return;if(a>=0){const nn=Un(H,a);nn===8205&&(a-=rt(nn))}return a}function rt(a){return a>=65536?2:1}function Yn(a){return 127995<=a&&a<=127999}const gt="$initialize";let lt=!1;function Fe(a){if(!fe.c)return;lt||(lt=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(a.message)}class Bn{constructor(a,H,Ae,nn){this.vsWorker=a,this.req=H,this.method=Ae,this.args=nn,this.type=0}}class K{constructor(a,H,Ae,nn){this.vsWorker=a,this.seq=H,this.res=Ae,this.err=nn,this.type=1}}class An{constructor(a,H,Ae,nn){this.vsWorker=a,this.req=H,this.eventName=Ae,this.arg=nn,this.type=2}}class Fn{constructor(a,H,Ae){this.vsWorker=a,this.req=H,this.event=Ae,this.type=3}}class ln{constructor(a,H){this.vsWorker=a,this.req=H,this.type=4}}class Ln{constructor(a){this._workerId=-1,this._handler=a,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(a){this._workerId=a}sendMessage(a,H){const Ae=String(++this._lastSentReq);return new Promise((nn,In)=>{this._pendingReplies[Ae]={resolve:nn,reject:In},this._send(new Bn(this._workerId,Ae,a,H))})}listen(a,H){let Ae=null;const nn=new $({onFirstListenerAdd:()=>{Ae=String(++this._lastSentReq),this._pendingEmitters.set(Ae,nn),this._send(new An(this._workerId,Ae,a,H))},onLastListenerRemove:()=>{this._pendingEmitters.delete(Ae),this._send(new ln(this._workerId,Ae)),Ae=null}});return nn.event}handleMessage(a){if(!a||!a.vsWorker)return;if(this._workerId!==-1&&a.vsWorker!==this._workerId)return;this._handleMessage(a)}_handleMessage(a){switch(a.type){case 1:return this._handleReplyMessage(a);case 0:return this._handleRequestMessage(a);case 2:return this._handleSubscribeEventMessage(a);case 3:return this._handleEventMessage(a);case 4:return this._handleUnsubscribeEventMessage(a)}}_handleReplyMessage(a){if(!this._pendingReplies[a.seq]){console.warn("Got reply to unknown seq");return}let H=this._pendingReplies[a.seq];if(delete this._pendingReplies[a.seq],a.err){let Ae=a.err;a.err.$isError&&(Ae=new Error,Ae.name=a.err.name,Ae.message=a.err.message,Ae.stack=a.err.stack),H.reject(Ae);return}H.resolve(a.res)}_handleRequestMessage(a){let H=a.req,Ae=this._handler.handleMessage(a.method,a.args);Ae.then(nn=>{this._send(new K(this._workerId,H,nn,void 0))},nn=>{nn.detail instanceof Error&&(nn.detail=pr(nn.detail)),this._send(new K(this._workerId,H,void 0,pr(nn)))})}_handleSubscribeEventMessage(a){const H=a.req,Ae=this._handler.handleEvent(a.eventName,a.arg)(nn=>{this._send(new Fn(this._workerId,H,nn))});this._pendingEvents.set(H,Ae)}_handleEventMessage(a){if(!this._pendingEmitters.has(a.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(a.req).fire(a.event)}_handleUnsubscribeEventMessage(a){if(!this._pendingEvents.has(a.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(a.req).dispose(),this._pendingEvents.delete(a.req)}_send(a){let H=[];if(a.type===0)for(let Ae=0;Ae<a.args.length;Ae++)a.args[Ae]instanceof ArrayBuffer&&H.push(a.args[Ae]);else a.type===1&&(a.res instanceof ArrayBuffer&&H.push(a.res));this._handler.sendMessage(a,H)}}class Xe extends _e{constructor(a,H,Ae){super();let nn=null;this._worker=this._register(a.create("vs/base/common/worker/simpleWorker",It=>{this._protocol.handleMessage(It)},It=>{nn&&nn(It)})),this._protocol=new Ln({sendMessage:(It,Pt)=>{this._worker.postMessage(It,Pt)},handleMessage:(It,Pt)=>{if(typeof Ae[It]!="function")return Promise.reject(new Error("Missing method "+It+" on main thread host."));try{return Promise.resolve(Ae[It].apply(Ae,Pt))}catch(er){return Promise.reject(er)}},handleEvent:(It,Pt)=>{if(rn(It)){const er=Ae[It].call(Ae,Pt);if(typeof er!="function")throw new Error(`Missing dynamic event ${It} on main thread host.`);return er}if(Dn(It)){const er=Ae[It];if(typeof er!="function")throw new Error(`Missing event ${It} on main thread host.`);return er}throw new Error(`Malformed event name ${It}`)}}),this._protocol.setWorkerId(this._worker.getId());let In=null;typeof fe.a.require!="undefined"&&typeof fe.a.require.getConfig=="function"?In=fe.a.require.getConfig():typeof fe.a.requirejs!="undefined"&&(In=fe.a.requirejs.s.contexts._.config);const Gn=k(Ae);this._onModuleLoaded=this._protocol.sendMessage(gt,[this._worker.getId(),JSON.parse(JSON.stringify(In)),H,Gn]);const bt=(It,Pt)=>this._request(It,Pt),pt=(It,Pt)=>this._protocol.listen(It,Pt);this._lazyProxy=new Promise((It,Pt)=>{nn=Pt,this._onModuleLoaded.then(er=>{It(qn(er,bt,pt))},er=>{Pt(er),this._onError("Worker failed to load "+H,er)})})}getProxyObject(){return this._lazyProxy}_request(a,H){return new Promise((Ae,nn)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(a,H).then(Ae,nn)},nn)})}_onError(a,H){console.error(a),console.info(H)}}function Dn(a){return a[0]==="o"&&a[1]==="n"&&xn(a.charCodeAt(2))}function rn(a){return/^onDynamic/.test(a)&&xn(a.charCodeAt(9))}function qn(a,H,Ae){const nn=bt=>function(){const pt=Array.prototype.slice.call(arguments,0);return H(bt,pt)},In=bt=>function(pt){return Ae(bt,pt)};let Gn={};for(const bt of a){if(rn(bt)){Gn[bt]=In(bt);continue}if(Dn(bt)){Gn[bt]=Ae(bt,void 0);continue}Gn[bt]=nn(bt)}return Gn}class it{constructor(a,H){this._requestHandlerFactory=H,this._requestHandler=null,this._protocol=new Ln({sendMessage:(Ae,nn)=>{a(Ae,nn)},handleMessage:(Ae,nn)=>this._handleMessage(Ae,nn),handleEvent:(Ae,nn)=>this._handleEvent(Ae,nn)})}onmessage(a){this._protocol.handleMessage(a)}_handleMessage(a,H){if(a===gt)return this.initialize(H[0],H[1],H[2],H[3]);if(!this._requestHandler||typeof this._requestHandler[a]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+a));try{return Promise.resolve(this._requestHandler[a].apply(this._requestHandler,H))}catch(Ae){return Promise.reject(Ae)}}_handleEvent(a,H){if(!this._requestHandler)throw new Error("Missing requestHandler");if(rn(a)){const Ae=this._requestHandler[a].call(this._requestHandler,H);if(typeof Ae!="function")throw new Error(`Missing dynamic event ${a} on request handler.`);return Ae}if(Dn(a)){const Ae=this._requestHandler[a];if(typeof Ae!="function")throw new Error(`Missing event ${a} on request handler.`);return Ae}throw new Error(`Malformed event name ${a}`)}initialize(a,H,Ae,nn){this._protocol.setWorkerId(a);const In=(pt,It)=>this._protocol.sendMessage(pt,It),Gn=(pt,It)=>this._protocol.listen(pt,It),bt=qn(nn,In,Gn);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(bt),Promise.resolve(k(this._requestHandler))):(H&&(typeof H.baseUrl!="undefined"&&delete H.baseUrl,typeof H.paths!="undefined"&&(typeof H.paths.vs!="undefined"&&delete H.paths.vs),typeof H.trustedTypesPolicy!==void 0&&delete H.trustedTypesPolicy,H.catchError=!0,fe.a.require.config(H)),new Promise((pt,It)=>{const Pt=fe.a.require;Pt([Ae],er=>{if(this._requestHandler=er.create(bt),!this._requestHandler){It(new Error("No RequestHandler!"));return}pt(k(this._requestHandler))},It)}))}}function ht(a){return new it(a,null)}class Et{constructor(a,H,Ae,nn){this.originalStart=a,this.originalLength=H,this.modifiedStart=Ae,this.modifiedLength=nn}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function zt(a){return fr(a,0)}function fr(a,H){switch(typeof a){case"object":return a===null?br(349,H):Array.isArray(a)?Ht(a,H):Xr(a,H);case"string":return mr(a,H);case"boolean":return Jt(a,H);case"number":return br(a,H);case"undefined":return br(937,H);default:return br(617,H)}}function br(a,H){return(H<<5)-H+a|0}function Jt(a,H){return br(a?433:863,H)}function mr(a,H){H=br(149417,H);for(let Ae=0,nn=a.length;Ae<nn;Ae++)H=br(a.charCodeAt(Ae),H);return H}function Ht(a,H){return H=br(104579,H),a.reduce((Ae,nn)=>fr(nn,Ae),H)}function Xr(a,H){return H=br(181387,H),Object.keys(a).sort().reduce((Ae,nn)=>(Ae=mr(nn,Ae),fr(a[nn],Ae)),H)}function At(a,H,Ae=32){const nn=Ae-H,In=~((1<<nn)-1);return(a<<H|(In&a)>>>nn)>>>0}function Wr(a,H=0,Ae=a.byteLength,nn=0){for(let In=0;In<Ae;In++)a[H+In]=nn}function Or(a,H,Ae="0"){for(;a.length<H;)a=Ae+a;return a}function Ja(a,H=32){return a instanceof ArrayBuffer?Array.from(new Uint8Array(a)).map(Ae=>Ae.toString(16).padStart(2,"0")).join(""):Or((a>>>0).toString(16),H/4)}class qa{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(a){const H=a.length;if(H===0)return;const Ae=this._buff;let nn=this._buffLen,In=this._leftoverHighSurrogate,Gn,bt;for(In!==0?(Gn=In,bt=-1,In=0):(Gn=a.charCodeAt(0),bt=0);;){let pt=Gn;if(Cn(Gn))if(bt+1<H){const It=a.charCodeAt(bt+1);z(It)?(bt++,pt=tn(Gn,It)):pt=65533}else{In=Gn;break}else z(Gn)&&(pt=65533);if(nn=this._push(Ae,nn,pt),bt++,bt<H)Gn=a.charCodeAt(bt);else break}this._buffLen=nn,this._leftoverHighSurrogate=In}_push(a,H,Ae){return Ae<128?a[H++]=Ae:Ae<2048?(a[H++]=192|(Ae&1984)>>>6,a[H++]=128|(Ae&63)>>>0):Ae<65536?(a[H++]=224|(Ae&61440)>>>12,a[H++]=128|(Ae&4032)>>>6,a[H++]=128|(Ae&63)>>>0):(a[H++]=240|(Ae&1835008)>>>18,a[H++]=128|(Ae&258048)>>>12,a[H++]=128|(Ae&4032)>>>6,a[H++]=128|(Ae&63)>>>0),H>=64&&(this._step(),H-=64,this._totalLen+=64,a[0]=a[64+0],a[1]=a[64+1],a[2]=a[64+2]),H}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()),Ja(this._h0)+Ja(this._h1)+Ja(this._h2)+Ja(this._h3)+Ja(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Wr(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Wr(this._buff));const a=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(a/4294967296),!1),this._buffDV.setUint32(60,a%4294967296,!1),this._step()}_step(){const a=qa._bigBlock32,H=this._buffDV;for(let er=0;er<64;er+=4)a.setUint32(er,H.getUint32(er,!1),!1);for(let er=64;er<320;er+=4)a.setUint32(er,At(a.getUint32(er-12,!1)^a.getUint32(er-32,!1)^a.getUint32(er-56,!1)^a.getUint32(er-64,!1),1),!1);let Ae=this._h0,nn=this._h1,In=this._h2,Gn=this._h3,bt=this._h4,pt,It,Pt;for(let er=0;er<80;er++)er<20?(pt=nn&In|~nn&Gn,It=1518500249):er<40?(pt=nn^In^Gn,It=1859775393):er<60?(pt=nn&In|nn&Gn|In&Gn,It=2400959708):(pt=nn^In^Gn,It=3395469782),Pt=At(Ae,5)+pt+bt+It+a.getUint32(er*4,!1)&4294967295,bt=Gn,Gn=In,In=At(nn,30),nn=Ae,Ae=Pt;this._h0=this._h0+Ae&4294967295,this._h1=this._h1+nn&4294967295,this._h2=this._h2+In&4294967295,this._h3=this._h3+Gn&4294967295,this._h4=this._h4+bt&4294967295}}qa._bigBlock32=new DataView(new ArrayBuffer(320));class eo{constructor(a){this.source=a}getElements(){const a=this.source,H=new Int32Array(a.length);for(let Ae=0,nn=a.length;Ae<nn;Ae++)H[Ae]=a.charCodeAt(Ae);return H}}function Va(a,H,Ae){return new Wt(new eo(a),new eo(H)).ComputeDiff(Ae).changes}class la{static Assert(a,H){if(!a)throw new Error(H)}}class wt{static Copy(a,H,Ae,nn,In){for(let Gn=0;Gn<In;Gn++)Ae[nn+Gn]=a[H+Gn]}static Copy2(a,H,Ae,nn,In){for(let Gn=0;Gn<In;Gn++)Ae[nn+Gn]=a[H+Gn]}}class rr{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 Et(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(a,H){this.m_originalStart=Math.min(this.m_originalStart,a),this.m_modifiedStart=Math.min(this.m_modifiedStart,H),this.m_originalCount++}AddModifiedElement(a,H){this.m_originalStart=Math.min(this.m_originalStart,a),this.m_modifiedStart=Math.min(this.m_modifiedStart,H),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 Wt{constructor(a,H,Ae=null){this.ContinueProcessingPredicate=Ae,this._originalSequence=a,this._modifiedSequence=H;const[nn,In,Gn]=Wt._getElements(a),[bt,pt,It]=Wt._getElements(H);this._hasStrings=Gn&&It,this._originalStringElements=nn,this._originalElementsOrHash=In,this._modifiedStringElements=bt,this._modifiedElementsOrHash=pt,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(a){return a.length>0&&typeof a[0]=="string"}static _getElements(a){const H=a.getElements();if(Wt._isStringArray(H)){const Ae=new Int32Array(H.length);for(let nn=0,In=H.length;nn<In;nn++)Ae[nn]=mr(H[nn],0);return[H,Ae,!0]}return H instanceof Int32Array?[[],H,!1]:[[],new Int32Array(H),!1]}ElementsAreEqual(a,H){return this._originalElementsOrHash[a]!==this._modifiedElementsOrHash[H]?!1:this._hasStrings?this._originalStringElements[a]===this._modifiedStringElements[H]:!0}ElementsAreStrictEqual(a,H){if(!this.ElementsAreEqual(a,H))return!1;const Ae=Wt._getStrictElement(this._originalSequence,a),nn=Wt._getStrictElement(this._modifiedSequence,H);return Ae===nn}static _getStrictElement(a,H){return typeof a.getStrictElement=="function"?a.getStrictElement(H):null}OriginalElementsAreEqual(a,H){return this._originalElementsOrHash[a]!==this._originalElementsOrHash[H]?!1:this._hasStrings?this._originalStringElements[a]===this._originalStringElements[H]:!0}ModifiedElementsAreEqual(a,H){return this._modifiedElementsOrHash[a]!==this._modifiedElementsOrHash[H]?!1:this._hasStrings?this._modifiedStringElements[a]===this._modifiedStringElements[H]:!0}ComputeDiff(a){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,a)}_ComputeDiff(a,H,Ae,nn,In){const Gn=[!1];let bt=this.ComputeDiffRecursive(a,H,Ae,nn,Gn);return In&&(bt=this.PrettifyChanges(bt)),{quitEarly:Gn[0],changes:bt}}ComputeDiffRecursive(a,H,Ae,nn,In){for(In[0]=!1;a<=H&&Ae<=nn&&this.ElementsAreEqual(a,Ae);)a++,Ae++;for(;H>=a&&nn>=Ae&&this.ElementsAreEqual(H,nn);)H--,nn--;if(a>H||Ae>nn){let er;return Ae<=nn?(la.Assert(a===H+1,"originalStart should only be one more than originalEnd"),er=[new Et(a,0,Ae,nn-Ae+1)]):a<=H?(la.Assert(Ae===nn+1,"modifiedStart should only be one more than modifiedEnd"),er=[new Et(a,H-a+1,Ae,0)]):(la.Assert(a===H+1,"originalStart should only be one more than originalEnd"),la.Assert(Ae===nn+1,"modifiedStart should only be one more than modifiedEnd"),er=[]),er}const Gn=[0],bt=[0],pt=this.ComputeRecursionPoint(a,H,Ae,nn,Gn,bt,In),It=Gn[0],Pt=bt[0];if(pt!==null)return pt;if(!In[0]){const er=this.ComputeDiffRecursive(a,It,Ae,Pt,In);let jr=[];return In[0]?jr=[new Et(It+1,H-(It+1)+1,Pt+1,nn-(Pt+1)+1)]:jr=this.ComputeDiffRecursive(It+1,H,Pt+1,nn,In),this.ConcatenateChanges(er,jr)}return[new Et(a,H-a+1,Ae,nn-Ae+1)]}WALKTRACE(a,H,Ae,nn,In,Gn,bt,pt,It,Pt,er,jr,Qa,Wi,uo,$o,hs,es){let qr=null,pi=null,Ya=new rr,ki=H,Hi=Ae,Ci=Qa[0]-$o[0]-nn,jo=-1073741824,Gs=this.m_forwardHistory.length-1;do{const Cs=Ci+a;Cs===ki||Cs<Hi&&It[Cs-1]<It[Cs+1]?(er=It[Cs+1],Wi=er-Ci-nn,er<jo&&Ya.MarkNextChange(),jo=er,Ya.AddModifiedElement(er+1,Wi),Ci=Cs+1-a):(er=It[Cs-1]+1,Wi=er-Ci-nn,er<jo&&Ya.MarkNextChange(),jo=er-1,Ya.AddOriginalElement(er,Wi+1),Ci=Cs-1-a),Gs>=0&&(It=this.m_forwardHistory[Gs],a=It[0],ki=1,Hi=It.length-1)}while(--Gs>=-1);if(qr=Ya.getReverseChanges(),es[0]){let Cs=Qa[0]+1,ho=$o[0]+1;if(qr!==null&&qr.length>0){const qc=qr[qr.length-1];Cs=Math.max(Cs,qc.getOriginalEnd()),ho=Math.max(ho,qc.getModifiedEnd())}pi=[new Et(Cs,jr-Cs+1,ho,uo-ho+1)]}else{Ya=new rr,ki=Gn,Hi=bt,Ci=Qa[0]-$o[0]-pt,jo=1073741824,Gs=hs?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const Cs=Ci+In;Cs===ki||Cs<Hi&&Pt[Cs-1]>=Pt[Cs+1]?(er=Pt[Cs+1]-1,Wi=er-Ci-pt,er>jo&&Ya.MarkNextChange(),jo=er+1,Ya.AddOriginalElement(er+1,Wi+1),Ci=Cs+1-In):(er=Pt[Cs-1],Wi=er-Ci-pt,er>jo&&Ya.MarkNextChange(),jo=er,Ya.AddModifiedElement(er+1,Wi+1),Ci=Cs-1-In),Gs>=0&&(Pt=this.m_reverseHistory[Gs],In=Pt[0],ki=1,Hi=Pt.length-1)}while(--Gs>=-1);pi=Ya.getChanges()}return this.ConcatenateChanges(qr,pi)}ComputeRecursionPoint(a,H,Ae,nn,In,Gn,bt){let pt=0,It=0,Pt=0,er=0,jr=0,Qa=0;a--,Ae--,In[0]=0,Gn[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Wi=H-a+(nn-Ae),uo=Wi+1,$o=new Int32Array(uo),hs=new Int32Array(uo),es=nn-Ae,qr=H-a,pi=a-Ae,Ya=H-nn,ki=qr-es,Hi=ki%2===0;$o[es]=a,hs[qr]=H,bt[0]=!1;for(let Ci=1;Ci<=Wi/2+1;Ci++){let jo=0,Gs=0;Pt=this.ClipDiagonalBound(es-Ci,Ci,es,uo),er=this.ClipDiagonalBound(es+Ci,Ci,es,uo);for(let ho=Pt;ho<=er;ho+=2){ho===Pt||ho<er&&$o[ho-1]<$o[ho+1]?pt=$o[ho+1]:pt=$o[ho-1]+1,It=pt-(ho-es)-pi;const qc=pt;for(;pt<H&&It<nn&&this.ElementsAreEqual(pt+1,It+1);)pt++,It++;if($o[ho]=pt,pt+It>jo+Gs&&(jo=pt,Gs=It),!Hi&&Math.abs(ho-qr)<=Ci-1&&pt>=hs[ho])return In[0]=pt,Gn[0]=It,qc<=hs[ho]&&1447>0&&Ci<=1447+1?this.WALKTRACE(es,Pt,er,pi,qr,jr,Qa,Ya,$o,hs,pt,H,In,It,nn,Gn,Hi,bt):null}const Cs=(jo-a+(Gs-Ae)-Ci)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(jo,Cs))return bt[0]=!0,In[0]=jo,Gn[0]=Gs,Cs>0&&1447>0&&Ci<=1447+1?this.WALKTRACE(es,Pt,er,pi,qr,jr,Qa,Ya,$o,hs,pt,H,In,It,nn,Gn,Hi,bt):(a++,Ae++,[new Et(a,H-a+1,Ae,nn-Ae+1)]);jr=this.ClipDiagonalBound(qr-Ci,Ci,qr,uo),Qa=this.ClipDiagonalBound(qr+Ci,Ci,qr,uo);for(let ho=jr;ho<=Qa;ho+=2){ho===jr||ho<Qa&&hs[ho-1]>=hs[ho+1]?pt=hs[ho+1]-1:pt=hs[ho-1],It=pt-(ho-qr)-Ya;const qc=pt;for(;pt>a&&It>Ae&&this.ElementsAreEqual(pt,It);)pt--,It--;if(hs[ho]=pt,Hi&&Math.abs(ho-es)<=Ci&&pt<=$o[ho])return In[0]=pt,Gn[0]=It,qc>=$o[ho]&&1447>0&&Ci<=1447+1?this.WALKTRACE(es,Pt,er,pi,qr,jr,Qa,Ya,$o,hs,pt,H,In,It,nn,Gn,Hi,bt):null}if(Ci<=1447){let ho=new Int32Array(er-Pt+2);ho[0]=es-Pt+1,wt.Copy2($o,Pt,ho,1,er-Pt+1),this.m_forwardHistory.push(ho),ho=new Int32Array(Qa-jr+2),ho[0]=qr-jr+1,wt.Copy2(hs,jr,ho,1,Qa-jr+1),this.m_reverseHistory.push(ho)}}return this.WALKTRACE(es,Pt,er,pi,qr,jr,Qa,Ya,$o,hs,pt,H,In,It,nn,Gn,Hi,bt)}PrettifyChanges(a){for(let H=0;H<a.length;H++){const Ae=a[H],nn=H<a.length-1?a[H+1].originalStart:this._originalElementsOrHash.length,In=H<a.length-1?a[H+1].modifiedStart:this._modifiedElementsOrHash.length,Gn=Ae.originalLength>0,bt=Ae.modifiedLength>0;for(;Ae.originalStart+Ae.originalLength<nn&&Ae.modifiedStart+Ae.modifiedLength<In&&(!Gn||this.OriginalElementsAreEqual(Ae.originalStart,Ae.originalStart+Ae.originalLength))&&(!bt||this.ModifiedElementsAreEqual(Ae.modifiedStart,Ae.modifiedStart+Ae.modifiedLength));){const It=this.ElementsAreStrictEqual(Ae.originalStart,Ae.modifiedStart),Pt=this.ElementsAreStrictEqual(Ae.originalStart+Ae.originalLength,Ae.modifiedStart+Ae.modifiedLength);if(Pt&&!It)break;Ae.originalStart++,Ae.modifiedStart++}let pt=[null];if(H<a.length-1&&this.ChangesOverlap(a[H],a[H+1],pt)){a[H]=pt[0],a.splice(H+1,1),H--;continue}}for(let H=a.length-1;H>=0;H--){const Ae=a[H];let nn=0,In=0;if(H>0){const er=a[H-1];nn=er.originalStart+er.originalLength,In=er.modifiedStart+er.modifiedLength}const Gn=Ae.originalLength>0,bt=Ae.modifiedLength>0;let pt=0,It=this._boundaryScore(Ae.originalStart,Ae.originalLength,Ae.modifiedStart,Ae.modifiedLength);for(let er=1;;er++){const jr=Ae.originalStart-er,Qa=Ae.modifiedStart-er;if(jr<nn||Qa<In)break;if(Gn&&!this.OriginalElementsAreEqual(jr,jr+Ae.originalLength))break;if(bt&&!this.ModifiedElementsAreEqual(Qa,Qa+Ae.modifiedLength))break;const Wi=jr===nn&&Qa===In,uo=(Wi?5:0)+this._boundaryScore(jr,Ae.originalLength,Qa,Ae.modifiedLength);uo>It&&(It=uo,pt=er)}Ae.originalStart-=pt,Ae.modifiedStart-=pt;const Pt=[null];if(H>0&&this.ChangesOverlap(a[H-1],a[H],Pt)){a[H-1]=Pt[0],a.splice(H,1),H++;continue}}if(this._hasStrings)for(let H=1,Ae=a.length;H<Ae;H++){const nn=a[H-1],In=a[H],Gn=In.originalStart-nn.originalStart-nn.originalLength,bt=nn.originalStart,pt=In.originalStart+In.originalLength,It=pt-bt,Pt=nn.modifiedStart,er=In.modifiedStart+In.modifiedLength,jr=er-Pt;if(Gn<5&&It<20&&jr<20){const Qa=this._findBetterContiguousSequence(bt,It,Pt,jr,Gn);if(Qa){const[Wi,uo]=Qa;(Wi!==nn.originalStart+nn.originalLength||uo!==nn.modifiedStart+nn.modifiedLength)&&(nn.originalLength=Wi-nn.originalStart,nn.modifiedLength=uo-nn.modifiedStart,In.originalStart=Wi+Gn,In.modifiedStart=uo+Gn,In.originalLength=pt-In.originalStart,In.modifiedLength=er-In.modifiedStart)}}}return a}_findBetterContiguousSequence(a,H,Ae,nn,In){if(H<In||nn<In)return null;const Gn=a+H-In+1,bt=Ae+nn-In+1;let pt=0,It=0,Pt=0;for(let er=a;er<Gn;er++)for(let jr=Ae;jr<bt;jr++){const Qa=this._contiguousSequenceScore(er,jr,In);Qa>0&&Qa>pt&&(pt=Qa,It=er,Pt=jr)}return pt>0?[It,Pt]:null}_contiguousSequenceScore(a,H,Ae){let nn=0;for(let In=0;In<Ae;In++){if(!this.ElementsAreEqual(a+In,H+In))return 0;nn+=this._originalStringElements[a+In].length}return nn}_OriginalIsBoundary(a){return a<=0||a>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[a])}_OriginalRegionIsBoundary(a,H){if(this._OriginalIsBoundary(a)||this._OriginalIsBoundary(a-1))return!0;if(H>0){const Ae=a+H;if(this._OriginalIsBoundary(Ae-1)||this._OriginalIsBoundary(Ae))return!0}return!1}_ModifiedIsBoundary(a){return a<=0||a>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[a])}_ModifiedRegionIsBoundary(a,H){if(this._ModifiedIsBoundary(a)||this._ModifiedIsBoundary(a-1))return!0;if(H>0){const Ae=a+H;if(this._ModifiedIsBoundary(Ae-1)||this._ModifiedIsBoundary(Ae))return!0}return!1}_boundaryScore(a,H,Ae,nn){const In=this._OriginalRegionIsBoundary(a,H)?1:0,Gn=this._ModifiedRegionIsBoundary(Ae,nn)?1:0;return In+Gn}ConcatenateChanges(a,H){let Ae=[];if(a.length===0||H.length===0)return H.length>0?H:a;if(this.ChangesOverlap(a[a.length-1],H[0],Ae)){const nn=new Array(a.length+H.length-1);return wt.Copy(a,0,nn,0,a.length-1),nn[a.length-1]=Ae[0],wt.Copy(H,1,nn,a.length,H.length-1),nn}else{const nn=new Array(a.length+H.length);return wt.Copy(a,0,nn,0,a.length),wt.Copy(H,0,nn,a.length,H.length),nn}}ChangesOverlap(a,H,Ae){if(la.Assert(a.originalStart<=H.originalStart,"Left change is not less than or equal to right change"),la.Assert(a.modifiedStart<=H.modifiedStart,"Left change is not less than or equal to right change"),a.originalStart+a.originalLength>=H.originalStart||a.modifiedStart+a.modifiedLength>=H.modifiedStart){const nn=a.originalStart;let In=a.originalLength;const Gn=a.modifiedStart;let bt=a.modifiedLength;return a.originalStart+a.originalLength>=H.originalStart&&(In=H.originalStart+H.originalLength-a.originalStart),a.modifiedStart+a.modifiedLength>=H.modifiedStart&&(bt=H.modifiedStart+H.modifiedLength-a.modifiedStart),Ae[0]=new Et(nn,In,Gn,bt),!0}else return Ae[0]=null,!1}ClipDiagonalBound(a,H,Ae,nn){if(a>=0&&a<nn)return a;const In=Ae,Gn=nn-Ae-1,bt=H%2===0;if(a<0){const pt=In%2===0;return bt===pt?0:1}else{const pt=Gn%2===0;return bt===pt?nn-1:nn-2}}}var Pr=Do("wxcJ");const ra=65,Lt=97,xt=90,Yt=122,Qt=46,sr=47,at=92,ea=58,Fa=63;class li extends Error{constructor(a,H,Ae){let nn;typeof H=="string"&&H.indexOf("not ")===0?(nn="must not be",H=H.replace(/^not /,"")):nn="must be";const In=a.indexOf(".")!==-1?"property":"argument";let Gn=`The "${a}" ${In} ${nn} of type ${H}`;Gn+=`. Received type ${typeof Ae}`,super(Gn),this.code="ERR_INVALID_ARG_TYPE"}}function Si(a,H){if(typeof a!="string")throw new li(H,"string",a)}function Qr(a){return a===sr||a===at}function ci(a){return a===sr}function Mi(a){return a>=ra&&a<=xt||a>=Lt&&a<=Yt}function ro(a,H,Ae,nn){let In="",Gn=0,bt=-1,pt=0,It=0;for(let Pt=0;Pt<=a.length;++Pt){if(Pt<a.length)It=a.charCodeAt(Pt);else{if(nn(It))break;It=sr}if(nn(It)){if(!(bt===Pt-1||pt===1))if(pt===2){if(In.length<2||Gn!==2||In.charCodeAt(In.length-1)!==Qt||In.charCodeAt(In.length-2)!==Qt){if(In.length>2){const er=In.lastIndexOf(Ae);er===-1?(In="",Gn=0):(In=In.slice(0,er),Gn=In.length-1-In.lastIndexOf(Ae)),bt=Pt,pt=0;continue}else if(In.length!==0){In="",Gn=0,bt=Pt,pt=0;continue}}H&&(In+=In.length>0?`${Ae}..`:"..",Gn=2)}else In.length>0?In+=`${Ae}${a.slice(bt+1,Pt)}`:In=a.slice(bt+1,Pt),Gn=Pt-bt-1;bt=Pt,pt=0}else It===Qt&&pt!==-1?++pt:pt=-1}return In}function xi(a,H){if(H===null||typeof H!="object")throw new li("pathObject","Object",H);const Ae=H.dir||H.root,nn=H.base||`${H.name||""}${H.ext||""}`;return Ae?Ae===H.root?`${Ae}${nn}`:`${Ae}${a}${nn}`:nn}const ui={resolve(...a){let H="",Ae="",nn=!1;for(let In=a.length-1;In>=-1;In--){let Gn;if(In>=0){if(Gn=a[In],Si(Gn,"path"),Gn.length===0)continue}else H.length===0?Gn=Pr.a():(Gn=Pr.b[`=${H}`]||Pr.a(),(Gn===void 0||Gn.slice(0,2).toLowerCase()!==H.toLowerCase()&&Gn.charCodeAt(2)===at)&&(Gn=`${H}\\`));const bt=Gn.length;let pt=0,It="",Pt=!1;const er=Gn.charCodeAt(0);if(bt===1)Qr(er)&&(pt=1,Pt=!0);else if(Qr(er))if(Pt=!0,Qr(Gn.charCodeAt(1))){let jr=2,Qa=jr;for(;jr<bt&&!Qr(Gn.charCodeAt(jr));)jr++;if(jr<bt&&jr!==Qa){const Wi=Gn.slice(Qa,jr);for(Qa=jr;jr<bt&&Qr(Gn.charCodeAt(jr));)jr++;if(jr<bt&&jr!==Qa){for(Qa=jr;jr<bt&&!Qr(Gn.charCodeAt(jr));)jr++;(jr===bt||jr!==Qa)&&(It=`\\\\${Wi}\\${Gn.slice(Qa,jr)}`,pt=jr)}}}else pt=1;else Mi(er)&&Gn.charCodeAt(1)===ea&&(It=Gn.slice(0,2),pt=2,bt>2&&Qr(Gn.charCodeAt(2))&&(Pt=!0,pt=3));if(It.length>0)if(H.length>0){if(It.toLowerCase()!==H.toLowerCase())continue}else H=It;if(nn){if(H.length>0)break}else if(Ae=`${Gn.slice(pt)}\\${Ae}`,nn=Pt,Pt&&H.length>0)break}return Ae=ro(Ae,!nn,"\\",Qr),nn?`${H}\\${Ae}`:`${H}${Ae}`||"."},normalize(a){Si(a,"path");const H=a.length;if(H===0)return".";let Ae=0,nn,In=!1;const Gn=a.charCodeAt(0);if(H===1)return ci(Gn)?"\\":a;if(Qr(Gn))if(In=!0,Qr(a.charCodeAt(1))){let pt=2,It=pt;for(;pt<H&&!Qr(a.charCodeAt(pt));)pt++;if(pt<H&&pt!==It){const Pt=a.slice(It,pt);for(It=pt;pt<H&&Qr(a.charCodeAt(pt));)pt++;if(pt<H&&pt!==It){for(It=pt;pt<H&&!Qr(a.charCodeAt(pt));)pt++;if(pt===H)return`\\\\${Pt}\\${a.slice(It)}\\`;pt!==It&&(nn=`\\\\${Pt}\\${a.slice(It,pt)}`,Ae=pt)}}}else Ae=1;else Mi(Gn)&&a.charCodeAt(1)===ea&&(nn=a.slice(0,2),Ae=2,H>2&&Qr(a.charCodeAt(2))&&(In=!0,Ae=3));let bt=Ae<H?ro(a.slice(Ae),!In,"\\",Qr):"";return bt.length===0&&!In&&(bt="."),bt.length>0&&Qr(a.charCodeAt(H-1))&&(bt+="\\"),nn===void 0?In?`\\${bt}`:bt:In?`${nn}\\${bt}`:`${nn}${bt}`},isAbsolute(a){Si(a,"path");const H=a.length;if(H===0)return!1;const Ae=a.charCodeAt(0);return Qr(Ae)||H>2&&Mi(Ae)&&a.charCodeAt(1)===ea&&Qr(a.charCodeAt(2))},join(...a){if(a.length===0)return".";let H,Ae;for(let Gn=0;Gn<a.length;++Gn){const bt=a[Gn];Si(bt,"path"),bt.length>0&&(H===void 0?H=Ae=bt:H+=`\\${bt}`)}if(H===void 0)return".";let nn=!0,In=0;if(typeof Ae=="string"&&Qr(Ae.charCodeAt(0))){++In;const Gn=Ae.length;Gn>1&&Qr(Ae.charCodeAt(1))&&(++In,Gn>2&&(Qr(Ae.charCodeAt(2))?++In:nn=!1))}if(nn){for(;In<H.length&&Qr(H.charCodeAt(In));)In++;In>=2&&(H=`\\${H.slice(In)}`)}return ui.normalize(H)},relative(a,H){if(Si(a,"from"),Si(H,"to"),a===H)return"";const Ae=ui.resolve(a),nn=ui.resolve(H);if(Ae===nn)return"";if(a=Ae.toLowerCase(),H=nn.toLowerCase(),a===H)return"";let In=0;for(;In<a.length&&a.charCodeAt(In)===at;)In++;let Gn=a.length;for(;Gn-1>In&&a.charCodeAt(Gn-1)===at;)Gn--;const bt=Gn-In;let pt=0;for(;pt<H.length&&H.charCodeAt(pt)===at;)pt++;let It=H.length;for(;It-1>pt&&H.charCodeAt(It-1)===at;)It--;const Pt=It-pt,er=bt<Pt?bt:Pt;let jr=-1,Qa=0;for(;Qa<er;Qa++){const uo=a.charCodeAt(In+Qa);if(uo!==H.charCodeAt(pt+Qa))break;uo===at&&(jr=Qa)}if(Qa!==er){if(jr===-1)return nn}else{if(Pt>er){if(H.charCodeAt(pt+Qa)===at)return nn.slice(pt+Qa+1);if(Qa===2)return nn.slice(pt+Qa)}bt>er&&(a.charCodeAt(In+Qa)===at?jr=Qa:Qa===2&&(jr=3)),jr===-1&&(jr=0)}let Wi="";for(Qa=In+jr+1;Qa<=Gn;++Qa)(Qa===Gn||a.charCodeAt(Qa)===at)&&(Wi+=Wi.length===0?"..":"\\..");return pt+=jr,Wi.length>0?`${Wi}${nn.slice(pt,It)}`:(nn.charCodeAt(pt)===at&&++pt,nn.slice(pt,It))},toNamespacedPath(a){if(typeof a!="string")return a;if(a.length===0)return"";const H=ui.resolve(a);if(H.length<=2)return a;if(H.charCodeAt(0)===at){if(H.charCodeAt(1)===at){const Ae=H.charCodeAt(2);if(Ae!==Fa&&Ae!==Qt)return`\\\\?\\UNC\\${H.slice(2)}`}}else if(Mi(H.charCodeAt(0))&&H.charCodeAt(1)===ea&&H.charCodeAt(2)===at)return`\\\\?\\${H}`;return a},dirname(a){Si(a,"path");const H=a.length;if(H===0)return".";let Ae=-1,nn=0;const In=a.charCodeAt(0);if(H===1)return Qr(In)?a:".";if(Qr(In)){if(Ae=nn=1,Qr(a.charCodeAt(1))){let pt=2,It=pt;for(;pt<H&&!Qr(a.charCodeAt(pt));)pt++;if(pt<H&&pt!==It){for(It=pt;pt<H&&Qr(a.charCodeAt(pt));)pt++;if(pt<H&&pt!==It){for(It=pt;pt<H&&!Qr(a.charCodeAt(pt));)pt++;if(pt===H)return a;pt!==It&&(Ae=nn=pt+1)}}}}else Mi(In)&&a.charCodeAt(1)===ea&&(Ae=H>2&&Qr(a.charCodeAt(2))?3:2,nn=Ae);let Gn=-1,bt=!0;for(let pt=H-1;pt>=nn;--pt)if(Qr(a.charCodeAt(pt))){if(!bt){Gn=pt;break}}else bt=!1;if(Gn===-1){if(Ae===-1)return".";Gn=Ae}return a.slice(0,Gn)},basename(a,H){H!==void 0&&Si(H,"ext"),Si(a,"path");let Ae=0,nn=-1,In=!0,Gn;if(a.length>=2&&Mi(a.charCodeAt(0))&&a.charCodeAt(1)===ea&&(Ae=2),H!==void 0&&H.length>0&&H.length<=a.length){if(H===a)return"";let bt=H.length-1,pt=-1;for(Gn=a.length-1;Gn>=Ae;--Gn){const It=a.charCodeAt(Gn);if(Qr(It)){if(!In){Ae=Gn+1;break}}else pt===-1&&(In=!1,pt=Gn+1),bt>=0&&(It===H.charCodeAt(bt)?--bt===-1&&(nn=Gn):(bt=-1,nn=pt))}return Ae===nn?nn=pt:nn===-1&&(nn=a.length),a.slice(Ae,nn)}for(Gn=a.length-1;Gn>=Ae;--Gn)if(Qr(a.charCodeAt(Gn))){if(!In){Ae=Gn+1;break}}else nn===-1&&(In=!1,nn=Gn+1);return nn===-1?"":a.slice(Ae,nn)},extname(a){Si(a,"path");let H=0,Ae=-1,nn=0,In=-1,Gn=!0,bt=0;a.length>=2&&a.charCodeAt(1)===ea&&Mi(a.charCodeAt(0))&&(H=nn=2);for(let pt=a.length-1;pt>=H;--pt){const It=a.charCodeAt(pt);if(Qr(It)){if(!Gn){nn=pt+1;break}continue}In===-1&&(Gn=!1,In=pt+1),It===Qt?Ae===-1?Ae=pt:bt!==1&&(bt=1):Ae!==-1&&(bt=-1)}return Ae===-1||In===-1||bt===0||bt===1&&Ae===In-1&&Ae===nn+1?"":a.slice(Ae,In)},format:xi.bind(null,"\\"),parse(a){Si(a,"path");const H={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return H;const Ae=a.length;let nn=0,In=a.charCodeAt(0);if(Ae===1)return Qr(In)?(H.root=H.dir=a,H):(H.base=H.name=a,H);if(Qr(In)){if(nn=1,Qr(a.charCodeAt(1))){let jr=2,Qa=jr;for(;jr<Ae&&!Qr(a.charCodeAt(jr));)jr++;if(jr<Ae&&jr!==Qa){for(Qa=jr;jr<Ae&&Qr(a.charCodeAt(jr));)jr++;if(jr<Ae&&jr!==Qa){for(Qa=jr;jr<Ae&&!Qr(a.charCodeAt(jr));)jr++;jr===Ae?nn=jr:jr!==Qa&&(nn=jr+1)}}}}else if(Mi(In)&&a.charCodeAt(1)===ea){if(Ae<=2)return H.root=H.dir=a,H;if(nn=2,Qr(a.charCodeAt(2))){if(Ae===3)return H.root=H.dir=a,H;nn=3}}nn>0&&(H.root=a.slice(0,nn));let Gn=-1,bt=nn,pt=-1,It=!0,Pt=a.length-1,er=0;for(;Pt>=nn;--Pt){if(In=a.charCodeAt(Pt),Qr(In)){if(!It){bt=Pt+1;break}continue}pt===-1&&(It=!1,pt=Pt+1),In===Qt?Gn===-1?Gn=Pt:er!==1&&(er=1):Gn!==-1&&(er=-1)}return pt!==-1&&(Gn===-1||er===0||er===1&&Gn===pt-1&&Gn===bt+1?H.base=H.name=a.slice(bt,pt):(H.name=a.slice(bt,Gn),H.base=a.slice(bt,pt),H.ext=a.slice(Gn,pt))),bt>0&&bt!==nn?H.dir=a.slice(0,bt-1):H.dir=H.root,H},sep:"\\",delimiter:";",win32:null,posix:null},lo={resolve(...a){let H="",Ae=!1;for(let nn=a.length-1;nn>=-1&&!Ae;nn--){const In=nn>=0?a[nn]:Pr.a();if(Si(In,"path"),In.length===0)continue;H=`${In}/${H}`,Ae=In.charCodeAt(0)===sr}return H=ro(H,!Ae,"/",ci),Ae?`/${H}`:H.length>0?H:"."},normalize(a){if(Si(a,"path"),a.length===0)return".";const H=a.charCodeAt(0)===sr,Ae=a.charCodeAt(a.length-1)===sr;return a=ro(a,!H,"/",ci),a.length===0?H?"/":Ae?"./":".":(Ae&&(a+="/"),H?`/${a}`:a)},isAbsolute(a){return Si(a,"path"),a.length>0&&a.charCodeAt(0)===sr},join(...a){if(a.length===0)return".";let H;for(let Ae=0;Ae<a.length;++Ae){const nn=a[Ae];Si(nn,"path"),nn.length>0&&(H===void 0?H=nn:H+=`/${nn}`)}return H===void 0?".":lo.normalize(H)},relative(a,H){if(Si(a,"from"),Si(H,"to"),a===H)return"";if(a=lo.resolve(a),H=lo.resolve(H),a===H)return"";const Ae=1,nn=a.length,In=nn-Ae,Gn=1,bt=H.length-Gn,pt=In<bt?In:bt;let It=-1,Pt=0;for(;Pt<pt;Pt++){const jr=a.charCodeAt(Ae+Pt);if(jr!==H.charCodeAt(Gn+Pt))break;jr===sr&&(It=Pt)}if(Pt===pt)if(bt>pt){if(H.charCodeAt(Gn+Pt)===sr)return H.slice(Gn+Pt+1);if(Pt===0)return H.slice(Gn+Pt)}else In>pt&&(a.charCodeAt(Ae+Pt)===sr?It=Pt:Pt===0&&(It=0));let er="";for(Pt=Ae+It+1;Pt<=nn;++Pt)(Pt===nn||a.charCodeAt(Pt)===sr)&&(er+=er.length===0?"..":"/..");return`${er}${H.slice(Gn+It)}`},toNamespacedPath(a){return a},dirname(a){if(Si(a,"path"),a.length===0)return".";const H=a.charCodeAt(0)===sr;let Ae=-1,nn=!0;for(let In=a.length-1;In>=1;--In)if(a.charCodeAt(In)===sr){if(!nn){Ae=In;break}}else nn=!1;return Ae===-1?H?"/":".":H&&Ae===1?"//":a.slice(0,Ae)},basename(a,H){H!==void 0&&Si(H,"ext"),Si(a,"path");let Ae=0,nn=-1,In=!0,Gn;if(H!==void 0&&H.length>0&&H.length<=a.length){if(H===a)return"";let bt=H.length-1,pt=-1;for(Gn=a.length-1;Gn>=0;--Gn){const It=a.charCodeAt(Gn);if(It===sr){if(!In){Ae=Gn+1;break}}else pt===-1&&(In=!1,pt=Gn+1),bt>=0&&(It===H.charCodeAt(bt)?--bt===-1&&(nn=Gn):(bt=-1,nn=pt))}return Ae===nn?nn=pt:nn===-1&&(nn=a.length),a.slice(Ae,nn)}for(Gn=a.length-1;Gn>=0;--Gn)if(a.charCodeAt(Gn)===sr){if(!In){Ae=Gn+1;break}}else nn===-1&&(In=!1,nn=Gn+1);return nn===-1?"":a.slice(Ae,nn)},extname(a){Si(a,"path");let H=-1,Ae=0,nn=-1,In=!0,Gn=0;for(let bt=a.length-1;bt>=0;--bt){const pt=a.charCodeAt(bt);if(pt===sr){if(!In){Ae=bt+1;break}continue}nn===-1&&(In=!1,nn=bt+1),pt===Qt?H===-1?H=bt:Gn!==1&&(Gn=1):H!==-1&&(Gn=-1)}return H===-1||nn===-1||Gn===0||Gn===1&&H===nn-1&&H===Ae+1?"":a.slice(H,nn)},format:xi.bind(null,"/"),parse(a){Si(a,"path");const H={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return H;const Ae=a.charCodeAt(0)===sr;let nn;Ae?(H.root="/",nn=1):nn=0;let In=-1,Gn=0,bt=-1,pt=!0,It=a.length-1,Pt=0;for(;It>=nn;--It){const er=a.charCodeAt(It);if(er===sr){if(!pt){Gn=It+1;break}continue}bt===-1&&(pt=!1,bt=It+1),er===Qt?In===-1?In=It:Pt!==1&&(Pt=1):In!==-1&&(Pt=-1)}if(bt!==-1){const er=Gn===0&&Ae?1:Gn;In===-1||Pt===0||Pt===1&&In===bt-1&&In===Gn+1?H.base=H.name=a.slice(er,bt):(H.name=a.slice(er,In),H.base=a.slice(er,bt),H.ext=a.slice(In,bt))}return Gn>0?H.dir=a.slice(0,Gn-1):Ae&&(H.dir="/"),H},sep:"/",delimiter:":",win32:null,posix:null};lo.win32=ui.win32=ui,lo.posix=ui.posix=lo;const xo=Pr.c==="win32"?ui.normalize:lo.normalize,Vi=Pr.c==="win32"?ui.resolve:lo.resolve,os=Pr.c==="win32"?ui.relative:lo.relative,Qi=Pr.c==="win32"?ui.dirname:lo.dirname,mo=Pr.c==="win32"?ui.basename:lo.basename,Rs=Pr.c==="win32"?ui.extname:lo.extname,Ls=Pr.c==="win32"?ui.sep:lo.sep,Ca=/^\w[\w\d+.-]*$/,ai=/^\//,Pi=/^\/\//;function wo(a,H){if(!a.scheme&&H)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${a.authority}", path: "${a.path}", query: "${a.query}", fragment: "${a.fragment}"}`);if(a.scheme&&!Ca.test(a.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(a.path){if(a.authority){if(!ai.test(a.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(Pi.test(a.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Lo(a,H){return!a&&!H?"file":a}function _s(a,H){switch(a){case"https":case"http":case"file":H?H[0]!==Io&&(H=Io+H):H=Io;break}return H}const Oi="",Io="/",fs=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Mo{constructor(a,H,Ae,nn,In,Gn=!1){typeof a=="object"?(this.scheme=a.scheme||Oi,this.authority=a.authority||Oi,this.path=a.path||Oi,this.query=a.query||Oi,this.fragment=a.fragment||Oi):(this.scheme=Lo(a,Gn),this.authority=H||Oi,this.path=_s(this.scheme,Ae||Oi),this.query=nn||Oi,this.fragment=In||Oi,wo(this,Gn))}static isUri(a){return a instanceof Mo?!0:a?typeof a.authority=="string"&&typeof a.fragment=="string"&&typeof a.path=="string"&&typeof a.query=="string"&&typeof a.scheme=="string"&&typeof a.fsPath=="string"&&typeof a.with=="function"&&typeof a.toString=="function":!1}get fsPath(){return Za(this,!1)}with(a){if(!a)return this;let{scheme:H,authority:Ae,path:nn,query:In,fragment:Gn}=a;return H===void 0?H=this.scheme:H===null&&(H=Oi),Ae===void 0?Ae=this.authority:Ae===null&&(Ae=Oi),nn===void 0?nn=this.path:nn===null&&(nn=Oi),In===void 0?In=this.query:In===null&&(In=Oi),Gn===void 0?Gn=this.fragment:Gn===null&&(Gn=Oi),H===this.scheme&&Ae===this.authority&&nn===this.path&&In===this.query&&Gn===this.fragment?this:new yn(H,Ae,nn,In,Gn)}static parse(a,H=!1){const Ae=fs.exec(a);return Ae?new yn(Ae[2]||Oi,pn(Ae[4]||Oi),pn(Ae[5]||Oi),pn(Ae[7]||Oi),pn(Ae[9]||Oi),H):new yn(Oi,Oi,Oi,Oi,Oi)}static file(a){let H=Oi;if(fe.d&&(a=a.replace(/\\/g,Io)),a[0]===Io&&a[1]===Io){const Ae=a.indexOf(Io,2);Ae===-1?(H=a.substring(2),a=Io):(H=a.substring(2,Ae),a=a.substring(Ae)||Io)}return new yn("file",H,a,Oi,Oi)}static from(a){const H=new yn(a.scheme,a.authority,a.path,a.query,a.fragment);return wo(H,!0),H}static joinPath(a,...H){if(!a.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let Ae;return fe.d&&a.scheme==="file"?Ae=Mo.file(ui.join(Za(a,!0),...H)).path:Ae=lo.join(a.path,...H),a.with({path:Ae})}toString(a=!1){return Ga(this,a)}toJSON(){return this}static revive(a){if(a){if(a instanceof Mo)return a;{const H=new yn(a);return H._formatted=a.external,H._fsPath=a._sep===Ms?a.fsPath:null,H}}else return a}}const Ms=fe.d?1:void 0;class yn extends Mo{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Za(this,!1)),this._fsPath}toString(a=!1){return a?Ga(this,!0):(this._formatted||(this._formatted=Ga(this,!1)),this._formatted)}toJSON(){const a={$mid:1};return this._fsPath&&(a.fsPath=this._fsPath,a._sep=Ms),this._formatted&&(a.external=this._formatted),this.path&&(a.path=this.path),this.scheme&&(a.scheme=this.scheme),this.authority&&(a.authority=this.authority),this.query&&(a.query=this.query),this.fragment&&(a.fragment=this.fragment),a}}const _t={[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 tr(a,H){let Ae,nn=-1;for(let In=0;In<a.length;In++){const Gn=a.charCodeAt(In);if(Gn>=97&&Gn<=122||Gn>=65&&Gn<=90||Gn>=48&&Gn<=57||Gn===45||Gn===46||Gn===95||Gn===126||H&&Gn===47)nn!==-1&&(Ae+=encodeURIComponent(a.substring(nn,In)),nn=-1),Ae!==void 0&&(Ae+=a.charAt(In));else{Ae===void 0&&(Ae=a.substr(0,In));const bt=_t[Gn];bt!==void 0?(nn!==-1&&(Ae+=encodeURIComponent(a.substring(nn,In)),nn=-1),Ae+=bt):nn===-1&&(nn=In)}}return nn!==-1&&(Ae+=encodeURIComponent(a.substring(nn))),Ae!==void 0?Ae:a}function oa(a){let H;for(let Ae=0;Ae<a.length;Ae++){const nn=a.charCodeAt(Ae);nn===35||nn===63?(H===void 0&&(H=a.substr(0,Ae)),H+=_t[nn]):H!==void 0&&(H+=a[Ae])}return H!==void 0?H:a}function Za(a,H){let Ae;return a.authority&&a.path.length>1&&a.scheme==="file"?Ae=`//${a.authority}${a.path}`:a.path.charCodeAt(0)===47&&(a.path.charCodeAt(1)>=65&&a.path.charCodeAt(1)<=90||a.path.charCodeAt(1)>=97&&a.path.charCodeAt(1)<=122)&&a.path.charCodeAt(2)===58?H?Ae=a.path.substr(1):Ae=a.path[1].toLowerCase()+a.path.substr(2):Ae=a.path,fe.d&&(Ae=Ae.replace(/\//g,"\\")),Ae}function Ga(a,H){const Ae=H?oa:tr;let nn="",{scheme:In,authority:Gn,path:bt,query:pt,fragment:It}=a;if(In&&(nn+=In,nn+=":"),(Gn||In==="file")&&(nn+=Io,nn+=Io),Gn){let Pt=Gn.indexOf("@");if(Pt!==-1){const er=Gn.substr(0,Pt);Gn=Gn.substr(Pt+1),Pt=er.indexOf(":"),Pt===-1?nn+=Ae(er,!1):(nn+=Ae(er.substr(0,Pt),!1),nn+=":",nn+=Ae(er.substr(Pt+1),!1)),nn+="@"}Gn=Gn.toLowerCase(),Pt=Gn.indexOf(":"),Pt===-1?nn+=Ae(Gn,!1):(nn+=Ae(Gn.substr(0,Pt),!1),nn+=Gn.substr(Pt))}if(bt){if(bt.length>=3&&bt.charCodeAt(0)===47&&bt.charCodeAt(2)===58){const Pt=bt.charCodeAt(1);Pt>=65&&Pt<=90&&(bt=`/${String.fromCharCode(Pt+32)}:${bt.substr(3)}`)}else if(bt.length>=2&&bt.charCodeAt(1)===58){const Pt=bt.charCodeAt(0);Pt>=65&&Pt<=90&&(bt=`${String.fromCharCode(Pt+32)}:${bt.substr(2)}`)}nn+=Ae(bt,!0)}return pt&&(nn+="?",nn+=Ae(pt,!1)),It&&(nn+="#",nn+=H?It:tr(It,!1)),nn}function He(a){try{return decodeURIComponent(a)}catch(H){return a.length>3?a.substr(0,3)+He(a.substr(3)):a}}const se=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function pn(a){return a.match(se)?a.replace(se,H=>He(H)):a}class j{constructor(a,H){this.lineNumber=a,this.column=H}with(a=this.lineNumber,H=this.column){return a===this.lineNumber&&H===this.column?this:new j(a,H)}delta(a=0,H=0){return this.with(this.lineNumber+a,this.column+H)}equals(a){return j.equals(this,a)}static equals(a,H){return!a&&!H?!0:!!a&&!!H&&a.lineNumber===H.lineNumber&&a.column===H.column}isBefore(a){return j.isBefore(this,a)}static isBefore(a,H){return a.lineNumber<H.lineNumber?!0:H.lineNumber<a.lineNumber?!1:a.column<H.column}isBeforeOrEqual(a){return j.isBeforeOrEqual(this,a)}static isBeforeOrEqual(a,H){return a.lineNumber<H.lineNumber?!0:H.lineNumber<a.lineNumber?!1:a.column<=H.column}static compare(a,H){let Ae=a.lineNumber|0,nn=H.lineNumber|0;if(Ae===nn){let In=a.column|0,Gn=H.column|0;return In-Gn}return Ae-nn}clone(){return new j(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(a){return new j(a.lineNumber,a.column)}static isIPosition(a){return a&&typeof a.lineNumber=="number"&&typeof a.column=="number"}}class De{constructor(a,H,Ae,nn){a>Ae||a===Ae&&H>nn?(this.startLineNumber=Ae,this.startColumn=nn,this.endLineNumber=a,this.endColumn=H):(this.startLineNumber=a,this.startColumn=H,this.endLineNumber=Ae,this.endColumn=nn)}isEmpty(){return De.isEmpty(this)}static isEmpty(a){return a.startLineNumber===a.endLineNumber&&a.startColumn===a.endColumn}containsPosition(a){return De.containsPosition(this,a)}static containsPosition(a,H){return H.lineNumber<a.startLineNumber||H.lineNumber>a.endLineNumber||H.lineNumber===a.startLineNumber&&H.column<a.startColumn?!1:!(H.lineNumber===a.endLineNumber&&H.column>a.endColumn)}containsRange(a){return De.containsRange(this,a)}static containsRange(a,H){return H.startLineNumber<a.startLineNumber||H.endLineNumber<a.startLineNumber||(H.startLineNumber>a.endLineNumber||H.endLineNumber>a.endLineNumber||H.startLineNumber===a.startLineNumber&&H.startColumn<a.startColumn)?!1:!(H.endLineNumber===a.endLineNumber&&H.endColumn>a.endColumn)}strictContainsRange(a){return De.strictContainsRange(this,a)}static strictContainsRange(a,H){return H.startLineNumber<a.startLineNumber||H.endLineNumber<a.startLineNumber||(H.startLineNumber>a.endLineNumber||H.endLineNumber>a.endLineNumber||H.startLineNumber===a.startLineNumber&&H.startColumn<=a.startColumn)?!1:!(H.endLineNumber===a.endLineNumber&&H.endColumn>=a.endColumn)}plusRange(a){return De.plusRange(this,a)}static plusRange(a,H){let Ae,nn,In,Gn;return H.startLineNumber<a.startLineNumber?(Ae=H.startLineNumber,nn=H.startColumn):H.startLineNumber===a.startLineNumber?(Ae=H.startLineNumber,nn=Math.min(H.startColumn,a.startColumn)):(Ae=a.startLineNumber,nn=a.startColumn),H.endLineNumber>a.endLineNumber?(In=H.endLineNumber,Gn=H.endColumn):H.endLineNumber===a.endLineNumber?(In=H.endLineNumber,Gn=Math.max(H.endColumn,a.endColumn)):(In=a.endLineNumber,Gn=a.endColumn),new De(Ae,nn,In,Gn)}intersectRanges(a){return De.intersectRanges(this,a)}static intersectRanges(a,H){let Ae=a.startLineNumber,nn=a.startColumn,In=a.endLineNumber,Gn=a.endColumn,bt=H.startLineNumber,pt=H.startColumn,It=H.endLineNumber,Pt=H.endColumn;return Ae<bt?(Ae=bt,nn=pt):Ae===bt&&(nn=Math.max(nn,pt)),In>It?(In=It,Gn=Pt):In===It&&(Gn=Math.min(Gn,Pt)),Ae>In||Ae===In&&nn>Gn?null:new De(Ae,nn,In,Gn)}equalsRange(a){return De.equalsRange(this,a)}static equalsRange(a,H){return!!a&&!!H&&a.startLineNumber===H.startLineNumber&&a.startColumn===H.startColumn&&a.endLineNumber===H.endLineNumber&&a.endColumn===H.endColumn}getEndPosition(){return De.getEndPosition(this)}static getEndPosition(a){return new j(a.endLineNumber,a.endColumn)}getStartPosition(){return De.getStartPosition(this)}static getStartPosition(a){return new j(a.startLineNumber,a.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(a,H){return new De(this.startLineNumber,this.startColumn,a,H)}setStartPosition(a,H){return new De(a,H,this.endLineNumber,this.endColumn)}collapseToStart(){return De.collapseToStart(this)}static collapseToStart(a){return new De(a.startLineNumber,a.startColumn,a.startLineNumber,a.startColumn)}static fromPositions(a,H=a){return new De(a.lineNumber,a.column,H.lineNumber,H.column)}static lift(a){return a?new De(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn):null}static isIRange(a){return a&&typeof a.startLineNumber=="number"&&typeof a.startColumn=="number"&&typeof a.endLineNumber=="number"&&typeof a.endColumn=="number"}static areIntersectingOrTouching(a,H){return a.endLineNumber<H.startLineNumber||a.endLineNumber===H.startLineNumber&&a.endColumn<H.startColumn?!1:!(H.endLineNumber<a.startLineNumber||H.endLineNumber===a.startLineNumber&&H.endColumn<a.startColumn)}static areIntersecting(a,H){return a.endLineNumber<H.startLineNumber||a.endLineNumber===H.startLineNumber&&a.endColumn<=H.startColumn?!1:!(H.endLineNumber<a.startLineNumber||H.endLineNumber===a.startLineNumber&&H.endColumn<=a.startColumn)}static compareRangesUsingStarts(a,H){if(a&&H){const In=a.startLineNumber|0,Gn=H.startLineNumber|0;if(In===Gn){const bt=a.startColumn|0,pt=H.startColumn|0;if(bt===pt){const It=a.endLineNumber|0,Pt=H.endLineNumber|0;if(It===Pt){const er=a.endColumn|0,jr=H.endColumn|0;return er-jr}return It-Pt}return bt-pt}return In-Gn}const Ae=a?1:0,nn=H?1:0;return Ae-nn}static compareRangesUsingEnds(a,H){return a.endLineNumber===H.endLineNumber?a.endColumn===H.endColumn?a.startLineNumber===H.startLineNumber?a.startColumn-H.startColumn:a.startLineNumber-H.startLineNumber:a.endColumn-H.endColumn:a.endLineNumber-H.endLineNumber}static spansMultipleLines(a){return a.endLineNumber>a.startLineNumber}}const Ve=3;function un(a,H,Ae,nn){const In=new Wt(a,H,Ae);return In.ComputeDiff(nn)}class jn{constructor(a){const H=[],Ae=[];for(let nn=0,In=a.length;nn<In;nn++)H[nn]=wa(a[nn],1),Ae[nn]=za(a[nn],1);this.lines=a,this._startColumns=H,this._endColumns=Ae}getElements(){const a=[];for(let H=0,Ae=this.lines.length;H<Ae;H++)a[H]=this.lines[H].substring(this._startColumns[H]-1,this._endColumns[H]-1);return a}getStrictElement(a){return this.lines[a]}getStartLineNumber(a){return a+1}getEndLineNumber(a){return a+1}createCharSequence(a,H,Ae){const nn=[],In=[],Gn=[];let bt=0;for(let pt=H;pt<=Ae;pt++){const It=this.lines[pt],Pt=a?this._startColumns[pt]:1,er=a?this._endColumns[pt]:It.length+1;for(let jr=Pt;jr<er;jr++)nn[bt]=It.charCodeAt(jr-1),In[bt]=pt+1,Gn[bt]=jr,bt++}return new mt(nn,In,Gn)}}class mt{constructor(a,H,Ae){this._charCodes=a,this._lineNumbers=H,this._columns=Ae}getElements(){return this._charCodes}getStartLineNumber(a){return this._lineNumbers[a]}getStartColumn(a){return this._columns[a]}getEndLineNumber(a){return this._lineNumbers[a]}getEndColumn(a){return this._columns[a]+1}}class St{constructor(a,H,Ae,nn,In,Gn,bt,pt){this.originalStartLineNumber=a,this.originalStartColumn=H,this.originalEndLineNumber=Ae,this.originalEndColumn=nn,this.modifiedStartLineNumber=In,this.modifiedStartColumn=Gn,this.modifiedEndLineNumber=bt,this.modifiedEndColumn=pt}static createFromDiffChange(a,H,Ae){let nn,In,Gn,bt,pt,It,Pt,er;return a.originalLength===0?(nn=0,In=0,Gn=0,bt=0):(nn=H.getStartLineNumber(a.originalStart),In=H.getStartColumn(a.originalStart),Gn=H.getEndLineNumber(a.originalStart+a.originalLength-1),bt=H.getEndColumn(a.originalStart+a.originalLength-1)),a.modifiedLength===0?(pt=0,It=0,Pt=0,er=0):(pt=Ae.getStartLineNumber(a.modifiedStart),It=Ae.getStartColumn(a.modifiedStart),Pt=Ae.getEndLineNumber(a.modifiedStart+a.modifiedLength-1),er=Ae.getEndColumn(a.modifiedStart+a.modifiedLength-1)),new St(nn,In,Gn,bt,pt,It,Pt,er)}}function ir(a){if(a.length<=1)return a;const H=[a[0]];let Ae=H[0];for(let nn=1,In=a.length;nn<In;nn++){const Gn=a[nn],bt=Gn.originalStart-(Ae.originalStart+Ae.originalLength),pt=Gn.modifiedStart-(Ae.modifiedStart+Ae.modifiedLength),It=Math.min(bt,pt);It<Ve?(Ae.originalLength=Gn.originalStart+Gn.originalLength-Ae.originalStart,Ae.modifiedLength=Gn.modifiedStart+Gn.modifiedLength-Ae.modifiedStart):(H.push(Gn),Ae=Gn)}return H}class _r{constructor(a,H,Ae,nn,In){this.originalStartLineNumber=a,this.originalEndLineNumber=H,this.modifiedStartLineNumber=Ae,this.modifiedEndLineNumber=nn,this.charChanges=In}static createFromDiffResult(a,H,Ae,nn,In,Gn,bt){let pt,It,Pt,er,jr;if(H.originalLength===0?(pt=Ae.getStartLineNumber(H.originalStart)-1,It=0):(pt=Ae.getStartLineNumber(H.originalStart),It=Ae.getEndLineNumber(H.originalStart+H.originalLength-1)),H.modifiedLength===0?(Pt=nn.getStartLineNumber(H.modifiedStart)-1,er=0):(Pt=nn.getStartLineNumber(H.modifiedStart),er=nn.getEndLineNumber(H.modifiedStart+H.modifiedLength-1)),Gn&&H.originalLength>0&&H.originalLength<20&&H.modifiedLength>0&&H.modifiedLength<20&&In()){const Qa=Ae.createCharSequence(a,H.originalStart,H.originalStart+H.originalLength-1),Wi=nn.createCharSequence(a,H.modifiedStart,H.modifiedStart+H.modifiedLength-1);let uo=un(Qa,Wi,In,!0).changes;bt&&(uo=ir(uo)),jr=[];for(let $o=0,hs=uo.length;$o<hs;$o++)jr.push(St.createFromDiffChange(uo[$o],Qa,Wi))}return new _r(pt,It,Pt,er,jr)}}class na{constructor(a,H,Ae){this.shouldComputeCharChanges=Ae.shouldComputeCharChanges,this.shouldPostProcessCharChanges=Ae.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=Ae.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=Ae.shouldMakePrettyDiff,this.originalLines=a,this.modifiedLines=H,this.original=new jn(a),this.modified=new jn(H),this.continueLineDiff=bi(Ae.maxComputationTime),this.continueCharDiff=bi(Ae.maxComputationTime===0?0:Math.min(Ae.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:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber: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:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const a=un(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),H=a.changes,Ae=a.quitEarly;if(this.shouldIgnoreTrimWhitespace){const bt=[];for(let pt=0,It=H.length;pt<It;pt++)bt.push(_r.createFromDiffResult(this.shouldIgnoreTrimWhitespace,H[pt],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:Ae,changes:bt}}const nn=[];let In=0,Gn=0;for(let bt=-1,pt=H.length;bt<pt;bt++){const It=bt+1<pt?H[bt+1]:null,Pt=It?It.originalStart:this.originalLines.length,er=It?It.modifiedStart:this.modifiedLines.length;for(;In<Pt&&Gn<er;){const jr=this.originalLines[In],Qa=this.modifiedLines[Gn];if(jr!==Qa){{let Wi=wa(jr,1),uo=wa(Qa,1);for(;Wi>1&&uo>1;){const $o=jr.charCodeAt(Wi-2),hs=Qa.charCodeAt(uo-2);if($o!==hs)break;Wi--,uo--}(Wi>1||uo>1)&&this._pushTrimWhitespaceCharChange(nn,In+1,1,Wi,Gn+1,1,uo)}{let Wi=za(jr,1),uo=za(Qa,1);const $o=jr.length+1,hs=Qa.length+1;for(;Wi<$o&&uo<hs;){const es=jr.charCodeAt(Wi-1),qr=jr.charCodeAt(uo-1);if(es!==qr)break;Wi++,uo++}(Wi<$o||uo<hs)&&this._pushTrimWhitespaceCharChange(nn,In+1,Wi,$o,Gn+1,uo,hs)}}In++,Gn++}It&&(nn.push(_r.createFromDiffResult(this.shouldIgnoreTrimWhitespace,It,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),In+=It.originalLength,Gn+=It.modifiedLength)}return{quitEarly:Ae,changes:nn}}_pushTrimWhitespaceCharChange(a,H,Ae,nn,In,Gn,bt){if(this._mergeTrimWhitespaceCharChange(a,H,Ae,nn,In,Gn,bt))return;let pt;this.shouldComputeCharChanges&&(pt=[new St(H,Ae,H,nn,In,Gn,In,bt)]),a.push(new _r(H,H,In,In,pt))}_mergeTrimWhitespaceCharChange(a,H,Ae,nn,In,Gn,bt){const pt=a.length;if(pt===0)return!1;const It=a[pt-1];return It.originalEndLineNumber===0||It.modifiedEndLineNumber===0?!1:It.originalEndLineNumber+1===H&&It.modifiedEndLineNumber+1===In?(It.originalEndLineNumber=H,It.modifiedEndLineNumber=In,this.shouldComputeCharChanges&&It.charChanges&&It.charChanges.push(new St(H,Ae,H,nn,In,Gn,In,bt)),!0):!1}}function wa(a,H){const Ae=Le(a);return Ae===-1?H:Ae+1}function za(a,H){const Ae=pe(a);return Ae===-1?H:Ae+2}function bi(a){if(a===0)return()=>!0;const H=Date.now();return()=>Date.now()-H<a}function Xi(a){return a<0?0:a>255?255:a|0}function co(a){return a<0?0:a>4294967295?4294967295:a|0}class Ss{constructor(a,H){this._prefixSumIndexOfResultBrand=void 0,this.index=a,this.remainder=H}}class No{constructor(a){this.values=a,this.prefixSum=new Uint32Array(a.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(a,H){a=co(a);const Ae=this.values,nn=this.prefixSum,In=H.length;return In===0?!1:(this.values=new Uint32Array(Ae.length+In),this.values.set(Ae.subarray(0,a),0),this.values.set(Ae.subarray(a),a+In),this.values.set(H,a),a-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=a-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(nn.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(a,H){return a=co(a),H=co(H),this.values[a]===H?!1:(this.values[a]=H,a-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=a-1),!0)}removeValues(a,H){a=co(a),H=co(H);const Ae=this.values,nn=this.prefixSum;if(a>=Ae.length)return!1;let In=Ae.length-a;return H>=In&&(H=In),H===0?!1:(this.values=new Uint32Array(Ae.length-H),this.values.set(Ae.subarray(0,a),0),this.values.set(Ae.subarray(a+H),a),this.prefixSum=new Uint32Array(this.values.length),a-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=a-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(nn.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(a){return a<0?0:(a=co(a),this._getPrefixSum(a))}_getPrefixSum(a){if(a<=this.prefixSumValidIndex[0])return this.prefixSum[a];let H=this.prefixSumValidIndex[0]+1;H===0&&(this.prefixSum[0]=this.values[0],H++),a>=this.values.length&&(a=this.values.length-1);for(let Ae=H;Ae<=a;Ae++)this.prefixSum[Ae]=this.prefixSum[Ae-1]+this.values[Ae];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],a),this.prefixSum[a]}getIndexOf(a){a=Math.floor(a),this.getTotalSum();let H=0,Ae=this.values.length-1,nn=0,In=0,Gn=0;for(;H<=Ae;)if(nn=H+(Ae-H)/2|0,In=this.prefixSum[nn],Gn=In-this.values[nn],a<Gn)Ae=nn-1;else if(a>=In)H=nn+1;else break;return new Ss(nn,a-Gn)}}class Ks{constructor(a,H,Ae,nn){this._uri=a,this._lines=H,this._eol=Ae,this._versionId=nn,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(a){a.eol&&a.eol!==this._eol&&(this._eol=a.eol,this._lineStarts=null);const H=a.changes;for(const Ae of H)this._acceptDeleteRange(Ae.range),this._acceptInsertText(new j(Ae.range.startLineNumber,Ae.range.startColumn),Ae.text);this._versionId=a.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const a=this._eol.length,H=this._lines.length,Ae=new Uint32Array(H);for(let nn=0;nn<H;nn++)Ae[nn]=this._lines[nn].length+a;this._lineStarts=new No(Ae)}}_setLineText(a,H){this._lines[a]=H,this._lineStarts&&this._lineStarts.changeValue(a,this._lines[a].length+this._eol.length)}_acceptDeleteRange(a){if(a.startLineNumber===a.endLineNumber){if(a.startColumn===a.endColumn)return;this._setLineText(a.startLineNumber-1,this._lines[a.startLineNumber-1].substring(0,a.startColumn-1)+this._lines[a.startLineNumber-1].substring(a.endColumn-1));return}this._setLineText(a.startLineNumber-1,this._lines[a.startLineNumber-1].substring(0,a.startColumn-1)+this._lines[a.endLineNumber-1].substring(a.endColumn-1)),this._lines.splice(a.startLineNumber,a.endLineNumber-a.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(a.startLineNumber,a.endLineNumber-a.startLineNumber)}_acceptInsertText(a,H){if(H.length===0)return;let Ae=ce(H);if(Ae.length===1){this._setLineText(a.lineNumber-1,this._lines[a.lineNumber-1].substring(0,a.column-1)+Ae[0]+this._lines[a.lineNumber-1].substring(a.column-1));return}Ae[Ae.length-1]+=this._lines[a.lineNumber-1].substring(a.column-1),this._setLineText(a.lineNumber-1,this._lines[a.lineNumber-1].substring(0,a.column-1)+Ae[0]);let nn=new Uint32Array(Ae.length-1);for(let In=1;In<Ae.length;In++)this._lines.splice(a.lineNumber+In-1,0,Ae[In]),nn[In-1]=Ae[In].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(a.lineNumber,nn)}}const Js="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function gl(a=""){let H="(-?\\d*\\.\\d\\w*)|([^";for(const Ae of Js){if(a.indexOf(Ae)>=0)continue;H+="\\"+Ae}return H+="\\s]+)",new RegExp(H,"g")}const yl=gl();function Ol(a){let H=yl;if(a&&a instanceof RegExp)if(a.global)H=a;else{let Ae="g";a.ignoreCase&&(Ae+="i"),a.multiline&&(Ae+="m"),a.unicode&&(Ae+="u"),H=new RegExp(a.source,Ae)}return H.lastIndex=0,H}const ac={maxLen:1e3,windowSize:15,timeBudget:150};function vs(a,H,Ae,nn,In=ac){if(Ae.length>In.maxLen){let Pt=a-In.maxLen/2;return Pt<0?Pt=0:nn+=Pt,Ae=Ae.substring(Pt,a+In.maxLen/2),vs(a,H,Ae,nn,In)}const Gn=Date.now(),bt=a-1-nn;let pt=-1,It=null;for(let Pt=1;!(Date.now()-Gn>=In.timeBudget);Pt++){const er=bt-In.windowSize*Pt;H.lastIndex=Math.max(0,er);const jr=ic(H,Ae,bt,pt);if(!jr&&It)break;if(It=jr,er<=0)break;pt=er}if(It){let Pt={word:It[0],startColumn:nn+1+It.index,endColumn:nn+1+It.index+It[0].length};return H.lastIndex=0,Pt}return null}function ic(a,H,Ae,nn){let In;for(;In=a.exec(H);){const Gn=In.index||0;if(Gn<=Ae&&a.lastIndex>=Ae)return In;if(nn>0&&Gn>nn)return null}return null}class Pl{constructor(a){let H=Xi(a);this._defaultValue=H,this._asciiMap=Pl._createAsciiMap(H),this._map=new Map}static _createAsciiMap(a){let H=new Uint8Array(256);for(let Ae=0;Ae<256;Ae++)H[Ae]=a;return H}set(a,H){let Ae=Xi(H);a>=0&&a<256?this._asciiMap[a]=Ae:this._map.set(a,Ae)}get(a){return a>=0&&a<256?this._asciiMap[a]:this._map.get(a)||this._defaultValue}}class cl{constructor(){this._actual=new Pl(0)}add(a){this._actual.set(a,1)}has(a){return this._actual.get(a)===1}}class nl{constructor(a,H,Ae){const nn=new Uint8Array(a*H);for(let In=0,Gn=a*H;In<Gn;In++)nn[In]=Ae;this._data=nn,this.rows=a,this.cols=H}get(a,H){return this._data[a*this.cols+H]}set(a,H,Ae){this._data[a*this.cols+H]=Ae}}class he{constructor(a){let H=0,Ae=0;for(let In=0,Gn=a.length;In<Gn;In++){let[bt,pt,It]=a[In];pt>H&&(H=pt),bt>Ae&&(Ae=bt),It>Ae&&(Ae=It)}H++,Ae++;let nn=new nl(Ae,H,0);for(let In=0,Gn=a.length;In<Gn;In++){let[bt,pt,It]=a[In];nn.set(bt,pt,It)}this._states=nn,this._maxCharCode=H}nextState(a,H){return H<0||H>=this._maxCharCode?0:this._states.get(a,H)}}let Jn=null;function Ee(){return Jn===null&&(Jn=new he([[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]])),Jn}let Mn=null;function dr(){if(Mn===null){Mn=new Pl(0);const a=` <>'"\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 Ae=0;Ae<a.length;Ae++)Mn.set(a.charCodeAt(Ae),1);const H=".,;";for(let Ae=0;Ae<H.length;Ae++)Mn.set(H.charCodeAt(Ae),2)}return Mn}class Yr{static _createLink(a,H,Ae,nn,In){let Gn=In-1;do{const bt=H.charCodeAt(Gn),pt=a.get(bt);if(pt!==2)break;Gn--}while(Gn>nn);if(nn>0){const bt=H.charCodeAt(nn-1),pt=H.charCodeAt(Gn);(bt===40&&pt===41||bt===91&&pt===93||bt===123&&pt===125)&&Gn--}return{range:{startLineNumber:Ae,startColumn:nn+1,endLineNumber:Ae,endColumn:Gn+2},url:H.substring(nn,Gn+1)}}static computeLinks(a,H=Ee()){const Ae=dr();let nn=[];for(let In=1,Gn=a.getLineCount();In<=Gn;In++){const bt=a.getLineContent(In),pt=bt.length;let It=0,Pt=0,er=0,jr=1,Qa=!1,Wi=!1,uo=!1,$o=!1;for(;It<pt;){let hs=!1;const es=bt.charCodeAt(It);if(jr===13){let qr;switch(es){case 40:Qa=!0,qr=0;break;case 41:qr=Qa?0:1;break;case 91:uo=!0,Wi=!0,qr=0;break;case 93:uo=!1,qr=Wi?0:1;break;case 123:$o=!0,qr=0;break;case 125:qr=$o?0:1;break;case 39:qr=er===34||er===96?0:1;break;case 34:qr=er===39||er===96?0:1;break;case 96:qr=er===39||er===34?0:1;break;case 42:qr=er===42?1:0;break;case 124:qr=er===124?1:0;break;case 32:qr=uo?0:1;break;default:qr=Ae.get(es)}qr===1&&(nn.push(Yr._createLink(Ae,bt,In,Pt,It)),hs=!0)}else if(jr===12){let qr;es===91?(Wi=!0,qr=0):qr=Ae.get(es),qr===1?hs=!0:jr=13}else jr=H.nextState(jr,es),jr===0&&(hs=!0);hs&&(jr=1,Qa=!1,Wi=!1,$o=!1,Pt=It+1,er=es),It++}jr===13&&nn.push(Yr._createLink(Ae,bt,In,Pt,pt))}return nn}}function da(a){return!a||typeof a.getLineCount!="function"||typeof a.getLineContent!="function"?[]:Yr.computeLinks(a)}class ya{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(a,H,Ae,nn,In){if(a&&H){let Gn=this.doNavigateValueSet(H,In);if(Gn)return{range:a,value:Gn}}if(Ae&&nn){let Gn=this.doNavigateValueSet(nn,In);if(Gn)return{range:Ae,value:Gn}}return null}doNavigateValueSet(a,H){let Ae=this.numberReplace(a,H);return Ae!==null?Ae:this.textReplace(a,H)}numberReplace(a,H){let Ae=Math.pow(10,a.length-(a.lastIndexOf(".")+1)),nn=Number(a),In=parseFloat(a);return!isNaN(nn)&&!isNaN(In)&&nn===In?nn===0&&!H?null:(nn=Math.floor(nn*Ae),nn+=H?Ae:-Ae,String(nn/Ae)):null}textReplace(a,H){return this.valueSetsReplace(this._defaultValueSet,a,H)}valueSetsReplace(a,H,Ae){let nn=null;for(let In=0,Gn=a.length;nn===null&&In<Gn;In++)nn=this.valueSetReplace(a[In],H,Ae);return nn}valueSetReplace(a,H,Ae){let nn=a.indexOf(H);return nn>=0?(nn+=Ae?1:-1,nn<0?nn=a.length-1:nn%=a.length,a[nn]):null}}ya.INSTANCE=new ya;const bo=Object.freeze(function(a,H){const Ae=setTimeout(a.bind(H),0);return{dispose(){clearTimeout(Ae)}}});var On;(function(a){function H(Ae){return Ae===a.None||Ae===a.Cancelled||Ae instanceof Bo?!0:!Ae||typeof Ae!="object"?!1:typeof Ae.isCancellationRequested=="boolean"&&typeof Ae.onCancellationRequested=="function"}a.isCancellationToken=H,a.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Z.None}),a.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:bo})})(On||(On={}));class Bo{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?bo:(this._emitter||(this._emitter=new $),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class ps{constructor(a){this._token=void 0,this._parentListener=void 0,this._parentListener=a&&a.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Bo),this._token}cancel(){this._token?this._token instanceof Bo&&this._token.cancel():this._token=On.Cancelled}dispose(a=!1){a&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Bo&&this._token.dispose():this._token=On.None}}class ms{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(a,H){this._keyCodeToStr[a]=H,this._strToKeyCode[H.toLowerCase()]=a}keyCodeToStr(a){return this._keyCodeToStr[a]}strToKeyCode(a){return this._strToKeyCode[a.toLowerCase()]||0}}const _l=new ms,Gi=new ms,qs=new ms,pl=new Array(230),Ec={},lc=[],Pc=Object.create(null),oc=Object.create(null),au=[],cc=[];for(let a=0;a<=193;a++)au[a]=-1;for(let a=0;a<=126;a++)cc[a]=-1;(function(){const a="",H=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",a,a],[0,1,1,"Hyper",0,a,0,a,a,a],[0,1,2,"Super",0,a,0,a,a,a],[0,1,3,"Fn",0,a,0,a,a,a],[0,1,4,"FnLock",0,a,0,a,a,a],[0,1,5,"Suspend",0,a,0,a,a,a],[0,1,6,"Resume",0,a,0,a,a,a],[0,1,7,"Turbo",0,a,0,a,a,a],[0,1,8,"Sleep",0,a,0,"VK_SLEEP",a,a],[0,1,9,"WakeUp",0,a,0,a,a,a],[31,0,10,"KeyA",31,"A",65,"VK_A",a,a],[32,0,11,"KeyB",32,"B",66,"VK_B",a,a],[33,0,12,"KeyC",33,"C",67,"VK_C",a,a],[34,0,13,"KeyD",34,"D",68,"VK_D",a,a],[35,0,14,"KeyE",35,"E",69,"VK_E",a,a],[36,0,15,"KeyF",36,"F",70,"VK_F",a,a],[37,0,16,"KeyG",37,"G",71,"VK_G",a,a],[38,0,17,"KeyH",38,"H",72,"VK_H",a,a],[39,0,18,"KeyI",39,"I",73,"VK_I",a,a],[40,0,19,"KeyJ",40,"J",74,"VK_J",a,a],[41,0,20,"KeyK",41,"K",75,"VK_K",a,a],[42,0,21,"KeyL",42,"L",76,"VK_L",a,a],[43,0,22,"KeyM",43,"M",77,"VK_M",a,a],[44,0,23,"KeyN",44,"N",78,"VK_N",a,a],[45,0,24,"KeyO",45,"O",79,"VK_O",a,a],[46,0,25,"KeyP",46,"P",80,"VK_P",a,a],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",a,a],[48,0,27,"KeyR",48,"R",82,"VK_R",a,a],[49,0,28,"KeyS",49,"S",83,"VK_S",a,a],[50,0,29,"KeyT",50,"T",84,"VK_T",a,a],[51,0,30,"KeyU",51,"U",85,"VK_U",a,a],[52,0,31,"KeyV",52,"V",86,"VK_V",a,a],[53,0,32,"KeyW",53,"W",87,"VK_W",a,a],[54,0,33,"KeyX",54,"X",88,"VK_X",a,a],[55,0,34,"KeyY",55,"Y",89,"VK_Y",a,a],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",a,a],[22,0,36,"Digit1",22,"1",49,"VK_1",a,a],[23,0,37,"Digit2",23,"2",50,"VK_2",a,a],[24,0,38,"Digit3",24,"3",51,"VK_3",a,a],[25,0,39,"Digit4",25,"4",52,"VK_4",a,a],[26,0,40,"Digit5",26,"5",53,"VK_5",a,a],[27,0,41,"Digit6",27,"6",54,"VK_6",a,a],[28,0,42,"Digit7",28,"7",55,"VK_7",a,a],[29,0,43,"Digit8",29,"8",56,"VK_8",a,a],[30,0,44,"Digit9",30,"9",57,"VK_9",a,a],[21,0,45,"Digit0",21,"0",48,"VK_0",a,a],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",a,a],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",a,a],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",a,a],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",a,a],[10,1,50,"Space",10,"Space",32,"VK_SPACE",a,a],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,a,0,a,a,a],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",a,a],[59,1,64,"F1",59,"F1",112,"VK_F1",a,a],[60,1,65,"F2",60,"F2",113,"VK_F2",a,a],[61,1,66,"F3",61,"F3",114,"VK_F3",a,a],[62,1,67,"F4",62,"F4",115,"VK_F4",a,a],[63,1,68,"F5",63,"F5",116,"VK_F5",a,a],[64,1,69,"F6",64,"F6",117,"VK_F6",a,a],[65,1,70,"F7",65,"F7",118,"VK_F7",a,a],[66,1,71,"F8",66,"F8",119,"VK_F8",a,a],[67,1,72,"F9",67,"F9",120,"VK_F9",a,a],[68,1,73,"F10",68,"F10",121,"VK_F10",a,a],[69,1,74,"F11",69,"F11",122,"VK_F11",a,a],[70,1,75,"F12",70,"F12",123,"VK_F12",a,a],[0,1,76,"PrintScreen",0,a,0,a,a,a],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",a,a],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",a,a],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",a,a],[14,1,80,"Home",14,"Home",36,"VK_HOME",a,a],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",a,a],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",a,a],[13,1,83,"End",13,"End",35,"VK_END",a,a],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",a,a],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",a],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",a],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",a],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",a],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",a,a],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",a,a],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",a,a],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",a,a],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",a,a],[3,1,94,"NumpadEnter",3,a,0,a,a,a],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",a,a],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",a,a],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",a,a],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",a,a],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",a,a],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",a,a],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",a,a],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",a,a],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",a,a],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",a,a],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",a,a],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",a,a],[58,1,107,"ContextMenu",58,"ContextMenu",93,a,a,a],[0,1,108,"Power",0,a,0,a,a,a],[0,1,109,"NumpadEqual",0,a,0,a,a,a],[71,1,110,"F13",71,"F13",124,"VK_F13",a,a],[72,1,111,"F14",72,"F14",125,"VK_F14",a,a],[73,1,112,"F15",73,"F15",126,"VK_F15",a,a],[74,1,113,"F16",74,"F16",127,"VK_F16",a,a],[75,1,114,"F17",75,"F17",128,"VK_F17",a,a],[76,1,115,"F18",76,"F18",129,"VK_F18",a,a],[77,1,116,"F19",77,"F19",130,"VK_F19",a,a],[0,1,117,"F20",0,a,0,"VK_F20",a,a],[0,1,118,"F21",0,a,0,"VK_F21",a,a],[0,1,119,"F22",0,a,0,"VK_F22",a,a],[0,1,120,"F23",0,a,0,"VK_F23",a,a],[0,1,121,"F24",0,a,0,"VK_F24",a,a],[0,1,122,"Open",0,a,0,a,a,a],[0,1,123,"Help",0,a,0,a,a,a],[0,1,124,"Select",0,a,0,a,a,a],[0,1,125,"Again",0,a,0,a,a,a],[0,1,126,"Undo",0,a,0,a,a,a],[0,1,127,"Cut",0,a,0,a,a,a],[0,1,128,"Copy",0,a,0,a,a,a],[0,1,129,"Paste",0,a,0,a,a,a],[0,1,130,"Find",0,a,0,a,a,a],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",a,a],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",a,a],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",a,a],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",a,a],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",a,a],[0,1,136,"KanaMode",0,a,0,a,a,a],[0,0,137,"IntlYen",0,a,0,a,a,a],[0,1,138,"Convert",0,a,0,a,a,a],[0,1,139,"NonConvert",0,a,0,a,a,a],[0,1,140,"Lang1",0,a,0,a,a,a],[0,1,141,"Lang2",0,a,0,a,a,a],[0,1,142,"Lang3",0,a,0,a,a,a],[0,1,143,"Lang4",0,a,0,a,a,a],[0,1,144,"Lang5",0,a,0,a,a,a],[0,1,145,"Abort",0,a,0,a,a,a],[0,1,146,"Props",0,a,0,a,a,a],[0,1,147,"NumpadParenLeft",0,a,0,a,a,a],[0,1,148,"NumpadParenRight",0,a,0,a,a,a],[0,1,149,"NumpadBackspace",0,a,0,a,a,a],[0,1,150,"NumpadMemoryStore",0,a,0,a,a,a],[0,1,151,"NumpadMemoryRecall",0,a,0,a,a,a],[0,1,152,"NumpadMemoryClear",0,a,0,a,a,a],[0,1,153,"NumpadMemoryAdd",0,a,0,a,a,a],[0,1,154,"NumpadMemorySubtract",0,a,0,a,a,a],[0,1,155,"NumpadClear",0,a,0,a,a,a],[0,1,156,"NumpadClearEntry",0,a,0,a,a,a],[5,1,0,a,5,"Ctrl",17,"VK_CONTROL",a,a],[4,1,0,a,4,"Shift",16,"VK_SHIFT",a,a],[6,1,0,a,6,"Alt",18,"VK_MENU",a,a],[57,1,0,a,57,"Meta",0,"VK_COMMAND",a,a],[5,1,157,"ControlLeft",5,a,0,"VK_LCONTROL",a,a],[4,1,158,"ShiftLeft",4,a,0,"VK_LSHIFT",a,a],[6,1,159,"AltLeft",6,a,0,"VK_LMENU",a,a],[57,1,160,"MetaLeft",57,a,0,"VK_LWIN",a,a],[5,1,161,"ControlRight",5,a,0,"VK_RCONTROL",a,a],[4,1,162,"ShiftRight",4,a,0,"VK_RSHIFT",a,a],[6,1,163,"AltRight",6,a,0,"VK_RMENU",a,a],[57,1,164,"MetaRight",57,a,0,"VK_RWIN",a,a],[0,1,165,"BrightnessUp",0,a,0,a,a,a],[0,1,166,"BrightnessDown",0,a,0,a,a,a],[0,1,167,"MediaPlay",0,a,0,a,a,a],[0,1,168,"MediaRecord",0,a,0,a,a,a],[0,1,169,"MediaFastForward",0,a,0,a,a,a],[0,1,170,"MediaRewind",0,a,0,a,a,a],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",a,a],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",a,a],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",a,a],[0,1,174,"Eject",0,a,0,a,a,a],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",a,a],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",a,a],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",a,a],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",a,a],[0,1,179,"LaunchApp1",0,a,0,"VK_MEDIA_LAUNCH_APP1",a,a],[0,1,180,"SelectTask",0,a,0,a,a,a],[0,1,181,"LaunchScreenSaver",0,a,0,a,a,a],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",a,a],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",a,a],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",a,a],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",a,a],[0,1,186,"BrowserStop",0,a,0,"VK_BROWSER_STOP",a,a],[0,1,187,"BrowserRefresh",0,a,0,"VK_BROWSER_REFRESH",a,a],[0,1,188,"BrowserFavorites",0,a,0,"VK_BROWSER_FAVORITES",a,a],[0,1,189,"ZoomToggle",0,a,0,a,a,a],[0,1,190,"MailReply",0,a,0,a,a,a],[0,1,191,"MailForward",0,a,0,a,a,a],[0,1,192,"MailSend",0,a,0,a,a,a],[109,1,0,a,109,"KeyInComposition",229,a,a,a],[111,1,0,a,111,"ABNT_C2",194,"VK_ABNT_C2",a,a],[91,1,0,a,91,"OEM_8",223,"VK_OEM_8",a,a],[0,1,0,a,0,a,0,"VK_CLEAR",a,a],[0,1,0,a,0,a,0,"VK_KANA",a,a],[0,1,0,a,0,a,0,"VK_HANGUL",a,a],[0,1,0,a,0,a,0,"VK_JUNJA",a,a],[0,1,0,a,0,a,0,"VK_FINAL",a,a],[0,1,0,a,0,a,0,"VK_HANJA",a,a],[0,1,0,a,0,a,0,"VK_KANJI",a,a],[0,1,0,a,0,a,0,"VK_CONVERT",a,a],[0,1,0,a,0,a,0,"VK_NONCONVERT",a,a],[0,1,0,a,0,a,0,"VK_ACCEPT",a,a],[0,1,0,a,0,a,0,"VK_MODECHANGE",a,a],[0,1,0,a,0,a,0,"VK_SELECT",a,a],[0,1,0,a,0,a,0,"VK_PRINT",a,a],[0,1,0,a,0,a,0,"VK_EXECUTE",a,a],[0,1,0,a,0,a,0,"VK_SNAPSHOT",a,a],[0,1,0,a,0,a,0,"VK_HELP",a,a],[0,1,0,a,0,a,0,"VK_APPS",a,a],[0,1,0,a,0,a,0,"VK_PROCESSKEY",a,a],[0,1,0,a,0,a,0,"VK_PACKET",a,a],[0,1,0,a,0,a,0,"VK_DBE_SBCSCHAR",a,a],[0,1,0,a,0,a,0,"VK_DBE_DBCSCHAR",a,a],[0,1,0,a,0,a,0,"VK_ATTN",a,a],[0,1,0,a,0,a,0,"VK_CRSEL",a,a],[0,1,0,a,0,a,0,"VK_EXSEL",a,a],[0,1,0,a,0,a,0,"VK_EREOF",a,a],[0,1,0,a,0,a,0,"VK_PLAY",a,a],[0,1,0,a,0,a,0,"VK_ZOOM",a,a],[0,1,0,a,0,a,0,"VK_NONAME",a,a],[0,1,0,a,0,a,0,"VK_PA1",a,a],[0,1,0,a,0,a,0,"VK_OEM_CLEAR",a,a]];let Ae=[],nn=[];for(const In of H){const[Gn,bt,pt,It,Pt,er,jr,Qa,Wi,uo]=In;if(nn[pt]||(nn[pt]=!0,lc[pt]=It,Pc[It]=pt,oc[It.toLowerCase()]=pt,bt&&(au[pt]=Pt,Pt!==0&&Pt!==3&&Pt!==5&&Pt!==4&&Pt!==6&&Pt!==57&&(cc[Pt]=pt))),!Ae[Pt]){if(Ae[Pt]=!0,!er)throw new Error(`String representation missing for key code ${Pt} around scan code ${It}`);_l.define(Pt,er),Gi.define(Pt,Wi||er),qs.define(Pt,uo||Wi||er)}jr&&(pl[jr]=Pt),Qa&&(Ec[Qa]=Pt)}cc[3]=46})();var Zl;(function(a){function H(pt){return _l.keyCodeToStr(pt)}a.toString=H;function Ae(pt){return _l.strToKeyCode(pt)}a.fromString=Ae;function nn(pt){return Gi.keyCodeToStr(pt)}a.toUserSettingsUS=nn;function In(pt){return qs.keyCodeToStr(pt)}a.toUserSettingsGeneral=In;function Gn(pt){return Gi.strToKeyCode(pt)||qs.strToKeyCode(pt)}a.fromUserSettings=Gn;function bt(pt){if(pt>=93&&pt<=108)return null;switch(pt){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return _l.keyCodeToStr(pt)}a.toElectronAccelerator=bt})(Zl||(Zl={}));function kn(a,H){const Ae=(H&65535)<<16>>>0;return(a|Ae)>>>0}class ot extends De{constructor(a,H,Ae,nn){super(a,H,Ae,nn);this.selectionStartLineNumber=a,this.selectionStartColumn=H,this.positionLineNumber=Ae,this.positionColumn=nn}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(a){return ot.selectionsEqual(this,a)}static selectionsEqual(a,H){return a.selectionStartLineNumber===H.selectionStartLineNumber&&a.selectionStartColumn===H.selectionStartColumn&&a.positionLineNumber===H.positionLineNumber&&a.positionColumn===H.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(a,H){return this.getDirection()===0?new ot(this.startLineNumber,this.startColumn,a,H):new ot(a,H,this.startLineNumber,this.startColumn)}getPosition(){return new j(this.positionLineNumber,this.positionColumn)}setStartPosition(a,H){return this.getDirection()===0?new ot(a,H,this.endLineNumber,this.endColumn):new ot(this.endLineNumber,this.endColumn,a,H)}static fromPositions(a,H=a){return new ot(a.lineNumber,a.column,H.lineNumber,H.column)}static liftSelection(a){return new ot(a.selectionStartLineNumber,a.selectionStartColumn,a.positionLineNumber,a.positionColumn)}static selectionsArrEqual(a,H){if(a&&!H||!a&&H)return!1;if(!a&&!H)return!0;if(a.length!==H.length)return!1;for(let Ae=0,nn=a.length;Ae<nn;Ae++)if(!this.selectionsEqual(a[Ae],H[Ae]))return!1;return!0}static isISelection(a){return a&&typeof a.selectionStartLineNumber=="number"&&typeof a.selectionStartColumn=="number"&&typeof a.positionLineNumber=="number"&&typeof a.positionColumn=="number"}static createWithDirection(a,H,Ae,nn,In){return In===0?new ot(a,H,Ae,nn):new ot(Ae,nn,a,H)}}class Nt{constructor(a,H,Ae){this._tokenBrand=void 0,this.offset=a|0,this.type=H,this.language=Ae}toString(){return"("+this.offset+", "+this.type+")"}}class or{constructor(a,H){this._tokenizationResultBrand=void 0,this.tokens=a,this.endState=H}}class Sr{constructor(a,H){this._tokenizationResult2Brand=void 0,this.tokens=a,this.endState=H}}var Er;(function(a){a[a.Unknown=0]="Unknown",a[a.Disabled=1]="Disabled",a[a.Enabled=2]="Enabled"})(Er||(Er={}));var Gr;(function(a){a[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet"})(Gr||(Gr={}));var $r;(function(a){a[a.Method=0]="Method",a[a.Function=1]="Function",a[a.Constructor=2]="Constructor",a[a.Field=3]="Field",a[a.Variable=4]="Variable",a[a.Class=5]="Class",a[a.Struct=6]="Struct",a[a.Interface=7]="Interface",a[a.Module=8]="Module",a[a.Property=9]="Property",a[a.Event=10]="Event",a[a.Operator=11]="Operator",a[a.Unit=12]="Unit",a[a.Value=13]="Value",a[a.Constant=14]="Constant",a[a.Enum=15]="Enum",a[a.EnumMember=16]="EnumMember",a[a.Keyword=17]="Keyword",a[a.Text=18]="Text",a[a.Color=19]="Color",a[a.File=20]="File",a[a.Reference=21]="Reference",a[a.Customcolor=22]="Customcolor",a[a.Folder=23]="Folder",a[a.TypeParameter=24]="TypeParameter",a[a.User=25]="User",a[a.Issue=26]="Issue",a[a.Snippet=27]="Snippet"})($r||($r={}));var zr;(function(a){a[a.Deprecated=1]="Deprecated"})(zr||(zr={}));var wi;(function(a){a[a.Invoke=0]="Invoke",a[a.TriggerCharacter=1]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(wi||(wi={}));var Ta;(function(a){a[a.EXACT=0]="EXACT",a[a.ABOVE=1]="ABOVE",a[a.BELOW=2]="BELOW"})(Ta||(Ta={}));var Oa;(function(a){a[a.NotSet=0]="NotSet",a[a.ContentFlush=1]="ContentFlush",a[a.RecoverFromMarkers=2]="RecoverFromMarkers",a[a.Explicit=3]="Explicit",a[a.Paste=4]="Paste",a[a.Undo=5]="Undo",a[a.Redo=6]="Redo"})(Oa||(Oa={}));var ji;(function(a){a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(ji||(ji={}));var Ri;(function(a){a[a.Text=0]="Text",a[a.Read=1]="Read",a[a.Write=2]="Write"})(Ri||(Ri={}));var ye;(function(a){a[a.None=0]="None",a[a.Keep=1]="Keep",a[a.Brackets=2]="Brackets",a[a.Advanced=3]="Advanced",a[a.Full=4]="Full"})(ye||(ye={}));var cn;(function(a){a[a.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",a[a.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",a[a.accessibilitySupport=2]="accessibilitySupport",a[a.accessibilityPageSize=3]="accessibilityPageSize",a[a.ariaLabel=4]="ariaLabel",a[a.autoClosingBrackets=5]="autoClosingBrackets",a[a.autoClosingDelete=6]="autoClosingDelete",a[a.autoClosingOvertype=7]="autoClosingOvertype",a[a.autoClosingQuotes=8]="autoClosingQuotes",a[a.autoIndent=9]="autoIndent",a[a.automaticLayout=10]="automaticLayout",a[a.autoSurround=11]="autoSurround",a[a.bracketPairColorization=12]="bracketPairColorization",a[a.guides=13]="guides",a[a.codeLens=14]="codeLens",a[a.codeLensFontFamily=15]="codeLensFontFamily",a[a.codeLensFontSize=16]="codeLensFontSize",a[a.colorDecorators=17]="colorDecorators",a[a.columnSelection=18]="columnSelection",a[a.comments=19]="comments",a[a.contextmenu=20]="contextmenu",a[a.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",a[a.cursorBlinking=22]="cursorBlinking",a[a.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",a[a.cursorStyle=24]="cursorStyle",a[a.cursorSurroundingLines=25]="cursorSurroundingLines",a[a.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",a[a.cursorWidth=27]="cursorWidth",a[a.disableLayerHinting=28]="disableLayerHinting",a[a.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",a[a.domReadOnly=30]="domReadOnly",a[a.dragAndDrop=31]="dragAndDrop",a[a.emptySelectionClipboard=32]="emptySelectionClipboard",a[a.extraEditorClassName=33]="extraEditorClassName",a[a.fastScrollSensitivity=34]="fastScrollSensitivity",a[a.find=35]="find",a[a.fixedOverflowWidgets=36]="fixedOverflowWidgets",a[a.folding=37]="folding",a[a.foldingStrategy=38]="foldingStrategy",a[a.foldingHighlight=39]="foldingHighlight",a[a.foldingImportsByDefault=40]="foldingImportsByDefault",a[a.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",a[a.fontFamily=42]="fontFamily",a[a.fontInfo=43]="fontInfo",a[a.fontLigatures=44]="fontLigatures",a[a.fontSize=45]="fontSize",a[a.fontWeight=46]="fontWeight",a[a.formatOnPaste=47]="formatOnPaste",a[a.formatOnType=48]="formatOnType",a[a.glyphMargin=49]="glyphMargin",a[a.gotoLocation=50]="gotoLocation",a[a.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",a[a.hover=52]="hover",a[a.inDiffEditor=53]="inDiffEditor",a[a.inlineSuggest=54]="inlineSuggest",a[a.letterSpacing=55]="letterSpacing",a[a.lightbulb=56]="lightbulb",a[a.lineDecorationsWidth=57]="lineDecorationsWidth",a[a.lineHeight=58]="lineHeight",a[a.lineNumbers=59]="lineNumbers",a[a.lineNumbersMinChars=60]="lineNumbersMinChars",a[a.linkedEditing=61]="linkedEditing",a[a.links=62]="links",a[a.matchBrackets=63]="matchBrackets",a[a.minimap=64]="minimap",a[a.mouseStyle=65]="mouseStyle",a[a.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",a[a.mouseWheelZoom=67]="mouseWheelZoom",a[a.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",a[a.multiCursorModifier=69]="multiCursorModifier",a[a.multiCursorPaste=70]="multiCursorPaste",a[a.occurrencesHighlight=71]="occurrencesHighlight",a[a.overviewRulerBorder=72]="overviewRulerBorder",a[a.overviewRulerLanes=73]="overviewRulerLanes",a[a.padding=74]="padding",a[a.parameterHints=75]="parameterHints",a[a.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",a[a.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",a[a.quickSuggestions=78]="quickSuggestions",a[a.quickSuggestionsDelay=79]="quickSuggestionsDelay",a[a.readOnly=80]="readOnly",a[a.renameOnType=81]="renameOnType",a[a.renderControlCharacters=82]="renderControlCharacters",a[a.renderFinalNewline=83]="renderFinalNewline",a[a.renderLineHighlight=84]="renderLineHighlight",a[a.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",a[a.renderValidationDecorations=86]="renderValidationDecorations",a[a.renderWhitespace=87]="renderWhitespace",a[a.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",a[a.roundedSelection=89]="roundedSelection",a[a.rulers=90]="rulers",a[a.scrollbar=91]="scrollbar",a[a.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",a[a.scrollBeyondLastLine=93]="scrollBeyondLastLine",a[a.scrollPredominantAxis=94]="scrollPredominantAxis",a[a.selectionClipboard=95]="selectionClipboard",a[a.selectionHighlight=96]="selectionHighlight",a[a.selectOnLineNumbers=97]="selectOnLineNumbers",a[a.showFoldingControls=98]="showFoldingControls",a[a.showUnused=99]="showUnused",a[a.snippetSuggestions=100]="snippetSuggestions",a[a.smartSelect=101]="smartSelect",a[a.smoothScrolling=102]="smoothScrolling",a[a.stickyTabStops=103]="stickyTabStops",a[a.stopRenderingLineAfter=104]="stopRenderingLineAfter",a[a.suggest=105]="suggest",a[a.suggestFontSize=106]="suggestFontSize",a[a.suggestLineHeight=107]="suggestLineHeight",a[a.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",a[a.suggestSelection=109]="suggestSelection",a[a.tabCompletion=110]="tabCompletion",a[a.tabIndex=111]="tabIndex",a[a.unusualLineTerminators=112]="unusualLineTerminators",a[a.useShadowDOM=113]="useShadowDOM",a[a.useTabStops=114]="useTabStops",a[a.wordSeparators=115]="wordSeparators",a[a.wordWrap=116]="wordWrap",a[a.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",a[a.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",a[a.wordWrapColumn=119]="wordWrapColumn",a[a.wordWrapOverride1=120]="wordWrapOverride1",a[a.wordWrapOverride2=121]="wordWrapOverride2",a[a.wrappingIndent=122]="wrappingIndent",a[a.wrappingStrategy=123]="wrappingStrategy",a[a.showDeprecated=124]="showDeprecated",a[a.inlayHints=125]="inlayHints",a[a.editorClassName=126]="editorClassName",a[a.pixelRatio=127]="pixelRatio",a[a.tabFocusMode=128]="tabFocusMode",a[a.layoutInfo=129]="layoutInfo",a[a.wrappingInfo=130]="wrappingInfo"})(cn||(cn={}));var Sn;(function(a){a[a.TextDefined=0]="TextDefined",a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(Sn||(Sn={}));var Tt;(function(a){a[a.LF=0]="LF",a[a.CRLF=1]="CRLF"})(Tt||(Tt={}));var Vt;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(Vt||(Vt={}));var Zr;(function(a){a[a.Other=0]="Other",a[a.Type=1]="Type",a[a.Parameter=2]="Parameter"})(Zr||(Zr={}));var Da;(function(a){a[a.Automatic=0]="Automatic",a[a.Explicit=1]="Explicit"})(Da||(Da={}));var gi;(function(a){a[a.DependsOnKbLayout=-1]="DependsOnKbLayout",a[a.Unknown=0]="Unknown",a[a.Backspace=1]="Backspace",a[a.Tab=2]="Tab",a[a.Enter=3]="Enter",a[a.Shift=4]="Shift",a[a.Ctrl=5]="Ctrl",a[a.Alt=6]="Alt",a[a.PauseBreak=7]="PauseBreak",a[a.CapsLock=8]="CapsLock",a[a.Escape=9]="Escape",a[a.Space=10]="Space",a[a.PageUp=11]="PageUp",a[a.PageDown=12]="PageDown",a[a.End=13]="End",a[a.Home=14]="Home",a[a.LeftArrow=15]="LeftArrow",a[a.UpArrow=16]="UpArrow",a[a.RightArrow=17]="RightArrow",a[a.DownArrow=18]="DownArrow",a[a.Insert=19]="Insert",a[a.Delete=20]="Delete",a[a.Digit0=21]="Digit0",a[a.Digit1=22]="Digit1",a[a.Digit2=23]="Digit2",a[a.Digit3=24]="Digit3",a[a.Digit4=25]="Digit4",a[a.Digit5=26]="Digit5",a[a.Digit6=27]="Digit6",a[a.Digit7=28]="Digit7",a[a.Digit8=29]="Digit8",a[a.Digit9=30]="Digit9",a[a.KeyA=31]="KeyA",a[a.KeyB=32]="KeyB",a[a.KeyC=33]="KeyC",a[a.KeyD=34]="KeyD",a[a.KeyE=35]="KeyE",a[a.KeyF=36]="KeyF",a[a.KeyG=37]="KeyG",a[a.KeyH=38]="KeyH",a[a.KeyI=39]="KeyI",a[a.KeyJ=40]="KeyJ",a[a.KeyK=41]="KeyK",a[a.KeyL=42]="KeyL",a[a.KeyM=43]="KeyM",a[a.KeyN=44]="KeyN",a[a.KeyO=45]="KeyO",a[a.KeyP=46]="KeyP",a[a.KeyQ=47]="KeyQ",a[a.KeyR=48]="KeyR",a[a.KeyS=49]="KeyS",a[a.KeyT=50]="KeyT",a[a.KeyU=51]="KeyU",a[a.KeyV=52]="KeyV",a[a.KeyW=53]="KeyW",a[a.KeyX=54]="KeyX",a[a.KeyY=55]="KeyY",a[a.KeyZ=56]="KeyZ",a[a.Meta=57]="Meta",a[a.ContextMenu=58]="ContextMenu",a[a.F1=59]="F1",a[a.F2=60]="F2",a[a.F3=61]="F3",a[a.F4=62]="F4",a[a.F5=63]="F5",a[a.F6=64]="F6",a[a.F7=65]="F7",a[a.F8=66]="F8",a[a.F9=67]="F9",a[a.F10=68]="F10",a[a.F11=69]="F11",a[a.F12=70]="F12",a[a.F13=71]="F13",a[a.F14=72]="F14",a[a.F15=73]="F15",a[a.F16=74]="F16",a[a.F17=75]="F17",a[a.F18=76]="F18",a[a.F19=77]="F19",a[a.NumLock=78]="NumLock",a[a.ScrollLock=79]="ScrollLock",a[a.Semicolon=80]="Semicolon",a[a.Equal=81]="Equal",a[a.Comma=82]="Comma",a[a.Minus=83]="Minus",a[a.Period=84]="Period",a[a.Slash=85]="Slash",a[a.Backquote=86]="Backquote",a[a.BracketLeft=87]="BracketLeft",a[a.Backslash=88]="Backslash",a[a.BracketRight=89]="BracketRight",a[a.Quote=90]="Quote",a[a.OEM_8=91]="OEM_8",a[a.IntlBackslash=92]="IntlBackslash",a[a.Numpad0=93]="Numpad0",a[a.Numpad1=94]="Numpad1",a[a.Numpad2=95]="Numpad2",a[a.Numpad3=96]="Numpad3",a[a.Numpad4=97]="Numpad4",a[a.Numpad5=98]="Numpad5",a[a.Numpad6=99]="Numpad6",a[a.Numpad7=100]="Numpad7",a[a.Numpad8=101]="Numpad8",a[a.Numpad9=102]="Numpad9",a[a.NumpadMultiply=103]="NumpadMultiply",a[a.NumpadAdd=104]="NumpadAdd",a[a.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",a[a.NumpadSubtract=106]="NumpadSubtract",a[a.NumpadDecimal=107]="NumpadDecimal",a[a.NumpadDivide=108]="NumpadDivide",a[a.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",a[a.ABNT_C1=110]="ABNT_C1",a[a.ABNT_C2=111]="ABNT_C2",a[a.AudioVolumeMute=112]="AudioVolumeMute",a[a.AudioVolumeUp=113]="AudioVolumeUp",a[a.AudioVolumeDown=114]="AudioVolumeDown",a[a.BrowserSearch=115]="BrowserSearch",a[a.BrowserHome=116]="BrowserHome",a[a.BrowserBack=117]="BrowserBack",a[a.BrowserForward=118]="BrowserForward",a[a.MediaTrackNext=119]="MediaTrackNext",a[a.MediaTrackPrevious=120]="MediaTrackPrevious",a[a.MediaStop=121]="MediaStop",a[a.MediaPlayPause=122]="MediaPlayPause",a[a.LaunchMediaPlayer=123]="LaunchMediaPlayer",a[a.LaunchMail=124]="LaunchMail",a[a.LaunchApp2=125]="LaunchApp2",a[a.MAX_VALUE=126]="MAX_VALUE"})(gi||(gi={}));var Eo;(function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"})(Eo||(Eo={}));var Fo;(function(a){a[a.Unnecessary=1]="Unnecessary",a[a.Deprecated=2]="Deprecated"})(Fo||(Fo={}));var bs;(function(a){a[a.Inline=1]="Inline",a[a.Gutter=2]="Gutter"})(bs||(bs={}));var Li;(function(a){a[a.UNKNOWN=0]="UNKNOWN",a[a.TEXTAREA=1]="TEXTAREA",a[a.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",a[a.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",a[a.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",a[a.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",a[a.CONTENT_TEXT=6]="CONTENT_TEXT",a[a.CONTENT_EMPTY=7]="CONTENT_EMPTY",a[a.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",a[a.CONTENT_WIDGET=9]="CONTENT_WIDGET",a[a.OVERVIEW_RULER=10]="OVERVIEW_RULER",a[a.SCROLLBAR=11]="SCROLLBAR",a[a.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",a[a.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Li||(Li={}));var Uo;(function(a){a[a.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",a[a.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",a[a.TOP_CENTER=2]="TOP_CENTER"})(Uo||(Uo={}));var Hn;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=4]="Right",a[a.Full=7]="Full"})(Hn||(Hn={}));var Zo;(function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Relative=2]="Relative",a[a.Interval=3]="Interval",a[a.Custom=4]="Custom"})(Zo||(Zo={}));var Ds;(function(a){a[a.None=0]="None",a[a.Text=1]="Text",a[a.Blocks=2]="Blocks"})(Ds||(Ds={}));var Vs;(function(a){a[a.Smooth=0]="Smooth",a[a.Immediate=1]="Immediate"})(Vs||(Vs={}));var iu;(function(a){a[a.Auto=1]="Auto",a[a.Hidden=2]="Hidden",a[a.Visible=3]="Visible"})(iu||(iu={}));var fc;(function(a){a[a.LTR=0]="LTR",a[a.RTL=1]="RTL"})(fc||(fc={}));var ou;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(ou||(ou={}));var oo;(function(a){a[a.File=0]="File",a[a.Module=1]="Module",a[a.Namespace=2]="Namespace",a[a.Package=3]="Package",a[a.Class=4]="Class",a[a.Method=5]="Method",a[a.Property=6]="Property",a[a.Field=7]="Field",a[a.Constructor=8]="Constructor",a[a.Enum=9]="Enum",a[a.Interface=10]="Interface",a[a.Function=11]="Function",a[a.Variable=12]="Variable",a[a.Constant=13]="Constant",a[a.String=14]="String",a[a.Number=15]="Number",a[a.Boolean=16]="Boolean",a[a.Array=17]="Array",a[a.Object=18]="Object",a[a.Key=19]="Key",a[a.Null=20]="Null",a[a.EnumMember=21]="EnumMember",a[a.Struct=22]="Struct",a[a.Event=23]="Event",a[a.Operator=24]="Operator",a[a.TypeParameter=25]="TypeParameter"})(oo||(oo={}));var tl;(function(a){a[a.Deprecated=1]="Deprecated"})(tl||(tl={}));var su;(function(a){a[a.Hidden=0]="Hidden",a[a.Blink=1]="Blink",a[a.Smooth=2]="Smooth",a[a.Phase=3]="Phase",a[a.Expand=4]="Expand",a[a.Solid=5]="Solid"})(su||(su={}));var Au;(function(a){a[a.Line=1]="Line",a[a.Block=2]="Block",a[a.Underline=3]="Underline",a[a.LineThin=4]="LineThin",a[a.BlockOutline=5]="BlockOutline",a[a.UnderlineThin=6]="UnderlineThin"})(Au||(Au={}));var lu;(function(a){a[a.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",a[a.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",a[a.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",a[a.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(lu||(lu={}));var Du;(function(a){a[a.None=0]="None",a[a.Same=1]="Same",a[a.Indent=2]="Indent",a[a.DeepIndent=3]="DeepIndent"})(Du||(Du={}));class cu{static chord(a,H){return kn(a,H)}}cu.CtrlCmd=2048,cu.Shift=1024,cu.Alt=512,cu.WinCtrl=256;function Of(){return{editor:void 0,languages:void 0,CancellationTokenSource:ps,Emitter:$,KeyCode:gi,KeyMod:cu,Position:j,Range:De,Selection:ot,SelectionDirection:fc,MarkerSeverity:Eo,MarkerTag:Fo,Uri:Mo,Token:Nt}}var Wl=function(a,H,Ae,nn){function In(Gn){return Gn instanceof Ae?Gn:new Ae(function(bt){bt(Gn)})}return new(Ae||(Ae=Promise))(function(Gn,bt){function pt(er){try{Pt(nn.next(er))}catch(jr){bt(jr)}}function It(er){try{Pt(nn.throw(er))}catch(jr){bt(jr)}}function Pt(er){er.done?Gn(er.value):In(er.value).then(pt,It)}Pt((nn=nn.apply(a,H||[])).next())})};class ad extends Ks{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(a){return this._lines[a-1]}getWordAtPosition(a,H){let Ae=vs(a.column,Ol(H),this._lines[a.lineNumber-1],0);return Ae?new De(a.lineNumber,Ae.startColumn,a.lineNumber,Ae.endColumn):null}words(a){const H=this._lines,Ae=this._wordenize.bind(this);let nn=0,In="",Gn=0,bt=[];return{*[Symbol.iterator](){for(;;)if(Gn<bt.length){const pt=In.substring(bt[Gn].start,bt[Gn].end);Gn+=1,yield pt}else if(nn<H.length)In=H[nn],bt=Ae(In,a),Gn=0,nn+=1;else break}}}getLineWords(a,H){let Ae=this._lines[a-1],nn=this._wordenize(Ae,H),In=[];for(const Gn of nn)In.push({word:Ae.substring(Gn.start,Gn.end),startColumn:Gn.start+1,endColumn:Gn.end+1});return In}_wordenize(a,H){const Ae=[];let nn;for(H.lastIndex=0;(nn=H.exec(a))&&!(nn[0].length===0);)Ae.push({start:nn.index,end:nn.index+nn[0].length});return Ae}getValueInRange(a){if(a=this._validateRange(a),a.startLineNumber===a.endLineNumber)return this._lines[a.startLineNumber-1].substring(a.startColumn-1,a.endColumn-1);let H=this._eol,Ae=a.startLineNumber-1,nn=a.endLineNumber-1,In=[];In.push(this._lines[Ae].substring(a.startColumn-1));for(let Gn=Ae+1;Gn<nn;Gn++)In.push(this._lines[Gn]);return In.push(this._lines[nn].substring(0,a.endColumn-1)),In.join(H)}offsetAt(a){return a=this._validatePosition(a),this._ensureLineStarts(),this._lineStarts.getPrefixSum(a.lineNumber-2)+(a.column-1)}positionAt(a){a=Math.floor(a),a=Math.max(0,a),this._ensureLineStarts();let H=this._lineStarts.getIndexOf(a),Ae=this._lines[H.index].length;return{lineNumber:1+H.index,column:1+Math.min(H.remainder,Ae)}}_validateRange(a){const H=this._validatePosition({lineNumber:a.startLineNumber,column:a.startColumn}),Ae=this._validatePosition({lineNumber:a.endLineNumber,column:a.endColumn});return H.lineNumber!==a.startLineNumber||H.column!==a.startColumn||Ae.lineNumber!==a.endLineNumber||Ae.column!==a.endColumn?{startLineNumber:H.lineNumber,startColumn:H.column,endLineNumber:Ae.lineNumber,endColumn:Ae.column}:a}_validatePosition(a){if(!j.isIPosition(a))throw new Error("bad position");let{lineNumber:H,column:Ae}=a,nn=!1;if(H<1)H=1,Ae=1,nn=!0;else if(H>this._lines.length)H=this._lines.length,Ae=this._lines[H-1].length+1,nn=!0;else{let In=this._lines[H-1].length+1;Ae<1?(Ae=1,nn=!0):Ae>In&&(Ae=In,nn=!0)}return nn?{lineNumber:H,column:Ae}:a}}class id{constructor(a,H){this._host=a,this._models=Object.create(null),this._foreignModuleFactory=H,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(a){return this._models[a]}_getModels(){let a=[];return Object.keys(this._models).forEach(H=>a.push(this._models[H])),a}acceptNewModel(a){this._models[a.url]=new ad(Mo.parse(a.url),a.lines,a.EOL,a.versionId)}acceptModelChanged(a,H){if(!this._models[a])return;let Ae=this._models[a];Ae.onEvents(H)}acceptRemovedModel(a){if(!this._models[a])return;delete this._models[a]}computeDiff(a,H,Ae,nn){return Wl(this,void 0,void 0,function*(){const In=this._getModel(a),Gn=this._getModel(H);if(!In||!Gn)return null;const bt=In.getLinesContent(),pt=Gn.getLinesContent(),It=new na(bt,pt,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:Ae,shouldMakePrettyDiff:!0,maxComputationTime:nn}),Pt=It.computeDiff(),er=Pt.changes.length>0?!1:this._modelsAreIdentical(In,Gn);return{quitEarly:Pt.quitEarly,identical:er,changes:Pt.changes}})}_modelsAreIdentical(a,H){const Ae=a.getLineCount(),nn=H.getLineCount();if(Ae!==nn)return!1;for(let In=1;In<=Ae;In++){const Gn=a.getLineContent(In),bt=H.getLineContent(In);if(Gn!==bt)return!1}return!0}computeMoreMinimalEdits(a,H){return Wl(this,void 0,void 0,function*(){const Ae=this._getModel(a);if(!Ae)return H;const nn=[];let In;H=H.slice(0).sort((Gn,bt)=>{if(Gn.range&&bt.range)return De.compareRangesUsingStarts(Gn.range,bt.range);let pt=Gn.range?0:1,It=bt.range?0:1;return pt-It});for(let{range:Gn,text:bt,eol:pt}of H){if(typeof pt=="number"&&(In=pt),De.isEmpty(Gn)&&!bt)continue;const It=Ae.getValueInRange(Gn);if(bt=bt.replace(/\r\n|\n|\r/g,Ae.eol),It===bt)continue;if(Math.max(bt.length,It.length)>id._diffLimit){nn.push({range:Gn,text:bt});continue}const Pt=Va(It,bt,!1),er=Ae.offsetAt(De.lift(Gn).getStartPosition());for(const jr of Pt){const Qa=Ae.positionAt(er+jr.originalStart),Wi=Ae.positionAt(er+jr.originalStart+jr.originalLength),uo={text:bt.substr(jr.modifiedStart,jr.modifiedLength),range:{startLineNumber:Qa.lineNumber,startColumn:Qa.column,endLineNumber:Wi.lineNumber,endColumn:Wi.column}};Ae.getValueInRange(uo.range)!==uo.text&&nn.push(uo)}}return typeof In=="number"&&nn.push({eol:In,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),nn})}computeLinks(a){return Wl(this,void 0,void 0,function*(){let H=this._getModel(a);return H?da(H):null})}textualSuggest(a,H,Ae,nn){return Wl(this,void 0,void 0,function*(){const In=new U(!0),Gn=new RegExp(Ae,nn),bt=new Set;e:for(let pt of a){const It=this._getModel(pt);if(!It)continue;for(let Pt of It.words(Gn)){if(Pt===H||!isNaN(Number(Pt)))continue;if(bt.add(Pt),bt.size>id._suggestionsLimit)break e}}return{words:Array.from(bt),duration:In.elapsed()}})}computeWordRanges(a,H,Ae,nn){return Wl(this,void 0,void 0,function*(){let In=this._getModel(a);if(!In)return Object.create(null);const Gn=new RegExp(Ae,nn),bt=Object.create(null);for(let pt=H.startLineNumber;pt<H.endLineNumber;pt++){let It=In.getLineWords(pt,Gn);for(const Pt of It){if(!isNaN(Number(Pt.word)))continue;let er=bt[Pt.word];er||(er=[],bt[Pt.word]=er),er.push({startLineNumber:pt,startColumn:Pt.startColumn,endLineNumber:pt,endColumn:Pt.endColumn})}}return bt})}navigateValueSet(a,H,Ae,nn,In){return Wl(this,void 0,void 0,function*(){let Gn=this._getModel(a);if(!Gn)return null;let bt=new RegExp(nn,In);H.startColumn===H.endColumn&&(H={startLineNumber:H.startLineNumber,startColumn:H.startColumn,endLineNumber:H.endLineNumber,endColumn:H.endColumn+1});let pt=Gn.getValueInRange(H),It=Gn.getWordAtPosition({lineNumber:H.startLineNumber,column:H.startColumn},bt);if(!It)return null;let Pt=Gn.getValueInRange(It),er=ya.INSTANCE.navigateValueSet(H,pt,It,Pt,Ae);return er})}loadForeignModule(a,H,Ae){const nn=(bt,pt)=>this._host.fhr(bt,pt),In=N(Ae,nn);let Gn={host:In,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Gn,H),Promise.resolve(k(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(a,H){if(!this._foreignModule||typeof this._foreignModule[a]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+a));try{return Promise.resolve(this._foreignModule[a].apply(this._foreignModule,H))}catch(Ae){return Promise.reject(Ae)}}}id._diffLimit=1e5,id._suggestionsLimit=1e4;function $a(a){return new id(a,null)}typeof importScripts=="function"&&(fe.a.monaco=Of());let pa=!1;function Tc(a){if(pa)return;pa=!0;const H=new it(Ae=>{self.postMessage(Ae)},Ae=>new id(Ae,a));self.onmessage=Ae=>{H.onmessage(Ae.data)}}self.onmessage=a=>{pa||Tc(null)};var Vo=Do("lz1K"),yi={};yi["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" />
|
|
|
`,yi["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?: number | null;
|
|
|
timelineTime?: number | 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;
|
|
|
appidExclude?: string;
|
|
|
credProps?: boolean;
|
|
|
uvm?: boolean;
|
|
|
}
|
|
|
|
|
|
interface AuthenticationExtensionsClientOutputs {
|
|
|
appid?: boolean;
|
|
|
credProps?: CredentialPropertiesOutput;
|
|
|
uvm?: UvmEntries;
|
|
|
}
|
|
|
|
|
|
interface AuthenticatorSelectionCriteria {
|
|
|
authenticatorAttachment?: AuthenticatorAttachment;
|
|
|
requireResidentKey?: boolean;
|
|
|
residentKey?: ResidentKeyRequirement;
|
|
|
userVerification?: UserVerificationRequirement;
|
|
|
}
|
|
|
|
|
|
interface BiquadFilterOptions extends AudioNodeOptions {
|
|
|
Q?: number;
|
|
|
detune?: number;
|
|
|
frequency?: number;
|
|
|
gain?: number;
|
|
|
type?: BiquadFilterType;
|
|
|
}
|
|
|
|
|
|
interface BlobEventInit {
|
|
|
data: Blob;
|
|
|
timecode?: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface BlobPropertyBag {
|
|
|
endings?: EndingType;
|
|
|
type?: string;
|
|
|
}
|
|
|
|
|
|
interface CSSStyleSheetInit {
|
|
|
baseURL?: string;
|
|
|
disabled?: boolean;
|
|
|
media?: MediaList | string;
|
|
|
}
|
|
|
|
|
|
interface CacheQueryOptions {
|
|
|
ignoreMethod?: boolean;
|
|
|
ignoreSearch?: boolean;
|
|
|
ignoreVary?: boolean;
|
|
|
}
|
|
|
|
|
|
interface CanvasRenderingContext2DSettings {
|
|
|
alpha?: boolean;
|
|
|
colorSpace?: PredefinedColorSpace;
|
|
|
desynchronized?: boolean;
|
|
|
willReadFrequently?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ChannelMergerOptions extends AudioNodeOptions {
|
|
|
numberOfInputs?: number;
|
|
|
}
|
|
|
|
|
|
interface ChannelSplitterOptions extends AudioNodeOptions {
|
|
|
numberOfOutputs?: number;
|
|
|
}
|
|
|
|
|
|
interface 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?: CSSNumberish | 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 DisplayMediaStreamConstraints {
|
|
|
audio?: boolean | MediaTrackConstraints;
|
|
|
video?: boolean | MediaTrackConstraints;
|
|
|
}
|
|
|
|
|
|
interface DocumentTimelineOptions {
|
|
|
originTime?: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface DoubleRange {
|
|
|
max?: number;
|
|
|
min?: number;
|
|
|
}
|
|
|
|
|
|
interface DragEventInit extends MouseEventInit {
|
|
|
dataTransfer?: DataTransfer | null;
|
|
|
}
|
|
|
|
|
|
interface DynamicsCompressorOptions extends AudioNodeOptions {
|
|
|
attack?: number;
|
|
|
knee?: number;
|
|
|
ratio?: number;
|
|
|
release?: number;
|
|
|
threshold?: number;
|
|
|
}
|
|
|
|
|
|
interface EcKeyAlgorithm extends KeyAlgorithm {
|
|
|
namedCurve: NamedCurve;
|
|
|
}
|
|
|
|
|
|
interface EcKeyGenParams extends Algorithm {
|
|
|
namedCurve: NamedCurve;
|
|
|
}
|
|
|
|
|
|
interface EcKeyImportParams extends Algorithm {
|
|
|
namedCurve: NamedCurve;
|
|
|
}
|
|
|
|
|
|
interface EcdhKeyDeriveParams extends Algorithm {
|
|
|
public: CryptoKey;
|
|
|
}
|
|
|
|
|
|
interface EcdsaParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
}
|
|
|
|
|
|
interface EffectTiming {
|
|
|
delay?: number;
|
|
|
direction?: PlaybackDirection;
|
|
|
duration?: number | string;
|
|
|
easing?: string;
|
|
|
endDelay?: number;
|
|
|
fill?: FillMode;
|
|
|
iterationStart?: number;
|
|
|
iterations?: number;
|
|
|
playbackRate?: number;
|
|
|
}
|
|
|
|
|
|
interface ElementCreationOptions {
|
|
|
is?: string;
|
|
|
}
|
|
|
|
|
|
interface ElementDefinitionOptions {
|
|
|
extends?: string;
|
|
|
}
|
|
|
|
|
|
interface ErrorEventInit extends EventInit {
|
|
|
colno?: number;
|
|
|
error?: any;
|
|
|
filename?: string;
|
|
|
lineno?: number;
|
|
|
message?: string;
|
|
|
}
|
|
|
|
|
|
interface EventInit {
|
|
|
bubbles?: boolean;
|
|
|
cancelable?: boolean;
|
|
|
composed?: boolean;
|
|
|
}
|
|
|
|
|
|
interface EventListenerOptions {
|
|
|
capture?: boolean;
|
|
|
}
|
|
|
|
|
|
interface EventModifierInit extends UIEventInit {
|
|
|
altKey?: boolean;
|
|
|
ctrlKey?: boolean;
|
|
|
metaKey?: boolean;
|
|
|
modifierAltGraph?: boolean;
|
|
|
modifierCapsLock?: boolean;
|
|
|
modifierFn?: boolean;
|
|
|
modifierFnLock?: boolean;
|
|
|
modifierHyper?: boolean;
|
|
|
modifierNumLock?: boolean;
|
|
|
modifierScrollLock?: boolean;
|
|
|
modifierSuper?: boolean;
|
|
|
modifierSymbol?: boolean;
|
|
|
modifierSymbolLock?: boolean;
|
|
|
shiftKey?: boolean;
|
|
|
}
|
|
|
|
|
|
interface EventSourceInit {
|
|
|
withCredentials?: boolean;
|
|
|
}
|
|
|
|
|
|
interface FilePropertyBag extends BlobPropertyBag {
|
|
|
lastModified?: number;
|
|
|
}
|
|
|
|
|
|
interface FileSystemFlags {
|
|
|
create?: boolean;
|
|
|
exclusive?: boolean;
|
|
|
}
|
|
|
|
|
|
interface FocusEventInit extends UIEventInit {
|
|
|
relatedTarget?: EventTarget | null;
|
|
|
}
|
|
|
|
|
|
interface FocusOptions {
|
|
|
preventScroll?: boolean;
|
|
|
}
|
|
|
|
|
|
interface FontFaceDescriptors {
|
|
|
display?: string;
|
|
|
featureSettings?: string;
|
|
|
stretch?: string;
|
|
|
style?: string;
|
|
|
unicodeRange?: string;
|
|
|
variant?: string;
|
|
|
weight?: string;
|
|
|
}
|
|
|
|
|
|
interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
fontfaces?: FontFace[];
|
|
|
}
|
|
|
|
|
|
interface FormDataEventInit extends EventInit {
|
|
|
formData: FormData;
|
|
|
}
|
|
|
|
|
|
interface FullscreenOptions {
|
|
|
navigationUI?: FullscreenNavigationUI;
|
|
|
}
|
|
|
|
|
|
interface GainOptions extends AudioNodeOptions {
|
|
|
gain?: number;
|
|
|
}
|
|
|
|
|
|
interface GamepadEventInit extends EventInit {
|
|
|
gamepad: Gamepad;
|
|
|
}
|
|
|
|
|
|
interface GetAnimationsOptions {
|
|
|
subtree?: boolean;
|
|
|
}
|
|
|
|
|
|
interface GetNotificationOptions {
|
|
|
tag?: string;
|
|
|
}
|
|
|
|
|
|
interface GetRootNodeOptions {
|
|
|
composed?: boolean;
|
|
|
}
|
|
|
|
|
|
interface HashChangeEventInit extends EventInit {
|
|
|
newURL?: string;
|
|
|
oldURL?: string;
|
|
|
}
|
|
|
|
|
|
interface HkdfParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
info: BufferSource;
|
|
|
salt: BufferSource;
|
|
|
}
|
|
|
|
|
|
interface HmacImportParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
length?: number;
|
|
|
}
|
|
|
|
|
|
interface HmacKeyAlgorithm extends KeyAlgorithm {
|
|
|
hash: KeyAlgorithm;
|
|
|
length: number;
|
|
|
}
|
|
|
|
|
|
interface HmacKeyGenParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
length?: number;
|
|
|
}
|
|
|
|
|
|
interface IDBDatabaseInfo {
|
|
|
name?: string;
|
|
|
version?: number;
|
|
|
}
|
|
|
|
|
|
interface IDBIndexParameters {
|
|
|
multiEntry?: boolean;
|
|
|
unique?: boolean;
|
|
|
}
|
|
|
|
|
|
interface IDBObjectStoreParameters {
|
|
|
autoIncrement?: boolean;
|
|
|
keyPath?: string | string[] | null;
|
|
|
}
|
|
|
|
|
|
interface 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 ImportMeta {
|
|
|
url: string;
|
|
|
}
|
|
|
|
|
|
interface InputEventInit extends UIEventInit {
|
|
|
data?: string | null;
|
|
|
dataTransfer?: DataTransfer | null;
|
|
|
inputType?: string;
|
|
|
isComposing?: boolean;
|
|
|
targetRanges?: StaticRange[];
|
|
|
}
|
|
|
|
|
|
interface IntersectionObserverEntryInit {
|
|
|
boundingClientRect: DOMRectInit;
|
|
|
intersectionRatio: number;
|
|
|
intersectionRect: DOMRectInit;
|
|
|
isIntersecting: boolean;
|
|
|
rootBounds: DOMRectInit | null;
|
|
|
target: Element;
|
|
|
time: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface IntersectionObserverInit {
|
|
|
root?: Element | Document | null;
|
|
|
rootMargin?: string;
|
|
|
threshold?: number | number[];
|
|
|
}
|
|
|
|
|
|
interface JsonWebKey {
|
|
|
alg?: string;
|
|
|
crv?: string;
|
|
|
d?: string;
|
|
|
dp?: string;
|
|
|
dq?: string;
|
|
|
e?: string;
|
|
|
ext?: boolean;
|
|
|
k?: string;
|
|
|
key_ops?: string[];
|
|
|
kty?: string;
|
|
|
n?: string;
|
|
|
oth?: RsaOtherPrimesInfo[];
|
|
|
p?: string;
|
|
|
q?: string;
|
|
|
qi?: string;
|
|
|
use?: string;
|
|
|
x?: string;
|
|
|
y?: string;
|
|
|
}
|
|
|
|
|
|
interface KeyAlgorithm {
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface KeyboardEventInit extends EventModifierInit {
|
|
|
/** @deprecated */
|
|
|
charCode?: number;
|
|
|
code?: string;
|
|
|
isComposing?: boolean;
|
|
|
key?: string;
|
|
|
/** @deprecated */
|
|
|
keyCode?: number;
|
|
|
location?: number;
|
|
|
repeat?: boolean;
|
|
|
}
|
|
|
|
|
|
interface Keyframe {
|
|
|
composite?: CompositeOperationOrAuto;
|
|
|
easing?: string;
|
|
|
offset?: number | null;
|
|
|
[property: string]: string | number | null | undefined;
|
|
|
}
|
|
|
|
|
|
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
|
|
|
id?: string;
|
|
|
}
|
|
|
|
|
|
interface KeyframeEffectOptions extends EffectTiming {
|
|
|
composite?: CompositeOperation;
|
|
|
iterationComposite?: IterationCompositeOperation;
|
|
|
pseudoElement?: string | null;
|
|
|
}
|
|
|
|
|
|
interface 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 MediaRecorderErrorEventInit extends EventInit {
|
|
|
error: DOMException;
|
|
|
}
|
|
|
|
|
|
interface MediaRecorderOptions {
|
|
|
audioBitsPerSecond?: number;
|
|
|
bitsPerSecond?: number;
|
|
|
mimeType?: string;
|
|
|
videoBitsPerSecond?: number;
|
|
|
}
|
|
|
|
|
|
interface MediaSessionActionDetails {
|
|
|
action: MediaSessionAction;
|
|
|
fastSeek?: boolean | null;
|
|
|
seekOffset?: number | null;
|
|
|
seekTime?: number | null;
|
|
|
}
|
|
|
|
|
|
interface MediaStreamAudioSourceOptions {
|
|
|
mediaStream: MediaStream;
|
|
|
}
|
|
|
|
|
|
interface MediaStreamConstraints {
|
|
|
audio?: boolean | MediaTrackConstraints;
|
|
|
peerIdentity?: string;
|
|
|
video?: boolean | MediaTrackConstraints;
|
|
|
}
|
|
|
|
|
|
interface MediaStreamTrackEventInit extends EventInit {
|
|
|
track: MediaStreamTrack;
|
|
|
}
|
|
|
|
|
|
interface MediaTrackCapabilities {
|
|
|
aspectRatio?: DoubleRange;
|
|
|
autoGainControl?: boolean[];
|
|
|
channelCount?: ULongRange;
|
|
|
cursor?: string[];
|
|
|
deviceId?: string;
|
|
|
displaySurface?: string;
|
|
|
echoCancellation?: boolean[];
|
|
|
facingMode?: string[];
|
|
|
frameRate?: DoubleRange;
|
|
|
groupId?: string;
|
|
|
height?: ULongRange;
|
|
|
latency?: DoubleRange;
|
|
|
logicalSurface?: boolean;
|
|
|
noiseSuppression?: boolean[];
|
|
|
resizeMode?: string[];
|
|
|
sampleRate?: ULongRange;
|
|
|
sampleSize?: ULongRange;
|
|
|
width?: ULongRange;
|
|
|
}
|
|
|
|
|
|
interface MediaTrackConstraintSet {
|
|
|
aspectRatio?: ConstrainDouble;
|
|
|
channelCount?: ConstrainULong;
|
|
|
deviceId?: ConstrainDOMString;
|
|
|
echoCancellation?: ConstrainBoolean;
|
|
|
facingMode?: ConstrainDOMString;
|
|
|
frameRate?: ConstrainDouble;
|
|
|
groupId?: ConstrainDOMString;
|
|
|
height?: ConstrainULong;
|
|
|
latency?: ConstrainDouble;
|
|
|
sampleRate?: ConstrainULong;
|
|
|
sampleSize?: ConstrainULong;
|
|
|
suppressLocalAudioPlayback?: ConstrainBoolean;
|
|
|
width?: ConstrainULong;
|
|
|
}
|
|
|
|
|
|
interface MediaTrackConstraints extends MediaTrackConstraintSet {
|
|
|
advanced?: MediaTrackConstraintSet[];
|
|
|
}
|
|
|
|
|
|
interface MediaTrackSettings {
|
|
|
aspectRatio?: number;
|
|
|
deviceId?: string;
|
|
|
echoCancellation?: boolean;
|
|
|
facingMode?: string;
|
|
|
frameRate?: number;
|
|
|
groupId?: string;
|
|
|
height?: number;
|
|
|
restrictOwnAudio?: boolean;
|
|
|
sampleRate?: number;
|
|
|
sampleSize?: number;
|
|
|
width?: number;
|
|
|
}
|
|
|
|
|
|
interface MediaTrackSupportedConstraints {
|
|
|
aspectRatio?: boolean;
|
|
|
deviceId?: boolean;
|
|
|
echoCancellation?: boolean;
|
|
|
facingMode?: boolean;
|
|
|
frameRate?: boolean;
|
|
|
groupId?: boolean;
|
|
|
height?: boolean;
|
|
|
sampleRate?: boolean;
|
|
|
sampleSize?: boolean;
|
|
|
suppressLocalAudioPlayback?: 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 NotificationAction {
|
|
|
action: string;
|
|
|
icon?: string;
|
|
|
title: string;
|
|
|
}
|
|
|
|
|
|
interface NotificationOptions {
|
|
|
actions?: NotificationAction[];
|
|
|
badge?: string;
|
|
|
body?: string;
|
|
|
data?: any;
|
|
|
dir?: NotificationDirection;
|
|
|
icon?: string;
|
|
|
image?: string;
|
|
|
lang?: string;
|
|
|
renotify?: boolean;
|
|
|
requireInteraction?: boolean;
|
|
|
silent?: boolean;
|
|
|
tag?: string;
|
|
|
timestamp?: DOMTimeStamp;
|
|
|
vibrate?: VibratePattern;
|
|
|
}
|
|
|
|
|
|
interface OfflineAudioCompletionEventInit extends EventInit {
|
|
|
renderedBuffer: AudioBuffer;
|
|
|
}
|
|
|
|
|
|
interface OfflineAudioContextOptions {
|
|
|
length: number;
|
|
|
numberOfChannels?: number;
|
|
|
sampleRate: number;
|
|
|
}
|
|
|
|
|
|
interface OptionalEffectTiming {
|
|
|
delay?: number;
|
|
|
direction?: PlaybackDirection;
|
|
|
duration?: number | string;
|
|
|
easing?: string;
|
|
|
endDelay?: number;
|
|
|
fill?: FillMode;
|
|
|
iterationStart?: number;
|
|
|
iterations?: number;
|
|
|
playbackRate?: number;
|
|
|
}
|
|
|
|
|
|
interface OscillatorOptions extends AudioNodeOptions {
|
|
|
detune?: number;
|
|
|
frequency?: number;
|
|
|
periodicWave?: PeriodicWave;
|
|
|
type?: OscillatorType;
|
|
|
}
|
|
|
|
|
|
interface PageTransitionEventInit extends EventInit {
|
|
|
persisted?: boolean;
|
|
|
}
|
|
|
|
|
|
interface PannerOptions extends AudioNodeOptions {
|
|
|
coneInnerAngle?: number;
|
|
|
coneOuterAngle?: number;
|
|
|
coneOuterGain?: number;
|
|
|
distanceModel?: DistanceModelType;
|
|
|
maxDistance?: number;
|
|
|
orientationX?: number;
|
|
|
orientationY?: number;
|
|
|
orientationZ?: number;
|
|
|
panningModel?: PanningModelType;
|
|
|
positionX?: number;
|
|
|
positionY?: number;
|
|
|
positionZ?: number;
|
|
|
refDistance?: number;
|
|
|
rolloffFactor?: number;
|
|
|
}
|
|
|
|
|
|
interface PaymentCurrencyAmount {
|
|
|
currency: string;
|
|
|
value: string;
|
|
|
}
|
|
|
|
|
|
interface PaymentDetailsBase {
|
|
|
displayItems?: PaymentItem[];
|
|
|
modifiers?: PaymentDetailsModifier[];
|
|
|
}
|
|
|
|
|
|
interface PaymentDetailsInit extends PaymentDetailsBase {
|
|
|
id?: string;
|
|
|
total: PaymentItem;
|
|
|
}
|
|
|
|
|
|
interface PaymentDetailsModifier {
|
|
|
additionalDisplayItems?: PaymentItem[];
|
|
|
data?: any;
|
|
|
supportedMethods: string;
|
|
|
total?: PaymentItem;
|
|
|
}
|
|
|
|
|
|
interface PaymentDetailsUpdate extends PaymentDetailsBase {
|
|
|
paymentMethodErrors?: any;
|
|
|
total?: PaymentItem;
|
|
|
}
|
|
|
|
|
|
interface PaymentItem {
|
|
|
amount: PaymentCurrencyAmount;
|
|
|
label: string;
|
|
|
pending?: boolean;
|
|
|
}
|
|
|
|
|
|
interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
|
|
|
methodDetails?: any;
|
|
|
methodName?: string;
|
|
|
}
|
|
|
|
|
|
interface PaymentMethodData {
|
|
|
data?: any;
|
|
|
supportedMethods: string;
|
|
|
}
|
|
|
|
|
|
interface PaymentRequestUpdateEventInit extends EventInit {
|
|
|
}
|
|
|
|
|
|
interface PaymentValidationErrors {
|
|
|
error?: string;
|
|
|
paymentMethod?: any;
|
|
|
}
|
|
|
|
|
|
interface Pbkdf2Params extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
iterations: number;
|
|
|
salt: BufferSource;
|
|
|
}
|
|
|
|
|
|
interface PerformanceMarkOptions {
|
|
|
detail?: any;
|
|
|
startTime?: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface PerformanceMeasureOptions {
|
|
|
detail?: any;
|
|
|
duration?: DOMHighResTimeStamp;
|
|
|
end?: string | DOMHighResTimeStamp;
|
|
|
start?: string | DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface PerformanceObserverInit {
|
|
|
buffered?: boolean;
|
|
|
entryTypes?: string[];
|
|
|
type?: string;
|
|
|
}
|
|
|
|
|
|
interface PeriodicWaveConstraints {
|
|
|
disableNormalization?: boolean;
|
|
|
}
|
|
|
|
|
|
interface PeriodicWaveOptions extends PeriodicWaveConstraints {
|
|
|
imag?: number[] | Float32Array;
|
|
|
real?: number[] | Float32Array;
|
|
|
}
|
|
|
|
|
|
interface PermissionDescriptor {
|
|
|
name: PermissionName;
|
|
|
}
|
|
|
|
|
|
interface 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 PostMessageOptions {
|
|
|
transfer?: any[];
|
|
|
}
|
|
|
|
|
|
interface ProgressEventInit extends EventInit {
|
|
|
lengthComputable?: boolean;
|
|
|
loaded?: number;
|
|
|
total?: number;
|
|
|
}
|
|
|
|
|
|
interface PromiseRejectionEventInit extends EventInit {
|
|
|
promise: Promise<any>;
|
|
|
reason?: any;
|
|
|
}
|
|
|
|
|
|
interface PropertyIndexedKeyframes {
|
|
|
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
|
|
|
easing?: string | string[];
|
|
|
offset?: number | (number | null)[];
|
|
|
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialCreationOptions {
|
|
|
attestation?: AttestationConveyancePreference;
|
|
|
authenticatorSelection?: AuthenticatorSelectionCriteria;
|
|
|
challenge: BufferSource;
|
|
|
excludeCredentials?: PublicKeyCredentialDescriptor[];
|
|
|
extensions?: AuthenticationExtensionsClientInputs;
|
|
|
pubKeyCredParams: PublicKeyCredentialParameters[];
|
|
|
rp: PublicKeyCredentialRpEntity;
|
|
|
timeout?: number;
|
|
|
user: PublicKeyCredentialUserEntity;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialDescriptor {
|
|
|
id: BufferSource;
|
|
|
transports?: AuthenticatorTransport[];
|
|
|
type: PublicKeyCredentialType;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialEntity {
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialParameters {
|
|
|
alg: COSEAlgorithmIdentifier;
|
|
|
type: PublicKeyCredentialType;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialRequestOptions {
|
|
|
allowCredentials?: PublicKeyCredentialDescriptor[];
|
|
|
challenge: BufferSource;
|
|
|
extensions?: AuthenticationExtensionsClientInputs;
|
|
|
rpId?: string;
|
|
|
timeout?: number;
|
|
|
userVerification?: UserVerificationRequirement;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
|
|
|
id?: string;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
|
|
|
displayName: string;
|
|
|
id: BufferSource;
|
|
|
}
|
|
|
|
|
|
interface PushSubscriptionJSON {
|
|
|
endpoint?: string;
|
|
|
expirationTime?: DOMTimeStamp | 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?: DOMTimeStamp;
|
|
|
}
|
|
|
|
|
|
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 RTCIceCandidateInit {
|
|
|
candidate?: string;
|
|
|
sdpMLineIndex?: number | null;
|
|
|
sdpMid?: string | null;
|
|
|
usernameFragment?: string | null;
|
|
|
}
|
|
|
|
|
|
interface RTCIceCandidatePairStats extends RTCStats {
|
|
|
availableIncomingBitrate?: number;
|
|
|
availableOutgoingBitrate?: number;
|
|
|
bytesReceived?: number;
|
|
|
bytesSent?: number;
|
|
|
currentRoundTripTime?: number;
|
|
|
localCandidateId: string;
|
|
|
nominated?: boolean;
|
|
|
remoteCandidateId: string;
|
|
|
requestsReceived?: number;
|
|
|
requestsSent?: number;
|
|
|
responsesReceived?: number;
|
|
|
responsesSent?: number;
|
|
|
state: RTCStatsIceCandidatePairState;
|
|
|
totalRoundTripTime?: number;
|
|
|
transportId: string;
|
|
|
}
|
|
|
|
|
|
interface RTCIceServer {
|
|
|
credential?: string;
|
|
|
credentialType?: RTCIceCredentialType;
|
|
|
urls: string | string[];
|
|
|
username?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
|
|
|
firCount?: number;
|
|
|
framesDecoded?: number;
|
|
|
nackCount?: number;
|
|
|
pliCount?: number;
|
|
|
qpSum?: number;
|
|
|
remoteId?: 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;
|
|
|
framesEncoded?: number;
|
|
|
nackCount?: number;
|
|
|
pliCount?: number;
|
|
|
qpSum?: number;
|
|
|
remoteId?: string;
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
packetsDiscarded?: number;
|
|
|
packetsLost?: number;
|
|
|
packetsReceived?: number;
|
|
|
}
|
|
|
|
|
|
interface RTCRtcpParameters {
|
|
|
cname?: string;
|
|
|
reducedSize?: boolean;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpCapabilities {
|
|
|
codecs: RTCRtpCodecCapability[];
|
|
|
headerExtensions: RTCRtpHeaderExtensionCapability[];
|
|
|
}
|
|
|
|
|
|
interface RTCRtpCodecCapability {
|
|
|
channels?: number;
|
|
|
clockRate: number;
|
|
|
mimeType: string;
|
|
|
sdpFmtpLine?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpCodecParameters {
|
|
|
channels?: number;
|
|
|
clockRate: number;
|
|
|
mimeType: string;
|
|
|
payloadType: number;
|
|
|
sdpFmtpLine?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpCodingParameters {
|
|
|
rid?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpContributingSource {
|
|
|
audioLevel?: number;
|
|
|
rtpTimestamp: number;
|
|
|
source: number;
|
|
|
timestamp: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
|
|
|
active?: boolean;
|
|
|
maxBitrate?: number;
|
|
|
priority?: RTCPriorityType;
|
|
|
scaleResolutionDownBy?: number;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpHeaderExtensionCapability {
|
|
|
uri?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpHeaderExtensionParameters {
|
|
|
encrypted?: boolean;
|
|
|
id: number;
|
|
|
uri: string;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpParameters {
|
|
|
codecs: RTCRtpCodecParameters[];
|
|
|
headerExtensions: RTCRtpHeaderExtensionParameters[];
|
|
|
rtcp: RTCRtcpParameters;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpReceiveParameters extends RTCRtpParameters {
|
|
|
}
|
|
|
|
|
|
interface RTCRtpSendParameters extends RTCRtpParameters {
|
|
|
degradationPreference?: RTCDegradationPreference;
|
|
|
encodings: RTCRtpEncodingParameters[];
|
|
|
transactionId: string;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpStreamStats extends RTCStats {
|
|
|
codecId?: string;
|
|
|
kind: string;
|
|
|
ssrc: number;
|
|
|
transportId?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
|
|
|
}
|
|
|
|
|
|
interface RTCRtpTransceiverInit {
|
|
|
direction?: RTCRtpTransceiverDirection;
|
|
|
sendEncodings?: RTCRtpEncodingParameters[];
|
|
|
streams?: MediaStream[];
|
|
|
}
|
|
|
|
|
|
interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
|
|
|
bytesSent?: number;
|
|
|
packetsSent?: number;
|
|
|
}
|
|
|
|
|
|
interface RTCSessionDescriptionInit {
|
|
|
sdp?: string;
|
|
|
type: RTCSdpType;
|
|
|
}
|
|
|
|
|
|
interface RTCStats {
|
|
|
id: string;
|
|
|
timestamp: DOMHighResTimeStamp;
|
|
|
type: RTCStatsType;
|
|
|
}
|
|
|
|
|
|
interface RTCTrackEventInit extends EventInit {
|
|
|
receiver: RTCRtpReceiver;
|
|
|
streams?: MediaStream[];
|
|
|
track: MediaStreamTrack;
|
|
|
transceiver: RTCRtpTransceiver;
|
|
|
}
|
|
|
|
|
|
interface RTCTransportStats extends RTCStats {
|
|
|
bytesReceived?: number;
|
|
|
bytesSent?: number;
|
|
|
dtlsCipher?: string;
|
|
|
dtlsState: RTCDtlsTransportState;
|
|
|
localCertificateId?: string;
|
|
|
remoteCertificateId?: string;
|
|
|
rtcpTransportStatsId?: string;
|
|
|
selectedCandidatePairId?: string;
|
|
|
srtpCipher?: string;
|
|
|
tlsVersion?: string;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamDefaultReadDoneResult {
|
|
|
done: true;
|
|
|
value?: undefined;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamDefaultReadValueResult<T> {
|
|
|
done: false;
|
|
|
value: T;
|
|
|
}
|
|
|
|
|
|
interface ReadableWritablePair<R = any, W = any> {
|
|
|
readable: ReadableStream<R>;
|
|
|
/**
|
|
|
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
|
|
|
*
|
|
|
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
|
|
|
*/
|
|
|
writable: WritableStream<W>;
|
|
|
}
|
|
|
|
|
|
interface RegistrationOptions {
|
|
|
scope?: string;
|
|
|
type?: WorkerType;
|
|
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
|
}
|
|
|
|
|
|
interface RequestInit {
|
|
|
/**
|
|
|
* A BodyInit object or null to set request's body.
|
|
|
*/
|
|
|
body?: BodyInit | null;
|
|
|
/**
|
|
|
* A string indicating how the request will interact with the browser's cache to set request's cache.
|
|
|
*/
|
|
|
cache?: RequestCache;
|
|
|
/**
|
|
|
* A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
|
|
|
*/
|
|
|
credentials?: RequestCredentials;
|
|
|
/**
|
|
|
* A Headers object, an object literal, or an array of two-item arrays to set request's headers.
|
|
|
*/
|
|
|
headers?: HeadersInit;
|
|
|
/**
|
|
|
* A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
|
|
|
*/
|
|
|
integrity?: string;
|
|
|
/**
|
|
|
* A boolean to set request's keepalive.
|
|
|
*/
|
|
|
keepalive?: boolean;
|
|
|
/**
|
|
|
* A string to set request's method.
|
|
|
*/
|
|
|
method?: string;
|
|
|
/**
|
|
|
* A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
|
|
|
*/
|
|
|
mode?: RequestMode;
|
|
|
/**
|
|
|
* A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
|
|
|
*/
|
|
|
redirect?: RequestRedirect;
|
|
|
/**
|
|
|
* A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
|
|
|
*/
|
|
|
referrer?: string;
|
|
|
/**
|
|
|
* A referrer policy to set request's referrerPolicy.
|
|
|
*/
|
|
|
referrerPolicy?: ReferrerPolicy;
|
|
|
/**
|
|
|
* An AbortSignal to set request's signal.
|
|
|
*/
|
|
|
signal?: AbortSignal | null;
|
|
|
/**
|
|
|
* Can only be null. Used to disassociate request from any Window.
|
|
|
*/
|
|
|
window?: any;
|
|
|
}
|
|
|
|
|
|
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 SubmitEventInit extends EventInit {
|
|
|
submitter?: HTMLElement | null;
|
|
|
}
|
|
|
|
|
|
interface TextDecodeOptions {
|
|
|
stream?: boolean;
|
|
|
}
|
|
|
|
|
|
interface TextDecoderOptions {
|
|
|
fatal?: boolean;
|
|
|
ignoreBOM?: boolean;
|
|
|
}
|
|
|
|
|
|
interface TextEncoderEncodeIntoResult {
|
|
|
read?: number;
|
|
|
written?: number;
|
|
|
}
|
|
|
|
|
|
interface TouchEventInit extends EventModifierInit {
|
|
|
changedTouches?: Touch[];
|
|
|
targetTouches?: Touch[];
|
|
|
touches?: Touch[];
|
|
|
}
|
|
|
|
|
|
interface TouchInit {
|
|
|
altitudeAngle?: number;
|
|
|
azimuthAngle?: number;
|
|
|
clientX?: number;
|
|
|
clientY?: number;
|
|
|
force?: number;
|
|
|
identifier: number;
|
|
|
pageX?: number;
|
|
|
pageY?: number;
|
|
|
radiusX?: number;
|
|
|
radiusY?: number;
|
|
|
rotationAngle?: number;
|
|
|
screenX?: number;
|
|
|
screenY?: number;
|
|
|
target: EventTarget;
|
|
|
touchType?: TouchType;
|
|
|
}
|
|
|
|
|
|
interface TrackEventInit extends EventInit {
|
|
|
track?: TextTrack | null;
|
|
|
}
|
|
|
|
|
|
interface Transformer<I = any, O = any> {
|
|
|
flush?: TransformerFlushCallback<O>;
|
|
|
readableType?: undefined;
|
|
|
start?: TransformerStartCallback<O>;
|
|
|
transform?: TransformerTransformCallback<I, O>;
|
|
|
writableType?: undefined;
|
|
|
}
|
|
|
|
|
|
interface TransitionEventInit extends EventInit {
|
|
|
elapsedTime?: number;
|
|
|
propertyName?: string;
|
|
|
pseudoElement?: string;
|
|
|
}
|
|
|
|
|
|
interface UIEventInit extends EventInit {
|
|
|
detail?: number;
|
|
|
view?: Window | null;
|
|
|
/** @deprecated */
|
|
|
which?: number;
|
|
|
}
|
|
|
|
|
|
interface ULongRange {
|
|
|
max?: number;
|
|
|
min?: number;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSink<W = any> {
|
|
|
abort?: UnderlyingSinkAbortCallback;
|
|
|
close?: UnderlyingSinkCloseCallback;
|
|
|
start?: UnderlyingSinkStartCallback;
|
|
|
type?: undefined;
|
|
|
write?: UnderlyingSinkWriteCallback<W>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSource<R = any> {
|
|
|
cancel?: UnderlyingSourceCancelCallback;
|
|
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
|
start?: UnderlyingSourceStartCallback<R>;
|
|
|
type?: undefined;
|
|
|
}
|
|
|
|
|
|
interface VideoConfiguration {
|
|
|
bitrate: number;
|
|
|
colorGamut?: ColorGamut;
|
|
|
contentType: string;
|
|
|
framerate: number;
|
|
|
hdrMetadataType?: HdrMetadataType;
|
|
|
height: number;
|
|
|
scalabilityMode?: string;
|
|
|
transferFunction?: TransferFunction;
|
|
|
width: number;
|
|
|
}
|
|
|
|
|
|
interface WaveShaperOptions extends AudioNodeOptions {
|
|
|
curve?: number[] | Float32Array;
|
|
|
oversample?: OverSampleType;
|
|
|
}
|
|
|
|
|
|
interface WebGLContextAttributes {
|
|
|
alpha?: boolean;
|
|
|
antialias?: boolean;
|
|
|
depth?: boolean;
|
|
|
desynchronized?: boolean;
|
|
|
failIfMajorPerformanceCaveat?: boolean;
|
|
|
powerPreference?: WebGLPowerPreference;
|
|
|
premultipliedAlpha?: boolean;
|
|
|
preserveDrawingBuffer?: boolean;
|
|
|
stencil?: boolean;
|
|
|
}
|
|
|
|
|
|
interface WebGLContextEventInit extends EventInit {
|
|
|
statusMessage?: string;
|
|
|
}
|
|
|
|
|
|
interface WheelEventInit extends MouseEventInit {
|
|
|
deltaMode?: number;
|
|
|
deltaX?: number;
|
|
|
deltaY?: number;
|
|
|
deltaZ?: number;
|
|
|
}
|
|
|
|
|
|
interface WindowPostMessageOptions extends PostMessageOptions {
|
|
|
targetOrigin?: string;
|
|
|
}
|
|
|
|
|
|
interface WorkerOptions {
|
|
|
credentials?: RequestCredentials;
|
|
|
name?: string;
|
|
|
type?: WorkerType;
|
|
|
}
|
|
|
|
|
|
interface WorkletOptions {
|
|
|
credentials?: RequestCredentials;
|
|
|
}
|
|
|
|
|
|
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
|
|
|
|
|
|
declare var NodeFilter: {
|
|
|
readonly FILTER_ACCEPT: number;
|
|
|
readonly FILTER_REJECT: number;
|
|
|
readonly FILTER_SKIP: number;
|
|
|
readonly SHOW_ALL: number;
|
|
|
readonly SHOW_ATTRIBUTE: number;
|
|
|
readonly SHOW_CDATA_SECTION: number;
|
|
|
readonly SHOW_COMMENT: number;
|
|
|
readonly SHOW_DOCUMENT: number;
|
|
|
readonly SHOW_DOCUMENT_FRAGMENT: number;
|
|
|
readonly SHOW_DOCUMENT_TYPE: number;
|
|
|
readonly SHOW_ELEMENT: number;
|
|
|
readonly SHOW_ENTITY: number;
|
|
|
readonly SHOW_ENTITY_REFERENCE: number;
|
|
|
readonly SHOW_NOTATION: number;
|
|
|
readonly SHOW_PROCESSING_INSTRUCTION: number;
|
|
|
readonly SHOW_TEXT: number;
|
|
|
};
|
|
|
|
|
|
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
|
|
|
|
|
|
/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
|
|
|
interface ANGLE_instanced_arrays {
|
|
|
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
|
|
|
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
|
|
|
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
|
|
|
}
|
|
|
|
|
|
interface ARIAMixin {
|
|
|
ariaAtomic: string;
|
|
|
ariaAutoComplete: string;
|
|
|
ariaBusy: string;
|
|
|
ariaChecked: string;
|
|
|
ariaColCount: string;
|
|
|
ariaColIndex: string;
|
|
|
ariaColSpan: string;
|
|
|
ariaCurrent: string;
|
|
|
ariaDisabled: string;
|
|
|
ariaExpanded: string;
|
|
|
ariaHasPopup: string;
|
|
|
ariaHidden: string;
|
|
|
ariaKeyShortcuts: string;
|
|
|
ariaLabel: string;
|
|
|
ariaLevel: string;
|
|
|
ariaLive: string;
|
|
|
ariaModal: string;
|
|
|
ariaMultiLine: string;
|
|
|
ariaMultiSelectable: string;
|
|
|
ariaOrientation: string;
|
|
|
ariaPlaceholder: string;
|
|
|
ariaPosInSet: string;
|
|
|
ariaPressed: string;
|
|
|
ariaReadOnly: string;
|
|
|
ariaRequired: string;
|
|
|
ariaRoleDescription: string;
|
|
|
ariaRowCount: string;
|
|
|
ariaRowIndex: string;
|
|
|
ariaRowSpan: string;
|
|
|
ariaSelected: string;
|
|
|
ariaSetSize: string;
|
|
|
ariaSort: string;
|
|
|
ariaValueMax: string;
|
|
|
ariaValueMin: string;
|
|
|
ariaValueNow: string;
|
|
|
ariaValueText: string;
|
|
|
}
|
|
|
|
|
|
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
|
interface AbortController {
|
|
|
/**
|
|
|
* Returns the AbortSignal object associated with this object.
|
|
|
*/
|
|
|
readonly signal: AbortSignal;
|
|
|
/**
|
|
|
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
}
|
|
|
|
|
|
declare var AbortController: {
|
|
|
prototype: AbortController;
|
|
|
new(): AbortController;
|
|
|
};
|
|
|
|
|
|
interface AbortSignalEventMap {
|
|
|
"abort": Event;
|
|
|
}
|
|
|
|
|
|
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
|
interface AbortSignal extends EventTarget {
|
|
|
/**
|
|
|
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
|
*/
|
|
|
readonly aborted: boolean;
|
|
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
|
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;
|
|
|
};
|
|
|
|
|
|
interface AbstractRange {
|
|
|
/**
|
|
|
* Returns true if range is collapsed, and false otherwise.
|
|
|
*/
|
|
|
readonly collapsed: boolean;
|
|
|
/**
|
|
|
* Returns range's end node.
|
|
|
*/
|
|
|
readonly endContainer: Node;
|
|
|
/**
|
|
|
* Returns range's end offset.
|
|
|
*/
|
|
|
readonly endOffset: number;
|
|
|
/**
|
|
|
* Returns range's start node.
|
|
|
*/
|
|
|
readonly startContainer: Node;
|
|
|
/**
|
|
|
* Returns range's start offset.
|
|
|
*/
|
|
|
readonly startOffset: number;
|
|
|
}
|
|
|
|
|
|
declare var AbstractRange: {
|
|
|
prototype: AbstractRange;
|
|
|
new(): AbstractRange;
|
|
|
};
|
|
|
|
|
|
interface AbstractWorkerEventMap {
|
|
|
"error": ErrorEvent;
|
|
|
}
|
|
|
|
|
|
interface AbstractWorker {
|
|
|
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
|
|
|
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
|
|
|
interface AnalyserNode extends AudioNode {
|
|
|
fftSize: number;
|
|
|
readonly frequencyBinCount: number;
|
|
|
maxDecibels: number;
|
|
|
minDecibels: number;
|
|
|
smoothingTimeConstant: number;
|
|
|
getByteFrequencyData(array: Uint8Array): void;
|
|
|
getByteTimeDomainData(array: Uint8Array): void;
|
|
|
getFloatFrequencyData(array: Float32Array): void;
|
|
|
getFloatTimeDomainData(array: Float32Array): void;
|
|
|
}
|
|
|
|
|
|
declare var AnalyserNode: {
|
|
|
prototype: AnalyserNode;
|
|
|
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
|
|
|
};
|
|
|
|
|
|
interface Animatable {
|
|
|
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
|
}
|
|
|
|
|
|
interface AnimationEventMap {
|
|
|
"cancel": AnimationPlaybackEvent;
|
|
|
"finish": AnimationPlaybackEvent;
|
|
|
"remove": Event;
|
|
|
}
|
|
|
|
|
|
interface Animation extends EventTarget {
|
|
|
currentTime: number | null;
|
|
|
effect: AnimationEffect | null;
|
|
|
readonly finished: Promise<Animation>;
|
|
|
id: string;
|
|
|
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
|
|
|
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
|
|
|
onremove: ((this: Animation, ev: Event) => any) | null;
|
|
|
readonly pending: boolean;
|
|
|
readonly playState: AnimationPlayState;
|
|
|
playbackRate: number;
|
|
|
readonly ready: Promise<Animation>;
|
|
|
readonly replaceState: AnimationReplaceState;
|
|
|
startTime: number | null;
|
|
|
timeline: AnimationTimeline | null;
|
|
|
cancel(): void;
|
|
|
commitStyles(): void;
|
|
|
finish(): void;
|
|
|
pause(): void;
|
|
|
persist(): void;
|
|
|
play(): void;
|
|
|
reverse(): void;
|
|
|
updatePlaybackRate(playbackRate: number): void;
|
|
|
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Animation: {
|
|
|
prototype: Animation;
|
|
|
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
|
|
|
};
|
|
|
|
|
|
interface AnimationEffect {
|
|
|
getComputedTiming(): ComputedEffectTiming;
|
|
|
getTiming(): EffectTiming;
|
|
|
updateTiming(timing?: OptionalEffectTiming): void;
|
|
|
}
|
|
|
|
|
|
declare var AnimationEffect: {
|
|
|
prototype: AnimationEffect;
|
|
|
new(): AnimationEffect;
|
|
|
};
|
|
|
|
|
|
/** Events providing information related to animations. */
|
|
|
interface AnimationEvent extends Event {
|
|
|
readonly animationName: string;
|
|
|
readonly elapsedTime: number;
|
|
|
readonly pseudoElement: string;
|
|
|
}
|
|
|
|
|
|
declare var AnimationEvent: {
|
|
|
prototype: AnimationEvent;
|
|
|
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
|
|
|
};
|
|
|
|
|
|
interface AnimationFrameProvider {
|
|
|
cancelAnimationFrame(handle: number): void;
|
|
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
}
|
|
|
|
|
|
interface AnimationPlaybackEvent extends Event {
|
|
|
readonly currentTime: number | null;
|
|
|
readonly timelineTime: number | null;
|
|
|
}
|
|
|
|
|
|
declare var AnimationPlaybackEvent: {
|
|
|
prototype: AnimationPlaybackEvent;
|
|
|
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
|
|
|
};
|
|
|
|
|
|
interface AnimationTimeline {
|
|
|
readonly currentTime: number | null;
|
|
|
}
|
|
|
|
|
|
declare var AnimationTimeline: {
|
|
|
prototype: AnimationTimeline;
|
|
|
new(): AnimationTimeline;
|
|
|
};
|
|
|
|
|
|
/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
|
|
|
interface Attr extends Node {
|
|
|
readonly localName: string;
|
|
|
readonly name: string;
|
|
|
readonly namespaceURI: string | null;
|
|
|
readonly ownerDocument: Document;
|
|
|
readonly ownerElement: Element | null;
|
|
|
readonly prefix: string | null;
|
|
|
readonly specified: boolean;
|
|
|
value: string;
|
|
|
}
|
|
|
|
|
|
declare var Attr: {
|
|
|
prototype: Attr;
|
|
|
new(): Attr;
|
|
|
};
|
|
|
|
|
|
/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */
|
|
|
interface AudioBuffer {
|
|
|
readonly duration: number;
|
|
|
readonly length: number;
|
|
|
readonly numberOfChannels: number;
|
|
|
readonly sampleRate: number;
|
|
|
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
|
|
|
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
|
|
|
getChannelData(channel: number): Float32Array;
|
|
|
}
|
|
|
|
|
|
declare var AudioBuffer: {
|
|
|
prototype: AudioBuffer;
|
|
|
new(options: AudioBufferOptions): AudioBuffer;
|
|
|
};
|
|
|
|
|
|
/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
|
|
|
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
|
|
|
buffer: AudioBuffer | null;
|
|
|
readonly detune: AudioParam;
|
|
|
loop: boolean;
|
|
|
loopEnd: number;
|
|
|
loopStart: number;
|
|
|
readonly playbackRate: AudioParam;
|
|
|
start(when?: number, offset?: number, duration?: number): void;
|
|
|
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioBufferSourceNode: {
|
|
|
prototype: AudioBufferSourceNode;
|
|
|
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
|
|
|
};
|
|
|
|
|
|
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
|
|
|
interface AudioContext extends BaseAudioContext {
|
|
|
readonly baseLatency: number;
|
|
|
close(): Promise<void>;
|
|
|
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
|
|
|
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
|
|
|
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
|
|
|
getOutputTimestamp(): AudioTimestamp;
|
|
|
resume(): Promise<void>;
|
|
|
suspend(): Promise<void>;
|
|
|
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioContext: {
|
|
|
prototype: AudioContext;
|
|
|
new(contextOptions?: AudioContextOptions): AudioContext;
|
|
|
};
|
|
|
|
|
|
/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */
|
|
|
interface AudioDestinationNode extends AudioNode {
|
|
|
readonly maxChannelCount: number;
|
|
|
}
|
|
|
|
|
|
declare var AudioDestinationNode: {
|
|
|
prototype: AudioDestinationNode;
|
|
|
new(): AudioDestinationNode;
|
|
|
};
|
|
|
|
|
|
/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */
|
|
|
interface AudioListener {
|
|
|
readonly forwardX: AudioParam;
|
|
|
readonly forwardY: AudioParam;
|
|
|
readonly forwardZ: AudioParam;
|
|
|
readonly positionX: AudioParam;
|
|
|
readonly positionY: AudioParam;
|
|
|
readonly positionZ: AudioParam;
|
|
|
readonly upX: AudioParam;
|
|
|
readonly upY: AudioParam;
|
|
|
readonly upZ: AudioParam;
|
|
|
/** @deprecated */
|
|
|
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
|
|
|
/** @deprecated */
|
|
|
setPosition(x: number, y: number, z: number): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioListener: {
|
|
|
prototype: AudioListener;
|
|
|
new(): AudioListener;
|
|
|
};
|
|
|
|
|
|
/** A generic interface for representing an audio processing module. Examples include: */
|
|
|
interface AudioNode extends EventTarget {
|
|
|
channelCount: number;
|
|
|
channelCountMode: ChannelCountMode;
|
|
|
channelInterpretation: ChannelInterpretation;
|
|
|
readonly context: BaseAudioContext;
|
|
|
readonly numberOfInputs: number;
|
|
|
readonly numberOfOutputs: number;
|
|
|
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
|
|
|
connect(destinationParam: AudioParam, output?: number): void;
|
|
|
disconnect(): void;
|
|
|
disconnect(output: number): void;
|
|
|
disconnect(destinationNode: AudioNode): void;
|
|
|
disconnect(destinationNode: AudioNode, output: number): void;
|
|
|
disconnect(destinationNode: AudioNode, output: number, input: number): void;
|
|
|
disconnect(destinationParam: AudioParam): void;
|
|
|
disconnect(destinationParam: AudioParam, output: number): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioNode: {
|
|
|
prototype: AudioNode;
|
|
|
new(): AudioNode;
|
|
|
};
|
|
|
|
|
|
/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
|
|
|
interface AudioParam {
|
|
|
automationRate: AutomationRate;
|
|
|
readonly defaultValue: number;
|
|
|
readonly maxValue: number;
|
|
|
readonly minValue: number;
|
|
|
value: number;
|
|
|
cancelAndHoldAtTime(cancelTime: number): AudioParam;
|
|
|
cancelScheduledValues(cancelTime: number): AudioParam;
|
|
|
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
|
|
|
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
|
|
|
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
|
|
|
setValueAtTime(value: number, startTime: number): AudioParam;
|
|
|
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
|
|
|
}
|
|
|
|
|
|
declare var AudioParam: {
|
|
|
prototype: AudioParam;
|
|
|
new(): AudioParam;
|
|
|
};
|
|
|
|
|
|
interface AudioParamMap {
|
|
|
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioParamMap: {
|
|
|
prototype: AudioParamMap;
|
|
|
new(): AudioParamMap;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
|
|
|
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
|
|
|
*/
|
|
|
interface AudioProcessingEvent extends Event {
|
|
|
/** @deprecated */
|
|
|
readonly inputBuffer: AudioBuffer;
|
|
|
/** @deprecated */
|
|
|
readonly outputBuffer: AudioBuffer;
|
|
|
/** @deprecated */
|
|
|
readonly playbackTime: number;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var AudioProcessingEvent: {
|
|
|
prototype: AudioProcessingEvent;
|
|
|
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
|
|
|
};
|
|
|
|
|
|
interface AudioScheduledSourceNodeEventMap {
|
|
|
"ended": Event;
|
|
|
}
|
|
|
|
|
|
interface AudioScheduledSourceNode extends AudioNode {
|
|
|
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
|
|
|
start(when?: number): void;
|
|
|
stop(when?: number): void;
|
|
|
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioScheduledSourceNode: {
|
|
|
prototype: AudioScheduledSourceNode;
|
|
|
new(): AudioScheduledSourceNode;
|
|
|
};
|
|
|
|
|
|
interface AudioWorklet extends Worklet {
|
|
|
}
|
|
|
|
|
|
declare var AudioWorklet: {
|
|
|
prototype: AudioWorklet;
|
|
|
new(): AudioWorklet;
|
|
|
};
|
|
|
|
|
|
interface AudioWorkletNodeEventMap {
|
|
|
"processorerror": Event;
|
|
|
}
|
|
|
|
|
|
interface AudioWorkletNode extends AudioNode {
|
|
|
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
|
|
|
readonly parameters: AudioParamMap;
|
|
|
readonly port: MessagePort;
|
|
|
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioWorkletNode: {
|
|
|
prototype: AudioWorkletNode;
|
|
|
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
|
|
|
};
|
|
|
|
|
|
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
|
|
|
readonly authenticatorData: ArrayBuffer;
|
|
|
readonly signature: ArrayBuffer;
|
|
|
readonly userHandle: ArrayBuffer | null;
|
|
|
}
|
|
|
|
|
|
declare var AuthenticatorAssertionResponse: {
|
|
|
prototype: AuthenticatorAssertionResponse;
|
|
|
new(): AuthenticatorAssertionResponse;
|
|
|
};
|
|
|
|
|
|
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
|
|
|
readonly attestationObject: ArrayBuffer;
|
|
|
}
|
|
|
|
|
|
declare var AuthenticatorAttestationResponse: {
|
|
|
prototype: AuthenticatorAttestationResponse;
|
|
|
new(): AuthenticatorAttestationResponse;
|
|
|
};
|
|
|
|
|
|
interface AuthenticatorResponse {
|
|
|
readonly clientDataJSON: ArrayBuffer;
|
|
|
}
|
|
|
|
|
|
declare var AuthenticatorResponse: {
|
|
|
prototype: AuthenticatorResponse;
|
|
|
new(): AuthenticatorResponse;
|
|
|
};
|
|
|
|
|
|
interface BarProp {
|
|
|
readonly visible: boolean;
|
|
|
}
|
|
|
|
|
|
declare var BarProp: {
|
|
|
prototype: BarProp;
|
|
|
new(): BarProp;
|
|
|
};
|
|
|
|
|
|
interface BaseAudioContextEventMap {
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
interface BaseAudioContext extends EventTarget {
|
|
|
readonly audioWorklet: AudioWorklet;
|
|
|
readonly currentTime: number;
|
|
|
readonly destination: AudioDestinationNode;
|
|
|
readonly listener: AudioListener;
|
|
|
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
|
|
|
readonly sampleRate: number;
|
|
|
readonly state: AudioContextState;
|
|
|
createAnalyser(): AnalyserNode;
|
|
|
createBiquadFilter(): BiquadFilterNode;
|
|
|
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
|
|
|
createBufferSource(): AudioBufferSourceNode;
|
|
|
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
|
|
|
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
|
|
|
createConstantSource(): ConstantSourceNode;
|
|
|
createConvolver(): ConvolverNode;
|
|
|
createDelay(maxDelayTime?: number): DelayNode;
|
|
|
createDynamicsCompressor(): DynamicsCompressorNode;
|
|
|
createGain(): GainNode;
|
|
|
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
|
|
|
createOscillator(): OscillatorNode;
|
|
|
createPanner(): PannerNode;
|
|
|
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
|
/** @deprecated */
|
|
|
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
|
|
|
createStereoPanner(): StereoPannerNode;
|
|
|
createWaveShaper(): WaveShaperNode;
|
|
|
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
|
|
|
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var BaseAudioContext: {
|
|
|
prototype: BaseAudioContext;
|
|
|
new(): BaseAudioContext;
|
|
|
};
|
|
|
|
|
|
/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
|
|
|
interface BeforeUnloadEvent extends Event {
|
|
|
returnValue: any;
|
|
|
}
|
|
|
|
|
|
declare var BeforeUnloadEvent: {
|
|
|
prototype: BeforeUnloadEvent;
|
|
|
new(): BeforeUnloadEvent;
|
|
|
};
|
|
|
|
|
|
/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
|
|
|
interface BiquadFilterNode extends AudioNode {
|
|
|
readonly Q: AudioParam;
|
|
|
readonly detune: AudioParam;
|
|
|
readonly frequency: AudioParam;
|
|
|
readonly gain: AudioParam;
|
|
|
type: BiquadFilterType;
|
|
|
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
|
|
|
}
|
|
|
|
|
|
declare var BiquadFilterNode: {
|
|
|
prototype: BiquadFilterNode;
|
|
|
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
|
|
|
};
|
|
|
|
|
|
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
|
|
|
interface Blob {
|
|
|
readonly size: number;
|
|
|
readonly type: string;
|
|
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
|
stream(): ReadableStream;
|
|
|
text(): Promise<string>;
|
|
|
}
|
|
|
|
|
|
declare var Blob: {
|
|
|
prototype: Blob;
|
|
|
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
|
};
|
|
|
|
|
|
interface BlobEvent extends Event {
|
|
|
readonly data: Blob;
|
|
|
readonly timecode: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
declare var BlobEvent: {
|
|
|
prototype: BlobEvent;
|
|
|
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
|
|
|
};
|
|
|
|
|
|
interface Body {
|
|
|
readonly body: ReadableStream<Uint8Array> | null;
|
|
|
readonly bodyUsed: boolean;
|
|
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
|
blob(): Promise<Blob>;
|
|
|
formData(): Promise<FormData>;
|
|
|
json(): Promise<any>;
|
|
|
text(): Promise<string>;
|
|
|
}
|
|
|
|
|
|
interface BroadcastChannelEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
interface BroadcastChannel extends EventTarget {
|
|
|
/**
|
|
|
* Returns the channel name (as passed to the constructor).
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Closes the BroadcastChannel object, opening it up to garbage collection.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
|
|
|
*/
|
|
|
postMessage(message: any): void;
|
|
|
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var BroadcastChannel: {
|
|
|
prototype: BroadcastChannel;
|
|
|
new(name: string): BroadcastChannel;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
|
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
|
readonly highWaterMark: number;
|
|
|
readonly size: QueuingStrategySize<ArrayBufferView>;
|
|
|
}
|
|
|
|
|
|
declare var ByteLengthQueuingStrategy: {
|
|
|
prototype: ByteLengthQueuingStrategy;
|
|
|
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
|
};
|
|
|
|
|
|
/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. */
|
|
|
interface CDATASection extends Text {
|
|
|
}
|
|
|
|
|
|
declare var CDATASection: {
|
|
|
prototype: CDATASection;
|
|
|
new(): CDATASection;
|
|
|
};
|
|
|
|
|
|
interface CSSAnimation extends Animation {
|
|
|
readonly animationName: string;
|
|
|
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var CSSAnimation: {
|
|
|
prototype: CSSAnimation;
|
|
|
new(): CSSAnimation;
|
|
|
};
|
|
|
|
|
|
/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
|
|
|
interface CSSConditionRule extends CSSGroupingRule {
|
|
|
conditionText: string;
|
|
|
}
|
|
|
|
|
|
declare var CSSConditionRule: {
|
|
|
prototype: CSSConditionRule;
|
|
|
new(): CSSConditionRule;
|
|
|
};
|
|
|
|
|
|
interface CSSCounterStyleRule extends CSSRule {
|
|
|
additiveSymbols: string;
|
|
|
fallback: string;
|
|
|
name: string;
|
|
|
negative: string;
|
|
|
pad: string;
|
|
|
prefix: string;
|
|
|
range: string;
|
|
|
speakAs: string;
|
|
|
suffix: string;
|
|
|
symbols: string;
|
|
|
system: string;
|
|
|
}
|
|
|
|
|
|
declare var CSSCounterStyleRule: {
|
|
|
prototype: CSSCounterStyleRule;
|
|
|
new(): CSSCounterStyleRule;
|
|
|
};
|
|
|
|
|
|
interface CSSFontFaceRule extends CSSRule {
|
|
|
readonly style: CSSStyleDeclaration;
|
|
|
}
|
|
|
|
|
|
declare var CSSFontFaceRule: {
|
|
|
prototype: CSSFontFaceRule;
|
|
|
new(): CSSFontFaceRule;
|
|
|
};
|
|
|
|
|
|
/** Any CSS at-rule that contains other rules nested within it. */
|
|
|
interface CSSGroupingRule extends CSSRule {
|
|
|
readonly cssRules: CSSRuleList;
|
|
|
deleteRule(index: number): void;
|
|
|
insertRule(rule: string, index?: number): number;
|
|
|
}
|
|
|
|
|
|
declare var CSSGroupingRule: {
|
|
|
prototype: CSSGroupingRule;
|
|
|
new(): CSSGroupingRule;
|
|
|
};
|
|
|
|
|
|
interface CSSImportRule extends CSSRule {
|
|
|
readonly href: string;
|
|
|
readonly media: MediaList;
|
|
|
readonly styleSheet: CSSStyleSheet;
|
|
|
}
|
|
|
|
|
|
declare var CSSImportRule: {
|
|
|
prototype: CSSImportRule;
|
|
|
new(): CSSImportRule;
|
|
|
};
|
|
|
|
|
|
/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */
|
|
|
interface CSSKeyframeRule extends CSSRule {
|
|
|
keyText: string;
|
|
|
readonly style: CSSStyleDeclaration;
|
|
|
}
|
|
|
|
|
|
declare var CSSKeyframeRule: {
|
|
|
prototype: CSSKeyframeRule;
|
|
|
new(): CSSKeyframeRule;
|
|
|
};
|
|
|
|
|
|
/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */
|
|
|
interface CSSKeyframesRule extends CSSRule {
|
|
|
readonly cssRules: CSSRuleList;
|
|
|
name: string;
|
|
|
appendRule(rule: string): void;
|
|
|
deleteRule(select: string): void;
|
|
|
findRule(select: string): CSSKeyframeRule | null;
|
|
|
}
|
|
|
|
|
|
declare var CSSKeyframesRule: {
|
|
|
prototype: CSSKeyframesRule;
|
|
|
new(): CSSKeyframesRule;
|
|
|
};
|
|
|
|
|
|
/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
|
|
|
interface CSSMediaRule extends CSSConditionRule {
|
|
|
readonly media: MediaList;
|
|
|
}
|
|
|
|
|
|
declare var CSSMediaRule: {
|
|
|
prototype: CSSMediaRule;
|
|
|
new(): CSSMediaRule;
|
|
|
};
|
|
|
|
|
|
/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
|
|
|
interface CSSNamespaceRule extends CSSRule {
|
|
|
readonly namespaceURI: string;
|
|
|
readonly prefix: string;
|
|
|
}
|
|
|
|
|
|
declare var CSSNamespaceRule: {
|
|
|
prototype: CSSNamespaceRule;
|
|
|
new(): CSSNamespaceRule;
|
|
|
};
|
|
|
|
|
|
/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
|
|
|
interface CSSPageRule extends CSSGroupingRule {
|
|
|
selectorText: string;
|
|
|
readonly style: CSSStyleDeclaration;
|
|
|
}
|
|
|
|
|
|
declare var CSSPageRule: {
|
|
|
prototype: CSSPageRule;
|
|
|
new(): CSSPageRule;
|
|
|
};
|
|
|
|
|
|
/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
|
|
|
interface CSSRule {
|
|
|
cssText: string;
|
|
|
readonly parentRule: CSSRule | null;
|
|
|
readonly parentStyleSheet: CSSStyleSheet | null;
|
|
|
/** @deprecated */
|
|
|
readonly type: number;
|
|
|
readonly CHARSET_RULE: number;
|
|
|
readonly FONT_FACE_RULE: number;
|
|
|
readonly IMPORT_RULE: number;
|
|
|
readonly KEYFRAMES_RULE: number;
|
|
|
readonly KEYFRAME_RULE: number;
|
|
|
readonly MEDIA_RULE: number;
|
|
|
readonly NAMESPACE_RULE: number;
|
|
|
readonly PAGE_RULE: number;
|
|
|
readonly STYLE_RULE: number;
|
|
|
readonly SUPPORTS_RULE: number;
|
|
|
}
|
|
|
|
|
|
declare var CSSRule: {
|
|
|
prototype: CSSRule;
|
|
|
new(): CSSRule;
|
|
|
readonly CHARSET_RULE: number;
|
|
|
readonly FONT_FACE_RULE: number;
|
|
|
readonly IMPORT_RULE: number;
|
|
|
readonly KEYFRAMES_RULE: number;
|
|
|
readonly KEYFRAME_RULE: number;
|
|
|
readonly MEDIA_RULE: number;
|
|
|
readonly NAMESPACE_RULE: number;
|
|
|
readonly PAGE_RULE: number;
|
|
|
readonly STYLE_RULE: number;
|
|
|
readonly SUPPORTS_RULE: number;
|
|
|
};
|
|
|
|
|
|
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
|
|
|
interface CSSRuleList {
|
|
|
readonly length: number;
|
|
|
item(index: number): CSSRule | null;
|
|
|
[index: number]: CSSRule;
|
|
|
}
|
|
|
|
|
|
declare var CSSRuleList: {
|
|
|
prototype: CSSRuleList;
|
|
|
new(): CSSRuleList;
|
|
|
};
|
|
|
|
|
|
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
|
|
|
interface CSSStyleDeclaration {
|
|
|
alignContent: string;
|
|
|
alignItems: string;
|
|
|
alignSelf: string;
|
|
|
alignmentBaseline: string;
|
|
|
all: string;
|
|
|
animation: string;
|
|
|
animationDelay: string;
|
|
|
animationDirection: string;
|
|
|
animationDuration: string;
|
|
|
animationFillMode: string;
|
|
|
animationIterationCount: string;
|
|
|
animationName: string;
|
|
|
animationPlayState: string;
|
|
|
animationTimingFunction: string;
|
|
|
appearance: string;
|
|
|
aspectRatio: string;
|
|
|
backfaceVisibility: string;
|
|
|
background: string;
|
|
|
backgroundAttachment: string;
|
|
|
backgroundBlendMode: string;
|
|
|
backgroundClip: string;
|
|
|
backgroundColor: string;
|
|
|
backgroundImage: string;
|
|
|
backgroundOrigin: string;
|
|
|
backgroundPosition: string;
|
|
|
backgroundPositionX: string;
|
|
|
backgroundPositionY: string;
|
|
|
backgroundRepeat: string;
|
|
|
backgroundSize: string;
|
|
|
baselineShift: string;
|
|
|
blockSize: string;
|
|
|
border: string;
|
|
|
borderBlock: string;
|
|
|
borderBlockColor: string;
|
|
|
borderBlockEnd: string;
|
|
|
borderBlockEndColor: string;
|
|
|
borderBlockEndStyle: string;
|
|
|
borderBlockEndWidth: string;
|
|
|
borderBlockStart: string;
|
|
|
borderBlockStartColor: string;
|
|
|
borderBlockStartStyle: string;
|
|
|
borderBlockStartWidth: string;
|
|
|
borderBlockStyle: string;
|
|
|
borderBlockWidth: string;
|
|
|
borderBottom: string;
|
|
|
borderBottomColor: string;
|
|
|
borderBottomLeftRadius: string;
|
|
|
borderBottomRightRadius: string;
|
|
|
borderBottomStyle: string;
|
|
|
borderBottomWidth: string;
|
|
|
borderCollapse: string;
|
|
|
borderColor: string;
|
|
|
borderEndEndRadius: string;
|
|
|
borderEndStartRadius: string;
|
|
|
borderImage: string;
|
|
|
borderImageOutset: string;
|
|
|
borderImageRepeat: string;
|
|
|
borderImageSlice: string;
|
|
|
borderImageSource: string;
|
|
|
borderImageWidth: string;
|
|
|
borderInline: string;
|
|
|
borderInlineColor: string;
|
|
|
borderInlineEnd: string;
|
|
|
borderInlineEndColor: string;
|
|
|
borderInlineEndStyle: string;
|
|
|
borderInlineEndWidth: string;
|
|
|
borderInlineStart: string;
|
|
|
borderInlineStartColor: string;
|
|
|
borderInlineStartStyle: string;
|
|
|
borderInlineStartWidth: string;
|
|
|
borderInlineStyle: string;
|
|
|
borderInlineWidth: string;
|
|
|
borderLeft: string;
|
|
|
borderLeftColor: string;
|
|
|
borderLeftStyle: string;
|
|
|
borderLeftWidth: string;
|
|
|
borderRadius: string;
|
|
|
borderRight: string;
|
|
|
borderRightColor: string;
|
|
|
borderRightStyle: string;
|
|
|
borderRightWidth: string;
|
|
|
borderSpacing: string;
|
|
|
borderStartEndRadius: string;
|
|
|
borderStartStartRadius: string;
|
|
|
borderStyle: string;
|
|
|
borderTop: string;
|
|
|
borderTopColor: string;
|
|
|
borderTopLeftRadius: string;
|
|
|
borderTopRightRadius: string;
|
|
|
borderTopStyle: string;
|
|
|
borderTopWidth: string;
|
|
|
borderWidth: string;
|
|
|
bottom: string;
|
|
|
boxShadow: string;
|
|
|
boxSizing: string;
|
|
|
breakAfter: string;
|
|
|
breakBefore: string;
|
|
|
breakInside: string;
|
|
|
captionSide: string;
|
|
|
caretColor: string;
|
|
|
clear: string;
|
|
|
/** @deprecated */
|
|
|
clip: string;
|
|
|
clipPath: string;
|
|
|
clipRule: string;
|
|
|
color: string;
|
|
|
colorInterpolation: string;
|
|
|
colorInterpolationFilters: string;
|
|
|
colorScheme: string;
|
|
|
columnCount: string;
|
|
|
columnFill: string;
|
|
|
columnGap: string;
|
|
|
columnRule: string;
|
|
|
columnRuleColor: string;
|
|
|
columnRuleStyle: string;
|
|
|
columnRuleWidth: string;
|
|
|
columnSpan: string;
|
|
|
columnWidth: string;
|
|
|
columns: string;
|
|
|
contain: string;
|
|
|
content: string;
|
|
|
counterIncrement: string;
|
|
|
counterReset: string;
|
|
|
counterSet: string;
|
|
|
cssFloat: string;
|
|
|
cssText: string;
|
|
|
cursor: string;
|
|
|
direction: string;
|
|
|
display: string;
|
|
|
dominantBaseline: string;
|
|
|
emptyCells: string;
|
|
|
fill: string;
|
|
|
fillOpacity: string;
|
|
|
fillRule: string;
|
|
|
filter: string;
|
|
|
flex: string;
|
|
|
flexBasis: string;
|
|
|
flexDirection: string;
|
|
|
flexFlow: string;
|
|
|
flexGrow: string;
|
|
|
flexShrink: string;
|
|
|
flexWrap: string;
|
|
|
float: string;
|
|
|
floodColor: string;
|
|
|
floodOpacity: string;
|
|
|
font: string;
|
|
|
fontFamily: string;
|
|
|
fontFeatureSettings: string;
|
|
|
fontKerning: string;
|
|
|
fontOpticalSizing: string;
|
|
|
fontSize: string;
|
|
|
fontSizeAdjust: string;
|
|
|
fontStretch: string;
|
|
|
fontStyle: string;
|
|
|
fontSynthesis: string;
|
|
|
fontVariant: string;
|
|
|
/** @deprecated */
|
|
|
fontVariantAlternates: string;
|
|
|
fontVariantCaps: string;
|
|
|
fontVariantEastAsian: string;
|
|
|
fontVariantLigatures: string;
|
|
|
fontVariantNumeric: string;
|
|
|
fontVariantPosition: string;
|
|
|
fontVariationSettings: string;
|
|
|
fontWeight: string;
|
|
|
gap: string;
|
|
|
grid: string;
|
|
|
gridArea: string;
|
|
|
gridAutoColumns: string;
|
|
|
gridAutoFlow: string;
|
|
|
gridAutoRows: string;
|
|
|
gridColumn: string;
|
|
|
gridColumnEnd: string;
|
|
|
gridColumnGap: string;
|
|
|
gridColumnStart: string;
|
|
|
gridGap: string;
|
|
|
gridRow: string;
|
|
|
gridRowEnd: string;
|
|
|
gridRowGap: string;
|
|
|
gridRowStart: string;
|
|
|
gridTemplate: string;
|
|
|
gridTemplateAreas: string;
|
|
|
gridTemplateColumns: string;
|
|
|
gridTemplateRows: string;
|
|
|
height: string;
|
|
|
hyphens: string;
|
|
|
/** @deprecated */
|
|
|
imageOrientation: string;
|
|
|
imageRendering: string;
|
|
|
inlineSize: string;
|
|
|
inset: string;
|
|
|
insetBlock: string;
|
|
|
insetBlockEnd: string;
|
|
|
insetBlockStart: string;
|
|
|
insetInline: string;
|
|
|
insetInlineEnd: string;
|
|
|
insetInlineStart: string;
|
|
|
isolation: string;
|
|
|
justifyContent: string;
|
|
|
justifyItems: string;
|
|
|
justifySelf: string;
|
|
|
left: string;
|
|
|
readonly length: number;
|
|
|
letterSpacing: string;
|
|
|
lightingColor: string;
|
|
|
lineBreak: string;
|
|
|
lineHeight: string;
|
|
|
listStyle: string;
|
|
|
listStyleImage: string;
|
|
|
listStylePosition: string;
|
|
|
listStyleType: string;
|
|
|
margin: string;
|
|
|
marginBlock: string;
|
|
|
marginBlockEnd: string;
|
|
|
marginBlockStart: string;
|
|
|
marginBottom: string;
|
|
|
marginInline: string;
|
|
|
marginInlineEnd: string;
|
|
|
marginInlineStart: string;
|
|
|
marginLeft: string;
|
|
|
marginRight: string;
|
|
|
marginTop: string;
|
|
|
marker: string;
|
|
|
markerEnd: string;
|
|
|
markerMid: string;
|
|
|
markerStart: string;
|
|
|
mask: string;
|
|
|
maskType: string;
|
|
|
maxBlockSize: string;
|
|
|
maxHeight: string;
|
|
|
maxInlineSize: string;
|
|
|
maxWidth: string;
|
|
|
minBlockSize: string;
|
|
|
minHeight: string;
|
|
|
minInlineSize: string;
|
|
|
minWidth: string;
|
|
|
mixBlendMode: string;
|
|
|
objectFit: string;
|
|
|
objectPosition: string;
|
|
|
offset: string;
|
|
|
offsetAnchor: string;
|
|
|
offsetDistance: string;
|
|
|
offsetPath: string;
|
|
|
offsetRotate: string;
|
|
|
opacity: string;
|
|
|
order: string;
|
|
|
orphans: string;
|
|
|
outline: string;
|
|
|
outlineColor: string;
|
|
|
outlineOffset: string;
|
|
|
outlineStyle: string;
|
|
|
outlineWidth: string;
|
|
|
overflow: string;
|
|
|
overflowAnchor: string;
|
|
|
overflowWrap: string;
|
|
|
overflowX: string;
|
|
|
overflowY: string;
|
|
|
overscrollBehavior: string;
|
|
|
overscrollBehaviorBlock: string;
|
|
|
overscrollBehaviorInline: string;
|
|
|
overscrollBehaviorX: string;
|
|
|
overscrollBehaviorY: string;
|
|
|
padding: string;
|
|
|
paddingBlock: string;
|
|
|
paddingBlockEnd: string;
|
|
|
paddingBlockStart: string;
|
|
|
paddingBottom: string;
|
|
|
paddingInline: string;
|
|
|
paddingInlineEnd: string;
|
|
|
paddingInlineStart: string;
|
|
|
paddingLeft: string;
|
|
|
paddingRight: string;
|
|
|
paddingTop: string;
|
|
|
pageBreakAfter: string;
|
|
|
pageBreakBefore: string;
|
|
|
pageBreakInside: string;
|
|
|
paintOrder: string;
|
|
|
readonly parentRule: CSSRule | null;
|
|
|
perspective: string;
|
|
|
perspectiveOrigin: string;
|
|
|
placeContent: string;
|
|
|
placeItems: string;
|
|
|
placeSelf: string;
|
|
|
pointerEvents: string;
|
|
|
position: string;
|
|
|
quotes: string;
|
|
|
resize: string;
|
|
|
right: string;
|
|
|
rotate: string;
|
|
|
rowGap: string;
|
|
|
rubyPosition: string;
|
|
|
scale: string;
|
|
|
scrollBehavior: string;
|
|
|
scrollMargin: string;
|
|
|
scrollMarginBlock: string;
|
|
|
scrollMarginBlockEnd: string;
|
|
|
scrollMarginBlockStart: string;
|
|
|
scrollMarginBottom: string;
|
|
|
scrollMarginInline: string;
|
|
|
scrollMarginInlineEnd: string;
|
|
|
scrollMarginInlineStart: string;
|
|
|
scrollMarginLeft: string;
|
|
|
scrollMarginRight: string;
|
|
|
scrollMarginTop: string;
|
|
|
scrollPadding: string;
|
|
|
scrollPaddingBlock: string;
|
|
|
scrollPaddingBlockEnd: string;
|
|
|
scrollPaddingBlockStart: string;
|
|
|
scrollPaddingBottom: string;
|
|
|
scrollPaddingInline: string;
|
|
|
scrollPaddingInlineEnd: string;
|
|
|
scrollPaddingInlineStart: string;
|
|
|
scrollPaddingLeft: string;
|
|
|
scrollPaddingRight: string;
|
|
|
scrollPaddingTop: string;
|
|
|
scrollSnapAlign: string;
|
|
|
scrollSnapStop: string;
|
|
|
scrollSnapType: string;
|
|
|
shapeImageThreshold: string;
|
|
|
shapeMargin: string;
|
|
|
shapeOutside: string;
|
|
|
shapeRendering: string;
|
|
|
stopColor: string;
|
|
|
stopOpacity: string;
|
|
|
stroke: string;
|
|
|
strokeDasharray: string;
|
|
|
strokeDashoffset: string;
|
|
|
strokeLinecap: string;
|
|
|
strokeLinejoin: string;
|
|
|
strokeMiterlimit: string;
|
|
|
strokeOpacity: string;
|
|
|
strokeWidth: string;
|
|
|
tabSize: string;
|
|
|
tableLayout: string;
|
|
|
textAlign: string;
|
|
|
textAlignLast: string;
|
|
|
textAnchor: string;
|
|
|
textCombineUpright: string;
|
|
|
textDecoration: string;
|
|
|
textDecorationColor: string;
|
|
|
textDecorationLine: string;
|
|
|
textDecorationSkipInk: string;
|
|
|
textDecorationStyle: string;
|
|
|
textDecorationThickness: string;
|
|
|
textEmphasis: string;
|
|
|
textEmphasisColor: string;
|
|
|
textEmphasisPosition: string;
|
|
|
textEmphasisStyle: string;
|
|
|
textIndent: string;
|
|
|
textOrientation: string;
|
|
|
textOverflow: string;
|
|
|
textRendering: string;
|
|
|
textShadow: string;
|
|
|
textTransform: string;
|
|
|
textUnderlineOffset: string;
|
|
|
textUnderlinePosition: string;
|
|
|
top: string;
|
|
|
touchAction: string;
|
|
|
transform: string;
|
|
|
transformBox: string;
|
|
|
transformOrigin: string;
|
|
|
transformStyle: string;
|
|
|
transition: string;
|
|
|
transitionDelay: string;
|
|
|
transitionDuration: string;
|
|
|
transitionProperty: string;
|
|
|
transitionTimingFunction: string;
|
|
|
translate: string;
|
|
|
unicodeBidi: string;
|
|
|
userSelect: string;
|
|
|
verticalAlign: string;
|
|
|
visibility: string;
|
|
|
/** @deprecated This is a legacy alias of \`alignContent\`. */
|
|
|
webkitAlignContent: string;
|
|
|
/** @deprecated This is a legacy alias of \`alignItems\`. */
|
|
|
webkitAlignItems: string;
|
|
|
/** @deprecated This is a legacy alias of \`alignSelf\`. */
|
|
|
webkitAlignSelf: string;
|
|
|
/** @deprecated This is a legacy alias of \`animation\`. */
|
|
|
webkitAnimation: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationDelay\`. */
|
|
|
webkitAnimationDelay: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationDirection\`. */
|
|
|
webkitAnimationDirection: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationDuration\`. */
|
|
|
webkitAnimationDuration: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationFillMode\`. */
|
|
|
webkitAnimationFillMode: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationIterationCount\`. */
|
|
|
webkitAnimationIterationCount: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationName\`. */
|
|
|
webkitAnimationName: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationPlayState\`. */
|
|
|
webkitAnimationPlayState: string;
|
|
|
/** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
|
|
|
webkitAnimationTimingFunction: string;
|
|
|
/** @deprecated This is a legacy alias of \`appearance\`. */
|
|
|
webkitAppearance: string;
|
|
|
/** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
|
|
|
webkitBackfaceVisibility: string;
|
|
|
/** @deprecated This is a legacy alias of \`backgroundClip\`. */
|
|
|
webkitBackgroundClip: string;
|
|
|
/** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
|
|
|
webkitBackgroundOrigin: string;
|
|
|
/** @deprecated This is a legacy alias of \`backgroundSize\`. */
|
|
|
webkitBackgroundSize: string;
|
|
|
/** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
|
|
|
webkitBorderBottomLeftRadius: string;
|
|
|
/** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
|
|
|
webkitBorderBottomRightRadius: string;
|
|
|
/** @deprecated This is a legacy alias of \`borderRadius\`. */
|
|
|
webkitBorderRadius: string;
|
|
|
/** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
|
|
|
webkitBorderTopLeftRadius: string;
|
|
|
/** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
|
|
|
webkitBorderTopRightRadius: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxAlign: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxFlex: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxOrdinalGroup: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxOrient: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxPack: string;
|
|
|
/** @deprecated This is a legacy alias of \`boxShadow\`. */
|
|
|
webkitBoxShadow: string;
|
|
|
/** @deprecated This is a legacy alias of \`boxSizing\`. */
|
|
|
webkitBoxSizing: string;
|
|
|
/** @deprecated This is a legacy alias of \`filter\`. */
|
|
|
webkitFilter: string;
|
|
|
/** @deprecated This is a legacy alias of \`flex\`. */
|
|
|
webkitFlex: string;
|
|
|
/** @deprecated This is a legacy alias of \`flexBasis\`. */
|
|
|
webkitFlexBasis: string;
|
|
|
/** @deprecated This is a legacy alias of \`flexDirection\`. */
|
|
|
webkitFlexDirection: string;
|
|
|
/** @deprecated This is a legacy alias of \`flexFlow\`. */
|
|
|
webkitFlexFlow: string;
|
|
|
/** @deprecated This is a legacy alias of \`flexGrow\`. */
|
|
|
webkitFlexGrow: string;
|
|
|
/** @deprecated This is a legacy alias of \`flexShrink\`. */
|
|
|
webkitFlexShrink: string;
|
|
|
/** @deprecated This is a legacy alias of \`flexWrap\`. */
|
|
|
webkitFlexWrap: string;
|
|
|
/** @deprecated This is a legacy alias of \`justifyContent\`. */
|
|
|
webkitJustifyContent: string;
|
|
|
webkitLineClamp: string;
|
|
|
/** @deprecated This is a legacy alias of \`mask\`. */
|
|
|
webkitMask: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskBorder\`. */
|
|
|
webkitMaskBoxImage: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
|
|
|
webkitMaskBoxImageOutset: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
|
|
|
webkitMaskBoxImageRepeat: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
|
|
|
webkitMaskBoxImageSlice: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskBorderSource\`. */
|
|
|
webkitMaskBoxImageSource: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
|
|
|
webkitMaskBoxImageWidth: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskClip\`. */
|
|
|
webkitMaskClip: string;
|
|
|
webkitMaskComposite: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskImage\`. */
|
|
|
webkitMaskImage: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskOrigin\`. */
|
|
|
webkitMaskOrigin: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskPosition\`. */
|
|
|
webkitMaskPosition: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskRepeat\`. */
|
|
|
webkitMaskRepeat: string;
|
|
|
/** @deprecated This is a legacy alias of \`maskSize\`. */
|
|
|
webkitMaskSize: string;
|
|
|
/** @deprecated This is a legacy alias of \`order\`. */
|
|
|
webkitOrder: string;
|
|
|
/** @deprecated This is a legacy alias of \`perspective\`. */
|
|
|
webkitPerspective: string;
|
|
|
/** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
|
|
|
webkitPerspectiveOrigin: string;
|
|
|
webkitTextFillColor: string;
|
|
|
webkitTextStroke: string;
|
|
|
webkitTextStrokeColor: string;
|
|
|
webkitTextStrokeWidth: string;
|
|
|
/** @deprecated This is a legacy alias of \`transform\`. */
|
|
|
webkitTransform: string;
|
|
|
/** @deprecated This is a legacy alias of \`transformOrigin\`. */
|
|
|
webkitTransformOrigin: string;
|
|
|
/** @deprecated This is a legacy alias of \`transformStyle\`. */
|
|
|
webkitTransformStyle: string;
|
|
|
/** @deprecated This is a legacy alias of \`transition\`. */
|
|
|
webkitTransition: string;
|
|
|
/** @deprecated This is a legacy alias of \`transitionDelay\`. */
|
|
|
webkitTransitionDelay: string;
|
|
|
/** @deprecated This is a legacy alias of \`transitionDuration\`. */
|
|
|
webkitTransitionDuration: string;
|
|
|
/** @deprecated This is a legacy alias of \`transitionProperty\`. */
|
|
|
webkitTransitionProperty: string;
|
|
|
/** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
|
|
|
webkitTransitionTimingFunction: string;
|
|
|
/** @deprecated This is a legacy alias of \`userSelect\`. */
|
|
|
webkitUserSelect: string;
|
|
|
whiteSpace: string;
|
|
|
widows: string;
|
|
|
width: string;
|
|
|
willChange: string;
|
|
|
wordBreak: string;
|
|
|
wordSpacing: string;
|
|
|
/** @deprecated */
|
|
|
wordWrap: string;
|
|
|
writingMode: string;
|
|
|
zIndex: string;
|
|
|
getPropertyPriority(property: string): string;
|
|
|
getPropertyValue(property: string): string;
|
|
|
item(index: number): string;
|
|
|
removeProperty(property: string): string;
|
|
|
setProperty(property: string, value: string | null, priority?: string): void;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var CSSStyleDeclaration: {
|
|
|
prototype: CSSStyleDeclaration;
|
|
|
new(): CSSStyleDeclaration;
|
|
|
};
|
|
|
|
|
|
/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
|
|
|
interface CSSStyleRule extends CSSRule {
|
|
|
selectorText: string;
|
|
|
readonly style: CSSStyleDeclaration;
|
|
|
}
|
|
|
|
|
|
declare var CSSStyleRule: {
|
|
|
prototype: CSSStyleRule;
|
|
|
new(): CSSStyleRule;
|
|
|
};
|
|
|
|
|
|
/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
|
|
|
interface CSSStyleSheet extends StyleSheet {
|
|
|
readonly cssRules: CSSRuleList;
|
|
|
readonly ownerRule: CSSRule | null;
|
|
|
/** @deprecated */
|
|
|
readonly rules: CSSRuleList;
|
|
|
/** @deprecated */
|
|
|
addRule(selector?: string, style?: string, index?: number): number;
|
|
|
deleteRule(index: number): void;
|
|
|
insertRule(rule: string, index?: number): number;
|
|
|
/** @deprecated */
|
|
|
removeRule(index?: number): void;
|
|
|
}
|
|
|
|
|
|
declare var CSSStyleSheet: {
|
|
|
prototype: CSSStyleSheet;
|
|
|
new(options?: CSSStyleSheetInit): CSSStyleSheet;
|
|
|
};
|
|
|
|
|
|
/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
|
|
|
interface CSSSupportsRule extends CSSConditionRule {
|
|
|
}
|
|
|
|
|
|
declare var CSSSupportsRule: {
|
|
|
prototype: CSSSupportsRule;
|
|
|
new(): CSSSupportsRule;
|
|
|
};
|
|
|
|
|
|
interface CSSTransition extends Animation {
|
|
|
readonly transitionProperty: string;
|
|
|
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var CSSTransition: {
|
|
|
prototype: CSSTransition;
|
|
|
new(): CSSTransition;
|
|
|
};
|
|
|
|
|
|
/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
|
|
|
interface Cache {
|
|
|
add(request: RequestInfo): Promise<void>;
|
|
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
|
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
|
|
|
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
|
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
|
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
|
put(request: RequestInfo, response: Response): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Cache: {
|
|
|
prototype: Cache;
|
|
|
new(): Cache;
|
|
|
};
|
|
|
|
|
|
/** The storage for Cache objects. */
|
|
|
interface CacheStorage {
|
|
|
delete(cacheName: string): Promise<boolean>;
|
|
|
has(cacheName: string): Promise<boolean>;
|
|
|
keys(): Promise<string[]>;
|
|
|
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
|
open(cacheName: string): Promise<Cache>;
|
|
|
}
|
|
|
|
|
|
declare var CacheStorage: {
|
|
|
prototype: CacheStorage;
|
|
|
new(): CacheStorage;
|
|
|
};
|
|
|
|
|
|
interface CanvasCompositing {
|
|
|
globalAlpha: number;
|
|
|
globalCompositeOperation: string;
|
|
|
}
|
|
|
|
|
|
interface CanvasDrawImage {
|
|
|
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
|
|
|
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
|
|
|
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasDrawPath {
|
|
|
beginPath(): void;
|
|
|
clip(fillRule?: CanvasFillRule): void;
|
|
|
clip(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
|
fill(fillRule?: CanvasFillRule): void;
|
|
|
fill(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
|
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
|
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
|
isPointInStroke(x: number, y: number): boolean;
|
|
|
isPointInStroke(path: Path2D, x: number, y: number): boolean;
|
|
|
stroke(): void;
|
|
|
stroke(path: Path2D): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasFillStrokeStyles {
|
|
|
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
|
strokeStyle: string | CanvasGradient | CanvasPattern;
|
|
|
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
|
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
|
|
|
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
|
|
|
}
|
|
|
|
|
|
interface CanvasFilters {
|
|
|
filter: string;
|
|
|
}
|
|
|
|
|
|
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
|
|
|
interface CanvasGradient {
|
|
|
/**
|
|
|
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
|
|
|
*
|
|
|
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
|
|
|
*/
|
|
|
addColorStop(offset: number, color: string): void;
|
|
|
}
|
|
|
|
|
|
declare var CanvasGradient: {
|
|
|
prototype: CanvasGradient;
|
|
|
new(): CanvasGradient;
|
|
|
};
|
|
|
|
|
|
interface CanvasImageData {
|
|
|
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
|
createImageData(imagedata: ImageData): ImageData;
|
|
|
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
|
putImageData(imagedata: ImageData, dx: number, dy: number): void;
|
|
|
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasImageSmoothing {
|
|
|
imageSmoothingEnabled: boolean;
|
|
|
imageSmoothingQuality: ImageSmoothingQuality;
|
|
|
}
|
|
|
|
|
|
interface CanvasPath {
|
|
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
|
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
|
|
|
closePath(): void;
|
|
|
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
|
lineTo(x: number, y: number): void;
|
|
|
moveTo(x: number, y: number): void;
|
|
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
|
rect(x: number, y: number, w: number, h: number): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasPathDrawingStyles {
|
|
|
lineCap: CanvasLineCap;
|
|
|
lineDashOffset: number;
|
|
|
lineJoin: CanvasLineJoin;
|
|
|
lineWidth: number;
|
|
|
miterLimit: number;
|
|
|
getLineDash(): number[];
|
|
|
setLineDash(segments: number[]): void;
|
|
|
}
|
|
|
|
|
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
|
interface CanvasPattern {
|
|
|
/**
|
|
|
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
|
|
|
*/
|
|
|
setTransform(transform?: DOMMatrix2DInit): void;
|
|
|
}
|
|
|
|
|
|
declare var CanvasPattern: {
|
|
|
prototype: CanvasPattern;
|
|
|
new(): CanvasPattern;
|
|
|
};
|
|
|
|
|
|
interface CanvasRect {
|
|
|
clearRect(x: number, y: number, w: number, h: number): void;
|
|
|
fillRect(x: number, y: number, w: number, h: number): void;
|
|
|
strokeRect(x: number, y: number, w: number, h: number): void;
|
|
|
}
|
|
|
|
|
|
/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */
|
|
|
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
|
|
|
readonly canvas: HTMLCanvasElement;
|
|
|
getContextAttributes(): CanvasRenderingContext2DSettings;
|
|
|
}
|
|
|
|
|
|
declare var CanvasRenderingContext2D: {
|
|
|
prototype: CanvasRenderingContext2D;
|
|
|
new(): CanvasRenderingContext2D;
|
|
|
};
|
|
|
|
|
|
interface CanvasShadowStyles {
|
|
|
shadowBlur: number;
|
|
|
shadowColor: string;
|
|
|
shadowOffsetX: number;
|
|
|
shadowOffsetY: number;
|
|
|
}
|
|
|
|
|
|
interface CanvasState {
|
|
|
restore(): void;
|
|
|
save(): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasText {
|
|
|
fillText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
|
measureText(text: string): TextMetrics;
|
|
|
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasTextDrawingStyles {
|
|
|
direction: CanvasDirection;
|
|
|
font: string;
|
|
|
textAlign: CanvasTextAlign;
|
|
|
textBaseline: CanvasTextBaseline;
|
|
|
}
|
|
|
|
|
|
interface CanvasTransform {
|
|
|
getTransform(): DOMMatrix;
|
|
|
resetTransform(): void;
|
|
|
rotate(angle: number): void;
|
|
|
scale(x: number, y: number): void;
|
|
|
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
|
setTransform(transform?: DOMMatrix2DInit): void;
|
|
|
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
|
translate(x: number, y: number): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasUserInterface {
|
|
|
drawFocusIfNeeded(element: Element): void;
|
|
|
drawFocusIfNeeded(path: Path2D, element: Element): void;
|
|
|
}
|
|
|
|
|
|
/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
|
|
|
interface ChannelMergerNode extends AudioNode {
|
|
|
}
|
|
|
|
|
|
declare var ChannelMergerNode: {
|
|
|
prototype: ChannelMergerNode;
|
|
|
new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
|
|
|
};
|
|
|
|
|
|
/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
|
|
|
interface ChannelSplitterNode extends AudioNode {
|
|
|
}
|
|
|
|
|
|
declare var ChannelSplitterNode: {
|
|
|
prototype: ChannelSplitterNode;
|
|
|
new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
|
|
|
};
|
|
|
|
|
|
/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */
|
|
|
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
|
|
|
data: string;
|
|
|
readonly length: number;
|
|
|
readonly ownerDocument: Document;
|
|
|
appendData(data: string): void;
|
|
|
deleteData(offset: number, count: number): void;
|
|
|
insertData(offset: number, data: string): void;
|
|
|
replaceData(offset: number, count: number, data: string): void;
|
|
|
substringData(offset: number, count: number): string;
|
|
|
}
|
|
|
|
|
|
declare var CharacterData: {
|
|
|
prototype: CharacterData;
|
|
|
new(): CharacterData;
|
|
|
};
|
|
|
|
|
|
interface ChildNode extends Node {
|
|
|
/**
|
|
|
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
after(...nodes: (Node | string)[]): void;
|
|
|
/**
|
|
|
* Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
before(...nodes: (Node | string)[]): void;
|
|
|
/**
|
|
|
* Removes node.
|
|
|
*/
|
|
|
remove(): void;
|
|
|
/**
|
|
|
* Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
replaceWith(...nodes: (Node | string)[]): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
interface ClientRect extends DOMRect {
|
|
|
}
|
|
|
|
|
|
interface Clipboard extends EventTarget {
|
|
|
read(): Promise<ClipboardItems>;
|
|
|
readText(): Promise<string>;
|
|
|
write(data: ClipboardItems): Promise<void>;
|
|
|
writeText(data: string): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Clipboard: {
|
|
|
prototype: Clipboard;
|
|
|
new(): Clipboard;
|
|
|
};
|
|
|
|
|
|
/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
|
|
|
interface ClipboardEvent extends Event {
|
|
|
readonly clipboardData: DataTransfer | null;
|
|
|
}
|
|
|
|
|
|
declare var ClipboardEvent: {
|
|
|
prototype: ClipboardEvent;
|
|
|
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
|
|
|
};
|
|
|
|
|
|
interface ClipboardItem {
|
|
|
readonly types: ReadonlyArray<string>;
|
|
|
getType(type: string): Promise<Blob>;
|
|
|
}
|
|
|
|
|
|
declare var ClipboardItem: {
|
|
|
prototype: ClipboardItem;
|
|
|
new(items: Record<string, ClipboardItemData>, options?: ClipboardItemOptions): ClipboardItem;
|
|
|
};
|
|
|
|
|
|
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
|
|
|
interface CloseEvent extends Event {
|
|
|
/**
|
|
|
* Returns the WebSocket connection close code provided by the server.
|
|
|
*/
|
|
|
readonly code: number;
|
|
|
/**
|
|
|
* Returns the WebSocket connection close reason provided by the server.
|
|
|
*/
|
|
|
readonly reason: string;
|
|
|
/**
|
|
|
* Returns true if the connection closed cleanly; false otherwise.
|
|
|
*/
|
|
|
readonly wasClean: boolean;
|
|
|
}
|
|
|
|
|
|
declare var CloseEvent: {
|
|
|
prototype: CloseEvent;
|
|
|
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
|
|
|
};
|
|
|
|
|
|
/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
|
|
|
interface Comment extends CharacterData {
|
|
|
}
|
|
|
|
|
|
declare var Comment: {
|
|
|
prototype: Comment;
|
|
|
new(data?: string): Comment;
|
|
|
};
|
|
|
|
|
|
/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
|
|
|
interface CompositionEvent extends UIEvent {
|
|
|
readonly data: string;
|
|
|
/** @deprecated */
|
|
|
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
|
|
|
}
|
|
|
|
|
|
declare var CompositionEvent: {
|
|
|
prototype: CompositionEvent;
|
|
|
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
|
|
|
};
|
|
|
|
|
|
interface ConstantSourceNode extends AudioScheduledSourceNode {
|
|
|
readonly offset: AudioParam;
|
|
|
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ConstantSourceNode: {
|
|
|
prototype: ConstantSourceNode;
|
|
|
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
|
|
|
};
|
|
|
|
|
|
/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */
|
|
|
interface ConvolverNode extends AudioNode {
|
|
|
buffer: AudioBuffer | null;
|
|
|
normalize: boolean;
|
|
|
}
|
|
|
|
|
|
declare var ConvolverNode: {
|
|
|
prototype: ConvolverNode;
|
|
|
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
|
interface CountQueuingStrategy extends QueuingStrategy {
|
|
|
readonly highWaterMark: number;
|
|
|
readonly size: QueuingStrategySize;
|
|
|
}
|
|
|
|
|
|
declare var CountQueuingStrategy: {
|
|
|
prototype: CountQueuingStrategy;
|
|
|
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
|
};
|
|
|
|
|
|
interface Credential {
|
|
|
readonly id: string;
|
|
|
readonly type: string;
|
|
|
}
|
|
|
|
|
|
declare var Credential: {
|
|
|
prototype: Credential;
|
|
|
new(): Credential;
|
|
|
};
|
|
|
|
|
|
interface CredentialsContainer {
|
|
|
create(options?: CredentialCreationOptions): Promise<Credential | null>;
|
|
|
get(options?: CredentialRequestOptions): Promise<Credential | null>;
|
|
|
preventSilentAccess(): Promise<void>;
|
|
|
store(credential: Credential): Promise<Credential>;
|
|
|
}
|
|
|
|
|
|
declare var CredentialsContainer: {
|
|
|
prototype: CredentialsContainer;
|
|
|
new(): CredentialsContainer;
|
|
|
};
|
|
|
|
|
|
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
|
|
|
interface Crypto {
|
|
|
readonly subtle: SubtleCrypto;
|
|
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
|
}
|
|
|
|
|
|
declare var Crypto: {
|
|
|
prototype: Crypto;
|
|
|
new(): Crypto;
|
|
|
};
|
|
|
|
|
|
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */
|
|
|
interface CryptoKey {
|
|
|
readonly algorithm: KeyAlgorithm;
|
|
|
readonly extractable: boolean;
|
|
|
readonly type: KeyType;
|
|
|
readonly usages: KeyUsage[];
|
|
|
}
|
|
|
|
|
|
declare var CryptoKey: {
|
|
|
prototype: CryptoKey;
|
|
|
new(): CryptoKey;
|
|
|
};
|
|
|
|
|
|
interface CustomElementRegistry {
|
|
|
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
|
|
|
get(name: string): CustomElementConstructor | undefined;
|
|
|
upgrade(root: Node): void;
|
|
|
whenDefined(name: string): Promise<CustomElementConstructor>;
|
|
|
}
|
|
|
|
|
|
declare var CustomElementRegistry: {
|
|
|
prototype: CustomElementRegistry;
|
|
|
new(): CustomElementRegistry;
|
|
|
};
|
|
|
|
|
|
interface CustomEvent<T = any> extends Event {
|
|
|
/**
|
|
|
* Returns any custom data event was created with. Typically used for synthetic events.
|
|
|
*/
|
|
|
readonly detail: T;
|
|
|
/** @deprecated */
|
|
|
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
|
}
|
|
|
|
|
|
declare var CustomEvent: {
|
|
|
prototype: CustomEvent;
|
|
|
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
|
};
|
|
|
|
|
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
|
interface DOMException {
|
|
|
readonly code: number;
|
|
|
readonly message: string;
|
|
|
readonly name: string;
|
|
|
readonly ABORT_ERR: number;
|
|
|
readonly DATA_CLONE_ERR: number;
|
|
|
readonly DOMSTRING_SIZE_ERR: number;
|
|
|
readonly HIERARCHY_REQUEST_ERR: number;
|
|
|
readonly INDEX_SIZE_ERR: number;
|
|
|
readonly INUSE_ATTRIBUTE_ERR: number;
|
|
|
readonly INVALID_ACCESS_ERR: number;
|
|
|
readonly INVALID_CHARACTER_ERR: number;
|
|
|
readonly INVALID_MODIFICATION_ERR: number;
|
|
|
readonly INVALID_NODE_TYPE_ERR: number;
|
|
|
readonly INVALID_STATE_ERR: number;
|
|
|
readonly NAMESPACE_ERR: number;
|
|
|
readonly NETWORK_ERR: number;
|
|
|
readonly NOT_FOUND_ERR: number;
|
|
|
readonly NOT_SUPPORTED_ERR: number;
|
|
|
readonly NO_DATA_ALLOWED_ERR: number;
|
|
|
readonly NO_MODIFICATION_ALLOWED_ERR: number;
|
|
|
readonly QUOTA_EXCEEDED_ERR: number;
|
|
|
readonly SECURITY_ERR: number;
|
|
|
readonly SYNTAX_ERR: number;
|
|
|
readonly TIMEOUT_ERR: number;
|
|
|
readonly TYPE_MISMATCH_ERR: number;
|
|
|
readonly URL_MISMATCH_ERR: number;
|
|
|
readonly VALIDATION_ERR: number;
|
|
|
readonly WRONG_DOCUMENT_ERR: number;
|
|
|
}
|
|
|
|
|
|
declare var DOMException: {
|
|
|
prototype: DOMException;
|
|
|
new(message?: string, name?: string): DOMException;
|
|
|
readonly ABORT_ERR: number;
|
|
|
readonly DATA_CLONE_ERR: number;
|
|
|
readonly DOMSTRING_SIZE_ERR: number;
|
|
|
readonly HIERARCHY_REQUEST_ERR: number;
|
|
|
readonly INDEX_SIZE_ERR: number;
|
|
|
readonly INUSE_ATTRIBUTE_ERR: number;
|
|
|
readonly INVALID_ACCESS_ERR: number;
|
|
|
readonly INVALID_CHARACTER_ERR: number;
|
|
|
readonly INVALID_MODIFICATION_ERR: number;
|
|
|
readonly INVALID_NODE_TYPE_ERR: number;
|
|
|
readonly INVALID_STATE_ERR: number;
|
|
|
readonly NAMESPACE_ERR: number;
|
|
|
readonly NETWORK_ERR: number;
|
|
|
readonly NOT_FOUND_ERR: number;
|
|
|
readonly NOT_SUPPORTED_ERR: number;
|
|
|
readonly NO_DATA_ALLOWED_ERR: number;
|
|
|
readonly NO_MODIFICATION_ALLOWED_ERR: number;
|
|
|
readonly QUOTA_EXCEEDED_ERR: number;
|
|
|
readonly SECURITY_ERR: number;
|
|
|
readonly SYNTAX_ERR: number;
|
|
|
readonly TIMEOUT_ERR: number;
|
|
|
readonly TYPE_MISMATCH_ERR: number;
|
|
|
readonly URL_MISMATCH_ERR: number;
|
|
|
readonly VALIDATION_ERR: number;
|
|
|
readonly WRONG_DOCUMENT_ERR: number;
|
|
|
};
|
|
|
|
|
|
/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
|
|
|
interface DOMImplementation {
|
|
|
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
|
|
|
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
|
|
|
createHTMLDocument(title?: string): Document;
|
|
|
/** @deprecated */
|
|
|
hasFeature(...args: any[]): true;
|
|
|
}
|
|
|
|
|
|
declare var DOMImplementation: {
|
|
|
prototype: DOMImplementation;
|
|
|
new(): DOMImplementation;
|
|
|
};
|
|
|
|
|
|
interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
a: number;
|
|
|
b: number;
|
|
|
c: number;
|
|
|
d: number;
|
|
|
e: number;
|
|
|
f: number;
|
|
|
m11: number;
|
|
|
m12: number;
|
|
|
m13: number;
|
|
|
m14: number;
|
|
|
m21: number;
|
|
|
m22: number;
|
|
|
m23: number;
|
|
|
m24: number;
|
|
|
m31: number;
|
|
|
m32: number;
|
|
|
m33: number;
|
|
|
m34: number;
|
|
|
m41: number;
|
|
|
m42: number;
|
|
|
m43: number;
|
|
|
m44: number;
|
|
|
invertSelf(): DOMMatrix;
|
|
|
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
|
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
|
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
|
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
|
|
|
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
|
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
setMatrixValue(transformList: string): DOMMatrix;
|
|
|
skewXSelf(sx?: number): DOMMatrix;
|
|
|
skewYSelf(sy?: number): DOMMatrix;
|
|
|
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
|
|
}
|
|
|
|
|
|
declare var DOMMatrix: {
|
|
|
prototype: DOMMatrix;
|
|
|
new(init?: string | number[]): DOMMatrix;
|
|
|
fromFloat32Array(array32: Float32Array): DOMMatrix;
|
|
|
fromFloat64Array(array64: Float64Array): DOMMatrix;
|
|
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
|
};
|
|
|
|
|
|
type SVGMatrix = DOMMatrix;
|
|
|
declare var SVGMatrix: typeof DOMMatrix;
|
|
|
|
|
|
type WebKitCSSMatrix = DOMMatrix;
|
|
|
declare var WebKitCSSMatrix: typeof DOMMatrix;
|
|
|
|
|
|
interface DOMMatrixReadOnly {
|
|
|
readonly a: number;
|
|
|
readonly b: number;
|
|
|
readonly c: number;
|
|
|
readonly d: number;
|
|
|
readonly e: number;
|
|
|
readonly f: number;
|
|
|
readonly is2D: boolean;
|
|
|
readonly isIdentity: boolean;
|
|
|
readonly m11: number;
|
|
|
readonly m12: number;
|
|
|
readonly m13: number;
|
|
|
readonly m14: number;
|
|
|
readonly m21: number;
|
|
|
readonly m22: number;
|
|
|
readonly m23: number;
|
|
|
readonly m24: number;
|
|
|
readonly m31: number;
|
|
|
readonly m32: number;
|
|
|
readonly m33: number;
|
|
|
readonly m34: number;
|
|
|
readonly m41: number;
|
|
|
readonly m42: number;
|
|
|
readonly m43: number;
|
|
|
readonly m44: number;
|
|
|
flipX(): DOMMatrix;
|
|
|
flipY(): DOMMatrix;
|
|
|
inverse(): DOMMatrix;
|
|
|
multiply(other?: DOMMatrixInit): DOMMatrix;
|
|
|
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
|
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
|
rotateFromVector(x?: number, y?: number): DOMMatrix;
|
|
|
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
/** @deprecated */
|
|
|
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
|
|
|
skewX(sx?: number): DOMMatrix;
|
|
|
skewY(sy?: number): DOMMatrix;
|
|
|
toFloat32Array(): Float32Array;
|
|
|
toFloat64Array(): Float64Array;
|
|
|
toJSON(): any;
|
|
|
transformPoint(point?: DOMPointInit): DOMPoint;
|
|
|
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
|
|
toString(): string;
|
|
|
}
|
|
|
|
|
|
declare var DOMMatrixReadOnly: {
|
|
|
prototype: DOMMatrixReadOnly;
|
|
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
|
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
|
|
|
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
|
|
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
|
toString(): string;
|
|
|
};
|
|
|
|
|
|
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
|
|
|
interface DOMParser {
|
|
|
/**
|
|
|
* Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
|
|
|
*
|
|
|
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
|
|
|
*
|
|
|
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
|
|
|
*
|
|
|
* Values other than the above for type will cause a TypeError exception to be thrown.
|
|
|
*/
|
|
|
parseFromString(string: string, type: DOMParserSupportedType): Document;
|
|
|
}
|
|
|
|
|
|
declare var DOMParser: {
|
|
|
prototype: DOMParser;
|
|
|
new(): DOMParser;
|
|
|
};
|
|
|
|
|
|
interface DOMPoint extends DOMPointReadOnly {
|
|
|
w: number;
|
|
|
x: number;
|
|
|
y: number;
|
|
|
z: number;
|
|
|
}
|
|
|
|
|
|
declare var DOMPoint: {
|
|
|
prototype: DOMPoint;
|
|
|
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
|
|
fromPoint(other?: DOMPointInit): DOMPoint;
|
|
|
};
|
|
|
|
|
|
type SVGPoint = DOMPoint;
|
|
|
declare var SVGPoint: typeof DOMPoint;
|
|
|
|
|
|
interface DOMPointReadOnly {
|
|
|
readonly w: number;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
readonly z: number;
|
|
|
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var DOMPointReadOnly: {
|
|
|
prototype: DOMPointReadOnly;
|
|
|
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
|
|
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
|
|
|
};
|
|
|
|
|
|
interface DOMQuad {
|
|
|
readonly p1: DOMPoint;
|
|
|
readonly p2: DOMPoint;
|
|
|
readonly p3: DOMPoint;
|
|
|
readonly p4: DOMPoint;
|
|
|
getBounds(): DOMRect;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var DOMQuad: {
|
|
|
prototype: DOMQuad;
|
|
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
|
};
|
|
|
|
|
|
interface DOMRect extends DOMRectReadOnly {
|
|
|
height: number;
|
|
|
width: number;
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var DOMRect: {
|
|
|
prototype: DOMRect;
|
|
|
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
|
|
|
fromRect(other?: DOMRectInit): DOMRect;
|
|
|
};
|
|
|
|
|
|
type SVGRect = DOMRect;
|
|
|
declare var SVGRect: typeof DOMRect;
|
|
|
|
|
|
interface DOMRectList {
|
|
|
readonly length: number;
|
|
|
item(index: number): DOMRect | null;
|
|
|
[index: number]: DOMRect;
|
|
|
}
|
|
|
|
|
|
declare var DOMRectList: {
|
|
|
prototype: DOMRectList;
|
|
|
new(): DOMRectList;
|
|
|
};
|
|
|
|
|
|
interface DOMRectReadOnly {
|
|
|
readonly bottom: number;
|
|
|
readonly height: number;
|
|
|
readonly left: number;
|
|
|
readonly right: number;
|
|
|
readonly top: number;
|
|
|
readonly width: number;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var DOMRectReadOnly: {
|
|
|
prototype: DOMRectReadOnly;
|
|
|
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
|
|
fromRect(other?: DOMRectInit): DOMRectReadOnly;
|
|
|
};
|
|
|
|
|
|
/** A type returned by some APIs which contains a list of DOMString (strings). */
|
|
|
interface DOMStringList {
|
|
|
/**
|
|
|
* Returns the number of strings in strings.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns true if strings contains string, and false otherwise.
|
|
|
*/
|
|
|
contains(string: string): boolean;
|
|
|
/**
|
|
|
* Returns the string with index index from strings.
|
|
|
*/
|
|
|
item(index: number): string | null;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var DOMStringList: {
|
|
|
prototype: DOMStringList;
|
|
|
new(): DOMStringList;
|
|
|
};
|
|
|
|
|
|
/** Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. */
|
|
|
interface DOMStringMap {
|
|
|
[name: string]: string | undefined;
|
|
|
}
|
|
|
|
|
|
declare var DOMStringMap: {
|
|
|
prototype: DOMStringMap;
|
|
|
new(): DOMStringMap;
|
|
|
};
|
|
|
|
|
|
/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */
|
|
|
interface DOMTokenList {
|
|
|
/**
|
|
|
* Returns the number of tokens.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the associated set as string.
|
|
|
*
|
|
|
* Can be set, to change the associated attribute.
|
|
|
*/
|
|
|
value: string;
|
|
|
toString(): string;
|
|
|
/**
|
|
|
* Adds all arguments passed, except those already present.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
|
|
|
*
|
|
|
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
|
|
|
*/
|
|
|
add(...tokens: string[]): void;
|
|
|
/**
|
|
|
* Returns true if token is present, and false otherwise.
|
|
|
*/
|
|
|
contains(token: string): boolean;
|
|
|
/**
|
|
|
* Returns the token with index index.
|
|
|
*/
|
|
|
item(index: number): string | null;
|
|
|
/**
|
|
|
* Removes arguments passed, if they are present.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
|
|
|
*
|
|
|
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
|
|
|
*/
|
|
|
remove(...tokens: string[]): void;
|
|
|
/**
|
|
|
* Replaces token with newToken.
|
|
|
*
|
|
|
* Returns true if token was replaced with newToken, and false otherwise.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
|
|
|
*
|
|
|
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
|
|
|
*/
|
|
|
replace(token: string, newToken: string): boolean;
|
|
|
/**
|
|
|
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
|
|
|
*
|
|
|
* Throws a TypeError if the associated attribute has no supported tokens defined.
|
|
|
*/
|
|
|
supports(token: string): boolean;
|
|
|
/**
|
|
|
* If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
|
|
|
*
|
|
|
* Returns true if token is now present, and false otherwise.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if token is empty.
|
|
|
*
|
|
|
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
|
|
|
*/
|
|
|
toggle(token: string, force?: boolean): boolean;
|
|
|
forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var DOMTokenList: {
|
|
|
prototype: DOMTokenList;
|
|
|
new(): DOMTokenList;
|
|
|
};
|
|
|
|
|
|
/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */
|
|
|
interface DataTransfer {
|
|
|
/**
|
|
|
* Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
|
|
|
*
|
|
|
* Can be set, to change the selected operation.
|
|
|
*
|
|
|
* The possible values are "none", "copy", "link", and "move".
|
|
|
*/
|
|
|
dropEffect: "none" | "copy" | "link" | "move";
|
|
|
/**
|
|
|
* Returns the kinds of operations that are to be allowed.
|
|
|
*
|
|
|
* Can be set (during the dragstart event), to change the allowed operations.
|
|
|
*
|
|
|
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
|
|
|
*/
|
|
|
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
|
|
|
/**
|
|
|
* Returns a FileList of the files being dragged, if any.
|
|
|
*/
|
|
|
readonly files: FileList;
|
|
|
/**
|
|
|
* Returns a DataTransferItemList object, with the drag data.
|
|
|
*/
|
|
|
readonly items: DataTransferItemList;
|
|
|
/**
|
|
|
* Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
|
|
|
*/
|
|
|
readonly types: ReadonlyArray<string>;
|
|
|
/**
|
|
|
* Removes the data of the specified formats. Removes all data if the argument is omitted.
|
|
|
*/
|
|
|
clearData(format?: string): void;
|
|
|
/**
|
|
|
* Returns the specified data. If there is no such data, returns the empty string.
|
|
|
*/
|
|
|
getData(format: string): string;
|
|
|
/**
|
|
|
* Adds the specified data.
|
|
|
*/
|
|
|
setData(format: string, data: string): void;
|
|
|
/**
|
|
|
* Uses the given element to update the drag feedback, replacing any previously specified feedback.
|
|
|
*/
|
|
|
setDragImage(image: Element, x: number, y: number): void;
|
|
|
}
|
|
|
|
|
|
declare var DataTransfer: {
|
|
|
prototype: DataTransfer;
|
|
|
new(): DataTransfer;
|
|
|
};
|
|
|
|
|
|
/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */
|
|
|
interface DataTransferItem {
|
|
|
/**
|
|
|
* Returns the drag data item kind, one of: "string", "file".
|
|
|
*/
|
|
|
readonly kind: string;
|
|
|
/**
|
|
|
* Returns the drag data item type string.
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns a File object, if the drag data item kind is File.
|
|
|
*/
|
|
|
getAsFile(): File | null;
|
|
|
/**
|
|
|
* Invokes the callback with the string data as the argument, if the drag data item kind is text.
|
|
|
*/
|
|
|
getAsString(callback: FunctionStringCallback | null): void;
|
|
|
webkitGetAsEntry(): FileSystemEntry | null;
|
|
|
}
|
|
|
|
|
|
declare var DataTransferItem: {
|
|
|
prototype: DataTransferItem;
|
|
|
new(): DataTransferItem;
|
|
|
};
|
|
|
|
|
|
/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */
|
|
|
interface DataTransferItemList {
|
|
|
/**
|
|
|
* Returns the number of items in the drag data store.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
|
|
|
*/
|
|
|
add(data: string, type: string): DataTransferItem | null;
|
|
|
add(data: File): DataTransferItem | null;
|
|
|
/**
|
|
|
* Removes all the entries in the drag data store.
|
|
|
*/
|
|
|
clear(): void;
|
|
|
/**
|
|
|
* Removes the indexth entry in the drag data store.
|
|
|
*/
|
|
|
remove(index: number): void;
|
|
|
[index: number]: DataTransferItem;
|
|
|
}
|
|
|
|
|
|
declare var DataTransferItemList: {
|
|
|
prototype: DataTransferItemList;
|
|
|
new(): DataTransferItemList;
|
|
|
};
|
|
|
|
|
|
/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */
|
|
|
interface DelayNode extends AudioNode {
|
|
|
readonly delayTime: AudioParam;
|
|
|
}
|
|
|
|
|
|
declare var DelayNode: {
|
|
|
prototype: DelayNode;
|
|
|
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
|
|
|
};
|
|
|
|
|
|
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
|
|
|
interface DeviceMotionEvent extends Event {
|
|
|
readonly acceleration: DeviceMotionEventAcceleration | null;
|
|
|
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
|
|
|
readonly interval: number;
|
|
|
readonly rotationRate: DeviceMotionEventRotationRate | null;
|
|
|
}
|
|
|
|
|
|
declare var DeviceMotionEvent: {
|
|
|
prototype: DeviceMotionEvent;
|
|
|
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
|
|
|
};
|
|
|
|
|
|
interface DeviceMotionEventAcceleration {
|
|
|
readonly x: number | null;
|
|
|
readonly y: number | null;
|
|
|
readonly z: number | null;
|
|
|
}
|
|
|
|
|
|
interface DeviceMotionEventRotationRate {
|
|
|
readonly alpha: number | null;
|
|
|
readonly beta: number | null;
|
|
|
readonly gamma: number | null;
|
|
|
}
|
|
|
|
|
|
/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */
|
|
|
interface DeviceOrientationEvent extends Event {
|
|
|
readonly absolute: boolean;
|
|
|
readonly alpha: number | null;
|
|
|
readonly beta: number | null;
|
|
|
readonly gamma: number | null;
|
|
|
}
|
|
|
|
|
|
declare var DeviceOrientationEvent: {
|
|
|
prototype: DeviceOrientationEvent;
|
|
|
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
|
|
|
};
|
|
|
|
|
|
interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
|
"fullscreenchange": Event;
|
|
|
"fullscreenerror": Event;
|
|
|
"pointerlockchange": Event;
|
|
|
"pointerlockerror": Event;
|
|
|
"readystatechange": Event;
|
|
|
"visibilitychange": Event;
|
|
|
}
|
|
|
|
|
|
/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
|
|
|
interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
|
|
|
/**
|
|
|
* Sets or gets the URL for the current document.
|
|
|
*/
|
|
|
readonly URL: string;
|
|
|
/**
|
|
|
* Sets or gets the color of all active links in the document.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
alinkColor: string;
|
|
|
/**
|
|
|
* Returns a reference to the collection of elements contained by the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly all: HTMLAllCollection;
|
|
|
/**
|
|
|
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
|
|
|
/**
|
|
|
* Retrieves a collection of all applet objects in the document.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly applets: HTMLCollection;
|
|
|
/**
|
|
|
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
bgColor: string;
|
|
|
/**
|
|
|
* Specifies the beginning and end of the document body.
|
|
|
*/
|
|
|
body: HTMLElement;
|
|
|
/**
|
|
|
* Returns document's encoding.
|
|
|
*/
|
|
|
readonly characterSet: string;
|
|
|
/**
|
|
|
* Gets or sets the character set used to encode the object.
|
|
|
* @deprecated This is a legacy alias of \`characterSet\`.
|
|
|
*/
|
|
|
readonly charset: string;
|
|
|
/**
|
|
|
* Gets a value that indicates whether standards-compliant mode is switched on for the object.
|
|
|
*/
|
|
|
readonly compatMode: string;
|
|
|
/**
|
|
|
* Returns document's content type.
|
|
|
*/
|
|
|
readonly contentType: string;
|
|
|
/**
|
|
|
* Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
|
|
|
*
|
|
|
* Can be set, to add a new cookie to the element's set of HTTP cookies.
|
|
|
*
|
|
|
* If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
|
|
|
*/
|
|
|
cookie: string;
|
|
|
/**
|
|
|
* Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
|
|
|
*
|
|
|
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
|
|
|
*/
|
|
|
readonly currentScript: HTMLOrSVGScriptElement | null;
|
|
|
/**
|
|
|
* Returns the Window object of the active document.
|
|
|
*/
|
|
|
readonly defaultView: (WindowProxy & typeof globalThis) | null;
|
|
|
/**
|
|
|
* Sets or gets a value that indicates whether the document can be edited.
|
|
|
*/
|
|
|
designMode: string;
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the reading order of the object.
|
|
|
*/
|
|
|
dir: string;
|
|
|
/**
|
|
|
* Gets an object representing the document type declaration associated with the current document.
|
|
|
*/
|
|
|
readonly doctype: DocumentType | null;
|
|
|
/**
|
|
|
* Gets a reference to the root node of the document.
|
|
|
*/
|
|
|
readonly documentElement: HTMLElement;
|
|
|
/**
|
|
|
* Returns document's URL.
|
|
|
*/
|
|
|
readonly documentURI: string;
|
|
|
/**
|
|
|
* Sets or gets the security domain of the document.
|
|
|
*/
|
|
|
domain: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all embed objects in the document.
|
|
|
*/
|
|
|
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
|
|
|
/**
|
|
|
* Sets or gets the foreground (text) color of the document.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
fgColor: string;
|
|
|
/**
|
|
|
* Retrieves a collection, in source order, of all form objects in the document.
|
|
|
*/
|
|
|
readonly forms: HTMLCollectionOf<HTMLFormElement>;
|
|
|
/** @deprecated */
|
|
|
readonly fullscreen: boolean;
|
|
|
/**
|
|
|
* Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
|
|
|
*/
|
|
|
readonly fullscreenEnabled: boolean;
|
|
|
/**
|
|
|
* Returns the head element.
|
|
|
*/
|
|
|
readonly head: HTMLHeadElement;
|
|
|
readonly hidden: boolean;
|
|
|
/**
|
|
|
* Retrieves a collection, in source order, of img objects in the document.
|
|
|
*/
|
|
|
readonly images: HTMLCollectionOf<HTMLImageElement>;
|
|
|
/**
|
|
|
* Gets the implementation object of the current document.
|
|
|
*/
|
|
|
readonly implementation: DOMImplementation;
|
|
|
/**
|
|
|
* Returns the character encoding used to create the webpage that is loaded into the document object.
|
|
|
* @deprecated This is a legacy alias of \`characterSet\`.
|
|
|
*/
|
|
|
readonly inputEncoding: string;
|
|
|
/**
|
|
|
* Gets the date that the page was last modified, if the page supplies one.
|
|
|
*/
|
|
|
readonly lastModified: string;
|
|
|
/**
|
|
|
* Sets or gets the color of the document links.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
linkColor: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
|
|
|
*/
|
|
|
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
|
|
|
/**
|
|
|
* Contains information about the current URL.
|
|
|
*/
|
|
|
get location(): Location;
|
|
|
set location(href: string | Location);
|
|
|
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
|
|
|
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
|
|
|
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
|
|
|
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the state of the object has changed.
|
|
|
* @param ev The event
|
|
|
*/
|
|
|
onreadystatechange: ((this: Document, ev: Event) => any) | null;
|
|
|
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
|
|
|
readonly ownerDocument: null;
|
|
|
readonly pictureInPictureEnabled: boolean;
|
|
|
/**
|
|
|
* Return an HTMLCollection of the embed elements in the Document.
|
|
|
*/
|
|
|
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
|
|
|
/**
|
|
|
* Retrieves a value that indicates the current state of the object.
|
|
|
*/
|
|
|
readonly readyState: DocumentReadyState;
|
|
|
/**
|
|
|
* Gets the URL of the location that referred the user to the current page.
|
|
|
*/
|
|
|
readonly referrer: string;
|
|
|
/** @deprecated */
|
|
|
readonly rootElement: SVGSVGElement | null;
|
|
|
/**
|
|
|
* Retrieves a collection of all script objects in the document.
|
|
|
*/
|
|
|
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
|
|
|
readonly scrollingElement: Element | null;
|
|
|
readonly timeline: DocumentTimeline;
|
|
|
/**
|
|
|
* Contains the title of the document.
|
|
|
*/
|
|
|
title: string;
|
|
|
readonly visibilityState: VisibilityState;
|
|
|
/**
|
|
|
* Sets or gets the color of the links that the user has visited.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
vlinkColor: string;
|
|
|
/**
|
|
|
* Moves node from another document and returns it.
|
|
|
*
|
|
|
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
|
|
|
*/
|
|
|
adoptNode<T extends Node>(node: T): T;
|
|
|
/** @deprecated */
|
|
|
captureEvents(): void;
|
|
|
/** @deprecated */
|
|
|
caretRangeFromPoint(x: number, y: number): Range | null;
|
|
|
/** @deprecated */
|
|
|
clear(): void;
|
|
|
/**
|
|
|
* Closes an output stream and forces the sent data to display.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Creates an attribute object with a specified name.
|
|
|
* @param name String that sets the attribute object's name.
|
|
|
*/
|
|
|
createAttribute(localName: string): Attr;
|
|
|
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
|
|
|
/**
|
|
|
* Returns a CDATASection node whose data is data.
|
|
|
*/
|
|
|
createCDATASection(data: string): CDATASection;
|
|
|
/**
|
|
|
* Creates a comment object with the specified data.
|
|
|
* @param data Sets the comment object's data.
|
|
|
*/
|
|
|
createComment(data: string): Comment;
|
|
|
/**
|
|
|
* Creates a new document.
|
|
|
*/
|
|
|
createDocumentFragment(): DocumentFragment;
|
|
|
/**
|
|
|
* Creates an instance of the element for the specified tag.
|
|
|
* @param tagName The name of an element.
|
|
|
*/
|
|
|
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
|
|
|
/** @deprecated */
|
|
|
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
|
|
|
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
|
|
|
/**
|
|
|
* Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
|
|
|
*
|
|
|
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
|
|
|
*
|
|
|
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
|
|
|
*
|
|
|
* localName does not match the QName production.
|
|
|
* Namespace prefix is not null and namespace is the empty string.
|
|
|
* Namespace prefix is "xml" and namespace is not the XML namespace.
|
|
|
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
|
|
|
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
|
|
|
*
|
|
|
* When supplied, options's is can be used to create a customized built-in element.
|
|
|
*/
|
|
|
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
|
|
|
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
|
|
|
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
|
|
|
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
|
|
|
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
|
|
|
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
|
|
|
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
|
|
|
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
|
|
|
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
|
|
|
createEvent(eventInterface: "BlobEvent"): BlobEvent;
|
|
|
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
|
|
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
|
|
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
|
|
createEvent(eventInterface: "CustomEvent"): CustomEvent;
|
|
|
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
|
|
|
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
|
|
createEvent(eventInterface: "DragEvent"): DragEvent;
|
|
|
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
|
|
|
createEvent(eventInterface: "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: "MediaEncryptedEvent"): MediaEncryptedEvent;
|
|
|
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
|
|
|
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
|
|
|
createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
|
|
|
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: "PointerEvent"): PointerEvent;
|
|
|
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
|
|
|
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
|
|
|
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
|
|
|
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
|
|
|
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
|
|
|
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
|
|
|
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
|
|
|
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
|
|
|
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
|
|
|
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
|
|
|
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
|
|
|
createEvent(eventInterface: "StorageEvent"): StorageEvent;
|
|
|
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
|
|
|
createEvent(eventInterface: "TouchEvent"): TouchEvent;
|
|
|
createEvent(eventInterface: "TrackEvent"): TrackEvent;
|
|
|
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
|
|
|
createEvent(eventInterface: "UIEvent"): UIEvent;
|
|
|
createEvent(eventInterface: "UIEvents"): UIEvent;
|
|
|
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
|
|
|
createEvent(eventInterface: "WheelEvent"): WheelEvent;
|
|
|
createEvent(eventInterface: string): Event;
|
|
|
/**
|
|
|
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
|
* @param root The root element or node to start traversing on.
|
|
|
* @param whatToShow The type of nodes or elements to appear in the node list
|
|
|
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
|
|
|
*/
|
|
|
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
|
|
|
/**
|
|
|
* Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
|
|
|
*/
|
|
|
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
|
|
|
/**
|
|
|
* Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
|
|
|
*/
|
|
|
createRange(): Range;
|
|
|
/**
|
|
|
* Creates a text string from the specified value.
|
|
|
* @param data String that specifies the nodeValue property of the text node.
|
|
|
*/
|
|
|
createTextNode(data: string): Text;
|
|
|
/**
|
|
|
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
|
* @param root The root element or node to start traversing on.
|
|
|
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
|
|
|
* @param filter A custom NodeFilter function to use.
|
|
|
*/
|
|
|
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
|
|
|
/**
|
|
|
* 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[];
|
|
|
/**
|
|
|
* Executes a command on the current document, current selection, or the given range.
|
|
|
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
|
|
|
* @param showUI Display the user interface, defaults to false.
|
|
|
* @param value Value to assign.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
|
|
|
/**
|
|
|
* Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
|
|
|
*/
|
|
|
exitFullscreen(): Promise<void>;
|
|
|
exitPictureInPicture(): Promise<void>;
|
|
|
exitPointerLock(): void;
|
|
|
/**
|
|
|
* Returns a reference to the first object with the specified value of the ID attribute.
|
|
|
* @param elementId String that specifies the ID value.
|
|
|
*/
|
|
|
getElementById(elementId: string): HTMLElement | null;
|
|
|
/**
|
|
|
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
|
|
|
*/
|
|
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* Gets a collection of objects based on the value of the NAME or ID attribute.
|
|
|
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
|
|
|
*/
|
|
|
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
|
|
|
/**
|
|
|
* Retrieves a collection of objects based on the specified element name.
|
|
|
* @param name Specifies the name of an element.
|
|
|
*/
|
|
|
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
|
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
|
|
|
*
|
|
|
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
|
|
|
*
|
|
|
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
|
|
|
*
|
|
|
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
|
|
|
*/
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
|
|
|
*/
|
|
|
getSelection(): Selection | null;
|
|
|
/**
|
|
|
* Gets a value indicating whether the object currently has focus.
|
|
|
*/
|
|
|
hasFocus(): boolean;
|
|
|
hasStorageAccess(): Promise<boolean>;
|
|
|
/**
|
|
|
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
|
|
|
*
|
|
|
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
|
|
|
*/
|
|
|
importNode<T extends Node>(node: T, deep?: boolean): T;
|
|
|
/**
|
|
|
* Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
|
|
|
* @param url Specifies a MIME type for the document.
|
|
|
* @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
|
|
|
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
|
|
|
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
|
|
|
*/
|
|
|
open(unused1?: string, unused2?: string): Document;
|
|
|
open(url: string | URL, name: string, features: string): WindowProxy | null;
|
|
|
/**
|
|
|
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
|
|
|
* @param commandId Specifies a command identifier.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
queryCommandEnabled(commandId: string): boolean;
|
|
|
/**
|
|
|
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
|
|
|
* @param commandId String that specifies a command identifier.
|
|
|
*/
|
|
|
queryCommandIndeterm(commandId: string): boolean;
|
|
|
/**
|
|
|
* Returns a Boolean value that indicates the current state of the command.
|
|
|
* @param commandId String that specifies a command identifier.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
queryCommandState(commandId: string): boolean;
|
|
|
/**
|
|
|
* Returns a Boolean value that indicates whether the current command is supported on the current range.
|
|
|
* @param commandId Specifies a command identifier.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
queryCommandSupported(commandId: string): boolean;
|
|
|
/**
|
|
|
* Returns the current value of the document, range, or current selection for the given command.
|
|
|
* @param commandId String that specifies a command identifier.
|
|
|
*/
|
|
|
queryCommandValue(commandId: string): string;
|
|
|
/** @deprecated */
|
|
|
releaseEvents(): void;
|
|
|
requestStorageAccess(): Promise<void>;
|
|
|
/**
|
|
|
* Writes one or more HTML expressions to a document in the specified window.
|
|
|
* @param content Specifies the text and HTML tags to write.
|
|
|
*/
|
|
|
write(...text: string[]): void;
|
|
|
/**
|
|
|
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
|
|
|
* @param content The text and HTML tags to write.
|
|
|
*/
|
|
|
writeln(...text: string[]): void;
|
|
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Document: {
|
|
|
prototype: Document;
|
|
|
new(): Document;
|
|
|
};
|
|
|
|
|
|
interface DocumentAndElementEventHandlersEventMap {
|
|
|
"copy": ClipboardEvent;
|
|
|
"cut": ClipboardEvent;
|
|
|
"paste": ClipboardEvent;
|
|
|
}
|
|
|
|
|
|
interface DocumentAndElementEventHandlers {
|
|
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
|
addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
|
|
|
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
|
|
|
readonly ownerDocument: Document;
|
|
|
getElementById(elementId: string): HTMLElement | null;
|
|
|
}
|
|
|
|
|
|
declare var DocumentFragment: {
|
|
|
prototype: DocumentFragment;
|
|
|
new(): DocumentFragment;
|
|
|
};
|
|
|
|
|
|
interface DocumentOrShadowRoot {
|
|
|
/**
|
|
|
* Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
|
|
|
*
|
|
|
* For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
|
|
|
*
|
|
|
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
|
|
|
*/
|
|
|
readonly activeElement: Element | null;
|
|
|
/**
|
|
|
* Returns document's fullscreen element.
|
|
|
*/
|
|
|
readonly fullscreenElement: Element | null;
|
|
|
readonly pictureInPictureElement: Element | null;
|
|
|
readonly pointerLockElement: Element | null;
|
|
|
/**
|
|
|
* Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
|
|
|
*/
|
|
|
readonly styleSheets: StyleSheetList;
|
|
|
getAnimations(): Animation[];
|
|
|
}
|
|
|
|
|
|
interface DocumentTimeline extends AnimationTimeline {
|
|
|
}
|
|
|
|
|
|
declare var DocumentTimeline: {
|
|
|
prototype: DocumentTimeline;
|
|
|
new(options?: DocumentTimelineOptions): DocumentTimeline;
|
|
|
};
|
|
|
|
|
|
/** A Node containing a doctype. */
|
|
|
interface DocumentType extends Node, ChildNode {
|
|
|
readonly name: string;
|
|
|
readonly ownerDocument: Document;
|
|
|
readonly publicId: string;
|
|
|
readonly systemId: string;
|
|
|
}
|
|
|
|
|
|
declare var DocumentType: {
|
|
|
prototype: DocumentType;
|
|
|
new(): DocumentType;
|
|
|
};
|
|
|
|
|
|
/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */
|
|
|
interface DragEvent extends MouseEvent {
|
|
|
/**
|
|
|
* Returns the DataTransfer object for the event.
|
|
|
*/
|
|
|
readonly dataTransfer: DataTransfer | null;
|
|
|
}
|
|
|
|
|
|
declare var DragEvent: {
|
|
|
prototype: DragEvent;
|
|
|
new(type: string, eventInitDict?: DragEventInit): DragEvent;
|
|
|
};
|
|
|
|
|
|
/** Inherits properties from its parent, AudioNode. */
|
|
|
interface DynamicsCompressorNode extends AudioNode {
|
|
|
readonly attack: AudioParam;
|
|
|
readonly knee: AudioParam;
|
|
|
readonly ratio: AudioParam;
|
|
|
readonly reduction: number;
|
|
|
readonly release: AudioParam;
|
|
|
readonly threshold: AudioParam;
|
|
|
}
|
|
|
|
|
|
declare var DynamicsCompressorNode: {
|
|
|
prototype: DynamicsCompressorNode;
|
|
|
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
|
|
|
};
|
|
|
|
|
|
interface EXT_blend_minmax {
|
|
|
readonly MAX_EXT: GLenum;
|
|
|
readonly MIN_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface EXT_color_buffer_float {
|
|
|
}
|
|
|
|
|
|
interface EXT_color_buffer_half_float {
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
|
readonly RGB16F_EXT: GLenum;
|
|
|
readonly RGBA16F_EXT: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface EXT_float_blend {
|
|
|
}
|
|
|
|
|
|
/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
|
|
|
interface EXT_frag_depth {
|
|
|
}
|
|
|
|
|
|
interface EXT_sRGB {
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
|
|
|
readonly SRGB8_ALPHA8_EXT: GLenum;
|
|
|
readonly SRGB_ALPHA_EXT: GLenum;
|
|
|
readonly SRGB_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface EXT_shader_texture_lod {
|
|
|
}
|
|
|
|
|
|
interface EXT_texture_compression_rgtc {
|
|
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
|
|
|
interface EXT_texture_filter_anisotropic {
|
|
|
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
|
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface ElementEventMap {
|
|
|
"fullscreenchange": Event;
|
|
|
"fullscreenerror": Event;
|
|
|
}
|
|
|
|
|
|
/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
|
|
|
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
|
|
|
readonly attributes: NamedNodeMap;
|
|
|
/**
|
|
|
* Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
|
|
|
*/
|
|
|
readonly classList: DOMTokenList;
|
|
|
/**
|
|
|
* Returns the value of element's class content attribute. Can be set to change it.
|
|
|
*/
|
|
|
className: string;
|
|
|
readonly clientHeight: number;
|
|
|
readonly clientLeft: number;
|
|
|
readonly clientTop: number;
|
|
|
readonly clientWidth: number;
|
|
|
/**
|
|
|
* Returns the value of element's id content attribute. Can be set to change it.
|
|
|
*/
|
|
|
id: string;
|
|
|
/**
|
|
|
* Returns the local name.
|
|
|
*/
|
|
|
readonly localName: string;
|
|
|
/**
|
|
|
* Returns the namespace.
|
|
|
*/
|
|
|
readonly namespaceURI: string | null;
|
|
|
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
|
outerHTML: string;
|
|
|
readonly ownerDocument: Document;
|
|
|
readonly part: DOMTokenList;
|
|
|
/**
|
|
|
* Returns the namespace prefix.
|
|
|
*/
|
|
|
readonly prefix: string | null;
|
|
|
readonly scrollHeight: number;
|
|
|
scrollLeft: number;
|
|
|
scrollTop: number;
|
|
|
readonly scrollWidth: number;
|
|
|
/**
|
|
|
* Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
|
|
|
*/
|
|
|
readonly shadowRoot: ShadowRoot | null;
|
|
|
/**
|
|
|
* Returns the value of element's slot content attribute. Can be set to change it.
|
|
|
*/
|
|
|
slot: string;
|
|
|
/**
|
|
|
* Returns the HTML-uppercased qualified name.
|
|
|
*/
|
|
|
readonly tagName: string;
|
|
|
/**
|
|
|
* Creates a shadow root for element and returns it.
|
|
|
*/
|
|
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
|
/**
|
|
|
* Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
|
|
|
*/
|
|
|
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
|
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
|
/**
|
|
|
* Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
|
|
|
*/
|
|
|
getAttribute(qualifiedName: string): string | null;
|
|
|
/**
|
|
|
* Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
|
|
|
*/
|
|
|
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
|
/**
|
|
|
* Returns the qualified names of all element's attributes. Can contain duplicates.
|
|
|
*/
|
|
|
getAttributeNames(): string[];
|
|
|
getAttributeNode(qualifiedName: string): Attr | null;
|
|
|
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
|
getBoundingClientRect(): DOMRect;
|
|
|
getClientRects(): DOMRectList;
|
|
|
/**
|
|
|
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
|
|
|
*/
|
|
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
|
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
|
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
|
|
|
*/
|
|
|
hasAttribute(qualifiedName: string): boolean;
|
|
|
/**
|
|
|
* Returns true if element has an attribute whose namespace is namespace and local name is localName.
|
|
|
*/
|
|
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
|
/**
|
|
|
* Returns true if element has attributes, and false otherwise.
|
|
|
*/
|
|
|
hasAttributes(): boolean;
|
|
|
hasPointerCapture(pointerId: number): boolean;
|
|
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
|
/**
|
|
|
* Returns true if matching selectors against element's root yields element, and false otherwise.
|
|
|
*/
|
|
|
matches(selectors: string): boolean;
|
|
|
releasePointerCapture(pointerId: number): void;
|
|
|
/**
|
|
|
* Removes element's first attribute whose qualified name is qualifiedName.
|
|
|
*/
|
|
|
removeAttribute(qualifiedName: string): void;
|
|
|
/**
|
|
|
* Removes element's attribute whose namespace is namespace and local name is localName.
|
|
|
*/
|
|
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
|
removeAttributeNode(attr: Attr): Attr;
|
|
|
/**
|
|
|
* Displays element fullscreen and resolves promise when done.
|
|
|
*
|
|
|
* When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
|
|
|
*/
|
|
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
|
requestPointerLock(): void;
|
|
|
scroll(options?: ScrollToOptions): void;
|
|
|
scroll(x: number, y: number): void;
|
|
|
scrollBy(options?: ScrollToOptions): void;
|
|
|
scrollBy(x: number, y: number): void;
|
|
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
|
scrollTo(options?: ScrollToOptions): void;
|
|
|
scrollTo(x: number, y: number): void;
|
|
|
/**
|
|
|
* Sets the value of element's first attribute whose qualified name is qualifiedName to value.
|
|
|
*/
|
|
|
setAttribute(qualifiedName: string, value: string): void;
|
|
|
/**
|
|
|
* Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
|
|
|
*/
|
|
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
|
setAttributeNode(attr: Attr): Attr | null;
|
|
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
|
setPointerCapture(pointerId: number): void;
|
|
|
/**
|
|
|
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
|
|
|
*
|
|
|
* Returns true if qualifiedName is now present, and false otherwise.
|
|
|
*/
|
|
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
|
/** @deprecated This is a legacy alias of \`matches\`. */
|
|
|
webkitMatchesSelector(selectors: string): boolean;
|
|
|
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Element: {
|
|
|
prototype: Element;
|
|
|
new(): Element;
|
|
|
};
|
|
|
|
|
|
interface ElementCSSInlineStyle {
|
|
|
readonly style: CSSStyleDeclaration;
|
|
|
}
|
|
|
|
|
|
interface ElementContentEditable {
|
|
|
contentEditable: string;
|
|
|
enterKeyHint: string;
|
|
|
inputMode: string;
|
|
|
readonly isContentEditable: boolean;
|
|
|
}
|
|
|
|
|
|
/** Events providing information related to errors in scripts or in files. */
|
|
|
interface ErrorEvent extends Event {
|
|
|
readonly colno: number;
|
|
|
readonly error: any;
|
|
|
readonly filename: string;
|
|
|
readonly lineno: number;
|
|
|
readonly message: string;
|
|
|
}
|
|
|
|
|
|
declare var ErrorEvent: {
|
|
|
prototype: ErrorEvent;
|
|
|
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** An event which takes place in the DOM. */
|
|
|
interface Event {
|
|
|
/**
|
|
|
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
|
|
|
*/
|
|
|
readonly bubbles: boolean;
|
|
|
cancelBubble: boolean;
|
|
|
/**
|
|
|
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
|
|
|
*/
|
|
|
readonly cancelable: boolean;
|
|
|
/**
|
|
|
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
|
|
|
*/
|
|
|
readonly composed: boolean;
|
|
|
/**
|
|
|
* Returns the object whose event listener's callback is currently being invoked.
|
|
|
*/
|
|
|
readonly currentTarget: EventTarget | null;
|
|
|
/**
|
|
|
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
|
|
|
*/
|
|
|
readonly defaultPrevented: boolean;
|
|
|
/**
|
|
|
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
|
|
|
*/
|
|
|
readonly eventPhase: number;
|
|
|
/**
|
|
|
* Returns true if event was dispatched by the user agent, and false otherwise.
|
|
|
*/
|
|
|
readonly isTrusted: boolean;
|
|
|
/** @deprecated */
|
|
|
returnValue: boolean;
|
|
|
/** @deprecated */
|
|
|
readonly srcElement: EventTarget | null;
|
|
|
/**
|
|
|
* Returns the object to which event is dispatched (its target).
|
|
|
*/
|
|
|
readonly target: EventTarget | null;
|
|
|
/**
|
|
|
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
|
|
|
*/
|
|
|
readonly timeStamp: DOMHighResTimeStamp;
|
|
|
/**
|
|
|
* Returns the type of event, e.g. "click", "hashchange", or "submit".
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
|
|
|
*/
|
|
|
composedPath(): EventTarget[];
|
|
|
/** @deprecated */
|
|
|
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
|
/**
|
|
|
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
|
|
|
*/
|
|
|
preventDefault(): void;
|
|
|
/**
|
|
|
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
|
|
|
*/
|
|
|
stopImmediatePropagation(): void;
|
|
|
/**
|
|
|
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
|
|
|
*/
|
|
|
stopPropagation(): void;
|
|
|
readonly AT_TARGET: number;
|
|
|
readonly BUBBLING_PHASE: number;
|
|
|
readonly CAPTURING_PHASE: number;
|
|
|
readonly NONE: number;
|
|
|
}
|
|
|
|
|
|
declare var Event: {
|
|
|
prototype: Event;
|
|
|
new(type: string, eventInitDict?: EventInit): Event;
|
|
|
readonly AT_TARGET: number;
|
|
|
readonly BUBBLING_PHASE: number;
|
|
|
readonly CAPTURING_PHASE: number;
|
|
|
readonly NONE: number;
|
|
|
};
|
|
|
|
|
|
interface EventListener {
|
|
|
(evt: Event): void;
|
|
|
}
|
|
|
|
|
|
interface EventListenerObject {
|
|
|
handleEvent(object: Event): void;
|
|
|
}
|
|
|
|
|
|
interface EventSourceEventMap {
|
|
|
"error": Event;
|
|
|
"message": MessageEvent;
|
|
|
"open": Event;
|
|
|
}
|
|
|
|
|
|
interface EventSource extends EventTarget {
|
|
|
onerror: ((this: EventSource, ev: Event) => any) | null;
|
|
|
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
|
|
|
onopen: ((this: EventSource, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns the state of this EventSource object's connection. It can have the values described below.
|
|
|
*/
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns the URL providing the event stream.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
/**
|
|
|
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
|
|
|
*/
|
|
|
readonly withCredentials: boolean;
|
|
|
/**
|
|
|
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
|
|
|
*/
|
|
|
close(): void;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => 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: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var EventSource: {
|
|
|
prototype: EventSource;
|
|
|
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
};
|
|
|
|
|
|
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
|
|
|
interface EventTarget {
|
|
|
/**
|
|
|
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
|
|
|
*
|
|
|
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
|
|
|
*
|
|
|
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
|
|
|
*
|
|
|
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
|
|
|
*
|
|
|
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
|
|
|
*
|
|
|
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
|
|
|
*
|
|
|
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
|
|
|
*/
|
|
|
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
|
/**
|
|
|
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
|
*/
|
|
|
dispatchEvent(event: Event): boolean;
|
|
|
/**
|
|
|
* Removes the event listener in target's event listener list with the same type, callback, and options.
|
|
|
*/
|
|
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
|
}
|
|
|
|
|
|
declare var EventTarget: {
|
|
|
prototype: EventTarget;
|
|
|
new(): EventTarget;
|
|
|
};
|
|
|
|
|
|
/** @deprecated */
|
|
|
interface External {
|
|
|
/** @deprecated */
|
|
|
AddSearchProvider(): void;
|
|
|
/** @deprecated */
|
|
|
IsSearchProviderInstalled(): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var External: {
|
|
|
prototype: External;
|
|
|
new(): External;
|
|
|
};
|
|
|
|
|
|
/** Provides information about files and allows JavaScript in a web page to access their content. */
|
|
|
interface File extends Blob {
|
|
|
readonly lastModified: number;
|
|
|
readonly name: string;
|
|
|
readonly webkitRelativePath: string;
|
|
|
}
|
|
|
|
|
|
declare var File: {
|
|
|
prototype: File;
|
|
|
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
|
|
|
};
|
|
|
|
|
|
/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
|
|
|
interface FileList {
|
|
|
readonly length: number;
|
|
|
item(index: number): File | null;
|
|
|
[index: number]: File;
|
|
|
}
|
|
|
|
|
|
declare var FileList: {
|
|
|
prototype: FileList;
|
|
|
new(): FileList;
|
|
|
};
|
|
|
|
|
|
interface FileReaderEventMap {
|
|
|
"abort": ProgressEvent<FileReader>;
|
|
|
"error": ProgressEvent<FileReader>;
|
|
|
"load": ProgressEvent<FileReader>;
|
|
|
"loadend": ProgressEvent<FileReader>;
|
|
|
"loadstart": ProgressEvent<FileReader>;
|
|
|
"progress": ProgressEvent<FileReader>;
|
|
|
}
|
|
|
|
|
|
/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
|
|
|
interface FileReader extends EventTarget {
|
|
|
readonly error: DOMException | null;
|
|
|
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
readonly readyState: number;
|
|
|
readonly result: string | ArrayBuffer | null;
|
|
|
abort(): void;
|
|
|
readAsArrayBuffer(blob: Blob): void;
|
|
|
readAsBinaryString(blob: Blob): void;
|
|
|
readAsDataURL(blob: Blob): void;
|
|
|
readAsText(blob: Blob, encoding?: string): void;
|
|
|
readonly DONE: number;
|
|
|
readonly EMPTY: number;
|
|
|
readonly LOADING: number;
|
|
|
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 DONE: number;
|
|
|
readonly EMPTY: number;
|
|
|
readonly LOADING: number;
|
|
|
};
|
|
|
|
|
|
interface FileSystem {
|
|
|
readonly name: string;
|
|
|
readonly root: FileSystemDirectoryEntry;
|
|
|
}
|
|
|
|
|
|
declare var FileSystem: {
|
|
|
prototype: FileSystem;
|
|
|
new(): FileSystem;
|
|
|
};
|
|
|
|
|
|
interface FileSystemDirectoryEntry extends FileSystemEntry {
|
|
|
createReader(): FileSystemDirectoryReader;
|
|
|
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
|
|
|
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
|
|
|
}
|
|
|
|
|
|
declare var FileSystemDirectoryEntry: {
|
|
|
prototype: FileSystemDirectoryEntry;
|
|
|
new(): FileSystemDirectoryEntry;
|
|
|
};
|
|
|
|
|
|
/** @deprecated */
|
|
|
interface FileSystemDirectoryReader {
|
|
|
/** @deprecated */
|
|
|
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var FileSystemDirectoryReader: {
|
|
|
prototype: FileSystemDirectoryReader;
|
|
|
new(): FileSystemDirectoryReader;
|
|
|
};
|
|
|
|
|
|
interface FileSystemEntry {
|
|
|
readonly filesystem: FileSystem;
|
|
|
readonly fullPath: string;
|
|
|
readonly isDirectory: boolean;
|
|
|
readonly isFile: boolean;
|
|
|
readonly name: string;
|
|
|
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
|
|
|
}
|
|
|
|
|
|
declare var FileSystemEntry: {
|
|
|
prototype: FileSystemEntry;
|
|
|
new(): FileSystemEntry;
|
|
|
};
|
|
|
|
|
|
interface FileSystemFileEntry extends FileSystemEntry {
|
|
|
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
|
|
|
}
|
|
|
|
|
|
declare var FileSystemFileEntry: {
|
|
|
prototype: FileSystemFileEntry;
|
|
|
new(): FileSystemFileEntry;
|
|
|
};
|
|
|
|
|
|
/** Focus-related events like focus, blur, focusin, or focusout. */
|
|
|
interface FocusEvent extends UIEvent {
|
|
|
readonly relatedTarget: EventTarget | null;
|
|
|
}
|
|
|
|
|
|
declare var FocusEvent: {
|
|
|
prototype: FocusEvent;
|
|
|
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
|
|
|
};
|
|
|
|
|
|
interface FontFace {
|
|
|
ascentOverride: string;
|
|
|
descentOverride: string;
|
|
|
display: string;
|
|
|
family: string;
|
|
|
featureSettings: string;
|
|
|
lineGapOverride: string;
|
|
|
readonly loaded: Promise<FontFace>;
|
|
|
readonly status: FontFaceLoadStatus;
|
|
|
stretch: string;
|
|
|
style: string;
|
|
|
unicodeRange: string;
|
|
|
variant: string;
|
|
|
variationSettings: string;
|
|
|
weight: string;
|
|
|
load(): Promise<FontFace>;
|
|
|
}
|
|
|
|
|
|
declare var FontFace: {
|
|
|
prototype: FontFace;
|
|
|
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
|
|
|
};
|
|
|
|
|
|
interface FontFaceSetEventMap {
|
|
|
"loading": Event;
|
|
|
"loadingdone": Event;
|
|
|
"loadingerror": Event;
|
|
|
}
|
|
|
|
|
|
interface FontFaceSet extends EventTarget {
|
|
|
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
|
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
|
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
|
readonly ready: Promise<FontFaceSet>;
|
|
|
readonly status: FontFaceSetLoadStatus;
|
|
|
check(font: string, text?: string): boolean;
|
|
|
load(font: string, text?: string): Promise<FontFace[]>;
|
|
|
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
|
|
|
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var FontFaceSet: {
|
|
|
prototype: FontFaceSet;
|
|
|
new(initialFaces: FontFace[]): FontFaceSet;
|
|
|
};
|
|
|
|
|
|
interface FontFaceSetLoadEvent extends Event {
|
|
|
readonly fontfaces: ReadonlyArray<FontFace>;
|
|
|
}
|
|
|
|
|
|
declare var FontFaceSetLoadEvent: {
|
|
|
prototype: FontFaceSetLoadEvent;
|
|
|
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
|
|
|
};
|
|
|
|
|
|
interface FontFaceSource {
|
|
|
readonly fonts: FontFaceSet;
|
|
|
}
|
|
|
|
|
|
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
|
|
|
interface FormData {
|
|
|
append(name: string, value: string | Blob, fileName?: string): void;
|
|
|
delete(name: string): void;
|
|
|
get(name: string): FormDataEntryValue | null;
|
|
|
getAll(name: string): FormDataEntryValue[];
|
|
|
has(name: string): boolean;
|
|
|
set(name: string, value: string | Blob, fileName?: string): void;
|
|
|
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var FormData: {
|
|
|
prototype: FormData;
|
|
|
new(form?: HTMLFormElement): FormData;
|
|
|
};
|
|
|
|
|
|
interface FormDataEvent extends Event {
|
|
|
/**
|
|
|
* Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.
|
|
|
*/
|
|
|
readonly formData: FormData;
|
|
|
}
|
|
|
|
|
|
declare var FormDataEvent: {
|
|
|
prototype: FormDataEvent;
|
|
|
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
|
|
|
};
|
|
|
|
|
|
/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
|
|
|
interface GainNode extends AudioNode {
|
|
|
readonly gain: AudioParam;
|
|
|
}
|
|
|
|
|
|
declare var GainNode: {
|
|
|
prototype: GainNode;
|
|
|
new(context: BaseAudioContext, options?: GainOptions): GainNode;
|
|
|
};
|
|
|
|
|
|
/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */
|
|
|
interface Gamepad {
|
|
|
readonly axes: ReadonlyArray<number>;
|
|
|
readonly buttons: ReadonlyArray<GamepadButton>;
|
|
|
readonly connected: boolean;
|
|
|
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
|
|
|
readonly id: string;
|
|
|
readonly index: number;
|
|
|
readonly mapping: GamepadMappingType;
|
|
|
readonly timestamp: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
declare var Gamepad: {
|
|
|
prototype: Gamepad;
|
|
|
new(): Gamepad;
|
|
|
};
|
|
|
|
|
|
/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */
|
|
|
interface GamepadButton {
|
|
|
readonly pressed: boolean;
|
|
|
readonly touched: boolean;
|
|
|
readonly value: number;
|
|
|
}
|
|
|
|
|
|
declare var GamepadButton: {
|
|
|
prototype: GamepadButton;
|
|
|
new(): GamepadButton;
|
|
|
};
|
|
|
|
|
|
/** This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. */
|
|
|
interface GamepadEvent extends Event {
|
|
|
readonly gamepad: Gamepad;
|
|
|
}
|
|
|
|
|
|
declare var GamepadEvent: {
|
|
|
prototype: GamepadEvent;
|
|
|
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
|
|
|
};
|
|
|
|
|
|
/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
|
|
|
interface GamepadHapticActuator {
|
|
|
readonly type: GamepadHapticActuatorType;
|
|
|
}
|
|
|
|
|
|
declare var GamepadHapticActuator: {
|
|
|
prototype: GamepadHapticActuator;
|
|
|
new(): GamepadHapticActuator;
|
|
|
};
|
|
|
|
|
|
interface GenericTransformStream {
|
|
|
readonly readable: ReadableStream;
|
|
|
readonly writable: WritableStream;
|
|
|
}
|
|
|
|
|
|
/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
|
|
|
interface Geolocation {
|
|
|
clearWatch(watchId: number): void;
|
|
|
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
|
|
|
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
|
|
|
}
|
|
|
|
|
|
declare var Geolocation: {
|
|
|
prototype: Geolocation;
|
|
|
new(): Geolocation;
|
|
|
};
|
|
|
|
|
|
interface GeolocationCoordinates {
|
|
|
readonly accuracy: number;
|
|
|
readonly altitude: number | null;
|
|
|
readonly altitudeAccuracy: number | null;
|
|
|
readonly heading: number | null;
|
|
|
readonly latitude: number;
|
|
|
readonly longitude: number;
|
|
|
readonly speed: number | null;
|
|
|
}
|
|
|
|
|
|
declare var GeolocationCoordinates: {
|
|
|
prototype: GeolocationCoordinates;
|
|
|
new(): GeolocationCoordinates;
|
|
|
};
|
|
|
|
|
|
interface GeolocationPosition {
|
|
|
readonly coords: GeolocationCoordinates;
|
|
|
readonly timestamp: DOMTimeStamp;
|
|
|
}
|
|
|
|
|
|
declare var GeolocationPosition: {
|
|
|
prototype: GeolocationPosition;
|
|
|
new(): GeolocationPosition;
|
|
|
};
|
|
|
|
|
|
interface GeolocationPositionError {
|
|
|
readonly code: number;
|
|
|
readonly message: string;
|
|
|
readonly PERMISSION_DENIED: number;
|
|
|
readonly POSITION_UNAVAILABLE: number;
|
|
|
readonly TIMEOUT: number;
|
|
|
}
|
|
|
|
|
|
declare var GeolocationPositionError: {
|
|
|
prototype: GeolocationPositionError;
|
|
|
new(): GeolocationPositionError;
|
|
|
readonly PERMISSION_DENIED: number;
|
|
|
readonly POSITION_UNAVAILABLE: number;
|
|
|
readonly TIMEOUT: number;
|
|
|
};
|
|
|
|
|
|
interface GlobalEventHandlersEventMap {
|
|
|
"abort": UIEvent;
|
|
|
"animationcancel": AnimationEvent;
|
|
|
"animationend": AnimationEvent;
|
|
|
"animationiteration": AnimationEvent;
|
|
|
"animationstart": AnimationEvent;
|
|
|
"auxclick": MouseEvent;
|
|
|
"beforeinput": InputEvent;
|
|
|
"blur": FocusEvent;
|
|
|
"canplay": Event;
|
|
|
"canplaythrough": Event;
|
|
|
"change": Event;
|
|
|
"click": MouseEvent;
|
|
|
"close": Event;
|
|
|
"compositionend": CompositionEvent;
|
|
|
"compositionstart": CompositionEvent;
|
|
|
"compositionupdate": CompositionEvent;
|
|
|
"contextmenu": MouseEvent;
|
|
|
"cuechange": Event;
|
|
|
"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;
|
|
|
"pause": Event;
|
|
|
"play": Event;
|
|
|
"playing": Event;
|
|
|
"pointercancel": PointerEvent;
|
|
|
"pointerdown": PointerEvent;
|
|
|
"pointerenter": PointerEvent;
|
|
|
"pointerleave": PointerEvent;
|
|
|
"pointermove": PointerEvent;
|
|
|
"pointerout": PointerEvent;
|
|
|
"pointerover": PointerEvent;
|
|
|
"pointerup": PointerEvent;
|
|
|
"progress": ProgressEvent;
|
|
|
"ratechange": Event;
|
|
|
"reset": Event;
|
|
|
"resize": UIEvent;
|
|
|
"scroll": Event;
|
|
|
"securitypolicyviolation": SecurityPolicyViolationEvent;
|
|
|
"seeked": Event;
|
|
|
"seeking": Event;
|
|
|
"select": Event;
|
|
|
"selectionchange": Event;
|
|
|
"selectstart": Event;
|
|
|
"stalled": Event;
|
|
|
"submit": Event;
|
|
|
"suspend": Event;
|
|
|
"timeupdate": Event;
|
|
|
"toggle": Event;
|
|
|
"touchcancel": TouchEvent;
|
|
|
"touchend": TouchEvent;
|
|
|
"touchmove": TouchEvent;
|
|
|
"touchstart": TouchEvent;
|
|
|
"transitioncancel": TransitionEvent;
|
|
|
"transitionend": TransitionEvent;
|
|
|
"transitionrun": TransitionEvent;
|
|
|
"transitionstart": TransitionEvent;
|
|
|
"volumechange": Event;
|
|
|
"waiting": Event;
|
|
|
"webkitanimationend": Event;
|
|
|
"webkitanimationiteration": Event;
|
|
|
"webkitanimationstart": Event;
|
|
|
"webkittransitionend": Event;
|
|
|
"wheel": WheelEvent;
|
|
|
}
|
|
|
|
|
|
interface GlobalEventHandlers {
|
|
|
/**
|
|
|
* Fires when the user aborts the download.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
|
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
|
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the object loses the input focus.
|
|
|
* @param ev The focus event.
|
|
|
*/
|
|
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback is possible, but would require further buffering.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the contents of the object or selection have changed.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the left mouse button on the object
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user double-clicks the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object continuously during a drag operation.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object when the user releases the mouse at the close of a drag operation.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target element when the user drags the object to a valid drop target.
|
|
|
* @param ev The drag event.
|
|
|
*/
|
|
|
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
|
|
|
* @param ev The drag event.
|
|
|
*/
|
|
|
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target element continuously while the user drags the object over a valid drop target.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object when the user starts to drag a text selection or selected object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
|
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the duration attribute is updated.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the media element is reset to its initial state.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the end of playback is reached.
|
|
|
* @param ev The event
|
|
|
*/
|
|
|
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when an error occurs during object loading.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onerror: OnErrorEventHandler;
|
|
|
/**
|
|
|
* Fires when the object receives focus.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user presses a key.
|
|
|
* @param ev The keyboard event
|
|
|
*/
|
|
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user presses an alphanumeric key.
|
|
|
* @param ev The event.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user releases a key.
|
|
|
* @param ev The keyboard event
|
|
|
*/
|
|
|
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires immediately after the browser loads the object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when media data is loaded at the current playback position.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the duration and dimensions of the media have been determined.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when Internet Explorer begins looking for media data.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the object with either mouse button.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse over the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse pointer outside the boundaries of the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse pointer into the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user releases a mouse button while the mouse is over the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback is paused.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the play method is requested.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the audio or video has started playing.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs to indicate progress while downloading media data.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the playback rate is increased or decreased.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user resets a form.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user repositions the scroll box in the scroll bar on the object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the seek operation ends.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the current playback position is moved.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the current selection changes.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the download has stopped.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs if the load operation has been intentionally halted.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs to indicate the current playback position.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
|
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
|
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
|
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the volume is changed, or playback is muted or unmuted.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback stops because the next frame of a video resource is not available.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
|
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
interface HTMLAllCollection {
|
|
|
/**
|
|
|
* Returns the number of elements in the collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the item with index index from the collection (determined by tree order).
|
|
|
*/
|
|
|
item(nameOrIndex?: string): HTMLCollection | Element | null;
|
|
|
/**
|
|
|
* Returns the item with ID or name name from the collection.
|
|
|
*
|
|
|
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
|
|
|
*
|
|
|
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
|
|
|
*/
|
|
|
namedItem(name: string): HTMLCollection | Element | null;
|
|
|
[index: number]: Element;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAllCollection: {
|
|
|
prototype: HTMLAllCollection;
|
|
|
new(): HTMLAllCollection;
|
|
|
};
|
|
|
|
|
|
/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
|
|
|
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
/**
|
|
|
* Sets or retrieves the character set used to encode the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
charset: string;
|
|
|
/**
|
|
|
* Sets or retrieves the coordinates of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
coords: string;
|
|
|
download: string;
|
|
|
/**
|
|
|
* Sets or retrieves the language code of the object.
|
|
|
*/
|
|
|
hreflang: string;
|
|
|
/**
|
|
|
* Sets or retrieves the shape of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
name: string;
|
|
|
ping: string;
|
|
|
referrerPolicy: string;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
*/
|
|
|
rel: string;
|
|
|
readonly relList: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
rev: string;
|
|
|
/**
|
|
|
* Sets or retrieves the shape of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
shape: string;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
/**
|
|
|
* Retrieves or sets the text of the object as a string.
|
|
|
*/
|
|
|
text: string;
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAnchorElement: {
|
|
|
prototype: HTMLAnchorElement;
|
|
|
new(): HTMLAnchorElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */
|
|
|
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
/**
|
|
|
* Sets or retrieves a text alternative to the graphic.
|
|
|
*/
|
|
|
alt: string;
|
|
|
/**
|
|
|
* Sets or retrieves the coordinates of the object.
|
|
|
*/
|
|
|
coords: string;
|
|
|
download: string;
|
|
|
/**
|
|
|
* Sets or gets whether clicks in this region cause action.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
noHref: boolean;
|
|
|
ping: string;
|
|
|
referrerPolicy: string;
|
|
|
rel: string;
|
|
|
readonly relList: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the shape of the object.
|
|
|
*/
|
|
|
shape: string;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAreaElement: {
|
|
|
prototype: HTMLAreaElement;
|
|
|
new(): HTMLAreaElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
|
|
|
interface HTMLAudioElement extends HTMLMediaElement {
|
|
|
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAudioElement: {
|
|
|
prototype: HTMLAudioElement;
|
|
|
new(): HTMLAudioElement;
|
|
|
};
|
|
|
|
|
|
/** A HTML line break element (<br>). It inherits from HTMLElement. */
|
|
|
interface HTMLBRElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
clear: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLBRElement: {
|
|
|
prototype: HTMLBRElement;
|
|
|
new(): HTMLBRElement;
|
|
|
};
|
|
|
|
|
|
/** Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
|
|
|
interface HTMLBaseElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets the baseline URL on which relative links are based.
|
|
|
*/
|
|
|
href: string;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLBaseElement: {
|
|
|
prototype: HTMLBaseElement;
|
|
|
new(): HTMLBaseElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
|
|
|
"orientationchange": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
|
|
|
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
|
|
|
/** @deprecated */
|
|
|
aLink: string;
|
|
|
/** @deprecated */
|
|
|
background: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/** @deprecated */
|
|
|
link: string;
|
|
|
/** @deprecated */
|
|
|
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
|
|
|
/** @deprecated */
|
|
|
text: string;
|
|
|
/** @deprecated */
|
|
|
vLink: string;
|
|
|
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLBodyElement: {
|
|
|
prototype: HTMLBodyElement;
|
|
|
new(): HTMLBodyElement;
|
|
|
};
|
|
|
|
|
|
/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
|
|
|
interface HTMLButtonElement extends HTMLElement {
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
|
|
|
*/
|
|
|
formAction: string;
|
|
|
/**
|
|
|
* Used to override the encoding (formEnctype attribute) specified on the form element.
|
|
|
*/
|
|
|
formEnctype: string;
|
|
|
/**
|
|
|
* Overrides the submit method attribute previously specified on a form element.
|
|
|
*/
|
|
|
formMethod: string;
|
|
|
/**
|
|
|
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
|
*/
|
|
|
formNoValidate: boolean;
|
|
|
/**
|
|
|
* Overrides the target attribute on a form element.
|
|
|
*/
|
|
|
formTarget: string;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Gets the classification and default behavior of the button.
|
|
|
*/
|
|
|
type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Sets or retrieves the default or selected value of the control.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLButtonElement: {
|
|
|
prototype: HTMLButtonElement;
|
|
|
new(): HTMLButtonElement;
|
|
|
};
|
|
|
|
|
|
/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */
|
|
|
interface HTMLCanvasElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets the height of a canvas element on a document.
|
|
|
*/
|
|
|
height: number;
|
|
|
/**
|
|
|
* Gets or sets the width of a canvas element on a document.
|
|
|
*/
|
|
|
width: number;
|
|
|
captureStream(frameRequestRate?: number): MediaStream;
|
|
|
/**
|
|
|
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
|
|
|
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
|
|
|
*/
|
|
|
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
|
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
|
|
|
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
|
|
|
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
|
|
|
getContext(contextId: string, options?: any): RenderingContext | null;
|
|
|
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
|
|
|
/**
|
|
|
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
|
|
|
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
|
|
|
*/
|
|
|
toDataURL(type?: string, quality?: any): string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLCanvasElement: {
|
|
|
prototype: HTMLCanvasElement;
|
|
|
new(): HTMLCanvasElement;
|
|
|
};
|
|
|
|
|
|
/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
|
|
|
interface HTMLCollectionBase {
|
|
|
/**
|
|
|
* Sets or retrieves the number of objects in a collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Retrieves an object from various collections.
|
|
|
*/
|
|
|
item(index: number): Element | null;
|
|
|
[index: number]: Element;
|
|
|
}
|
|
|
|
|
|
interface HTMLCollection extends HTMLCollectionBase {
|
|
|
/**
|
|
|
* Retrieves a select object or an object from an options collection.
|
|
|
*/
|
|
|
namedItem(name: string): Element | null;
|
|
|
}
|
|
|
|
|
|
declare var HTMLCollection: {
|
|
|
prototype: HTMLCollection;
|
|
|
new(): HTMLCollection;
|
|
|
};
|
|
|
|
|
|
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
|
|
|
item(index: number): T | null;
|
|
|
namedItem(name: string): T | null;
|
|
|
[index: number]: T;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
|
|
|
interface HTMLDListElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDListElement: {
|
|
|
prototype: HTMLDListElement;
|
|
|
new(): HTMLDListElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
|
|
|
interface HTMLDataElement extends HTMLElement {
|
|
|
value: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDataElement: {
|
|
|
prototype: HTMLDataElement;
|
|
|
new(): HTMLDataElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
|
|
|
interface HTMLDataListElement extends HTMLElement {
|
|
|
/**
|
|
|
* Returns an HTMLCollection of the option elements of the datalist element.
|
|
|
*/
|
|
|
readonly options: HTMLCollectionOf<HTMLOptionElement>;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDataListElement: {
|
|
|
prototype: HTMLDataListElement;
|
|
|
new(): HTMLDataListElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLDetailsElement extends HTMLElement {
|
|
|
open: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDetailsElement: {
|
|
|
prototype: HTMLDetailsElement;
|
|
|
new(): HTMLDetailsElement;
|
|
|
};
|
|
|
|
|
|
/** @deprecated this is not available in most browsers */
|
|
|
interface HTMLDialogElement extends HTMLElement {
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
interface HTMLDirectoryElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var HTMLDirectoryElement: {
|
|
|
prototype: HTMLDirectoryElement;
|
|
|
new(): HTMLDirectoryElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
|
|
|
interface HTMLDivElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDivElement: {
|
|
|
prototype: HTMLDivElement;
|
|
|
new(): HTMLDivElement;
|
|
|
};
|
|
|
|
|
|
/** @deprecated use Document */
|
|
|
interface HTMLDocument extends Document {
|
|
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var HTMLDocument: {
|
|
|
prototype: HTMLDocument;
|
|
|
new(): HTMLDocument;
|
|
|
};
|
|
|
|
|
|
interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
|
|
|
interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
|
|
|
accessKey: string;
|
|
|
readonly accessKeyLabel: string;
|
|
|
autocapitalize: string;
|
|
|
dir: string;
|
|
|
draggable: boolean;
|
|
|
hidden: boolean;
|
|
|
innerText: string;
|
|
|
lang: string;
|
|
|
readonly offsetHeight: number;
|
|
|
readonly offsetLeft: number;
|
|
|
readonly offsetParent: Element | null;
|
|
|
readonly offsetTop: number;
|
|
|
readonly offsetWidth: number;
|
|
|
outerText: string;
|
|
|
spellcheck: boolean;
|
|
|
title: string;
|
|
|
translate: boolean;
|
|
|
click(): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLElement: {
|
|
|
prototype: HTMLElement;
|
|
|
new(): HTMLElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
|
|
|
interface HTMLEmbedElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: string;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URL to be loaded by the object.
|
|
|
*/
|
|
|
src: string;
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: string;
|
|
|
getSVGDocument(): Document | null;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLEmbedElement: {
|
|
|
prototype: HTMLEmbedElement;
|
|
|
new(): HTMLEmbedElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
|
|
|
interface HTMLFieldSetElement extends HTMLElement {
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Returns an HTMLCollection of the form controls in the element.
|
|
|
*/
|
|
|
readonly elements: HTMLCollection;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the string "fieldset".
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFieldSetElement: {
|
|
|
prototype: HTMLFieldSetElement;
|
|
|
new(): HTMLFieldSetElement;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface HTMLFontElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
color: string;
|
|
|
/**
|
|
|
* Sets or retrieves the current typeface family.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
face: string;
|
|
|
/** @deprecated */
|
|
|
size: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var HTMLFontElement: {
|
|
|
prototype: HTMLFontElement;
|
|
|
new(): HTMLFontElement;
|
|
|
};
|
|
|
|
|
|
/** A collection of HTML form control elements. */
|
|
|
interface HTMLFormControlsCollection extends HTMLCollectionBase {
|
|
|
/**
|
|
|
* Returns the item with ID or name name from the collection.
|
|
|
*
|
|
|
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
|
|
|
*/
|
|
|
namedItem(name: string): RadioNodeList | Element | null;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFormControlsCollection: {
|
|
|
prototype: HTMLFormControlsCollection;
|
|
|
new(): HTMLFormControlsCollection;
|
|
|
};
|
|
|
|
|
|
/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
|
|
|
interface HTMLFormElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
|
|
|
*/
|
|
|
acceptCharset: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL to which the form content is sent for processing.
|
|
|
*/
|
|
|
action: string;
|
|
|
/**
|
|
|
* Specifies whether autocomplete is applied to an editable text field.
|
|
|
*/
|
|
|
autocomplete: string;
|
|
|
/**
|
|
|
* Retrieves a collection, in source order, of all controls in a given form.
|
|
|
*/
|
|
|
readonly elements: HTMLFormControlsCollection;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME encoding for the form.
|
|
|
*/
|
|
|
encoding: string;
|
|
|
/**
|
|
|
* Sets or retrieves the encoding type for the form.
|
|
|
*/
|
|
|
enctype: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of objects in a collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Sets or retrieves how to send the form data to the server.
|
|
|
*/
|
|
|
method: string;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Designates a form that is not validated when submitted.
|
|
|
*/
|
|
|
noValidate: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
requestSubmit(submitter?: HTMLElement | null): void;
|
|
|
/**
|
|
|
* Fires when the user resets a form.
|
|
|
*/
|
|
|
reset(): void;
|
|
|
/**
|
|
|
* Fires when a FORM is about to be submitted.
|
|
|
*/
|
|
|
submit(): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: Element;
|
|
|
[name: string]: any;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFormElement: {
|
|
|
prototype: HTMLFormElement;
|
|
|
new(): HTMLFormElement;
|
|
|
};
|
|
|
|
|
|
/** @deprecated */
|
|
|
interface HTMLFrameElement extends HTMLElement {
|
|
|
/**
|
|
|
* Retrieves the document object of the page or frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly contentDocument: Document | null;
|
|
|
/**
|
|
|
* Retrieves the object of the specified.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly contentWindow: WindowProxy | null;
|
|
|
/**
|
|
|
* Sets or retrieves whether to display a border for the frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
frameBorder: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URI to a long description of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
longDesc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
marginHeight: string;
|
|
|
/**
|
|
|
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
marginWidth: string;
|
|
|
/**
|
|
|
* Sets or retrieves the frame name.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the user can resize the frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
noResize: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves whether the frame can be scrolled.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
scrolling: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URL to be loaded by the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
src: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var HTMLFrameElement: {
|
|
|
prototype: HTMLFrameElement;
|
|
|
new(): HTMLFrameElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
|
|
|
/**
|
|
|
* Sets or retrieves the frame widths of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
cols: string;
|
|
|
/**
|
|
|
* Sets or retrieves the frame heights of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
rows: string;
|
|
|
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var HTMLFrameSetElement: {
|
|
|
prototype: HTMLFrameSetElement;
|
|
|
new(): HTMLFrameSetElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
|
|
|
interface HTMLHRElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
color: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
noShade: boolean;
|
|
|
/** @deprecated */
|
|
|
size: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
width: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHRElement: {
|
|
|
prototype: HTMLHRElement;
|
|
|
new(): HTMLHRElement;
|
|
|
};
|
|
|
|
|
|
/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
|
|
|
interface HTMLHeadElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHeadElement: {
|
|
|
prototype: HTMLHeadElement;
|
|
|
new(): HTMLHeadElement;
|
|
|
};
|
|
|
|
|
|
/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
|
|
|
interface HTMLHeadingElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the table alignment.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHeadingElement: {
|
|
|
prototype: HTMLHeadingElement;
|
|
|
new(): HTMLHeadingElement;
|
|
|
};
|
|
|
|
|
|
/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
|
|
|
interface HTMLHtmlElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the DTD version that governs the current document.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
version: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHtmlElement: {
|
|
|
prototype: HTMLHtmlElement;
|
|
|
new(): HTMLHtmlElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLHyperlinkElementUtils {
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
|
|
|
*
|
|
|
* Can be set, to change the URL's fragment (ignores leading "#").
|
|
|
*/
|
|
|
hash: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
|
|
|
*
|
|
|
* Can be set, to change the URL's host and port.
|
|
|
*/
|
|
|
host: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's host.
|
|
|
*
|
|
|
* Can be set, to change the URL's host.
|
|
|
*/
|
|
|
hostname: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL.
|
|
|
*
|
|
|
* Can be set, to change the URL.
|
|
|
*/
|
|
|
href: string;
|
|
|
toString(): string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's origin.
|
|
|
*/
|
|
|
readonly origin: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's password.
|
|
|
*
|
|
|
* Can be set, to change the URL's password.
|
|
|
*/
|
|
|
password: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's path.
|
|
|
*
|
|
|
* Can be set, to change the URL's path.
|
|
|
*/
|
|
|
pathname: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's port.
|
|
|
*
|
|
|
* Can be set, to change the URL's port.
|
|
|
*/
|
|
|
port: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's scheme.
|
|
|
*
|
|
|
* Can be set, to change the URL's scheme.
|
|
|
*/
|
|
|
protocol: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's query (includes leading "?" if non-empty).
|
|
|
*
|
|
|
* Can be set, to change the URL's query (ignores leading "?").
|
|
|
*/
|
|
|
search: string;
|
|
|
/**
|
|
|
* Returns the hyperlink's URL's username.
|
|
|
*
|
|
|
* Can be set, to change the URL's username.
|
|
|
*/
|
|
|
username: string;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */
|
|
|
interface HTMLIFrameElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
allow: string;
|
|
|
allowFullscreen: boolean;
|
|
|
/**
|
|
|
* Retrieves the document object of the page or frame.
|
|
|
*/
|
|
|
readonly contentDocument: Document | null;
|
|
|
/**
|
|
|
* Retrieves the object of the specified.
|
|
|
*/
|
|
|
readonly contentWindow: WindowProxy | null;
|
|
|
/**
|
|
|
* Sets or retrieves whether to display a border for the frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
frameBorder: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URI to a long description of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
longDesc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
marginHeight: string;
|
|
|
/**
|
|
|
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
marginWidth: string;
|
|
|
/**
|
|
|
* Sets or retrieves the frame name.
|
|
|
*/
|
|
|
name: string;
|
|
|
referrerPolicy: ReferrerPolicy;
|
|
|
readonly sandbox: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves whether the frame can be scrolled.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
scrolling: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URL to be loaded by the object.
|
|
|
*/
|
|
|
src: string;
|
|
|
/**
|
|
|
* Sets or retrives the content of the page that is to contain.
|
|
|
*/
|
|
|
srcdoc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: string;
|
|
|
getSVGDocument(): Document | null;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLIFrameElement: {
|
|
|
prototype: HTMLIFrameElement;
|
|
|
new(): HTMLIFrameElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods for manipulating <img> elements. */
|
|
|
interface HTMLImageElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a text alternative to the graphic.
|
|
|
*/
|
|
|
alt: string;
|
|
|
/**
|
|
|
* Specifies the properties of a border drawn around an object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
border: string;
|
|
|
/**
|
|
|
* Retrieves whether the object is fully loaded.
|
|
|
*/
|
|
|
readonly complete: boolean;
|
|
|
crossOrigin: string | null;
|
|
|
readonly currentSrc: string;
|
|
|
decoding: "async" | "sync" | "auto";
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: number;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the border to draw around the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
hspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves whether the image is a server-side image map.
|
|
|
*/
|
|
|
isMap: boolean;
|
|
|
loading: string;
|
|
|
/**
|
|
|
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
longDesc: string;
|
|
|
/** @deprecated */
|
|
|
lowsrc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* The original height of the image resource before sizing.
|
|
|
*/
|
|
|
readonly naturalHeight: number;
|
|
|
/**
|
|
|
* The original width of the image resource before sizing.
|
|
|
*/
|
|
|
readonly naturalWidth: number;
|
|
|
referrerPolicy: string;
|
|
|
sizes: string;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
srcset: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
|
*/
|
|
|
useMap: string;
|
|
|
/**
|
|
|
* Sets or retrieves the vertical margin for the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
vspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: number;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
decode(): Promise<void>;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLImageElement: {
|
|
|
prototype: HTMLImageElement;
|
|
|
new(): HTMLImageElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
|
|
|
interface HTMLInputElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a comma-separated list of content types.
|
|
|
*/
|
|
|
accept: string;
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a text alternative to the graphic.
|
|
|
*/
|
|
|
alt: string;
|
|
|
/**
|
|
|
* Specifies whether autocomplete is applied to an editable text field.
|
|
|
*/
|
|
|
autocomplete: string;
|
|
|
capture: string;
|
|
|
/**
|
|
|
* Sets or retrieves the state of the check box or radio button.
|
|
|
*/
|
|
|
checked: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the state of the check box or radio button.
|
|
|
*/
|
|
|
defaultChecked: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the initial contents of the object.
|
|
|
*/
|
|
|
defaultValue: string;
|
|
|
dirName: string;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Returns a FileList object on a file type input object.
|
|
|
*/
|
|
|
files: FileList | null;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
|
|
|
*/
|
|
|
formAction: string;
|
|
|
/**
|
|
|
* Used to override the encoding (formEnctype attribute) specified on the form element.
|
|
|
*/
|
|
|
formEnctype: string;
|
|
|
/**
|
|
|
* Overrides the submit method attribute previously specified on a form element.
|
|
|
*/
|
|
|
formMethod: string;
|
|
|
/**
|
|
|
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
|
*/
|
|
|
formNoValidate: boolean;
|
|
|
/**
|
|
|
* Overrides the target attribute on a form element.
|
|
|
*/
|
|
|
formTarget: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: number;
|
|
|
/**
|
|
|
* When set, overrides the rendering of checkbox controls so that the current value is not visible.
|
|
|
*/
|
|
|
indeterminate: boolean;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement> | null;
|
|
|
/**
|
|
|
* Specifies the ID of a pre-defined datalist of options for an input element.
|
|
|
*/
|
|
|
readonly list: HTMLElement | null;
|
|
|
/**
|
|
|
* Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
|
|
|
*/
|
|
|
max: string;
|
|
|
/**
|
|
|
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
|
|
*/
|
|
|
maxLength: number;
|
|
|
/**
|
|
|
* Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
|
|
|
*/
|
|
|
min: string;
|
|
|
minLength: number;
|
|
|
/**
|
|
|
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
|
|
*/
|
|
|
multiple: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Gets or sets a string containing a regular expression that the user's input must match.
|
|
|
*/
|
|
|
pattern: string;
|
|
|
/**
|
|
|
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
|
|
|
*/
|
|
|
placeholder: string;
|
|
|
readOnly: boolean;
|
|
|
/**
|
|
|
* When present, marks an element that can't be submitted without a value.
|
|
|
*/
|
|
|
required: boolean;
|
|
|
selectionDirection: "forward" | "backward" | "none" | null;
|
|
|
/**
|
|
|
* Gets or sets the end position or offset of a text selection.
|
|
|
*/
|
|
|
selectionEnd: number | null;
|
|
|
/**
|
|
|
* Gets or sets the starting position or offset of a text selection.
|
|
|
*/
|
|
|
selectionStart: number | null;
|
|
|
size: number;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
/**
|
|
|
* Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
|
|
|
*/
|
|
|
step: string;
|
|
|
/**
|
|
|
* Returns the content type of the object.
|
|
|
*/
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
useMap: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Returns the value of the data at the cursor's current position.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
|
|
|
*/
|
|
|
valueAsDate: Date | null;
|
|
|
/**
|
|
|
* Returns the input field value as a number.
|
|
|
*/
|
|
|
valueAsNumber: number;
|
|
|
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
|
webkitdirectory: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: number;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Makes the selection equal to the current object.
|
|
|
*/
|
|
|
select(): void;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
setRangeText(replacement: string): void;
|
|
|
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
|
|
|
/**
|
|
|
* Sets the start and end positions of a selection in a text field.
|
|
|
* @param start The offset into the text field for the start of the selection.
|
|
|
* @param end The offset into the text field for the end of the selection.
|
|
|
* @param direction The direction in which the selection is performed.
|
|
|
*/
|
|
|
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
|
|
|
/**
|
|
|
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
|
|
|
* @param n Value to decrement the value by.
|
|
|
*/
|
|
|
stepDown(n?: number): void;
|
|
|
/**
|
|
|
* Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
|
|
|
* @param n Value to increment the value by.
|
|
|
*/
|
|
|
stepUp(n?: number): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLInputElement: {
|
|
|
prototype: HTMLInputElement;
|
|
|
new(): HTMLInputElement;
|
|
|
};
|
|
|
|
|
|
/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
|
|
|
interface HTMLLIElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value of a list item.
|
|
|
*/
|
|
|
value: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLIElement: {
|
|
|
prototype: HTMLLIElement;
|
|
|
new(): HTMLLIElement;
|
|
|
};
|
|
|
|
|
|
/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
|
|
|
interface HTMLLabelElement extends HTMLElement {
|
|
|
/**
|
|
|
* Returns the form control that is associated with this element.
|
|
|
*/
|
|
|
readonly control: HTMLElement | null;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the object to which the given label object is assigned.
|
|
|
*/
|
|
|
htmlFor: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLabelElement: {
|
|
|
prototype: HTMLLabelElement;
|
|
|
new(): HTMLLabelElement;
|
|
|
};
|
|
|
|
|
|
/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
|
|
|
interface HTMLLegendElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLegendElement: {
|
|
|
prototype: HTMLLegendElement;
|
|
|
new(): HTMLLegendElement;
|
|
|
};
|
|
|
|
|
|
/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */
|
|
|
interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
as: string;
|
|
|
/**
|
|
|
* Sets or retrieves the character set used to encode the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
charset: string;
|
|
|
crossOrigin: string | null;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves a destination URL or an anchor point.
|
|
|
*/
|
|
|
href: string;
|
|
|
/**
|
|
|
* Sets or retrieves the language code of the object.
|
|
|
*/
|
|
|
hreflang: string;
|
|
|
imageSizes: string;
|
|
|
imageSrcset: string;
|
|
|
integrity: string;
|
|
|
/**
|
|
|
* Sets or retrieves the media type.
|
|
|
*/
|
|
|
media: string;
|
|
|
referrerPolicy: string;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
*/
|
|
|
rel: string;
|
|
|
readonly relList: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
rev: string;
|
|
|
readonly sizes: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
target: string;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME type of the object.
|
|
|
*/
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLinkElement: {
|
|
|
prototype: HTMLLinkElement;
|
|
|
new(): HTMLLinkElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */
|
|
|
interface HTMLMapElement extends HTMLElement {
|
|
|
/**
|
|
|
* Retrieves a collection of the area objects defined for the given map object.
|
|
|
*/
|
|
|
readonly areas: HTMLCollection;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMapElement: {
|
|
|
prototype: HTMLMapElement;
|
|
|
new(): HTMLMapElement;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Provides methods to manipulate <marquee> elements.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface HTMLMarqueeElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
behavior: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/** @deprecated */
|
|
|
direction: string;
|
|
|
/** @deprecated */
|
|
|
height: string;
|
|
|
/** @deprecated */
|
|
|
hspace: number;
|
|
|
/** @deprecated */
|
|
|
loop: number;
|
|
|
/** @deprecated */
|
|
|
scrollAmount: number;
|
|
|
/** @deprecated */
|
|
|
scrollDelay: number;
|
|
|
/** @deprecated */
|
|
|
trueSpeed: boolean;
|
|
|
/** @deprecated */
|
|
|
vspace: number;
|
|
|
/** @deprecated */
|
|
|
width: string;
|
|
|
/** @deprecated */
|
|
|
start(): void;
|
|
|
/** @deprecated */
|
|
|
stop(): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var HTMLMarqueeElement: {
|
|
|
prototype: HTMLMarqueeElement;
|
|
|
new(): HTMLMarqueeElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
|
|
|
"encrypted": MediaEncryptedEvent;
|
|
|
"waitingforkey": Event;
|
|
|
}
|
|
|
|
|
|
/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video. */
|
|
|
interface HTMLMediaElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets a value that indicates whether to start playing the media automatically.
|
|
|
*/
|
|
|
autoplay: boolean;
|
|
|
/**
|
|
|
* Gets a collection of buffered time ranges.
|
|
|
*/
|
|
|
readonly buffered: TimeRanges;
|
|
|
/**
|
|
|
* Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
|
|
|
*/
|
|
|
controls: boolean;
|
|
|
crossOrigin: string | null;
|
|
|
/**
|
|
|
* Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
|
|
|
*/
|
|
|
readonly currentSrc: string;
|
|
|
/**
|
|
|
* Gets or sets the current playback position, in seconds.
|
|
|
*/
|
|
|
currentTime: number;
|
|
|
defaultMuted: boolean;
|
|
|
/**
|
|
|
* Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
|
|
|
*/
|
|
|
defaultPlaybackRate: number;
|
|
|
disableRemotePlayback: boolean;
|
|
|
/**
|
|
|
* Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
|
|
|
*/
|
|
|
readonly duration: number;
|
|
|
/**
|
|
|
* Gets information about whether the playback has ended or not.
|
|
|
*/
|
|
|
readonly ended: boolean;
|
|
|
/**
|
|
|
* Returns an object representing the current error state of the audio or video element.
|
|
|
*/
|
|
|
readonly error: MediaError | null;
|
|
|
/**
|
|
|
* Gets or sets a flag to specify whether playback should restart after it completes.
|
|
|
*/
|
|
|
loop: boolean;
|
|
|
readonly mediaKeys: MediaKeys | null;
|
|
|
/**
|
|
|
* Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
|
|
|
*/
|
|
|
muted: boolean;
|
|
|
/**
|
|
|
* Gets the current network activity for the element.
|
|
|
*/
|
|
|
readonly networkState: number;
|
|
|
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
|
|
|
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Gets a flag that specifies whether playback is paused.
|
|
|
*/
|
|
|
readonly paused: boolean;
|
|
|
/**
|
|
|
* Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
|
|
|
*/
|
|
|
playbackRate: number;
|
|
|
/**
|
|
|
* Gets TimeRanges for the current media resource that has been played.
|
|
|
*/
|
|
|
readonly played: TimeRanges;
|
|
|
/**
|
|
|
* Gets or sets the current playback position, in seconds.
|
|
|
*/
|
|
|
preload: string;
|
|
|
readonly readyState: number;
|
|
|
readonly remote: RemotePlayback;
|
|
|
/**
|
|
|
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
|
|
|
*/
|
|
|
readonly seekable: TimeRanges;
|
|
|
/**
|
|
|
* Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
|
|
|
*/
|
|
|
readonly seeking: boolean;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
srcObject: MediaProvider | null;
|
|
|
readonly textTracks: TextTrackList;
|
|
|
/**
|
|
|
* Gets or sets the volume level for audio portions of the media element.
|
|
|
*/
|
|
|
volume: number;
|
|
|
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
|
|
|
/**
|
|
|
* Returns a string that specifies whether the client can play a given media resource type.
|
|
|
*/
|
|
|
canPlayType(type: string): CanPlayTypeResult;
|
|
|
fastSeek(time: number): void;
|
|
|
/**
|
|
|
* Resets the audio or video object and loads a new media resource.
|
|
|
*/
|
|
|
load(): void;
|
|
|
/**
|
|
|
* Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.
|
|
|
*/
|
|
|
pause(): void;
|
|
|
/**
|
|
|
* Loads and starts playback of a media resource.
|
|
|
*/
|
|
|
play(): Promise<void>;
|
|
|
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
|
|
|
readonly HAVE_CURRENT_DATA: number;
|
|
|
readonly HAVE_ENOUGH_DATA: number;
|
|
|
readonly HAVE_FUTURE_DATA: number;
|
|
|
readonly HAVE_METADATA: number;
|
|
|
readonly HAVE_NOTHING: number;
|
|
|
readonly NETWORK_EMPTY: number;
|
|
|
readonly NETWORK_IDLE: number;
|
|
|
readonly NETWORK_LOADING: number;
|
|
|
readonly NETWORK_NO_SOURCE: number;
|
|
|
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 HAVE_CURRENT_DATA: number;
|
|
|
readonly HAVE_ENOUGH_DATA: number;
|
|
|
readonly HAVE_FUTURE_DATA: number;
|
|
|
readonly HAVE_METADATA: number;
|
|
|
readonly HAVE_NOTHING: number;
|
|
|
readonly NETWORK_EMPTY: number;
|
|
|
readonly NETWORK_IDLE: number;
|
|
|
readonly NETWORK_LOADING: number;
|
|
|
readonly NETWORK_NO_SOURCE: number;
|
|
|
};
|
|
|
|
|
|
interface HTMLMenuElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMenuElement: {
|
|
|
prototype: HTMLMenuElement;
|
|
|
new(): HTMLMenuElement;
|
|
|
};
|
|
|
|
|
|
/** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
|
|
|
interface HTMLMetaElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets meta-information to associate with httpEquiv or name.
|
|
|
*/
|
|
|
content: string;
|
|
|
/**
|
|
|
* Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
|
|
|
*/
|
|
|
httpEquiv: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value specified in the content attribute of the meta object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
scheme: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMetaElement: {
|
|
|
prototype: HTMLMetaElement;
|
|
|
new(): HTMLMetaElement;
|
|
|
};
|
|
|
|
|
|
/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
|
|
|
interface HTMLMeterElement extends HTMLElement {
|
|
|
high: number;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
low: number;
|
|
|
max: number;
|
|
|
min: number;
|
|
|
optimum: number;
|
|
|
value: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMeterElement: {
|
|
|
prototype: HTMLMeterElement;
|
|
|
new(): HTMLMeterElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
|
|
|
interface HTMLModElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves reference information about the object.
|
|
|
*/
|
|
|
cite: string;
|
|
|
/**
|
|
|
* Sets or retrieves the date and time of a modification to the object.
|
|
|
*/
|
|
|
dateTime: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLModElement: {
|
|
|
prototype: HTMLModElement;
|
|
|
new(): HTMLModElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
|
|
|
interface HTMLOListElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
reversed: boolean;
|
|
|
/**
|
|
|
* The starting number.
|
|
|
*/
|
|
|
start: number;
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOListElement: {
|
|
|
prototype: HTMLOListElement;
|
|
|
new(): HTMLOListElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
|
|
|
interface HTMLObjectElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
archive: string;
|
|
|
/** @deprecated */
|
|
|
border: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL of the file containing the compiled Java class.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
code: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL of the component.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
codeBase: string;
|
|
|
/**
|
|
|
* Sets or retrieves the Internet media type for the code associated with the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
codeType: string;
|
|
|
/**
|
|
|
* Retrieves the document object of the page or frame.
|
|
|
*/
|
|
|
readonly contentDocument: Document | null;
|
|
|
readonly contentWindow: WindowProxy | null;
|
|
|
/**
|
|
|
* Sets or retrieves the URL that references the data of the object.
|
|
|
*/
|
|
|
data: string;
|
|
|
/** @deprecated */
|
|
|
declare: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: string;
|
|
|
/** @deprecated */
|
|
|
hspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves a message to be displayed while an object is loading.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
standby: string;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME type of the object.
|
|
|
*/
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
|
*/
|
|
|
useMap: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/** @deprecated */
|
|
|
vspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
getSVGDocument(): Document | null;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLObjectElement: {
|
|
|
prototype: HTMLObjectElement;
|
|
|
new(): HTMLObjectElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
|
|
|
interface HTMLOptGroupElement extends HTMLElement {
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
|
|
|
*/
|
|
|
label: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOptGroupElement: {
|
|
|
prototype: HTMLOptGroupElement;
|
|
|
new(): HTMLOptGroupElement;
|
|
|
};
|
|
|
|
|
|
/** <option> elements and inherits all classes and methods of the HTMLElement interface. */
|
|
|
interface HTMLOptionElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the status of an option.
|
|
|
*/
|
|
|
defaultSelected: boolean;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the ordinal position of an option in a list box.
|
|
|
*/
|
|
|
readonly index: number;
|
|
|
/**
|
|
|
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
|
|
|
*/
|
|
|
label: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the option in the list box is the default item.
|
|
|
*/
|
|
|
selected: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the text string specified by the option tag.
|
|
|
*/
|
|
|
text: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value which is returned to the server when the form control is submitted.
|
|
|
*/
|
|
|
value: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOptionElement: {
|
|
|
prototype: HTMLOptionElement;
|
|
|
new(): HTMLOptionElement;
|
|
|
};
|
|
|
|
|
|
/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
|
|
|
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
|
|
|
/**
|
|
|
* Returns the number of elements in the collection.
|
|
|
*
|
|
|
* When set to a smaller number, truncates the number of option elements in the corresponding container.
|
|
|
*
|
|
|
* When set to a greater number, adds new blank option elements to that container.
|
|
|
*/
|
|
|
length: number;
|
|
|
/**
|
|
|
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
|
|
|
*
|
|
|
* Can be set, to change the selection.
|
|
|
*/
|
|
|
selectedIndex: number;
|
|
|
/**
|
|
|
* Inserts element before the node given by before.
|
|
|
*
|
|
|
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
|
|
|
*
|
|
|
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
|
|
|
*
|
|
|
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
|
|
|
*/
|
|
|
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
|
|
|
/**
|
|
|
* Removes the item with index index from the collection.
|
|
|
*/
|
|
|
remove(index: number): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOptionsCollection: {
|
|
|
prototype: HTMLOptionsCollection;
|
|
|
new(): HTMLOptionsCollection;
|
|
|
};
|
|
|
|
|
|
interface HTMLOrSVGElement {
|
|
|
readonly dataset: DOMStringMap;
|
|
|
nonce?: string;
|
|
|
tabIndex: number;
|
|
|
blur(): void;
|
|
|
focus(options?: FocusOptions): void;
|
|
|
}
|
|
|
|
|
|
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
|
|
|
interface HTMLOutputElement extends HTMLElement {
|
|
|
defaultValue: string;
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
readonly htmlFor: DOMTokenList;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the string "output".
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
readonly validationMessage: string;
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Returns the element's current value.
|
|
|
*
|
|
|
* Can be set, to change the value.
|
|
|
*/
|
|
|
value: string;
|
|
|
readonly willValidate: boolean;
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOutputElement: {
|
|
|
prototype: HTMLOutputElement;
|
|
|
new(): HTMLOutputElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
|
|
|
interface HTMLParagraphElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLParagraphElement: {
|
|
|
prototype: HTMLParagraphElement;
|
|
|
new(): HTMLParagraphElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */
|
|
|
interface HTMLParamElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the name of an input parameter for an element.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves the content type of the resource designated by the value attribute.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value of an input parameter for an element.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Sets or retrieves the data type of the value attribute.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
valueType: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLParamElement: {
|
|
|
prototype: HTMLParamElement;
|
|
|
new(): HTMLParamElement;
|
|
|
};
|
|
|
|
|
|
/** A <picture> HTML element. It doesn't implement specific properties or methods. */
|
|
|
interface HTMLPictureElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLPictureElement: {
|
|
|
prototype: HTMLPictureElement;
|
|
|
new(): HTMLPictureElement;
|
|
|
};
|
|
|
|
|
|
/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */
|
|
|
interface HTMLPreElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or gets a value that you can use to implement your own width functionality for the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
width: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLPreElement: {
|
|
|
prototype: HTMLPreElement;
|
|
|
new(): HTMLPreElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */
|
|
|
interface HTMLProgressElement extends HTMLElement {
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Defines the maximum, or "done" value for a progress element.
|
|
|
*/
|
|
|
max: number;
|
|
|
/**
|
|
|
* Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
|
|
|
*/
|
|
|
readonly position: number;
|
|
|
/**
|
|
|
* Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
|
|
|
*/
|
|
|
value: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLProgressElement: {
|
|
|
prototype: HTMLProgressElement;
|
|
|
new(): HTMLProgressElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */
|
|
|
interface HTMLQuoteElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves reference information about the object.
|
|
|
*/
|
|
|
cite: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLQuoteElement: {
|
|
|
prototype: HTMLQuoteElement;
|
|
|
new(): HTMLQuoteElement;
|
|
|
};
|
|
|
|
|
|
/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */
|
|
|
interface HTMLScriptElement extends HTMLElement {
|
|
|
async: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the character set used to encode the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
charset: string;
|
|
|
crossOrigin: string | null;
|
|
|
/**
|
|
|
* Sets or retrieves the status of the script.
|
|
|
*/
|
|
|
defer: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the event for which the script is written.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
event: string;
|
|
|
/**
|
|
|
* Sets or retrieves the object that is bound to the event script.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
htmlFor: string;
|
|
|
integrity: string;
|
|
|
noModule: boolean;
|
|
|
referrerPolicy: string;
|
|
|
/**
|
|
|
* Retrieves the URL to an external file that contains the source code or data.
|
|
|
*/
|
|
|
src: string;
|
|
|
/**
|
|
|
* Retrieves or sets the text of the object as a string.
|
|
|
*/
|
|
|
text: string;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME type for the associated scripting engine.
|
|
|
*/
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLScriptElement: {
|
|
|
prototype: HTMLScriptElement;
|
|
|
new(): HTMLScriptElement;
|
|
|
};
|
|
|
|
|
|
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
|
|
|
interface HTMLSelectElement extends HTMLElement {
|
|
|
autocomplete: string;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the number of objects in a collection.
|
|
|
*/
|
|
|
length: number;
|
|
|
/**
|
|
|
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
|
|
*/
|
|
|
multiple: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns an HTMLOptionsCollection of the list of options.
|
|
|
*/
|
|
|
readonly options: HTMLOptionsCollection;
|
|
|
/**
|
|
|
* When present, marks an element that can't be submitted without a value.
|
|
|
*/
|
|
|
required: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the index of the selected option in a select object.
|
|
|
*/
|
|
|
selectedIndex: number;
|
|
|
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the number of rows in the list box.
|
|
|
*/
|
|
|
size: number;
|
|
|
/**
|
|
|
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Sets or retrieves the value which is returned to the server when the form control is submitted.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Adds an element to the areas, controlRange, or options collection.
|
|
|
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
|
|
|
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
|
|
|
*/
|
|
|
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
/**
|
|
|
* Retrieves a select object or an object from an options collection.
|
|
|
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
|
|
|
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
|
|
|
*/
|
|
|
item(index: number): HTMLOptionElement | null;
|
|
|
/**
|
|
|
* Retrieves a select object or an object from an options collection.
|
|
|
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
|
|
|
*/
|
|
|
namedItem(name: string): HTMLOptionElement | null;
|
|
|
/**
|
|
|
* Removes an element from the collection.
|
|
|
* @param index Number that specifies the zero-based index of the element to remove from the collection.
|
|
|
*/
|
|
|
remove(): void;
|
|
|
remove(index: number): void;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSelectElement: {
|
|
|
prototype: HTMLSelectElement;
|
|
|
new(): HTMLSelectElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLSlotElement extends HTMLElement {
|
|
|
name: string;
|
|
|
assignedElements(options?: AssignedNodesOptions): Element[];
|
|
|
assignedNodes(options?: AssignedNodesOptions): Node[];
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSlotElement: {
|
|
|
prototype: HTMLSlotElement;
|
|
|
new(): HTMLSlotElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
|
|
|
interface HTMLSourceElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets the intended media type of the media source.
|
|
|
*/
|
|
|
media: string;
|
|
|
sizes: string;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
srcset: string;
|
|
|
/**
|
|
|
* Gets or sets the MIME type of a media resource.
|
|
|
*/
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSourceElement: {
|
|
|
prototype: HTMLSourceElement;
|
|
|
new(): HTMLSourceElement;
|
|
|
};
|
|
|
|
|
|
/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
|
|
|
interface HTMLSpanElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSpanElement: {
|
|
|
prototype: HTMLSpanElement;
|
|
|
new(): HTMLSpanElement;
|
|
|
};
|
|
|
|
|
|
/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
|
|
|
interface HTMLStyleElement extends HTMLElement, LinkStyle {
|
|
|
/**
|
|
|
* Sets or retrieves the media type.
|
|
|
*/
|
|
|
media: string;
|
|
|
/**
|
|
|
* Retrieves the CSS language in which the style sheet is written.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLStyleElement: {
|
|
|
prototype: HTMLStyleElement;
|
|
|
new(): HTMLStyleElement;
|
|
|
};
|
|
|
|
|
|
/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
|
|
|
interface HTMLTableCaptionElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the alignment of the caption or legend.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableCaptionElement: {
|
|
|
prototype: HTMLTableCaptionElement;
|
|
|
new(): HTMLTableCaptionElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
|
|
|
interface HTMLTableCellElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves abbreviated text for the object.
|
|
|
*/
|
|
|
abbr: string;
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
axis: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/**
|
|
|
* Retrieves the position of the object in the cells collection of a row.
|
|
|
*/
|
|
|
readonly cellIndex: number;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number columns in the table that the object should span.
|
|
|
*/
|
|
|
colSpan: number;
|
|
|
/**
|
|
|
* Sets or retrieves a list of header cells that provide information for the object.
|
|
|
*/
|
|
|
headers: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
height: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the browser automatically performs wordwrap.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
noWrap: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves how many rows in a table the cell should span.
|
|
|
*/
|
|
|
rowSpan: number;
|
|
|
/**
|
|
|
* Sets or retrieves the group of cells in a table to which the object's information applies.
|
|
|
*/
|
|
|
scope: string;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
width: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableCellElement: {
|
|
|
prototype: HTMLTableCellElement;
|
|
|
new(): HTMLTableCellElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
|
|
|
interface HTMLTableColElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the alignment of the object relative to the display or table.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of columns in the group.
|
|
|
*/
|
|
|
span: number;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
width: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableColElement: {
|
|
|
prototype: HTMLTableColElement;
|
|
|
new(): HTMLTableColElement;
|
|
|
};
|
|
|
|
|
|
/** @deprecated prefer HTMLTableCellElement */
|
|
|
interface HTMLTableDataCellElement extends HTMLTableCellElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
|
|
|
interface HTMLTableElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the table alignment.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the border to draw around the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
border: string;
|
|
|
/**
|
|
|
* Retrieves the caption object of a table.
|
|
|
*/
|
|
|
caption: HTMLTableCaptionElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
cellPadding: string;
|
|
|
/**
|
|
|
* Sets or retrieves the amount of space between cells in a table.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
cellSpacing: string;
|
|
|
/**
|
|
|
* Sets or retrieves the way the border frame around the table is displayed.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
frame: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of horizontal rows contained in the object.
|
|
|
*/
|
|
|
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
|
|
|
/**
|
|
|
* Sets or retrieves which dividing lines (inner borders) are displayed.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
rules: string;
|
|
|
/**
|
|
|
* Sets or retrieves a description and/or structure of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
summary: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
|
|
|
*/
|
|
|
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
|
|
|
/**
|
|
|
* Retrieves the tFoot object of the table.
|
|
|
*/
|
|
|
tFoot: HTMLTableSectionElement | null;
|
|
|
/**
|
|
|
* Retrieves the tHead object of the table.
|
|
|
*/
|
|
|
tHead: HTMLTableSectionElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
width: string;
|
|
|
/**
|
|
|
* Creates an empty caption element in the table.
|
|
|
*/
|
|
|
createCaption(): HTMLTableCaptionElement;
|
|
|
/**
|
|
|
* Creates an empty tBody element in the table.
|
|
|
*/
|
|
|
createTBody(): HTMLTableSectionElement;
|
|
|
/**
|
|
|
* Creates an empty tFoot element in the table.
|
|
|
*/
|
|
|
createTFoot(): HTMLTableSectionElement;
|
|
|
/**
|
|
|
* Returns the tHead element object if successful, or null otherwise.
|
|
|
*/
|
|
|
createTHead(): HTMLTableSectionElement;
|
|
|
/**
|
|
|
* Deletes the caption element and its contents from the table.
|
|
|
*/
|
|
|
deleteCaption(): void;
|
|
|
/**
|
|
|
* Removes the specified row (tr) from the element and from the rows collection.
|
|
|
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
|
|
|
*/
|
|
|
deleteRow(index: number): void;
|
|
|
/**
|
|
|
* Deletes the tFoot element and its contents from the table.
|
|
|
*/
|
|
|
deleteTFoot(): void;
|
|
|
/**
|
|
|
* Deletes the tHead element and its contents from the table.
|
|
|
*/
|
|
|
deleteTHead(): void;
|
|
|
/**
|
|
|
* Creates a new row (tr) in the table, and adds the row to the rows collection.
|
|
|
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
|
|
|
*/
|
|
|
insertRow(index?: number): HTMLTableRowElement;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableElement: {
|
|
|
prototype: HTMLTableElement;
|
|
|
new(): HTMLTableElement;
|
|
|
};
|
|
|
|
|
|
/** @deprecated prefer HTMLTableCellElement */
|
|
|
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
|
|
|
interface HTMLTableRowElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all cells in the table row.
|
|
|
*/
|
|
|
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Retrieves the position of the object in the rows collection for the table.
|
|
|
*/
|
|
|
readonly rowIndex: number;
|
|
|
/**
|
|
|
* Retrieves the position of the object in the collection.
|
|
|
*/
|
|
|
readonly sectionRowIndex: number;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Removes the specified cell from the table row, as well as from the cells collection.
|
|
|
* @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
|
|
|
*/
|
|
|
deleteCell(index: number): void;
|
|
|
/**
|
|
|
* Creates a new cell in the table row, and adds the cell to the cells collection.
|
|
|
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
|
|
|
*/
|
|
|
insertCell(index?: number): HTMLTableCellElement;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableRowElement: {
|
|
|
prototype: HTMLTableRowElement;
|
|
|
new(): HTMLTableRowElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */
|
|
|
interface HTMLTableSectionElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the table alignment.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of horizontal rows contained in the object.
|
|
|
*/
|
|
|
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Removes the specified row (tr) from the element and from the rows collection.
|
|
|
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
|
|
|
*/
|
|
|
deleteRow(index: number): void;
|
|
|
/**
|
|
|
* Creates a new row (tr) in the table, and adds the row to the rows collection.
|
|
|
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
|
|
|
*/
|
|
|
insertRow(index?: number): HTMLTableRowElement;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableSectionElement: {
|
|
|
prototype: HTMLTableSectionElement;
|
|
|
new(): HTMLTableSectionElement;
|
|
|
};
|
|
|
|
|
|
/** Enables access to the contents of an HTML <template> element. */
|
|
|
interface HTMLTemplateElement extends HTMLElement {
|
|
|
/**
|
|
|
* Returns the template contents (a DocumentFragment).
|
|
|
*/
|
|
|
readonly content: DocumentFragment;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTemplateElement: {
|
|
|
prototype: HTMLTemplateElement;
|
|
|
new(): HTMLTemplateElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
|
|
|
interface HTMLTextAreaElement extends HTMLElement {
|
|
|
autocomplete: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
cols: number;
|
|
|
/**
|
|
|
* Sets or retrieves the initial contents of the object.
|
|
|
*/
|
|
|
defaultValue: string;
|
|
|
dirName: string;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
|
|
*/
|
|
|
maxLength: number;
|
|
|
minLength: number;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
|
|
|
*/
|
|
|
placeholder: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value indicated whether the content of the object is read-only.
|
|
|
*/
|
|
|
readOnly: boolean;
|
|
|
/**
|
|
|
* When present, marks an element that can't be submitted without a value.
|
|
|
*/
|
|
|
required: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the number of horizontal rows contained in the object.
|
|
|
*/
|
|
|
rows: number;
|
|
|
selectionDirection: "forward" | "backward" | "none";
|
|
|
/**
|
|
|
* Gets or sets the end position or offset of a text selection.
|
|
|
*/
|
|
|
selectionEnd: number;
|
|
|
/**
|
|
|
* Gets or sets the starting position or offset of a text selection.
|
|
|
*/
|
|
|
selectionStart: number;
|
|
|
readonly textLength: number;
|
|
|
/**
|
|
|
* Retrieves the type of control.
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Retrieves or sets the text in the entry field of the textArea element.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves how to handle wordwrapping in the object.
|
|
|
*/
|
|
|
wrap: string;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Highlights the input area of a form element.
|
|
|
*/
|
|
|
select(): void;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
setRangeText(replacement: string): void;
|
|
|
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
|
|
|
/**
|
|
|
* Sets the start and end positions of a selection in a text field.
|
|
|
* @param start The offset into the text field for the start of the selection.
|
|
|
* @param end The offset into the text field for the end of the selection.
|
|
|
* @param direction The direction in which the selection is performed.
|
|
|
*/
|
|
|
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTextAreaElement: {
|
|
|
prototype: HTMLTextAreaElement;
|
|
|
new(): HTMLTextAreaElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
|
|
|
interface HTMLTimeElement extends HTMLElement {
|
|
|
dateTime: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTimeElement: {
|
|
|
prototype: HTMLTimeElement;
|
|
|
new(): HTMLTimeElement;
|
|
|
};
|
|
|
|
|
|
/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
|
|
|
interface HTMLTitleElement extends HTMLElement {
|
|
|
/**
|
|
|
* Retrieves or sets the text of the object as a string.
|
|
|
*/
|
|
|
text: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTitleElement: {
|
|
|
prototype: HTMLTitleElement;
|
|
|
new(): HTMLTitleElement;
|
|
|
};
|
|
|
|
|
|
/** The HTMLTrackElement */
|
|
|
interface HTMLTrackElement extends HTMLElement {
|
|
|
default: boolean;
|
|
|
kind: string;
|
|
|
label: string;
|
|
|
readonly readyState: number;
|
|
|
src: string;
|
|
|
srclang: string;
|
|
|
/**
|
|
|
* Returns the TextTrack object corresponding to the text track of the track element.
|
|
|
*/
|
|
|
readonly track: TextTrack;
|
|
|
readonly ERROR: number;
|
|
|
readonly LOADED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly NONE: number;
|
|
|
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 ERROR: number;
|
|
|
readonly LOADED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly NONE: number;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
|
|
|
interface HTMLUListElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
/** @deprecated */
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLUListElement: {
|
|
|
prototype: HTMLUListElement;
|
|
|
new(): HTMLUListElement;
|
|
|
};
|
|
|
|
|
|
/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
|
|
|
interface HTMLUnknownElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLUnknownElement: {
|
|
|
prototype: HTMLUnknownElement;
|
|
|
new(): HTMLUnknownElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
|
|
|
"enterpictureinpicture": Event;
|
|
|
"leavepictureinpicture": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
|
|
|
interface HTMLVideoElement extends HTMLMediaElement {
|
|
|
disablePictureInPicture: boolean;
|
|
|
/**
|
|
|
* Gets or sets the height of the video element.
|
|
|
*/
|
|
|
height: number;
|
|
|
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
|
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins.
|
|
|
*/
|
|
|
playsInline: boolean;
|
|
|
/**
|
|
|
* Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
|
|
|
*/
|
|
|
poster: string;
|
|
|
/**
|
|
|
* Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
|
|
|
*/
|
|
|
readonly videoHeight: number;
|
|
|
/**
|
|
|
* Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
|
|
|
*/
|
|
|
readonly videoWidth: number;
|
|
|
/**
|
|
|
* Gets or sets the width of the video element.
|
|
|
*/
|
|
|
width: number;
|
|
|
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
|
|
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
|
|
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLVideoElement: {
|
|
|
prototype: HTMLVideoElement;
|
|
|
new(): HTMLVideoElement;
|
|
|
};
|
|
|
|
|
|
/** Events that fire when the fragment identifier of the URL has changed. */
|
|
|
interface HashChangeEvent extends Event {
|
|
|
/**
|
|
|
* Returns the URL of the session history entry that is now current.
|
|
|
*/
|
|
|
readonly newURL: string;
|
|
|
/**
|
|
|
* Returns the URL of the session history entry that was previously current.
|
|
|
*/
|
|
|
readonly oldURL: string;
|
|
|
}
|
|
|
|
|
|
declare var HashChangeEvent: {
|
|
|
prototype: HashChangeEvent;
|
|
|
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
|
|
|
};
|
|
|
|
|
|
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
|
|
|
interface Headers {
|
|
|
append(name: string, value: string): void;
|
|
|
delete(name: string): void;
|
|
|
get(name: string): string | null;
|
|
|
has(name: string): boolean;
|
|
|
set(name: string, value: string): void;
|
|
|
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var Headers: {
|
|
|
prototype: Headers;
|
|
|
new(init?: HeadersInit): Headers;
|
|
|
};
|
|
|
|
|
|
/** Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
|
|
|
interface History {
|
|
|
readonly length: number;
|
|
|
scrollRestoration: ScrollRestoration;
|
|
|
readonly state: any;
|
|
|
back(): void;
|
|
|
forward(): void;
|
|
|
go(delta?: number): void;
|
|
|
pushState(data: any, unused: string, url?: string | URL | null): void;
|
|
|
replaceState(data: any, unused: string, url?: string | URL | null): void;
|
|
|
}
|
|
|
|
|
|
declare var History: {
|
|
|
prototype: History;
|
|
|
new(): History;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
|
|
|
interface IDBCursor {
|
|
|
/**
|
|
|
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
|
|
|
*/
|
|
|
readonly direction: IDBCursorDirection;
|
|
|
/**
|
|
|
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
|
*/
|
|
|
readonly key: IDBValidKey;
|
|
|
/**
|
|
|
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
|
*/
|
|
|
readonly primaryKey: IDBValidKey;
|
|
|
readonly request: IDBRequest;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
|
|
|
*/
|
|
|
readonly source: IDBObjectStore | IDBIndex;
|
|
|
/**
|
|
|
* Advances the cursor through the next count records in range.
|
|
|
*/
|
|
|
advance(count: number): void;
|
|
|
/**
|
|
|
* Advances the cursor to the next record in range.
|
|
|
*/
|
|
|
continue(key?: IDBValidKey): void;
|
|
|
/**
|
|
|
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
|
|
|
*/
|
|
|
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
|
|
|
/**
|
|
|
* Delete the record pointed at by the cursor with a new value.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
delete(): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Updated the record pointed at by the cursor with a new value.
|
|
|
*
|
|
|
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
update(value: any): IDBRequest<IDBValidKey>;
|
|
|
}
|
|
|
|
|
|
declare var IDBCursor: {
|
|
|
prototype: IDBCursor;
|
|
|
new(): IDBCursor;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
|
|
|
interface IDBCursorWithValue extends IDBCursor {
|
|
|
/**
|
|
|
* Returns the cursor's current value.
|
|
|
*/
|
|
|
readonly value: any;
|
|
|
}
|
|
|
|
|
|
declare var IDBCursorWithValue: {
|
|
|
prototype: IDBCursorWithValue;
|
|
|
new(): IDBCursorWithValue;
|
|
|
};
|
|
|
|
|
|
interface IDBDatabaseEventMap {
|
|
|
"abort": Event;
|
|
|
"close": Event;
|
|
|
"error": Event;
|
|
|
"versionchange": IDBVersionChangeEvent;
|
|
|
}
|
|
|
|
|
|
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
|
|
|
interface IDBDatabase extends EventTarget {
|
|
|
/**
|
|
|
* Returns the name of the database.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
/**
|
|
|
* Returns a list of the names of object stores in the database.
|
|
|
*/
|
|
|
readonly objectStoreNames: DOMStringList;
|
|
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
|
/**
|
|
|
* Returns the version of the database.
|
|
|
*/
|
|
|
readonly version: number;
|
|
|
/**
|
|
|
* Closes the connection once all running transactions have finished.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
|
|
|
*
|
|
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
|
|
|
/**
|
|
|
* Deletes the object store with the given name.
|
|
|
*
|
|
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
deleteObjectStore(name: string): void;
|
|
|
/**
|
|
|
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
|
*/
|
|
|
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBDatabase: {
|
|
|
prototype: IDBDatabase;
|
|
|
new(): IDBDatabase;
|
|
|
};
|
|
|
|
|
|
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
|
|
|
interface IDBFactory {
|
|
|
/**
|
|
|
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
|
|
|
*
|
|
|
* Throws a "DataError" DOMException if either input is not a valid key.
|
|
|
*/
|
|
|
cmp(first: any, second: any): number;
|
|
|
databases(): Promise<IDBDatabaseInfo[]>;
|
|
|
/**
|
|
|
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
|
|
|
*/
|
|
|
deleteDatabase(name: string): IDBOpenDBRequest;
|
|
|
/**
|
|
|
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
|
|
|
*/
|
|
|
open(name: string, version?: number): IDBOpenDBRequest;
|
|
|
}
|
|
|
|
|
|
declare var IDBFactory: {
|
|
|
prototype: IDBFactory;
|
|
|
new(): IDBFactory;
|
|
|
};
|
|
|
|
|
|
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
|
|
|
interface IDBIndex {
|
|
|
readonly keyPath: string | string[];
|
|
|
readonly multiEntry: boolean;
|
|
|
/**
|
|
|
* Returns the name of the index.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore the index belongs to.
|
|
|
*/
|
|
|
readonly objectStore: IDBObjectStore;
|
|
|
readonly unique: boolean;
|
|
|
/**
|
|
|
* Retrieves the number of records matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the count.
|
|
|
*/
|
|
|
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
|
/**
|
|
|
* Retrieves the value of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
|
*/
|
|
|
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
|
/**
|
|
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the values.
|
|
|
*/
|
|
|
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
|
/**
|
|
|
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the keys.
|
|
|
*/
|
|
|
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
|
/**
|
|
|
* Retrieves the key of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the key, or undefined if there was no matching record.
|
|
|
*/
|
|
|
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
|
/**
|
|
|
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
|
|
|
*/
|
|
|
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
|
|
|
/**
|
|
|
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
|
|
|
*/
|
|
|
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
|
|
|
}
|
|
|
|
|
|
declare var IDBIndex: {
|
|
|
prototype: IDBIndex;
|
|
|
new(): IDBIndex;
|
|
|
};
|
|
|
|
|
|
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
|
|
|
interface IDBKeyRange {
|
|
|
/**
|
|
|
* Returns lower bound, or undefined if none.
|
|
|
*/
|
|
|
readonly lower: any;
|
|
|
/**
|
|
|
* Returns true if the lower open flag is set, and false otherwise.
|
|
|
*/
|
|
|
readonly lowerOpen: boolean;
|
|
|
/**
|
|
|
* Returns upper bound, or undefined if none.
|
|
|
*/
|
|
|
readonly upper: any;
|
|
|
/**
|
|
|
* Returns true if the upper open flag is set, and false otherwise.
|
|
|
*/
|
|
|
readonly upperOpen: boolean;
|
|
|
/**
|
|
|
* Returns true if key is included in the range, and false otherwise.
|
|
|
*/
|
|
|
includes(key: any): boolean;
|
|
|
}
|
|
|
|
|
|
declare var IDBKeyRange: {
|
|
|
prototype: IDBKeyRange;
|
|
|
new(): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
|
|
*/
|
|
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
|
|
*/
|
|
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange spanning only key.
|
|
|
*/
|
|
|
only(value: any): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
|
|
*/
|
|
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
|
|
};
|
|
|
|
|
|
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
|
|
|
interface IDBObjectStore {
|
|
|
/**
|
|
|
* Returns true if the store has a key generator, and false otherwise.
|
|
|
*/
|
|
|
readonly autoIncrement: boolean;
|
|
|
/**
|
|
|
* Returns a list of the names of indexes in the store.
|
|
|
*/
|
|
|
readonly indexNames: DOMStringList;
|
|
|
/**
|
|
|
* Returns the key path of the store, or null if none.
|
|
|
*/
|
|
|
readonly keyPath: string | string[];
|
|
|
/**
|
|
|
* Returns the name of the store.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the associated transaction.
|
|
|
*/
|
|
|
readonly transaction: IDBTransaction;
|
|
|
/**
|
|
|
* Adds or updates a record in store with the given value and key.
|
|
|
*
|
|
|
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
|
|
|
*
|
|
|
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
|
|
|
/**
|
|
|
* Deletes all records in store.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
clear(): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Retrieves the number of records matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the count.
|
|
|
*/
|
|
|
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
|
/**
|
|
|
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
|
|
|
/**
|
|
|
* Deletes records in store with the given key or in the given key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Deletes the index in store with the given name.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
deleteIndex(name: string): void;
|
|
|
/**
|
|
|
* Retrieves the value of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
|
*/
|
|
|
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
|
/**
|
|
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the values.
|
|
|
*/
|
|
|
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
|
/**
|
|
|
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the keys.
|
|
|
*/
|
|
|
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
|
/**
|
|
|
* Retrieves the key of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the key, or undefined if there was no matching record.
|
|
|
*/
|
|
|
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
|
index(name: string): IDBIndex;
|
|
|
/**
|
|
|
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
|
|
|
*/
|
|
|
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
|
|
|
/**
|
|
|
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
|
|
|
*/
|
|
|
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
|
|
|
/**
|
|
|
* Adds or updates a record in store with the given value and key.
|
|
|
*
|
|
|
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
|
|
|
*
|
|
|
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
|
|
|
}
|
|
|
|
|
|
declare var IDBObjectStore: {
|
|
|
prototype: IDBObjectStore;
|
|
|
new(): IDBObjectStore;
|
|
|
};
|
|
|
|
|
|
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
|
|
|
"blocked": Event;
|
|
|
"upgradeneeded": IDBVersionChangeEvent;
|
|
|
}
|
|
|
|
|
|
/** Also inherits methods from its parents IDBRequest and EventTarget. */
|
|
|
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
|
|
|
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
|
|
|
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
|
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBOpenDBRequest: {
|
|
|
prototype: IDBOpenDBRequest;
|
|
|
new(): IDBOpenDBRequest;
|
|
|
};
|
|
|
|
|
|
interface IDBRequestEventMap {
|
|
|
"error": Event;
|
|
|
"success": Event;
|
|
|
}
|
|
|
|
|
|
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
|
|
|
interface IDBRequest<T = any> extends EventTarget {
|
|
|
/**
|
|
|
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
|
*/
|
|
|
readonly error: DOMException | null;
|
|
|
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
|
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns "pending" until a request is complete, then returns "done".
|
|
|
*/
|
|
|
readonly readyState: IDBRequestReadyState;
|
|
|
/**
|
|
|
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
|
*/
|
|
|
readonly result: T;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
|
|
|
*/
|
|
|
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
|
|
|
/**
|
|
|
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
|
|
|
*/
|
|
|
readonly transaction: IDBTransaction | null;
|
|
|
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBRequest: {
|
|
|
prototype: IDBRequest;
|
|
|
new(): IDBRequest;
|
|
|
};
|
|
|
|
|
|
interface IDBTransactionEventMap {
|
|
|
"abort": Event;
|
|
|
"complete": Event;
|
|
|
"error": Event;
|
|
|
}
|
|
|
|
|
|
interface IDBTransaction extends EventTarget {
|
|
|
/**
|
|
|
* Returns the transaction's connection.
|
|
|
*/
|
|
|
readonly db: IDBDatabase;
|
|
|
/**
|
|
|
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
|
|
|
*/
|
|
|
readonly error: DOMException | null;
|
|
|
/**
|
|
|
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
|
|
|
*/
|
|
|
readonly mode: IDBTransactionMode;
|
|
|
/**
|
|
|
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
|
|
|
*/
|
|
|
readonly objectStoreNames: DOMStringList;
|
|
|
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
commit(): void;
|
|
|
/**
|
|
|
* Returns an IDBObjectStore in the transaction's scope.
|
|
|
*/
|
|
|
objectStore(name: string): IDBObjectStore;
|
|
|
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBTransaction: {
|
|
|
prototype: IDBTransaction;
|
|
|
new(): IDBTransaction;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
|
|
|
interface IDBVersionChangeEvent extends Event {
|
|
|
readonly newVersion: number | null;
|
|
|
readonly oldVersion: number;
|
|
|
}
|
|
|
|
|
|
declare var IDBVersionChangeEvent: {
|
|
|
prototype: IDBVersionChangeEvent;
|
|
|
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
|
|
|
};
|
|
|
|
|
|
/** The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */
|
|
|
interface IIRFilterNode extends AudioNode {
|
|
|
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
|
|
|
}
|
|
|
|
|
|
declare var IIRFilterNode: {
|
|
|
prototype: IIRFilterNode;
|
|
|
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
|
|
|
};
|
|
|
|
|
|
interface IdleDeadline {
|
|
|
readonly didTimeout: boolean;
|
|
|
timeRemaining(): DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
declare var IdleDeadline: {
|
|
|
prototype: IdleDeadline;
|
|
|
new(): IdleDeadline;
|
|
|
};
|
|
|
|
|
|
interface ImageBitmap {
|
|
|
/**
|
|
|
* Returns the intrinsic height of the image, in CSS pixels.
|
|
|
*/
|
|
|
readonly height: number;
|
|
|
/**
|
|
|
* Returns the intrinsic width of the image, in CSS pixels.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
/**
|
|
|
* Releases imageBitmap's underlying bitmap data.
|
|
|
*/
|
|
|
close(): void;
|
|
|
}
|
|
|
|
|
|
declare var ImageBitmap: {
|
|
|
prototype: ImageBitmap;
|
|
|
new(): ImageBitmap;
|
|
|
};
|
|
|
|
|
|
interface ImageBitmapRenderingContext {
|
|
|
/**
|
|
|
* Returns the canvas element that the context is bound to.
|
|
|
*/
|
|
|
readonly canvas: HTMLCanvasElement;
|
|
|
/**
|
|
|
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
|
|
|
*/
|
|
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
|
}
|
|
|
|
|
|
declare var ImageBitmapRenderingContext: {
|
|
|
prototype: ImageBitmapRenderingContext;
|
|
|
new(): ImageBitmapRenderingContext;
|
|
|
};
|
|
|
|
|
|
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
|
|
|
interface ImageData {
|
|
|
/**
|
|
|
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
|
|
|
*/
|
|
|
readonly data: Uint8ClampedArray;
|
|
|
/**
|
|
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
|
*/
|
|
|
readonly height: number;
|
|
|
/**
|
|
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var ImageData: {
|
|
|
prototype: ImageData;
|
|
|
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
|
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
|
};
|
|
|
|
|
|
interface InnerHTML {
|
|
|
innerHTML: string;
|
|
|
}
|
|
|
|
|
|
interface InputEvent extends UIEvent {
|
|
|
readonly data: string | null;
|
|
|
readonly dataTransfer: DataTransfer | null;
|
|
|
readonly inputType: string;
|
|
|
readonly isComposing: boolean;
|
|
|
getTargetRanges(): StaticRange[];
|
|
|
}
|
|
|
|
|
|
declare var InputEvent: {
|
|
|
prototype: InputEvent;
|
|
|
new(type: string, eventInitDict?: InputEventInit): InputEvent;
|
|
|
};
|
|
|
|
|
|
/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */
|
|
|
interface IntersectionObserver {
|
|
|
readonly root: Element | Document | null;
|
|
|
readonly rootMargin: string;
|
|
|
readonly thresholds: ReadonlyArray<number>;
|
|
|
disconnect(): void;
|
|
|
observe(target: Element): void;
|
|
|
takeRecords(): IntersectionObserverEntry[];
|
|
|
unobserve(target: Element): void;
|
|
|
}
|
|
|
|
|
|
declare var IntersectionObserver: {
|
|
|
prototype: IntersectionObserver;
|
|
|
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
|
|
|
};
|
|
|
|
|
|
/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
|
|
|
interface IntersectionObserverEntry {
|
|
|
readonly boundingClientRect: DOMRectReadOnly;
|
|
|
readonly intersectionRatio: number;
|
|
|
readonly intersectionRect: DOMRectReadOnly;
|
|
|
readonly isIntersecting: boolean;
|
|
|
readonly rootBounds: DOMRectReadOnly | null;
|
|
|
readonly target: Element;
|
|
|
readonly time: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
declare var IntersectionObserverEntry: {
|
|
|
prototype: IntersectionObserverEntry;
|
|
|
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
|
|
|
};
|
|
|
|
|
|
interface KHR_parallel_shader_compile {
|
|
|
readonly COMPLETION_STATUS_KHR: GLenum;
|
|
|
}
|
|
|
|
|
|
/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
|
|
|
interface KeyboardEvent extends UIEvent {
|
|
|
readonly altKey: boolean;
|
|
|
/** @deprecated */
|
|
|
readonly charCode: number;
|
|
|
readonly code: string;
|
|
|
readonly ctrlKey: boolean;
|
|
|
readonly isComposing: boolean;
|
|
|
readonly key: string;
|
|
|
/** @deprecated */
|
|
|
readonly keyCode: number;
|
|
|
readonly location: number;
|
|
|
readonly metaKey: boolean;
|
|
|
readonly repeat: boolean;
|
|
|
readonly shiftKey: boolean;
|
|
|
getModifierState(keyArg: string): boolean;
|
|
|
/** @deprecated */
|
|
|
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
|
|
|
readonly DOM_KEY_LOCATION_LEFT: number;
|
|
|
readonly DOM_KEY_LOCATION_NUMPAD: number;
|
|
|
readonly DOM_KEY_LOCATION_RIGHT: number;
|
|
|
readonly DOM_KEY_LOCATION_STANDARD: number;
|
|
|
}
|
|
|
|
|
|
declare var KeyboardEvent: {
|
|
|
prototype: KeyboardEvent;
|
|
|
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
|
|
|
readonly DOM_KEY_LOCATION_LEFT: number;
|
|
|
readonly DOM_KEY_LOCATION_NUMPAD: number;
|
|
|
readonly DOM_KEY_LOCATION_RIGHT: number;
|
|
|
readonly DOM_KEY_LOCATION_STANDARD: number;
|
|
|
};
|
|
|
|
|
|
interface KeyframeEffect extends AnimationEffect {
|
|
|
composite: CompositeOperation;
|
|
|
iterationComposite: IterationCompositeOperation;
|
|
|
pseudoElement: string | null;
|
|
|
target: Element | null;
|
|
|
getKeyframes(): ComputedKeyframe[];
|
|
|
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
|
|
|
}
|
|
|
|
|
|
declare var KeyframeEffect: {
|
|
|
prototype: KeyframeEffect;
|
|
|
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
|
|
|
new(source: KeyframeEffect): KeyframeEffect;
|
|
|
};
|
|
|
|
|
|
interface LinkStyle {
|
|
|
readonly sheet: CSSStyleSheet | null;
|
|
|
}
|
|
|
|
|
|
/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
|
|
|
interface Location {
|
|
|
/**
|
|
|
* Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.
|
|
|
*/
|
|
|
readonly ancestorOrigins: DOMStringList;
|
|
|
/**
|
|
|
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
|
|
|
*/
|
|
|
hash: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed host and port.
|
|
|
*/
|
|
|
host: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's host.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed host.
|
|
|
*/
|
|
|
hostname: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL.
|
|
|
*
|
|
|
* Can be set, to navigate to the given URL.
|
|
|
*/
|
|
|
href: string;
|
|
|
toString(): string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's origin.
|
|
|
*/
|
|
|
readonly origin: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's path.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed path.
|
|
|
*/
|
|
|
pathname: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's port.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed port.
|
|
|
*/
|
|
|
port: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's scheme.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed scheme.
|
|
|
*/
|
|
|
protocol: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's query (includes leading "?" if non-empty).
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
|
|
|
*/
|
|
|
search: string;
|
|
|
/**
|
|
|
* Navigates to the given URL.
|
|
|
*/
|
|
|
assign(url: string | URL): void;
|
|
|
/**
|
|
|
* Reloads the current page.
|
|
|
*/
|
|
|
reload(): void;
|
|
|
/**
|
|
|
* Removes the current page from the session history and navigates to the given URL.
|
|
|
*/
|
|
|
replace(url: string | URL): void;
|
|
|
}
|
|
|
|
|
|
declare var Location: {
|
|
|
prototype: Location;
|
|
|
new(): Location;
|
|
|
};
|
|
|
|
|
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
interface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
|
|
|
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MathMLElement: {
|
|
|
prototype: MathMLElement;
|
|
|
new(): MathMLElement;
|
|
|
};
|
|
|
|
|
|
interface MediaCapabilities {
|
|
|
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
|
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
|
|
|
}
|
|
|
|
|
|
declare var MediaCapabilities: {
|
|
|
prototype: MediaCapabilities;
|
|
|
new(): MediaCapabilities;
|
|
|
};
|
|
|
|
|
|
/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */
|
|
|
interface MediaDeviceInfo {
|
|
|
readonly deviceId: string;
|
|
|
readonly groupId: string;
|
|
|
readonly kind: MediaDeviceKind;
|
|
|
readonly label: string;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var MediaDeviceInfo: {
|
|
|
prototype: MediaDeviceInfo;
|
|
|
new(): MediaDeviceInfo;
|
|
|
};
|
|
|
|
|
|
interface MediaDevicesEventMap {
|
|
|
"devicechange": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. */
|
|
|
interface MediaDevices extends EventTarget {
|
|
|
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
|
|
|
enumerateDevices(): Promise<MediaDeviceInfo[]>;
|
|
|
getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;
|
|
|
getSupportedConstraints(): MediaTrackSupportedConstraints;
|
|
|
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
|
|
|
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaDevices: {
|
|
|
prototype: MediaDevices;
|
|
|
new(): MediaDevices;
|
|
|
};
|
|
|
|
|
|
/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */
|
|
|
interface MediaElementAudioSourceNode extends AudioNode {
|
|
|
readonly mediaElement: HTMLMediaElement;
|
|
|
}
|
|
|
|
|
|
declare var MediaElementAudioSourceNode: {
|
|
|
prototype: MediaElementAudioSourceNode;
|
|
|
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
|
|
|
};
|
|
|
|
|
|
interface MediaEncryptedEvent extends Event {
|
|
|
readonly initData: ArrayBuffer | null;
|
|
|
readonly initDataType: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaEncryptedEvent: {
|
|
|
prototype: MediaEncryptedEvent;
|
|
|
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
|
|
|
};
|
|
|
|
|
|
/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
|
|
|
interface MediaError {
|
|
|
readonly code: number;
|
|
|
readonly message: string;
|
|
|
readonly MEDIA_ERR_ABORTED: number;
|
|
|
readonly MEDIA_ERR_DECODE: number;
|
|
|
readonly MEDIA_ERR_NETWORK: number;
|
|
|
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
|
|
|
}
|
|
|
|
|
|
declare var MediaError: {
|
|
|
prototype: MediaError;
|
|
|
new(): MediaError;
|
|
|
readonly MEDIA_ERR_ABORTED: number;
|
|
|
readonly MEDIA_ERR_DECODE: number;
|
|
|
readonly MEDIA_ERR_NETWORK: number;
|
|
|
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. */
|
|
|
interface MediaKeyMessageEvent extends Event {
|
|
|
readonly message: ArrayBuffer;
|
|
|
readonly messageType: MediaKeyMessageType;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeyMessageEvent: {
|
|
|
prototype: MediaKeyMessageEvent;
|
|
|
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
|
|
|
};
|
|
|
|
|
|
interface MediaKeySessionEventMap {
|
|
|
"keystatuseschange": Event;
|
|
|
"message": MediaKeyMessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM). */
|
|
|
interface MediaKeySession extends EventTarget {
|
|
|
readonly closed: Promise<MediaKeySessionClosedReason>;
|
|
|
readonly expiration: number;
|
|
|
readonly keyStatuses: MediaKeyStatusMap;
|
|
|
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
|
|
|
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
|
|
|
readonly sessionId: string;
|
|
|
close(): Promise<void>;
|
|
|
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
|
|
|
load(sessionId: string): Promise<boolean>;
|
|
|
remove(): Promise<void>;
|
|
|
update(response: BufferSource): Promise<void>;
|
|
|
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeySession: {
|
|
|
prototype: MediaKeySession;
|
|
|
new(): MediaKeySession;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */
|
|
|
interface MediaKeyStatusMap {
|
|
|
readonly size: number;
|
|
|
get(keyId: BufferSource): MediaKeyStatus | undefined;
|
|
|
has(keyId: BufferSource): boolean;
|
|
|
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeyStatusMap: {
|
|
|
prototype: MediaKeyStatusMap;
|
|
|
new(): MediaKeyStatusMap;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. */
|
|
|
interface MediaKeySystemAccess {
|
|
|
readonly keySystem: string;
|
|
|
createMediaKeys(): Promise<MediaKeys>;
|
|
|
getConfiguration(): MediaKeySystemConfiguration;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeySystemAccess: {
|
|
|
prototype: MediaKeySystemAccess;
|
|
|
new(): MediaKeySystemAccess;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. */
|
|
|
interface MediaKeys {
|
|
|
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
|
|
|
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeys: {
|
|
|
prototype: MediaKeys;
|
|
|
new(): MediaKeys;
|
|
|
};
|
|
|
|
|
|
interface MediaList {
|
|
|
readonly length: number;
|
|
|
mediaText: string;
|
|
|
toString(): string;
|
|
|
appendMedium(medium: string): void;
|
|
|
deleteMedium(medium: string): void;
|
|
|
item(index: number): string | null;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaList: {
|
|
|
prototype: MediaList;
|
|
|
new(): MediaList;
|
|
|
};
|
|
|
|
|
|
interface MediaMetadata {
|
|
|
album: string;
|
|
|
artist: string;
|
|
|
artwork: ReadonlyArray<MediaImage>;
|
|
|
title: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaMetadata: {
|
|
|
prototype: MediaMetadata;
|
|
|
new(init?: MediaMetadataInit): MediaMetadata;
|
|
|
};
|
|
|
|
|
|
interface MediaQueryListEventMap {
|
|
|
"change": MediaQueryListEvent;
|
|
|
}
|
|
|
|
|
|
/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
|
|
|
interface MediaQueryList extends EventTarget {
|
|
|
readonly matches: boolean;
|
|
|
readonly media: string;
|
|
|
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
|
|
|
/** @deprecated */
|
|
|
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
|
|
|
/** @deprecated */
|
|
|
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
|
|
|
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaQueryList: {
|
|
|
prototype: MediaQueryList;
|
|
|
new(): MediaQueryList;
|
|
|
};
|
|
|
|
|
|
interface MediaQueryListEvent extends Event {
|
|
|
readonly matches: boolean;
|
|
|
readonly media: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaQueryListEvent: {
|
|
|
prototype: MediaQueryListEvent;
|
|
|
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
|
|
|
};
|
|
|
|
|
|
interface MediaRecorderEventMap {
|
|
|
"dataavailable": BlobEvent;
|
|
|
"error": Event;
|
|
|
"pause": Event;
|
|
|
"resume": Event;
|
|
|
"start": Event;
|
|
|
"stop": Event;
|
|
|
}
|
|
|
|
|
|
interface MediaRecorder extends EventTarget {
|
|
|
readonly audioBitsPerSecond: number;
|
|
|
readonly mimeType: string;
|
|
|
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
|
|
|
onerror: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
|
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
|
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
|
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
|
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
|
readonly state: RecordingState;
|
|
|
readonly stream: MediaStream;
|
|
|
readonly videoBitsPerSecond: number;
|
|
|
pause(): void;
|
|
|
requestData(): void;
|
|
|
resume(): void;
|
|
|
start(timeslice?: number): void;
|
|
|
stop(): void;
|
|
|
addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaRecorder: {
|
|
|
prototype: MediaRecorder;
|
|
|
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
|
|
|
isTypeSupported(type: string): boolean;
|
|
|
};
|
|
|
|
|
|
interface MediaRecorderErrorEvent extends Event {
|
|
|
readonly error: DOMException;
|
|
|
}
|
|
|
|
|
|
declare var MediaRecorderErrorEvent: {
|
|
|
prototype: MediaRecorderErrorEvent;
|
|
|
new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
|
|
|
};
|
|
|
|
|
|
interface MediaSession {
|
|
|
metadata: MediaMetadata | null;
|
|
|
playbackState: MediaSessionPlaybackState;
|
|
|
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
|
|
|
setPositionState(state?: MediaPositionState): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaSession: {
|
|
|
prototype: MediaSession;
|
|
|
new(): MediaSession;
|
|
|
};
|
|
|
|
|
|
interface MediaSourceEventMap {
|
|
|
"sourceclose": Event;
|
|
|
"sourceended": Event;
|
|
|
"sourceopen": Event;
|
|
|
}
|
|
|
|
|
|
/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */
|
|
|
interface MediaSource extends EventTarget {
|
|
|
readonly activeSourceBuffers: SourceBufferList;
|
|
|
duration: number;
|
|
|
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
|
|
|
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
|
|
|
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
|
|
|
readonly readyState: ReadyState;
|
|
|
readonly sourceBuffers: SourceBufferList;
|
|
|
addSourceBuffer(type: string): SourceBuffer;
|
|
|
clearLiveSeekableRange(): void;
|
|
|
endOfStream(error?: EndOfStreamError): void;
|
|
|
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
|
|
|
setLiveSeekableRange(start: number, end: number): void;
|
|
|
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaSource: {
|
|
|
prototype: MediaSource;
|
|
|
new(): MediaSource;
|
|
|
isTypeSupported(type: string): boolean;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamEventMap {
|
|
|
"addtrack": MediaStreamTrackEvent;
|
|
|
"removetrack": MediaStreamTrackEvent;
|
|
|
}
|
|
|
|
|
|
/** A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
|
|
|
interface MediaStream extends EventTarget {
|
|
|
readonly active: boolean;
|
|
|
readonly id: string;
|
|
|
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
|
|
|
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
|
|
|
addTrack(track: MediaStreamTrack): void;
|
|
|
clone(): MediaStream;
|
|
|
getAudioTracks(): MediaStreamTrack[];
|
|
|
getTrackById(trackId: string): MediaStreamTrack | null;
|
|
|
getTracks(): MediaStreamTrack[];
|
|
|
getVideoTracks(): MediaStreamTrack[];
|
|
|
removeTrack(track: MediaStreamTrack): void;
|
|
|
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaStream: {
|
|
|
prototype: MediaStream;
|
|
|
new(): MediaStream;
|
|
|
new(stream: MediaStream): MediaStream;
|
|
|
new(tracks: MediaStreamTrack[]): MediaStream;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamAudioDestinationNode extends AudioNode {
|
|
|
readonly stream: MediaStream;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamAudioDestinationNode: {
|
|
|
prototype: MediaStreamAudioDestinationNode;
|
|
|
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
|
|
|
};
|
|
|
|
|
|
/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */
|
|
|
interface MediaStreamAudioSourceNode extends AudioNode {
|
|
|
readonly mediaStream: MediaStream;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamAudioSourceNode: {
|
|
|
prototype: MediaStreamAudioSourceNode;
|
|
|
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamTrackEventMap {
|
|
|
"ended": Event;
|
|
|
"mute": Event;
|
|
|
"unmute": Event;
|
|
|
}
|
|
|
|
|
|
/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
|
|
|
interface MediaStreamTrack extends EventTarget {
|
|
|
contentHint: string;
|
|
|
enabled: boolean;
|
|
|
readonly id: string;
|
|
|
readonly kind: string;
|
|
|
readonly label: string;
|
|
|
readonly muted: boolean;
|
|
|
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
|
|
|
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
|
|
|
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
|
|
|
readonly readyState: MediaStreamTrackState;
|
|
|
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
|
|
|
clone(): MediaStreamTrack;
|
|
|
getCapabilities(): MediaTrackCapabilities;
|
|
|
getConstraints(): MediaTrackConstraints;
|
|
|
getSettings(): MediaTrackSettings;
|
|
|
stop(): void;
|
|
|
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamTrack: {
|
|
|
prototype: MediaStreamTrack;
|
|
|
new(): MediaStreamTrack;
|
|
|
};
|
|
|
|
|
|
/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
|
|
|
interface MediaStreamTrackEvent extends Event {
|
|
|
readonly track: MediaStreamTrack;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamTrackEvent: {
|
|
|
prototype: MediaStreamTrackEvent;
|
|
|
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
|
|
|
};
|
|
|
|
|
|
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
|
|
|
interface MessageChannel {
|
|
|
/**
|
|
|
* Returns the first MessagePort object.
|
|
|
*/
|
|
|
readonly port1: MessagePort;
|
|
|
/**
|
|
|
* Returns the second MessagePort object.
|
|
|
*/
|
|
|
readonly port2: MessagePort;
|
|
|
}
|
|
|
|
|
|
declare var MessageChannel: {
|
|
|
prototype: MessageChannel;
|
|
|
new(): MessageChannel;
|
|
|
};
|
|
|
|
|
|
/** A message received by a target object. */
|
|
|
interface MessageEvent<T = any> extends Event {
|
|
|
/**
|
|
|
* Returns the data of the message.
|
|
|
*/
|
|
|
readonly data: T;
|
|
|
/**
|
|
|
* Returns the last event ID string, for server-sent events.
|
|
|
*/
|
|
|
readonly lastEventId: string;
|
|
|
/**
|
|
|
* Returns the origin of the message, for server-sent events and cross-document messaging.
|
|
|
*/
|
|
|
readonly origin: string;
|
|
|
/**
|
|
|
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
|
|
|
*/
|
|
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
|
/**
|
|
|
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
|
|
|
*/
|
|
|
readonly source: MessageEventSource | null;
|
|
|
/** @deprecated */
|
|
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
|
|
|
}
|
|
|
|
|
|
declare var MessageEvent: {
|
|
|
prototype: MessageEvent;
|
|
|
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
|
|
|
};
|
|
|
|
|
|
interface MessagePortEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
|
|
|
interface MessagePort extends EventTarget {
|
|
|
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Disconnects the port, so that it is no longer active.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
|
*
|
|
|
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
|
|
|
*/
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
/**
|
|
|
* Begins dispatching messages received on the port.
|
|
|
*/
|
|
|
start(): void;
|
|
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MessagePort: {
|
|
|
prototype: MessagePort;
|
|
|
new(): MessagePort;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface MimeType {
|
|
|
/**
|
|
|
* Returns the MIME type's description.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly description: string;
|
|
|
/**
|
|
|
* Returns the Plugin object that implements this MIME type.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly enabledPlugin: Plugin;
|
|
|
/**
|
|
|
* Returns the MIME type's typical file extensions, in a comma-separated list.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly suffixes: string;
|
|
|
/**
|
|
|
* Returns the MIME type.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var MimeType: {
|
|
|
prototype: MimeType;
|
|
|
new(): MimeType;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface MimeTypeArray {
|
|
|
/** @deprecated */
|
|
|
readonly length: number;
|
|
|
/** @deprecated */
|
|
|
item(index: number): MimeType | null;
|
|
|
/** @deprecated */
|
|
|
namedItem(name: string): MimeType | null;
|
|
|
[index: number]: MimeType;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var MimeTypeArray: {
|
|
|
prototype: MimeTypeArray;
|
|
|
new(): MimeTypeArray;
|
|
|
};
|
|
|
|
|
|
/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */
|
|
|
interface MouseEvent extends UIEvent {
|
|
|
readonly altKey: boolean;
|
|
|
readonly button: number;
|
|
|
readonly buttons: number;
|
|
|
readonly clientX: number;
|
|
|
readonly clientY: number;
|
|
|
readonly ctrlKey: boolean;
|
|
|
readonly metaKey: boolean;
|
|
|
readonly movementX: number;
|
|
|
readonly movementY: number;
|
|
|
readonly offsetX: number;
|
|
|
readonly offsetY: number;
|
|
|
readonly pageX: number;
|
|
|
readonly pageY: number;
|
|
|
readonly relatedTarget: EventTarget | null;
|
|
|
readonly screenX: number;
|
|
|
readonly screenY: number;
|
|
|
readonly shiftKey: boolean;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
getModifierState(keyArg: string): boolean;
|
|
|
/** @deprecated */
|
|
|
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
|
|
|
}
|
|
|
|
|
|
declare var MouseEvent: {
|
|
|
prototype: MouseEvent;
|
|
|
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
|
|
|
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
|
|
|
*/
|
|
|
interface MutationEvent extends Event {
|
|
|
/** @deprecated */
|
|
|
readonly attrChange: number;
|
|
|
/** @deprecated */
|
|
|
readonly attrName: string;
|
|
|
/** @deprecated */
|
|
|
readonly newValue: string;
|
|
|
/** @deprecated */
|
|
|
readonly prevValue: string;
|
|
|
/** @deprecated */
|
|
|
readonly relatedNode: Node | null;
|
|
|
/** @deprecated */
|
|
|
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
|
|
|
readonly ADDITION: number;
|
|
|
readonly MODIFICATION: number;
|
|
|
readonly REMOVAL: number;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var MutationEvent: {
|
|
|
prototype: MutationEvent;
|
|
|
new(): MutationEvent;
|
|
|
readonly ADDITION: number;
|
|
|
readonly MODIFICATION: number;
|
|
|
readonly REMOVAL: number;
|
|
|
};
|
|
|
|
|
|
/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
|
|
|
interface MutationObserver {
|
|
|
/**
|
|
|
* Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.
|
|
|
*/
|
|
|
disconnect(): void;
|
|
|
/**
|
|
|
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
|
|
|
*
|
|
|
* The options argument allows for setting mutation observation options via object members.
|
|
|
*/
|
|
|
observe(target: Node, options?: MutationObserverInit): void;
|
|
|
/**
|
|
|
* Empties the record queue and returns what was in there.
|
|
|
*/
|
|
|
takeRecords(): MutationRecord[];
|
|
|
}
|
|
|
|
|
|
declare var MutationObserver: {
|
|
|
prototype: MutationObserver;
|
|
|
new(callback: MutationCallback): MutationObserver;
|
|
|
};
|
|
|
|
|
|
/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
|
|
|
interface MutationRecord {
|
|
|
/**
|
|
|
* Return the nodes added and removed respectively.
|
|
|
*/
|
|
|
readonly addedNodes: NodeList;
|
|
|
/**
|
|
|
* Returns the local name of the changed attribute, and null otherwise.
|
|
|
*/
|
|
|
readonly attributeName: string | null;
|
|
|
/**
|
|
|
* Returns the namespace of the changed attribute, and null otherwise.
|
|
|
*/
|
|
|
readonly attributeNamespace: string | null;
|
|
|
/**
|
|
|
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
|
|
|
*/
|
|
|
readonly nextSibling: Node | null;
|
|
|
/**
|
|
|
* The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.
|
|
|
*/
|
|
|
readonly oldValue: string | null;
|
|
|
/**
|
|
|
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
|
|
|
*/
|
|
|
readonly previousSibling: Node | null;
|
|
|
/**
|
|
|
* Return the nodes added and removed respectively.
|
|
|
*/
|
|
|
readonly removedNodes: NodeList;
|
|
|
/**
|
|
|
* Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.
|
|
|
*/
|
|
|
readonly target: Node;
|
|
|
/**
|
|
|
* Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.
|
|
|
*/
|
|
|
readonly type: MutationRecordType;
|
|
|
}
|
|
|
|
|
|
declare var MutationRecord: {
|
|
|
prototype: MutationRecord;
|
|
|
new(): MutationRecord;
|
|
|
};
|
|
|
|
|
|
/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */
|
|
|
interface NamedNodeMap {
|
|
|
readonly length: number;
|
|
|
getNamedItem(qualifiedName: string): Attr | null;
|
|
|
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
|
|
|
item(index: number): Attr | null;
|
|
|
removeNamedItem(qualifiedName: string): Attr;
|
|
|
removeNamedItemNS(namespace: string | null, localName: string): Attr;
|
|
|
setNamedItem(attr: Attr): Attr | null;
|
|
|
setNamedItemNS(attr: Attr): Attr | null;
|
|
|
[index: number]: Attr;
|
|
|
}
|
|
|
|
|
|
declare var NamedNodeMap: {
|
|
|
prototype: NamedNodeMap;
|
|
|
new(): NamedNodeMap;
|
|
|
};
|
|
|
|
|
|
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
|
|
|
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
|
readonly clipboard: Clipboard;
|
|
|
readonly credentials: CredentialsContainer;
|
|
|
readonly doNotTrack: string | null;
|
|
|
readonly geolocation: Geolocation;
|
|
|
readonly maxTouchPoints: number;
|
|
|
readonly mediaCapabilities: MediaCapabilities;
|
|
|
readonly mediaDevices: MediaDevices;
|
|
|
readonly mediaSession: MediaSession;
|
|
|
readonly permissions: Permissions;
|
|
|
readonly pointerEnabled: boolean;
|
|
|
readonly serviceWorker: ServiceWorkerContainer;
|
|
|
getGamepads(): (Gamepad | null)[];
|
|
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
|
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
|
|
|
share(data?: ShareData): Promise<void>;
|
|
|
vibrate(pattern: VibratePattern): boolean;
|
|
|
}
|
|
|
|
|
|
declare var Navigator: {
|
|
|
prototype: Navigator;
|
|
|
new(): Navigator;
|
|
|
};
|
|
|
|
|
|
interface NavigatorAutomationInformation {
|
|
|
readonly webdriver: boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorConcurrentHardware {
|
|
|
readonly hardwareConcurrency: number;
|
|
|
}
|
|
|
|
|
|
interface NavigatorContentUtils {
|
|
|
registerProtocolHandler(scheme: string, url: string | URL): void;
|
|
|
}
|
|
|
|
|
|
interface NavigatorCookies {
|
|
|
readonly cookieEnabled: boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorID {
|
|
|
/** @deprecated */
|
|
|
readonly appCodeName: string;
|
|
|
/** @deprecated */
|
|
|
readonly appName: string;
|
|
|
/** @deprecated */
|
|
|
readonly appVersion: string;
|
|
|
/** @deprecated */
|
|
|
readonly platform: string;
|
|
|
/** @deprecated */
|
|
|
readonly product: string;
|
|
|
/** @deprecated */
|
|
|
readonly productSub: string;
|
|
|
readonly userAgent: string;
|
|
|
readonly vendor: string;
|
|
|
/** @deprecated */
|
|
|
readonly vendorSub: string;
|
|
|
}
|
|
|
|
|
|
interface NavigatorLanguage {
|
|
|
readonly language: string;
|
|
|
readonly languages: ReadonlyArray<string>;
|
|
|
}
|
|
|
|
|
|
interface NavigatorNetworkInformation {
|
|
|
readonly connection: NetworkInformation;
|
|
|
}
|
|
|
|
|
|
interface NavigatorOnLine {
|
|
|
readonly onLine: boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorPlugins {
|
|
|
/** @deprecated */
|
|
|
readonly mimeTypes: MimeTypeArray;
|
|
|
/** @deprecated */
|
|
|
readonly plugins: PluginArray;
|
|
|
/** @deprecated */
|
|
|
javaEnabled(): boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorStorage {
|
|
|
readonly storage: StorageManager;
|
|
|
}
|
|
|
|
|
|
interface NetworkInformation extends EventTarget {
|
|
|
readonly type: ConnectionType;
|
|
|
}
|
|
|
|
|
|
declare var NetworkInformation: {
|
|
|
prototype: NetworkInformation;
|
|
|
new(): NetworkInformation;
|
|
|
};
|
|
|
|
|
|
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
|
|
|
interface Node extends EventTarget {
|
|
|
/**
|
|
|
* Returns node's node document's document base URL.
|
|
|
*/
|
|
|
readonly baseURI: string;
|
|
|
/**
|
|
|
* Returns the children.
|
|
|
*/
|
|
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
|
/**
|
|
|
* Returns the first child.
|
|
|
*/
|
|
|
readonly firstChild: ChildNode | null;
|
|
|
/**
|
|
|
* Returns true if node is connected and false otherwise.
|
|
|
*/
|
|
|
readonly isConnected: boolean;
|
|
|
/**
|
|
|
* Returns the last child.
|
|
|
*/
|
|
|
readonly lastChild: ChildNode | null;
|
|
|
/**
|
|
|
* Returns the next sibling.
|
|
|
*/
|
|
|
readonly nextSibling: ChildNode | null;
|
|
|
/**
|
|
|
* Returns a string appropriate for the type of node.
|
|
|
*/
|
|
|
readonly nodeName: string;
|
|
|
/**
|
|
|
* Returns the type of node.
|
|
|
*/
|
|
|
readonly nodeType: number;
|
|
|
nodeValue: string | null;
|
|
|
/**
|
|
|
* Returns the node document. Returns null for documents.
|
|
|
*/
|
|
|
readonly ownerDocument: Document | null;
|
|
|
/**
|
|
|
* Returns the parent element.
|
|
|
*/
|
|
|
readonly parentElement: HTMLElement | null;
|
|
|
/**
|
|
|
* Returns the parent.
|
|
|
*/
|
|
|
readonly parentNode: ParentNode | null;
|
|
|
/**
|
|
|
* Returns the previous sibling.
|
|
|
*/
|
|
|
readonly previousSibling: ChildNode | null;
|
|
|
textContent: string | null;
|
|
|
appendChild<T extends Node>(node: T): T;
|
|
|
/**
|
|
|
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
|
|
|
*/
|
|
|
cloneNode(deep?: boolean): Node;
|
|
|
/**
|
|
|
* Returns a bitmask indicating the position of other relative to node.
|
|
|
*/
|
|
|
compareDocumentPosition(other: Node): number;
|
|
|
/**
|
|
|
* Returns true if other is an inclusive descendant of node, and false otherwise.
|
|
|
*/
|
|
|
contains(other: Node | null): boolean;
|
|
|
/**
|
|
|
* Returns node's root.
|
|
|
*/
|
|
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
|
/**
|
|
|
* Returns whether node has children.
|
|
|
*/
|
|
|
hasChildNodes(): boolean;
|
|
|
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
|
/**
|
|
|
* Returns whether node and otherNode have the same properties.
|
|
|
*/
|
|
|
isEqualNode(otherNode: Node | null): boolean;
|
|
|
isSameNode(otherNode: Node | null): boolean;
|
|
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
|
lookupPrefix(namespace: string | null): string | null;
|
|
|
/**
|
|
|
* Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
|
|
|
*/
|
|
|
normalize(): void;
|
|
|
removeChild<T extends Node>(child: T): T;
|
|
|
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
|
readonly ATTRIBUTE_NODE: number;
|
|
|
/**
|
|
|
* node is a CDATASection node.
|
|
|
*/
|
|
|
readonly CDATA_SECTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Comment node.
|
|
|
*/
|
|
|
readonly COMMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a DocumentFragment node.
|
|
|
*/
|
|
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a document.
|
|
|
*/
|
|
|
readonly DOCUMENT_NODE: number;
|
|
|
/**
|
|
|
* Set when other is a descendant of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
|
/**
|
|
|
* Set when other is an ancestor of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
|
/**
|
|
|
* Set when node and other are not in the same tree.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
|
/**
|
|
|
* Set when other is following node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
|
/**
|
|
|
* Set when other is preceding node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
|
/**
|
|
|
* node is a doctype.
|
|
|
*/
|
|
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
|
/**
|
|
|
* node is an element.
|
|
|
*/
|
|
|
readonly ELEMENT_NODE: number;
|
|
|
readonly ENTITY_NODE: number;
|
|
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
|
readonly NOTATION_NODE: number;
|
|
|
/**
|
|
|
* node is a ProcessingInstruction node.
|
|
|
*/
|
|
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Text node.
|
|
|
*/
|
|
|
readonly TEXT_NODE: number;
|
|
|
}
|
|
|
|
|
|
declare var Node: {
|
|
|
prototype: Node;
|
|
|
new(): Node;
|
|
|
readonly ATTRIBUTE_NODE: number;
|
|
|
/**
|
|
|
* node is a CDATASection node.
|
|
|
*/
|
|
|
readonly CDATA_SECTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Comment node.
|
|
|
*/
|
|
|
readonly COMMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a DocumentFragment node.
|
|
|
*/
|
|
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a document.
|
|
|
*/
|
|
|
readonly DOCUMENT_NODE: number;
|
|
|
/**
|
|
|
* Set when other is a descendant of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
|
/**
|
|
|
* Set when other is an ancestor of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
|
/**
|
|
|
* Set when node and other are not in the same tree.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
|
/**
|
|
|
* Set when other is following node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
|
/**
|
|
|
* Set when other is preceding node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
|
/**
|
|
|
* node is a doctype.
|
|
|
*/
|
|
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
|
/**
|
|
|
* node is an element.
|
|
|
*/
|
|
|
readonly ELEMENT_NODE: number;
|
|
|
readonly ENTITY_NODE: number;
|
|
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
|
readonly NOTATION_NODE: number;
|
|
|
/**
|
|
|
* node is a ProcessingInstruction node.
|
|
|
*/
|
|
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Text node.
|
|
|
*/
|
|
|
readonly TEXT_NODE: number;
|
|
|
};
|
|
|
|
|
|
/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
|
|
|
interface NodeIterator {
|
|
|
readonly filter: NodeFilter | null;
|
|
|
readonly pointerBeforeReferenceNode: boolean;
|
|
|
readonly referenceNode: Node;
|
|
|
readonly root: Node;
|
|
|
readonly whatToShow: number;
|
|
|
/** @deprecated */
|
|
|
detach(): void;
|
|
|
nextNode(): Node | null;
|
|
|
previousNode(): Node | null;
|
|
|
}
|
|
|
|
|
|
declare var NodeIterator: {
|
|
|
prototype: NodeIterator;
|
|
|
new(): NodeIterator;
|
|
|
};
|
|
|
|
|
|
/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
|
|
|
interface NodeList {
|
|
|
/**
|
|
|
* Returns the number of nodes in the collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the node with index index from the collection. The nodes are sorted in tree order.
|
|
|
*/
|
|
|
item(index: number): Node | null;
|
|
|
/**
|
|
|
* Performs the specified action for each node in an list.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
|
|
|
[index: number]: Node;
|
|
|
}
|
|
|
|
|
|
declare var NodeList: {
|
|
|
prototype: NodeList;
|
|
|
new(): NodeList;
|
|
|
};
|
|
|
|
|
|
interface NodeListOf<TNode extends Node> extends NodeList {
|
|
|
item(index: number): TNode;
|
|
|
/**
|
|
|
* Performs the specified action for each node in an list.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
|
|
|
[index: number]: TNode;
|
|
|
}
|
|
|
|
|
|
interface NonDocumentTypeChildNode {
|
|
|
/**
|
|
|
* Returns the first following sibling that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly nextElementSibling: Element | null;
|
|
|
/**
|
|
|
* Returns the first preceding sibling that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly previousElementSibling: Element | null;
|
|
|
}
|
|
|
|
|
|
interface NonElementParentNode {
|
|
|
/**
|
|
|
* Returns the first element within node's descendants whose ID is elementId.
|
|
|
*/
|
|
|
getElementById(elementId: string): Element | null;
|
|
|
}
|
|
|
|
|
|
interface NotificationEventMap {
|
|
|
"click": Event;
|
|
|
"close": Event;
|
|
|
"error": Event;
|
|
|
"show": Event;
|
|
|
}
|
|
|
|
|
|
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
|
|
|
interface Notification extends EventTarget {
|
|
|
readonly body: string;
|
|
|
readonly data: any;
|
|
|
readonly dir: NotificationDirection;
|
|
|
readonly icon: string;
|
|
|
readonly lang: string;
|
|
|
onclick: ((this: Notification, ev: Event) => any) | null;
|
|
|
onclose: ((this: Notification, ev: Event) => any) | null;
|
|
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
|
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
|
|
readonly tag: string;
|
|
|
readonly title: string;
|
|
|
close(): void;
|
|
|
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Notification: {
|
|
|
prototype: Notification;
|
|
|
new(title: string, options?: NotificationOptions): Notification;
|
|
|
readonly permission: NotificationPermission;
|
|
|
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
|
|
};
|
|
|
|
|
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
|
interface OES_element_index_uint {
|
|
|
}
|
|
|
|
|
|
interface OES_fbo_render_mipmap {
|
|
|
}
|
|
|
|
|
|
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
|
|
|
interface OES_standard_derivatives {
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
|
|
|
interface OES_texture_float {
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
|
|
|
interface OES_texture_float_linear {
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
|
|
|
interface OES_texture_half_float {
|
|
|
readonly HALF_FLOAT_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
|
|
|
interface OES_texture_half_float_linear {
|
|
|
}
|
|
|
|
|
|
interface OES_vertex_array_object {
|
|
|
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
|
|
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
|
|
|
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
|
|
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
|
|
|
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
interface OVR_multiview2 {
|
|
|
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
|
|
|
readonly MAX_VIEWS_OVR: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
|
|
|
interface OfflineAudioCompletionEvent extends Event {
|
|
|
readonly renderedBuffer: AudioBuffer;
|
|
|
}
|
|
|
|
|
|
declare var OfflineAudioCompletionEvent: {
|
|
|
prototype: OfflineAudioCompletionEvent;
|
|
|
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
|
|
|
};
|
|
|
|
|
|
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
|
|
|
"complete": OfflineAudioCompletionEvent;
|
|
|
}
|
|
|
|
|
|
/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
|
|
|
interface OfflineAudioContext extends BaseAudioContext {
|
|
|
readonly length: number;
|
|
|
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
|
|
|
resume(): Promise<void>;
|
|
|
startRendering(): Promise<AudioBuffer>;
|
|
|
suspend(suspendTime: number): Promise<void>;
|
|
|
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var OfflineAudioContext: {
|
|
|
prototype: OfflineAudioContext;
|
|
|
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
|
|
|
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
|
|
|
};
|
|
|
|
|
|
/** The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone. */
|
|
|
interface OscillatorNode extends AudioScheduledSourceNode {
|
|
|
readonly detune: AudioParam;
|
|
|
readonly frequency: AudioParam;
|
|
|
type: OscillatorType;
|
|
|
setPeriodicWave(periodicWave: PeriodicWave): void;
|
|
|
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var OscillatorNode: {
|
|
|
prototype: OscillatorNode;
|
|
|
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
|
|
|
};
|
|
|
|
|
|
interface OverconstrainedError extends Error {
|
|
|
readonly constraint: string;
|
|
|
}
|
|
|
|
|
|
declare var OverconstrainedError: {
|
|
|
prototype: OverconstrainedError;
|
|
|
new(constraint: string, message?: string): OverconstrainedError;
|
|
|
};
|
|
|
|
|
|
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
|
|
|
interface PageTransitionEvent extends Event {
|
|
|
/**
|
|
|
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
|
|
|
*
|
|
|
* For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
|
|
|
*
|
|
|
* Things that can cause the page to be unsalvageable include:
|
|
|
*
|
|
|
* The user agent decided to not keep the Document alive in a session history entry after unload
|
|
|
* Having iframes that are not salvageable
|
|
|
* Active WebSocket objects
|
|
|
* Aborting a Document
|
|
|
*/
|
|
|
readonly persisted: boolean;
|
|
|
}
|
|
|
|
|
|
declare var PageTransitionEvent: {
|
|
|
prototype: PageTransitionEvent;
|
|
|
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
|
|
|
};
|
|
|
|
|
|
/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */
|
|
|
interface PannerNode extends AudioNode {
|
|
|
coneInnerAngle: number;
|
|
|
coneOuterAngle: number;
|
|
|
coneOuterGain: number;
|
|
|
distanceModel: DistanceModelType;
|
|
|
maxDistance: number;
|
|
|
readonly orientationX: AudioParam;
|
|
|
readonly orientationY: AudioParam;
|
|
|
readonly orientationZ: AudioParam;
|
|
|
panningModel: PanningModelType;
|
|
|
readonly positionX: AudioParam;
|
|
|
readonly positionY: AudioParam;
|
|
|
readonly positionZ: AudioParam;
|
|
|
refDistance: number;
|
|
|
rolloffFactor: number;
|
|
|
/** @deprecated */
|
|
|
setOrientation(x: number, y: number, z: number): void;
|
|
|
/** @deprecated */
|
|
|
setPosition(x: number, y: number, z: number): void;
|
|
|
}
|
|
|
|
|
|
declare var PannerNode: {
|
|
|
prototype: PannerNode;
|
|
|
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
|
|
|
};
|
|
|
|
|
|
interface ParentNode extends Node {
|
|
|
readonly childElementCount: number;
|
|
|
/**
|
|
|
* Returns the child elements.
|
|
|
*/
|
|
|
readonly children: HTMLCollection;
|
|
|
/**
|
|
|
* Returns the first child that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly firstElementChild: Element | null;
|
|
|
/**
|
|
|
* Returns the last child that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly lastElementChild: Element | null;
|
|
|
/**
|
|
|
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
append(...nodes: (Node | string)[]): void;
|
|
|
/**
|
|
|
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
prepend(...nodes: (Node | string)[]): void;
|
|
|
/**
|
|
|
* Returns the first element that is a descendant of node that matches selectors.
|
|
|
*/
|
|
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
|
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
|
/**
|
|
|
* Returns all element descendants of node that match selectors.
|
|
|
*/
|
|
|
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
|
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
|
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
|
/**
|
|
|
* Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
|
}
|
|
|
|
|
|
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
|
|
|
interface Path2D extends CanvasPath {
|
|
|
/**
|
|
|
* Adds to the path the path given by the argument.
|
|
|
*/
|
|
|
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
|
|
|
}
|
|
|
|
|
|
declare var Path2D: {
|
|
|
prototype: Path2D;
|
|
|
new(path?: Path2D | string): Path2D;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* This Payment Request API interface is used to store shipping or payment address information.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface PaymentAddress {
|
|
|
/** @deprecated */
|
|
|
readonly addressLine: ReadonlyArray<string>;
|
|
|
/** @deprecated */
|
|
|
readonly city: string;
|
|
|
/** @deprecated */
|
|
|
readonly country: string;
|
|
|
/** @deprecated */
|
|
|
readonly dependentLocality: string;
|
|
|
/** @deprecated */
|
|
|
readonly organization: string;
|
|
|
/** @deprecated */
|
|
|
readonly phone: string;
|
|
|
/** @deprecated */
|
|
|
readonly postalCode: string;
|
|
|
/** @deprecated */
|
|
|
readonly recipient: string;
|
|
|
/** @deprecated */
|
|
|
readonly region: string;
|
|
|
/** @deprecated */
|
|
|
readonly sortingCode: string;
|
|
|
/** @deprecated */
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var PaymentAddress: {
|
|
|
prototype: PaymentAddress;
|
|
|
new(): PaymentAddress;
|
|
|
};
|
|
|
|
|
|
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
|
|
|
readonly methodDetails: any;
|
|
|
readonly methodName: string;
|
|
|
}
|
|
|
|
|
|
declare var PaymentMethodChangeEvent: {
|
|
|
prototype: PaymentMethodChangeEvent;
|
|
|
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
|
|
|
};
|
|
|
|
|
|
interface PaymentRequestEventMap {
|
|
|
"paymentmethodchange": Event;
|
|
|
}
|
|
|
|
|
|
/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */
|
|
|
interface PaymentRequest extends EventTarget {
|
|
|
readonly id: string;
|
|
|
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
|
abort(): Promise<void>;
|
|
|
canMakePayment(): Promise<boolean>;
|
|
|
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
|
|
|
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var PaymentRequest: {
|
|
|
prototype: PaymentRequest;
|
|
|
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
|
|
|
};
|
|
|
|
|
|
/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */
|
|
|
interface PaymentRequestUpdateEvent extends Event {
|
|
|
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
|
|
|
}
|
|
|
|
|
|
declare var PaymentRequestUpdateEvent: {
|
|
|
prototype: PaymentRequestUpdateEvent;
|
|
|
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
|
|
|
};
|
|
|
|
|
|
/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
|
|
|
interface PaymentResponse extends EventTarget {
|
|
|
readonly details: any;
|
|
|
readonly methodName: string;
|
|
|
readonly requestId: string;
|
|
|
complete(result?: PaymentComplete): Promise<void>;
|
|
|
retry(errorFields?: PaymentValidationErrors): Promise<void>;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PaymentResponse: {
|
|
|
prototype: PaymentResponse;
|
|
|
new(): PaymentResponse;
|
|
|
};
|
|
|
|
|
|
interface PerformanceEventMap {
|
|
|
"resourcetimingbufferfull": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
|
interface Performance extends EventTarget {
|
|
|
/** @deprecated */
|
|
|
readonly navigation: PerformanceNavigation;
|
|
|
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
|
|
readonly timeOrigin: DOMHighResTimeStamp;
|
|
|
/** @deprecated */
|
|
|
readonly timing: PerformanceTiming;
|
|
|
clearMarks(markName?: string): void;
|
|
|
clearMeasures(measureName?: string): void;
|
|
|
clearResourceTimings(): void;
|
|
|
getEntries(): PerformanceEntryList;
|
|
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
|
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
|
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
|
|
|
now(): DOMHighResTimeStamp;
|
|
|
setResourceTimingBufferSize(maxSize: number): void;
|
|
|
toJSON(): any;
|
|
|
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Performance: {
|
|
|
prototype: Performance;
|
|
|
new(): Performance;
|
|
|
};
|
|
|
|
|
|
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
|
|
|
interface PerformanceEntry {
|
|
|
readonly duration: DOMHighResTimeStamp;
|
|
|
readonly entryType: string;
|
|
|
readonly name: string;
|
|
|
readonly startTime: DOMHighResTimeStamp;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceEntry: {
|
|
|
prototype: PerformanceEntry;
|
|
|
new(): PerformanceEntry;
|
|
|
};
|
|
|
|
|
|
interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
readonly cancelable: boolean;
|
|
|
readonly processingEnd: DOMHighResTimeStamp;
|
|
|
readonly processingStart: DOMHighResTimeStamp;
|
|
|
readonly target: Node | null;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceEventTiming: {
|
|
|
prototype: PerformanceEventTiming;
|
|
|
new(): PerformanceEventTiming;
|
|
|
};
|
|
|
|
|
|
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
|
|
|
interface PerformanceMark extends PerformanceEntry {
|
|
|
readonly detail: any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceMark: {
|
|
|
prototype: PerformanceMark;
|
|
|
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
|
};
|
|
|
|
|
|
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
|
|
|
interface PerformanceMeasure extends PerformanceEntry {
|
|
|
readonly detail: any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceMeasure: {
|
|
|
prototype: PerformanceMeasure;
|
|
|
new(): PerformanceMeasure;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
|
|
|
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
|
|
|
*/
|
|
|
interface PerformanceNavigation {
|
|
|
/** @deprecated */
|
|
|
readonly redirectCount: number;
|
|
|
/** @deprecated */
|
|
|
readonly type: number;
|
|
|
/** @deprecated */
|
|
|
toJSON(): any;
|
|
|
readonly TYPE_BACK_FORWARD: number;
|
|
|
readonly TYPE_NAVIGATE: number;
|
|
|
readonly TYPE_RELOAD: number;
|
|
|
readonly TYPE_RESERVED: number;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var PerformanceNavigation: {
|
|
|
prototype: PerformanceNavigation;
|
|
|
new(): PerformanceNavigation;
|
|
|
readonly TYPE_BACK_FORWARD: number;
|
|
|
readonly TYPE_NAVIGATE: number;
|
|
|
readonly TYPE_RELOAD: number;
|
|
|
readonly TYPE_RESERVED: number;
|
|
|
};
|
|
|
|
|
|
/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
|
|
|
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
|
|
|
readonly domComplete: DOMHighResTimeStamp;
|
|
|
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
|
|
|
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
|
|
|
readonly domInteractive: DOMHighResTimeStamp;
|
|
|
readonly loadEventEnd: DOMHighResTimeStamp;
|
|
|
readonly loadEventStart: DOMHighResTimeStamp;
|
|
|
readonly redirectCount: number;
|
|
|
readonly type: NavigationType;
|
|
|
readonly unloadEventEnd: DOMHighResTimeStamp;
|
|
|
readonly unloadEventStart: DOMHighResTimeStamp;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceNavigationTiming: {
|
|
|
prototype: PerformanceNavigationTiming;
|
|
|
new(): PerformanceNavigationTiming;
|
|
|
};
|
|
|
|
|
|
interface PerformanceObserver {
|
|
|
disconnect(): void;
|
|
|
observe(options?: PerformanceObserverInit): void;
|
|
|
takeRecords(): PerformanceEntryList;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceObserver: {
|
|
|
prototype: PerformanceObserver;
|
|
|
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
|
|
readonly supportedEntryTypes: ReadonlyArray<string>;
|
|
|
};
|
|
|
|
|
|
interface PerformanceObserverEntryList {
|
|
|
getEntries(): PerformanceEntryList;
|
|
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceObserverEntryList: {
|
|
|
prototype: PerformanceObserverEntryList;
|
|
|
new(): PerformanceObserverEntryList;
|
|
|
};
|
|
|
|
|
|
interface PerformancePaintTiming extends PerformanceEntry {
|
|
|
}
|
|
|
|
|
|
declare var PerformancePaintTiming: {
|
|
|
prototype: PerformancePaintTiming;
|
|
|
new(): PerformancePaintTiming;
|
|
|
};
|
|
|
|
|
|
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
|
|
|
interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
readonly connectEnd: DOMHighResTimeStamp;
|
|
|
readonly connectStart: DOMHighResTimeStamp;
|
|
|
readonly decodedBodySize: number;
|
|
|
readonly domainLookupEnd: DOMHighResTimeStamp;
|
|
|
readonly domainLookupStart: DOMHighResTimeStamp;
|
|
|
readonly encodedBodySize: number;
|
|
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
|
readonly initiatorType: string;
|
|
|
readonly nextHopProtocol: string;
|
|
|
readonly redirectEnd: DOMHighResTimeStamp;
|
|
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
|
readonly requestStart: DOMHighResTimeStamp;
|
|
|
readonly responseEnd: DOMHighResTimeStamp;
|
|
|
readonly responseStart: DOMHighResTimeStamp;
|
|
|
readonly secureConnectionStart: DOMHighResTimeStamp;
|
|
|
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
|
|
|
readonly transferSize: number;
|
|
|
readonly workerStart: DOMHighResTimeStamp;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceResourceTiming: {
|
|
|
prototype: PerformanceResourceTiming;
|
|
|
new(): PerformanceResourceTiming;
|
|
|
};
|
|
|
|
|
|
interface PerformanceServerTiming {
|
|
|
readonly description: string;
|
|
|
readonly duration: DOMHighResTimeStamp;
|
|
|
readonly name: string;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceServerTiming: {
|
|
|
prototype: PerformanceServerTiming;
|
|
|
new(): PerformanceServerTiming;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
|
|
|
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
|
|
|
*/
|
|
|
interface PerformanceTiming {
|
|
|
/** @deprecated */
|
|
|
readonly connectEnd: number;
|
|
|
/** @deprecated */
|
|
|
readonly connectStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly domComplete: number;
|
|
|
/** @deprecated */
|
|
|
readonly domContentLoadedEventEnd: number;
|
|
|
/** @deprecated */
|
|
|
readonly domContentLoadedEventStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly domInteractive: number;
|
|
|
/** @deprecated */
|
|
|
readonly domLoading: number;
|
|
|
/** @deprecated */
|
|
|
readonly domainLookupEnd: number;
|
|
|
/** @deprecated */
|
|
|
readonly domainLookupStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly fetchStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly loadEventEnd: number;
|
|
|
/** @deprecated */
|
|
|
readonly loadEventStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly navigationStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly redirectEnd: number;
|
|
|
/** @deprecated */
|
|
|
readonly redirectStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly requestStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly responseEnd: number;
|
|
|
/** @deprecated */
|
|
|
readonly responseStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly secureConnectionStart: number;
|
|
|
/** @deprecated */
|
|
|
readonly unloadEventEnd: number;
|
|
|
/** @deprecated */
|
|
|
readonly unloadEventStart: number;
|
|
|
/** @deprecated */
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var PerformanceTiming: {
|
|
|
prototype: PerformanceTiming;
|
|
|
new(): PerformanceTiming;
|
|
|
};
|
|
|
|
|
|
/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */
|
|
|
interface PeriodicWave {
|
|
|
}
|
|
|
|
|
|
declare var PeriodicWave: {
|
|
|
prototype: PeriodicWave;
|
|
|
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
|
|
|
};
|
|
|
|
|
|
interface PermissionStatusEventMap {
|
|
|
"change": Event;
|
|
|
}
|
|
|
|
|
|
interface PermissionStatus extends EventTarget {
|
|
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
|
readonly state: PermissionState;
|
|
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var PermissionStatus: {
|
|
|
prototype: PermissionStatus;
|
|
|
new(): PermissionStatus;
|
|
|
};
|
|
|
|
|
|
interface Permissions {
|
|
|
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
|
|
|
}
|
|
|
|
|
|
declare var Permissions: {
|
|
|
prototype: Permissions;
|
|
|
new(): Permissions;
|
|
|
};
|
|
|
|
|
|
interface PictureInPictureWindowEventMap {
|
|
|
"resize": Event;
|
|
|
}
|
|
|
|
|
|
interface PictureInPictureWindow extends EventTarget {
|
|
|
readonly height: number;
|
|
|
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
|
|
|
readonly width: number;
|
|
|
addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var PictureInPictureWindow: {
|
|
|
prototype: PictureInPictureWindow;
|
|
|
new(): PictureInPictureWindow;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Provides information about a browser plugin.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface Plugin {
|
|
|
/**
|
|
|
* Returns the plugin's description.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly description: string;
|
|
|
/**
|
|
|
* Returns the plugin library's filename, if applicable on the current platform.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly filename: string;
|
|
|
/**
|
|
|
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the plugin's name.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
/**
|
|
|
* Returns the specified MimeType object.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
item(index: number): MimeType | null;
|
|
|
/** @deprecated */
|
|
|
namedItem(name: string): MimeType | null;
|
|
|
[index: number]: MimeType;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var Plugin: {
|
|
|
prototype: Plugin;
|
|
|
new(): Plugin;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
interface PluginArray {
|
|
|
/** @deprecated */
|
|
|
readonly length: number;
|
|
|
/** @deprecated */
|
|
|
item(index: number): Plugin | null;
|
|
|
/** @deprecated */
|
|
|
namedItem(name: string): Plugin | null;
|
|
|
/** @deprecated */
|
|
|
refresh(): void;
|
|
|
[index: number]: Plugin;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var PluginArray: {
|
|
|
prototype: PluginArray;
|
|
|
new(): PluginArray;
|
|
|
};
|
|
|
|
|
|
/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */
|
|
|
interface PointerEvent extends MouseEvent {
|
|
|
readonly height: number;
|
|
|
readonly isPrimary: boolean;
|
|
|
readonly pointerId: number;
|
|
|
readonly pointerType: string;
|
|
|
readonly pressure: number;
|
|
|
readonly tangentialPressure: number;
|
|
|
readonly tiltX: number;
|
|
|
readonly tiltY: number;
|
|
|
readonly twist: number;
|
|
|
readonly width: number;
|
|
|
getCoalescedEvents(): PointerEvent[];
|
|
|
getPredictedEvents(): PointerEvent[];
|
|
|
}
|
|
|
|
|
|
declare var PointerEvent: {
|
|
|
prototype: PointerEvent;
|
|
|
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
|
|
|
};
|
|
|
|
|
|
/** PopStateEvent is an event handler for the popstate event on the window. */
|
|
|
interface PopStateEvent extends Event {
|
|
|
/**
|
|
|
* Returns a copy of the information that was provided to pushState() or replaceState().
|
|
|
*/
|
|
|
readonly state: any;
|
|
|
}
|
|
|
|
|
|
declare var PopStateEvent: {
|
|
|
prototype: PopStateEvent;
|
|
|
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
|
|
|
};
|
|
|
|
|
|
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
|
|
|
interface ProcessingInstruction extends CharacterData, LinkStyle {
|
|
|
readonly ownerDocument: Document;
|
|
|
readonly target: string;
|
|
|
}
|
|
|
|
|
|
declare var ProcessingInstruction: {
|
|
|
prototype: ProcessingInstruction;
|
|
|
new(): ProcessingInstruction;
|
|
|
};
|
|
|
|
|
|
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
|
|
|
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
|
readonly lengthComputable: boolean;
|
|
|
readonly loaded: number;
|
|
|
readonly target: T | null;
|
|
|
readonly total: number;
|
|
|
}
|
|
|
|
|
|
declare var ProgressEvent: {
|
|
|
prototype: ProgressEvent;
|
|
|
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
|
|
|
};
|
|
|
|
|
|
interface PromiseRejectionEvent extends Event {
|
|
|
readonly promise: Promise<any>;
|
|
|
readonly reason: any;
|
|
|
}
|
|
|
|
|
|
declare var PromiseRejectionEvent: {
|
|
|
prototype: PromiseRejectionEvent;
|
|
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
|
};
|
|
|
|
|
|
interface PublicKeyCredential extends Credential {
|
|
|
readonly rawId: ArrayBuffer;
|
|
|
readonly response: AuthenticatorResponse;
|
|
|
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
|
|
|
}
|
|
|
|
|
|
declare var PublicKeyCredential: {
|
|
|
prototype: PublicKeyCredential;
|
|
|
new(): PublicKeyCredential;
|
|
|
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. */
|
|
|
interface PushManager {
|
|
|
getSubscription(): Promise<PushSubscription | null>;
|
|
|
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
|
|
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
|
|
}
|
|
|
|
|
|
declare var PushManager: {
|
|
|
prototype: PushManager;
|
|
|
new(): PushManager;
|
|
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
|
};
|
|
|
|
|
|
/** This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. */
|
|
|
interface PushSubscription {
|
|
|
readonly endpoint: string;
|
|
|
readonly options: PushSubscriptionOptions;
|
|
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
|
toJSON(): PushSubscriptionJSON;
|
|
|
unsubscribe(): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var PushSubscription: {
|
|
|
prototype: PushSubscription;
|
|
|
new(): PushSubscription;
|
|
|
};
|
|
|
|
|
|
interface PushSubscriptionOptions {
|
|
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
|
}
|
|
|
|
|
|
declare var PushSubscriptionOptions: {
|
|
|
prototype: PushSubscriptionOptions;
|
|
|
new(): PushSubscriptionOptions;
|
|
|
};
|
|
|
|
|
|
interface RTCCertificate {
|
|
|
readonly expires: DOMTimeStamp;
|
|
|
getFingerprints(): RTCDtlsFingerprint[];
|
|
|
}
|
|
|
|
|
|
declare var RTCCertificate: {
|
|
|
prototype: RTCCertificate;
|
|
|
new(): RTCCertificate;
|
|
|
};
|
|
|
|
|
|
interface RTCDTMFSenderEventMap {
|
|
|
"tonechange": RTCDTMFToneChangeEvent;
|
|
|
}
|
|
|
|
|
|
interface RTCDTMFSender extends EventTarget {
|
|
|
readonly canInsertDTMF: boolean;
|
|
|
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
|
|
|
readonly toneBuffer: string;
|
|
|
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
|
|
|
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCDTMFSender: {
|
|
|
prototype: RTCDTMFSender;
|
|
|
new(): RTCDTMFSender;
|
|
|
};
|
|
|
|
|
|
/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
|
|
|
interface RTCDTMFToneChangeEvent extends Event {
|
|
|
readonly tone: string;
|
|
|
}
|
|
|
|
|
|
declare var RTCDTMFToneChangeEvent: {
|
|
|
prototype: RTCDTMFToneChangeEvent;
|
|
|
new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCDataChannelEventMap {
|
|
|
"bufferedamountlow": Event;
|
|
|
"close": Event;
|
|
|
"error": Event;
|
|
|
"message": MessageEvent;
|
|
|
"open": Event;
|
|
|
}
|
|
|
|
|
|
interface RTCDataChannel extends EventTarget {
|
|
|
binaryType: BinaryType;
|
|
|
readonly bufferedAmount: number;
|
|
|
bufferedAmountLowThreshold: number;
|
|
|
readonly id: number | null;
|
|
|
readonly label: string;
|
|
|
readonly maxPacketLifeTime: number | null;
|
|
|
readonly maxRetransmits: number | null;
|
|
|
readonly negotiated: boolean;
|
|
|
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
|
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
|
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
|
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
|
|
|
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
|
readonly ordered: boolean;
|
|
|
readonly protocol: string;
|
|
|
readonly readyState: RTCDataChannelState;
|
|
|
close(): void;
|
|
|
send(data: string): void;
|
|
|
send(data: Blob): void;
|
|
|
send(data: ArrayBuffer): void;
|
|
|
send(data: ArrayBufferView): void;
|
|
|
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCDataChannel: {
|
|
|
prototype: RTCDataChannel;
|
|
|
new(): RTCDataChannel;
|
|
|
};
|
|
|
|
|
|
interface RTCDataChannelEvent extends Event {
|
|
|
readonly channel: RTCDataChannel;
|
|
|
}
|
|
|
|
|
|
declare var RTCDataChannelEvent: {
|
|
|
prototype: RTCDataChannelEvent;
|
|
|
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCDtlsTransportEventMap {
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
interface RTCDtlsTransport extends EventTarget {
|
|
|
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
|
readonly state: RTCDtlsTransportState;
|
|
|
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCDtlsTransport: {
|
|
|
prototype: RTCDtlsTransport;
|
|
|
new(): RTCDtlsTransport;
|
|
|
};
|
|
|
|
|
|
/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
|
|
|
interface RTCIceCandidate {
|
|
|
readonly address: string | null;
|
|
|
readonly candidate: string;
|
|
|
readonly component: RTCIceComponent | null;
|
|
|
readonly foundation: string | null;
|
|
|
readonly port: number | null;
|
|
|
readonly priority: number | null;
|
|
|
readonly protocol: RTCIceProtocol | null;
|
|
|
readonly relatedAddress: string | null;
|
|
|
readonly relatedPort: number | null;
|
|
|
readonly sdpMLineIndex: number | null;
|
|
|
readonly sdpMid: string | null;
|
|
|
readonly tcpType: RTCIceTcpCandidateType | null;
|
|
|
readonly type: RTCIceCandidateType | null;
|
|
|
readonly usernameFragment: string | null;
|
|
|
toJSON(): RTCIceCandidateInit;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceCandidate: {
|
|
|
prototype: RTCIceCandidate;
|
|
|
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
|
|
|
};
|
|
|
|
|
|
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
|
|
|
interface RTCIceTransport extends EventTarget {
|
|
|
readonly gatheringState: RTCIceGathererState;
|
|
|
readonly state: RTCIceTransportState;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceTransport: {
|
|
|
prototype: RTCIceTransport;
|
|
|
new(): RTCIceTransport;
|
|
|
};
|
|
|
|
|
|
interface RTCPeerConnectionEventMap {
|
|
|
"connectionstatechange": Event;
|
|
|
"datachannel": RTCDataChannelEvent;
|
|
|
"icecandidate": RTCPeerConnectionIceEvent;
|
|
|
"icecandidateerror": Event;
|
|
|
"iceconnectionstatechange": Event;
|
|
|
"icegatheringstatechange": Event;
|
|
|
"negotiationneeded": Event;
|
|
|
"signalingstatechange": Event;
|
|
|
"track": RTCTrackEvent;
|
|
|
}
|
|
|
|
|
|
/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */
|
|
|
interface RTCPeerConnection extends EventTarget {
|
|
|
readonly canTrickleIceCandidates: boolean | null;
|
|
|
readonly connectionState: RTCPeerConnectionState;
|
|
|
readonly currentLocalDescription: RTCSessionDescription | null;
|
|
|
readonly currentRemoteDescription: RTCSessionDescription | null;
|
|
|
readonly iceConnectionState: RTCIceConnectionState;
|
|
|
readonly iceGatheringState: RTCIceGatheringState;
|
|
|
readonly localDescription: RTCSessionDescription | null;
|
|
|
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
|
|
|
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
|
|
|
onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
|
|
|
readonly pendingLocalDescription: RTCSessionDescription | null;
|
|
|
readonly pendingRemoteDescription: RTCSessionDescription | null;
|
|
|
readonly remoteDescription: RTCSessionDescription | null;
|
|
|
readonly signalingState: RTCSignalingState;
|
|
|
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
|
|
|
/** @deprecated */
|
|
|
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
|
|
|
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
|
|
|
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
|
|
|
close(): void;
|
|
|
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
|
|
|
/** @deprecated */
|
|
|
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
|
|
|
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
|
|
|
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
|
|
|
/** @deprecated */
|
|
|
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
|
|
|
getConfiguration(): RTCConfiguration;
|
|
|
getReceivers(): RTCRtpReceiver[];
|
|
|
getSenders(): RTCRtpSender[];
|
|
|
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
|
|
|
getTransceivers(): RTCRtpTransceiver[];
|
|
|
removeTrack(sender: RTCRtpSender): void;
|
|
|
restartIce(): void;
|
|
|
setConfiguration(configuration?: RTCConfiguration): void;
|
|
|
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
|
|
|
/** @deprecated */
|
|
|
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
|
|
|
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
|
|
|
/** @deprecated */
|
|
|
setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
|
|
|
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCPeerConnection: {
|
|
|
prototype: RTCPeerConnection;
|
|
|
new(configuration?: RTCConfiguration): RTCPeerConnection;
|
|
|
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
|
|
|
};
|
|
|
|
|
|
interface RTCPeerConnectionIceErrorEvent extends Event {
|
|
|
readonly address: string | null;
|
|
|
readonly errorCode: number;
|
|
|
readonly errorText: string;
|
|
|
readonly port: number | null;
|
|
|
readonly url: string;
|
|
|
}
|
|
|
|
|
|
declare var RTCPeerConnectionIceErrorEvent: {
|
|
|
prototype: RTCPeerConnectionIceErrorEvent;
|
|
|
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
|
|
|
interface RTCPeerConnectionIceEvent extends Event {
|
|
|
readonly candidate: RTCIceCandidate | null;
|
|
|
}
|
|
|
|
|
|
declare var RTCPeerConnectionIceEvent: {
|
|
|
prototype: RTCPeerConnectionIceEvent;
|
|
|
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
|
|
|
};
|
|
|
|
|
|
/** This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection. */
|
|
|
interface RTCRtpReceiver {
|
|
|
readonly track: MediaStreamTrack;
|
|
|
readonly transport: RTCDtlsTransport | null;
|
|
|
getContributingSources(): RTCRtpContributingSource[];
|
|
|
getParameters(): RTCRtpReceiveParameters;
|
|
|
getStats(): Promise<RTCStatsReport>;
|
|
|
getSynchronizationSources(): RTCRtpSynchronizationSource[];
|
|
|
}
|
|
|
|
|
|
declare var RTCRtpReceiver: {
|
|
|
prototype: RTCRtpReceiver;
|
|
|
new(): RTCRtpReceiver;
|
|
|
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
|
|
};
|
|
|
|
|
|
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
|
|
|
interface RTCRtpSender {
|
|
|
readonly dtmf: RTCDTMFSender | null;
|
|
|
readonly track: MediaStreamTrack | null;
|
|
|
readonly transport: RTCDtlsTransport | null;
|
|
|
getParameters(): RTCRtpSendParameters;
|
|
|
getStats(): Promise<RTCStatsReport>;
|
|
|
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
|
|
|
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
|
|
|
setStreams(...streams: MediaStream[]): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCRtpSender: {
|
|
|
prototype: RTCRtpSender;
|
|
|
new(): RTCRtpSender;
|
|
|
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
|
|
};
|
|
|
|
|
|
interface RTCRtpTransceiver {
|
|
|
readonly currentDirection: RTCRtpTransceiverDirection | null;
|
|
|
direction: RTCRtpTransceiverDirection;
|
|
|
readonly mid: string | null;
|
|
|
readonly receiver: RTCRtpReceiver;
|
|
|
readonly sender: RTCRtpSender;
|
|
|
stop(): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCRtpTransceiver: {
|
|
|
prototype: RTCRtpTransceiver;
|
|
|
new(): RTCRtpTransceiver;
|
|
|
};
|
|
|
|
|
|
/** One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
|
|
|
interface RTCSessionDescription {
|
|
|
readonly sdp: string;
|
|
|
readonly type: RTCSdpType;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var RTCSessionDescription: {
|
|
|
prototype: RTCSessionDescription;
|
|
|
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
|
|
|
};
|
|
|
|
|
|
interface RTCStatsReport {
|
|
|
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCStatsReport: {
|
|
|
prototype: RTCStatsReport;
|
|
|
new(): RTCStatsReport;
|
|
|
};
|
|
|
|
|
|
interface RTCTrackEvent extends Event {
|
|
|
readonly receiver: RTCRtpReceiver;
|
|
|
readonly streams: ReadonlyArray<MediaStream>;
|
|
|
readonly track: MediaStreamTrack;
|
|
|
readonly transceiver: RTCRtpTransceiver;
|
|
|
}
|
|
|
|
|
|
declare var RTCTrackEvent: {
|
|
|
prototype: RTCTrackEvent;
|
|
|
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
|
|
|
};
|
|
|
|
|
|
interface RadioNodeList extends NodeList {
|
|
|
value: string;
|
|
|
}
|
|
|
|
|
|
declare var RadioNodeList: {
|
|
|
prototype: RadioNodeList;
|
|
|
new(): RadioNodeList;
|
|
|
};
|
|
|
|
|
|
/** A fragment of a document that can contain nodes and parts of text nodes. */
|
|
|
interface Range extends AbstractRange {
|
|
|
/**
|
|
|
* Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
|
|
|
*/
|
|
|
readonly commonAncestorContainer: Node;
|
|
|
cloneContents(): DocumentFragment;
|
|
|
cloneRange(): Range;
|
|
|
collapse(toStart?: boolean): void;
|
|
|
compareBoundaryPoints(how: number, sourceRange: Range): number;
|
|
|
/**
|
|
|
* Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
|
|
|
*/
|
|
|
comparePoint(node: Node, offset: number): number;
|
|
|
createContextualFragment(fragment: string): DocumentFragment;
|
|
|
deleteContents(): void;
|
|
|
detach(): void;
|
|
|
extractContents(): DocumentFragment;
|
|
|
getBoundingClientRect(): DOMRect;
|
|
|
getClientRects(): DOMRectList;
|
|
|
insertNode(node: Node): void;
|
|
|
/**
|
|
|
* Returns whether range intersects node.
|
|
|
*/
|
|
|
intersectsNode(node: Node): boolean;
|
|
|
isPointInRange(node: Node, offset: number): boolean;
|
|
|
selectNode(node: Node): void;
|
|
|
selectNodeContents(node: Node): void;
|
|
|
setEnd(node: Node, offset: number): void;
|
|
|
setEndAfter(node: Node): void;
|
|
|
setEndBefore(node: Node): void;
|
|
|
setStart(node: Node, offset: number): void;
|
|
|
setStartAfter(node: Node): void;
|
|
|
setStartBefore(node: Node): void;
|
|
|
surroundContents(newParent: Node): void;
|
|
|
toString(): string;
|
|
|
readonly END_TO_END: number;
|
|
|
readonly END_TO_START: number;
|
|
|
readonly START_TO_END: number;
|
|
|
readonly START_TO_START: number;
|
|
|
}
|
|
|
|
|
|
declare var Range: {
|
|
|
prototype: Range;
|
|
|
new(): Range;
|
|
|
readonly END_TO_END: number;
|
|
|
readonly END_TO_START: number;
|
|
|
readonly START_TO_END: number;
|
|
|
readonly START_TO_START: number;
|
|
|
toString(): string;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
|
interface ReadableStream<R = any> {
|
|
|
readonly locked: boolean;
|
|
|
cancel(reason?: any): Promise<void>;
|
|
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
|
forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var ReadableStream: {
|
|
|
prototype: ReadableStream;
|
|
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
|
};
|
|
|
|
|
|
interface ReadableStreamDefaultController<R = any> {
|
|
|
readonly desiredSize: number | null;
|
|
|
close(): void;
|
|
|
enqueue(chunk?: R): void;
|
|
|
error(e?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var ReadableStreamDefaultController: {
|
|
|
prototype: ReadableStreamDefaultController;
|
|
|
new(): ReadableStreamDefaultController;
|
|
|
};
|
|
|
|
|
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
|
read(): Promise<ReadableStreamDefaultReadResult<R>>;
|
|
|
releaseLock(): void;
|
|
|
}
|
|
|
|
|
|
declare var ReadableStreamDefaultReader: {
|
|
|
prototype: ReadableStreamDefaultReader;
|
|
|
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
|
|
|
};
|
|
|
|
|
|
interface ReadableStreamGenericReader {
|
|
|
readonly closed: Promise<undefined>;
|
|
|
cancel(reason?: any): Promise<void>;
|
|
|
}
|
|
|
|
|
|
interface RemotePlaybackEventMap {
|
|
|
"connect": Event;
|
|
|
"connecting": Event;
|
|
|
"disconnect": Event;
|
|
|
}
|
|
|
|
|
|
interface RemotePlayback extends EventTarget {
|
|
|
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
|
|
|
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
|
|
|
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
|
|
|
readonly state: RemotePlaybackState;
|
|
|
cancelWatchAvailability(id?: number): Promise<void>;
|
|
|
prompt(): Promise<void>;
|
|
|
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
|
|
|
addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RemotePlayback: {
|
|
|
prototype: RemotePlayback;
|
|
|
new(): RemotePlayback;
|
|
|
};
|
|
|
|
|
|
/** This Fetch API interface represents a resource request. */
|
|
|
interface Request extends Body {
|
|
|
/**
|
|
|
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
|
|
|
*/
|
|
|
readonly cache: RequestCache;
|
|
|
/**
|
|
|
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
|
|
|
*/
|
|
|
readonly credentials: RequestCredentials;
|
|
|
/**
|
|
|
* Returns the kind of resource requested by request, e.g., "document" or "script".
|
|
|
*/
|
|
|
readonly destination: RequestDestination;
|
|
|
/**
|
|
|
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
|
|
|
*/
|
|
|
readonly headers: Headers;
|
|
|
/**
|
|
|
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
|
|
|
*/
|
|
|
readonly integrity: string;
|
|
|
/**
|
|
|
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
|
|
*/
|
|
|
readonly keepalive: boolean;
|
|
|
/**
|
|
|
* Returns request's HTTP method, which is "GET" by default.
|
|
|
*/
|
|
|
readonly method: string;
|
|
|
/**
|
|
|
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
|
|
|
*/
|
|
|
readonly mode: RequestMode;
|
|
|
/**
|
|
|
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
|
|
|
*/
|
|
|
readonly redirect: RequestRedirect;
|
|
|
/**
|
|
|
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
|
|
|
*/
|
|
|
readonly referrer: string;
|
|
|
/**
|
|
|
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
|
|
|
*/
|
|
|
readonly referrerPolicy: ReferrerPolicy;
|
|
|
/**
|
|
|
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
|
|
|
*/
|
|
|
readonly signal: AbortSignal;
|
|
|
/**
|
|
|
* Returns the URL of request as a string.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
clone(): Request;
|
|
|
}
|
|
|
|
|
|
declare var Request: {
|
|
|
prototype: Request;
|
|
|
new(input: RequestInfo, init?: RequestInit): Request;
|
|
|
};
|
|
|
|
|
|
interface ResizeObserver {
|
|
|
disconnect(): void;
|
|
|
observe(target: Element, options?: ResizeObserverOptions): void;
|
|
|
unobserve(target: Element): void;
|
|
|
}
|
|
|
|
|
|
declare var ResizeObserver: {
|
|
|
prototype: ResizeObserver;
|
|
|
new(callback: ResizeObserverCallback): ResizeObserver;
|
|
|
};
|
|
|
|
|
|
interface ResizeObserverEntry {
|
|
|
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
|
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
|
readonly contentRect: DOMRectReadOnly;
|
|
|
readonly target: Element;
|
|
|
}
|
|
|
|
|
|
declare var ResizeObserverEntry: {
|
|
|
prototype: ResizeObserverEntry;
|
|
|
new(): ResizeObserverEntry;
|
|
|
};
|
|
|
|
|
|
interface ResizeObserverSize {
|
|
|
readonly blockSize: number;
|
|
|
readonly inlineSize: number;
|
|
|
}
|
|
|
|
|
|
declare var ResizeObserverSize: {
|
|
|
prototype: ResizeObserverSize;
|
|
|
new(): ResizeObserverSize;
|
|
|
};
|
|
|
|
|
|
/** This Fetch API interface represents the response to a request. */
|
|
|
interface Response extends Body {
|
|
|
readonly headers: Headers;
|
|
|
readonly ok: boolean;
|
|
|
readonly redirected: boolean;
|
|
|
readonly status: number;
|
|
|
readonly statusText: string;
|
|
|
readonly type: ResponseType;
|
|
|
readonly url: string;
|
|
|
clone(): Response;
|
|
|
}
|
|
|
|
|
|
declare var Response: {
|
|
|
prototype: Response;
|
|
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
|
|
error(): Response;
|
|
|
redirect(url: string | URL, status?: number): Response;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
|
|
|
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
rel: string;
|
|
|
readonly relList: DOMTokenList;
|
|
|
readonly target: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAElement: {
|
|
|
prototype: SVGAElement;
|
|
|
new(): SVGAElement;
|
|
|
};
|
|
|
|
|
|
/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
|
|
|
interface SVGAngle {
|
|
|
readonly unitType: number;
|
|
|
value: number;
|
|
|
valueAsString: string;
|
|
|
valueInSpecifiedUnits: number;
|
|
|
convertToSpecifiedUnits(unitType: number): void;
|
|
|
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
|
|
|
readonly SVG_ANGLETYPE_DEG: number;
|
|
|
readonly SVG_ANGLETYPE_GRAD: number;
|
|
|
readonly SVG_ANGLETYPE_RAD: number;
|
|
|
readonly SVG_ANGLETYPE_UNKNOWN: number;
|
|
|
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAngle: {
|
|
|
prototype: SVGAngle;
|
|
|
new(): SVGAngle;
|
|
|
readonly SVG_ANGLETYPE_DEG: number;
|
|
|
readonly SVG_ANGLETYPE_GRAD: number;
|
|
|
readonly SVG_ANGLETYPE_RAD: number;
|
|
|
readonly SVG_ANGLETYPE_UNKNOWN: number;
|
|
|
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimateElement extends SVGAnimationElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimateElement: {
|
|
|
prototype: SVGAnimateElement;
|
|
|
new(): SVGAnimateElement;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimateMotionElement extends SVGAnimationElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimateMotionElement: {
|
|
|
prototype: SVGAnimateMotionElement;
|
|
|
new(): SVGAnimateMotionElement;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimateTransformElement extends SVGAnimationElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimateTransformElement: {
|
|
|
prototype: SVGAnimateTransformElement;
|
|
|
new(): SVGAnimateTransformElement;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <angle> which can be animated. */
|
|
|
interface SVGAnimatedAngle {
|
|
|
readonly animVal: SVGAngle;
|
|
|
readonly baseVal: SVGAngle;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedAngle: {
|
|
|
prototype: SVGAnimatedAngle;
|
|
|
new(): SVGAnimatedAngle;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of type boolean which can be animated. */
|
|
|
interface SVGAnimatedBoolean {
|
|
|
readonly animVal: boolean;
|
|
|
baseVal: boolean;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedBoolean: {
|
|
|
prototype: SVGAnimatedBoolean;
|
|
|
new(): SVGAnimatedBoolean;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
|
|
|
interface SVGAnimatedEnumeration {
|
|
|
readonly animVal: number;
|
|
|
baseVal: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedEnumeration: {
|
|
|
prototype: SVGAnimatedEnumeration;
|
|
|
new(): SVGAnimatedEnumeration;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <integer> which can be animated. */
|
|
|
interface SVGAnimatedInteger {
|
|
|
readonly animVal: number;
|
|
|
baseVal: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedInteger: {
|
|
|
prototype: SVGAnimatedInteger;
|
|
|
new(): SVGAnimatedInteger;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <length> which can be animated. */
|
|
|
interface SVGAnimatedLength {
|
|
|
readonly animVal: SVGLength;
|
|
|
readonly baseVal: SVGLength;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedLength: {
|
|
|
prototype: SVGAnimatedLength;
|
|
|
new(): SVGAnimatedLength;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of type SVGLengthList which can be animated. */
|
|
|
interface SVGAnimatedLengthList {
|
|
|
readonly animVal: SVGLengthList;
|
|
|
readonly baseVal: SVGLengthList;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedLengthList: {
|
|
|
prototype: SVGAnimatedLengthList;
|
|
|
new(): SVGAnimatedLengthList;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <Number> which can be animated. */
|
|
|
interface SVGAnimatedNumber {
|
|
|
readonly animVal: number;
|
|
|
baseVal: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedNumber: {
|
|
|
prototype: SVGAnimatedNumber;
|
|
|
new(): SVGAnimatedNumber;
|
|
|
};
|
|
|
|
|
|
/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
|
|
|
interface SVGAnimatedNumberList {
|
|
|
readonly animVal: SVGNumberList;
|
|
|
readonly baseVal: SVGNumberList;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedNumberList: {
|
|
|
prototype: SVGAnimatedNumberList;
|
|
|
new(): SVGAnimatedNumberList;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimatedPoints {
|
|
|
readonly animatedPoints: SVGPointList;
|
|
|
readonly points: SVGPointList;
|
|
|
}
|
|
|
|
|
|
/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
|
|
|
interface SVGAnimatedPreserveAspectRatio {
|
|
|
readonly animVal: SVGPreserveAspectRatio;
|
|
|
readonly baseVal: SVGPreserveAspectRatio;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedPreserveAspectRatio: {
|
|
|
prototype: SVGAnimatedPreserveAspectRatio;
|
|
|
new(): SVGAnimatedPreserveAspectRatio;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic SVGRect which can be animated. */
|
|
|
interface SVGAnimatedRect {
|
|
|
readonly animVal: DOMRectReadOnly;
|
|
|
readonly baseVal: DOMRect;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedRect: {
|
|
|
prototype: SVGAnimatedRect;
|
|
|
new(): SVGAnimatedRect;
|
|
|
};
|
|
|
|
|
|
/** The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this. */
|
|
|
interface SVGAnimatedString {
|
|
|
readonly animVal: string;
|
|
|
baseVal: string;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedString: {
|
|
|
prototype: SVGAnimatedString;
|
|
|
new(): SVGAnimatedString;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes which take a list of numbers and which can be animated. */
|
|
|
interface SVGAnimatedTransformList {
|
|
|
readonly animVal: SVGTransformList;
|
|
|
readonly baseVal: SVGTransformList;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedTransformList: {
|
|
|
prototype: SVGAnimatedTransformList;
|
|
|
new(): SVGAnimatedTransformList;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimationElement extends SVGElement, SVGTests {
|
|
|
readonly targetElement: SVGElement | null;
|
|
|
beginElement(): void;
|
|
|
beginElementAt(offset: number): void;
|
|
|
endElement(): void;
|
|
|
endElementAt(offset: number): void;
|
|
|
getCurrentTime(): number;
|
|
|
getSimpleDuration(): number;
|
|
|
getStartTime(): number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimationElement: {
|
|
|
prototype: SVGAnimationElement;
|
|
|
new(): SVGAnimationElement;
|
|
|
};
|
|
|
|
|
|
/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */
|
|
|
interface SVGCircleElement extends SVGGeometryElement {
|
|
|
readonly cx: SVGAnimatedLength;
|
|
|
readonly cy: SVGAnimatedLength;
|
|
|
readonly r: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGCircleElement: {
|
|
|
prototype: SVGCircleElement;
|
|
|
new(): SVGCircleElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
|
|
|
interface SVGClipPathElement extends SVGElement {
|
|
|
readonly clipPathUnits: SVGAnimatedEnumeration;
|
|
|
readonly transform: SVGAnimatedTransformList;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGClipPathElement: {
|
|
|
prototype: SVGClipPathElement;
|
|
|
new(): SVGClipPathElement;
|
|
|
};
|
|
|
|
|
|
/** A base interface used by the component transfer function interfaces. */
|
|
|
interface SVGComponentTransferFunctionElement extends SVGElement {
|
|
|
readonly amplitude: SVGAnimatedNumber;
|
|
|
readonly exponent: SVGAnimatedNumber;
|
|
|
readonly intercept: SVGAnimatedNumber;
|
|
|
readonly offset: SVGAnimatedNumber;
|
|
|
readonly slope: SVGAnimatedNumber;
|
|
|
readonly tableValues: SVGAnimatedNumberList;
|
|
|
readonly type: SVGAnimatedEnumeration;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
|
|
|
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_DISCRETE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <defs> element. */
|
|
|
interface SVGDefsElement extends SVGGraphicsElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGDefsElement: {
|
|
|
prototype: SVGDefsElement;
|
|
|
new(): SVGDefsElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <desc> element. */
|
|
|
interface SVGDescElement extends SVGElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGDescElement: {
|
|
|
prototype: SVGDescElement;
|
|
|
new(): SVGDescElement;
|
|
|
};
|
|
|
|
|
|
interface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
|
|
|
interface SVGElement extends Element, DocumentAndElementEventHandlers, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, GlobalEventHandlers, HTMLOrSVGElement {
|
|
|
/** @deprecated */
|
|
|
readonly className: any;
|
|
|
readonly ownerSVGElement: SVGSVGElement | null;
|
|
|
readonly viewportElement: SVGElement | null;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGElement: {
|
|
|
prototype: SVGElement;
|
|
|
new(): SVGElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <ellipse> elements. */
|
|
|
interface SVGEllipseElement extends SVGGeometryElement {
|
|
|
readonly cx: SVGAnimatedLength;
|
|
|
readonly cy: SVGAnimatedLength;
|
|
|
readonly rx: SVGAnimatedLength;
|
|
|
readonly ry: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGEllipseElement: {
|
|
|
prototype: SVGEllipseElement;
|
|
|
new(): SVGEllipseElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feBlend> element. */
|
|
|
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly in2: SVGAnimatedString;
|
|
|
readonly mode: SVGAnimatedEnumeration;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
|
|
|
readonly SVG_FEBLEND_MODE_DARKEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
|
|
|
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
|
|
|
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_HUE: number;
|
|
|
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
|
|
|
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
|
|
|
readonly SVG_FEBLEND_MODE_NORMAL: number;
|
|
|
readonly SVG_FEBLEND_MODE_OVERLAY: number;
|
|
|
readonly SVG_FEBLEND_MODE_SATURATION: number;
|
|
|
readonly SVG_FEBLEND_MODE_SCREEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
|
|
|
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_COLOR: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
|
|
|
readonly SVG_FEBLEND_MODE_DARKEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
|
|
|
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
|
|
|
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_HUE: number;
|
|
|
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
|
|
|
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
|
|
|
readonly SVG_FEBLEND_MODE_NORMAL: number;
|
|
|
readonly SVG_FEBLEND_MODE_OVERLAY: number;
|
|
|
readonly SVG_FEBLEND_MODE_SATURATION: number;
|
|
|
readonly SVG_FEBLEND_MODE_SCREEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feColorMatrix> element. */
|
|
|
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly type: SVGAnimatedEnumeration;
|
|
|
readonly values: SVGAnimatedNumberList;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
|
|
|
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_HUEROTATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feComponentTransfer> element. */
|
|
|
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEComponentTransferElement: {
|
|
|
prototype: SVGFEComponentTransferElement;
|
|
|
new(): SVGFEComponentTransferElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feComposite> element. */
|
|
|
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly in2: SVGAnimatedString;
|
|
|
readonly k1: SVGAnimatedNumber;
|
|
|
readonly k2: SVGAnimatedNumber;
|
|
|
readonly k3: SVGAnimatedNumber;
|
|
|
readonly k4: SVGAnimatedNumber;
|
|
|
readonly operator: SVGAnimatedEnumeration;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
|
|
|
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_ARITHMETIC: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feConvolveMatrix> element. */
|
|
|
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly bias: SVGAnimatedNumber;
|
|
|
readonly divisor: SVGAnimatedNumber;
|
|
|
readonly edgeMode: SVGAnimatedEnumeration;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly kernelMatrix: SVGAnimatedNumberList;
|
|
|
readonly kernelUnitLengthX: SVGAnimatedNumber;
|
|
|
readonly kernelUnitLengthY: SVGAnimatedNumber;
|
|
|
readonly orderX: SVGAnimatedInteger;
|
|
|
readonly orderY: SVGAnimatedInteger;
|
|
|
readonly preserveAlpha: SVGAnimatedBoolean;
|
|
|
readonly targetX: SVGAnimatedInteger;
|
|
|
readonly targetY: SVGAnimatedInteger;
|
|
|
readonly SVG_EDGEMODE_DUPLICATE: number;
|
|
|
readonly SVG_EDGEMODE_NONE: number;
|
|
|
readonly SVG_EDGEMODE_UNKNOWN: number;
|
|
|
readonly SVG_EDGEMODE_WRAP: number;
|
|
|
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_DUPLICATE: number;
|
|
|
readonly SVG_EDGEMODE_NONE: number;
|
|
|
readonly SVG_EDGEMODE_UNKNOWN: number;
|
|
|
readonly SVG_EDGEMODE_WRAP: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feDiffuseLighting> element. */
|
|
|
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly diffuseConstant: SVGAnimatedNumber;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly kernelUnitLengthX: SVGAnimatedNumber;
|
|
|
readonly kernelUnitLengthY: SVGAnimatedNumber;
|
|
|
readonly surfaceScale: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEDiffuseLightingElement: {
|
|
|
prototype: SVGFEDiffuseLightingElement;
|
|
|
new(): SVGFEDiffuseLightingElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feDisplacementMap> element. */
|
|
|
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly in2: SVGAnimatedString;
|
|
|
readonly scale: SVGAnimatedNumber;
|
|
|
readonly xChannelSelector: SVGAnimatedEnumeration;
|
|
|
readonly yChannelSelector: SVGAnimatedEnumeration;
|
|
|
readonly SVG_CHANNEL_A: number;
|
|
|
readonly SVG_CHANNEL_B: number;
|
|
|
readonly SVG_CHANNEL_G: number;
|
|
|
readonly SVG_CHANNEL_R: number;
|
|
|
readonly SVG_CHANNEL_UNKNOWN: number;
|
|
|
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_A: number;
|
|
|
readonly SVG_CHANNEL_B: number;
|
|
|
readonly SVG_CHANNEL_G: number;
|
|
|
readonly SVG_CHANNEL_R: number;
|
|
|
readonly SVG_CHANNEL_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feDistantLight> element. */
|
|
|
interface SVGFEDistantLightElement extends SVGElement {
|
|
|
readonly azimuth: SVGAnimatedNumber;
|
|
|
readonly elevation: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEDistantLightElement: {
|
|
|
prototype: SVGFEDistantLightElement;
|
|
|
new(): SVGFEDistantLightElement;
|
|
|
};
|
|
|
|
|
|
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly dx: SVGAnimatedNumber;
|
|
|
readonly dy: SVGAnimatedNumber;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly stdDeviationX: SVGAnimatedNumber;
|
|
|
readonly stdDeviationY: SVGAnimatedNumber;
|
|
|
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEDropShadowElement: {
|
|
|
prototype: SVGFEDropShadowElement;
|
|
|
new(): SVGFEDropShadowElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFlood> element. */
|
|
|
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFloodElement: {
|
|
|
prototype: SVGFEFloodElement;
|
|
|
new(): SVGFEFloodElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncA> element. */
|
|
|
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncAElement: {
|
|
|
prototype: SVGFEFuncAElement;
|
|
|
new(): SVGFEFuncAElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncB> element. */
|
|
|
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncBElement: {
|
|
|
prototype: SVGFEFuncBElement;
|
|
|
new(): SVGFEFuncBElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncG> element. */
|
|
|
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncGElement: {
|
|
|
prototype: SVGFEFuncGElement;
|
|
|
new(): SVGFEFuncGElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncR> element. */
|
|
|
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncRElement: {
|
|
|
prototype: SVGFEFuncRElement;
|
|
|
new(): SVGFEFuncRElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feGaussianBlur> element. */
|
|
|
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly stdDeviationX: SVGAnimatedNumber;
|
|
|
readonly stdDeviationY: SVGAnimatedNumber;
|
|
|
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEGaussianBlurElement: {
|
|
|
prototype: SVGFEGaussianBlurElement;
|
|
|
new(): SVGFEGaussianBlurElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feImage> element. */
|
|
|
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
|
|
|
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEImageElement: {
|
|
|
prototype: SVGFEImageElement;
|
|
|
new(): SVGFEImageElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feMerge> element. */
|
|
|
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEMergeElement: {
|
|
|
prototype: SVGFEMergeElement;
|
|
|
new(): SVGFEMergeElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feMergeNode> element. */
|
|
|
interface SVGFEMergeNodeElement extends SVGElement {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEMergeNodeElement: {
|
|
|
prototype: SVGFEMergeNodeElement;
|
|
|
new(): SVGFEMergeNodeElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feMorphology> element. */
|
|
|
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly operator: SVGAnimatedEnumeration;
|
|
|
readonly radiusX: SVGAnimatedNumber;
|
|
|
readonly radiusY: SVGAnimatedNumber;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
|
|
|
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_DILATE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feOffset> element. */
|
|
|
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly dx: SVGAnimatedNumber;
|
|
|
readonly dy: SVGAnimatedNumber;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEOffsetElement: {
|
|
|
prototype: SVGFEOffsetElement;
|
|
|
new(): SVGFEOffsetElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <fePointLight> element. */
|
|
|
interface SVGFEPointLightElement extends SVGElement {
|
|
|
readonly x: SVGAnimatedNumber;
|
|
|
readonly y: SVGAnimatedNumber;
|
|
|
readonly z: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEPointLightElement: {
|
|
|
prototype: SVGFEPointLightElement;
|
|
|
new(): SVGFEPointLightElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feSpecularLighting> element. */
|
|
|
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly kernelUnitLengthX: SVGAnimatedNumber;
|
|
|
readonly kernelUnitLengthY: SVGAnimatedNumber;
|
|
|
readonly specularConstant: SVGAnimatedNumber;
|
|
|
readonly specularExponent: SVGAnimatedNumber;
|
|
|
readonly surfaceScale: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFESpecularLightingElement: {
|
|
|
prototype: SVGFESpecularLightingElement;
|
|
|
new(): SVGFESpecularLightingElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feSpotLight> element. */
|
|
|
interface SVGFESpotLightElement extends SVGElement {
|
|
|
readonly limitingConeAngle: SVGAnimatedNumber;
|
|
|
readonly pointsAtX: SVGAnimatedNumber;
|
|
|
readonly pointsAtY: SVGAnimatedNumber;
|
|
|
readonly pointsAtZ: SVGAnimatedNumber;
|
|
|
readonly specularExponent: SVGAnimatedNumber;
|
|
|
readonly x: SVGAnimatedNumber;
|
|
|
readonly y: SVGAnimatedNumber;
|
|
|
readonly z: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFESpotLightElement: {
|
|
|
prototype: SVGFESpotLightElement;
|
|
|
new(): SVGFESpotLightElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feTile> element. */
|
|
|
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFETileElement: {
|
|
|
prototype: SVGFETileElement;
|
|
|
new(): SVGFETileElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feTurbulence> element. */
|
|
|
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly baseFrequencyX: SVGAnimatedNumber;
|
|
|
readonly baseFrequencyY: SVGAnimatedNumber;
|
|
|
readonly numOctaves: SVGAnimatedInteger;
|
|
|
readonly seed: SVGAnimatedNumber;
|
|
|
readonly stitchTiles: SVGAnimatedEnumeration;
|
|
|
readonly type: SVGAnimatedEnumeration;
|
|
|
readonly SVG_STITCHTYPE_NOSTITCH: number;
|
|
|
readonly SVG_STITCHTYPE_STITCH: number;
|
|
|
readonly SVG_STITCHTYPE_UNKNOWN: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
|
|
|
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_STITCHTYPE_NOSTITCH: number;
|
|
|
readonly SVG_STITCHTYPE_STITCH: number;
|
|
|
readonly SVG_STITCHTYPE_UNKNOWN: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
|
|
|
interface SVGFilterElement extends SVGElement, SVGURIReference {
|
|
|
readonly filterUnits: SVGAnimatedEnumeration;
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly primitiveUnits: SVGAnimatedEnumeration;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFilterElement: {
|
|
|
prototype: SVGFilterElement;
|
|
|
new(): SVGFilterElement;
|
|
|
};
|
|
|
|
|
|
interface SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly result: SVGAnimatedString;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
}
|
|
|
|
|
|
interface SVGFitToViewBox {
|
|
|
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
|
|
|
readonly viewBox: SVGAnimatedRect;
|
|
|
}
|
|
|
|
|
|
/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
|
|
|
interface SVGForeignObjectElement extends SVGGraphicsElement {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGForeignObjectElement: {
|
|
|
prototype: SVGForeignObjectElement;
|
|
|
new(): SVGForeignObjectElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <g> element. */
|
|
|
interface SVGGElement extends SVGGraphicsElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGGElement: {
|
|
|
prototype: SVGGElement;
|
|
|
new(): SVGGElement;
|
|
|
};
|
|
|
|
|
|
interface SVGGeometryElement extends SVGGraphicsElement {
|
|
|
readonly pathLength: SVGAnimatedNumber;
|
|
|
getPointAtLength(distance: number): DOMPoint;
|
|
|
getTotalLength(): number;
|
|
|
isPointInFill(point?: DOMPointInit): boolean;
|
|
|
isPointInStroke(point?: DOMPointInit): boolean;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGGeometryElement: {
|
|
|
prototype: SVGGeometryElement;
|
|
|
new(): SVGGeometryElement;
|
|
|
};
|
|
|
|
|
|
/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
|
|
|
interface SVGGradientElement extends SVGElement, SVGURIReference {
|
|
|
readonly gradientTransform: SVGAnimatedTransformList;
|
|
|
readonly gradientUnits: SVGAnimatedEnumeration;
|
|
|
readonly spreadMethod: SVGAnimatedEnumeration;
|
|
|
readonly SVG_SPREADMETHOD_PAD: number;
|
|
|
readonly SVG_SPREADMETHOD_REFLECT: number;
|
|
|
readonly SVG_SPREADMETHOD_REPEAT: number;
|
|
|
readonly SVG_SPREADMETHOD_UNKNOWN: number;
|
|
|
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_PAD: number;
|
|
|
readonly SVG_SPREADMETHOD_REFLECT: number;
|
|
|
readonly SVG_SPREADMETHOD_REPEAT: number;
|
|
|
readonly SVG_SPREADMETHOD_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** SVG elements whose primary purpose is to directly render graphics into a group. */
|
|
|
interface SVGGraphicsElement extends SVGElement, SVGTests {
|
|
|
readonly transform: SVGAnimatedTransformList;
|
|
|
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
|
|
|
getCTM(): DOMMatrix | null;
|
|
|
getScreenCTM(): DOMMatrix | null;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGGraphicsElement: {
|
|
|
prototype: SVGGraphicsElement;
|
|
|
new(): SVGGraphicsElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <image> element. */
|
|
|
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGImageElement: {
|
|
|
prototype: SVGImageElement;
|
|
|
new(): SVGImageElement;
|
|
|
};
|
|
|
|
|
|
/** Correspond to the <length> basic data type. */
|
|
|
interface SVGLength {
|
|
|
readonly unitType: number;
|
|
|
value: number;
|
|
|
valueAsString: string;
|
|
|
valueInSpecifiedUnits: number;
|
|
|
convertToSpecifiedUnits(unitType: number): void;
|
|
|
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
|
|
|
readonly SVG_LENGTHTYPE_CM: number;
|
|
|
readonly SVG_LENGTHTYPE_EMS: number;
|
|
|
readonly SVG_LENGTHTYPE_EXS: number;
|
|
|
readonly SVG_LENGTHTYPE_IN: number;
|
|
|
readonly SVG_LENGTHTYPE_MM: number;
|
|
|
readonly SVG_LENGTHTYPE_NUMBER: number;
|
|
|
readonly SVG_LENGTHTYPE_PC: number;
|
|
|
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
|
|
|
readonly SVG_LENGTHTYPE_PT: number;
|
|
|
readonly SVG_LENGTHTYPE_PX: number;
|
|
|
readonly SVG_LENGTHTYPE_UNKNOWN: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGLength: {
|
|
|
prototype: SVGLength;
|
|
|
new(): SVGLength;
|
|
|
readonly SVG_LENGTHTYPE_CM: number;
|
|
|
readonly SVG_LENGTHTYPE_EMS: number;
|
|
|
readonly SVG_LENGTHTYPE_EXS: number;
|
|
|
readonly SVG_LENGTHTYPE_IN: number;
|
|
|
readonly SVG_LENGTHTYPE_MM: number;
|
|
|
readonly SVG_LENGTHTYPE_NUMBER: number;
|
|
|
readonly SVG_LENGTHTYPE_PC: number;
|
|
|
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
|
|
|
readonly SVG_LENGTHTYPE_PT: number;
|
|
|
readonly SVG_LENGTHTYPE_PX: number;
|
|
|
readonly SVG_LENGTHTYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** The SVGLengthList defines a list of SVGLength objects. */
|
|
|
interface SVGLengthList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: SVGLength): SVGLength;
|
|
|
clear(): void;
|
|
|
getItem(index: number): SVGLength;
|
|
|
initialize(newItem: SVGLength): SVGLength;
|
|
|
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
|
|
|
removeItem(index: number): SVGLength;
|
|
|
replaceItem(newItem: SVGLength, index: number): SVGLength;
|
|
|
[index: number]: SVGLength;
|
|
|
}
|
|
|
|
|
|
declare var SVGLengthList: {
|
|
|
prototype: SVGLengthList;
|
|
|
new(): SVGLengthList;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
|
|
|
interface SVGLineElement extends SVGGeometryElement {
|
|
|
readonly x1: SVGAnimatedLength;
|
|
|
readonly x2: SVGAnimatedLength;
|
|
|
readonly y1: SVGAnimatedLength;
|
|
|
readonly y2: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGLineElement: {
|
|
|
prototype: SVGLineElement;
|
|
|
new(): SVGLineElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <linearGradient> element. */
|
|
|
interface SVGLinearGradientElement extends SVGGradientElement {
|
|
|
readonly x1: SVGAnimatedLength;
|
|
|
readonly x2: SVGAnimatedLength;
|
|
|
readonly y1: SVGAnimatedLength;
|
|
|
readonly y2: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGLinearGradientElement: {
|
|
|
prototype: SVGLinearGradientElement;
|
|
|
new(): SVGLinearGradientElement;
|
|
|
};
|
|
|
|
|
|
interface SVGMPathElement extends SVGElement, SVGURIReference {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGMPathElement: {
|
|
|
prototype: SVGMPathElement;
|
|
|
new(): SVGMPathElement;
|
|
|
};
|
|
|
|
|
|
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
|
|
|
readonly markerHeight: SVGAnimatedLength;
|
|
|
readonly markerUnits: SVGAnimatedEnumeration;
|
|
|
readonly markerWidth: SVGAnimatedLength;
|
|
|
readonly orientAngle: SVGAnimatedAngle;
|
|
|
readonly orientType: SVGAnimatedEnumeration;
|
|
|
readonly refX: SVGAnimatedLength;
|
|
|
readonly refY: SVGAnimatedLength;
|
|
|
setOrientToAngle(angle: SVGAngle): void;
|
|
|
setOrientToAuto(): void;
|
|
|
readonly SVG_MARKERUNITS_STROKEWIDTH: number;
|
|
|
readonly SVG_MARKERUNITS_UNKNOWN: number;
|
|
|
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
|
|
|
readonly SVG_MARKER_ORIENT_ANGLE: number;
|
|
|
readonly SVG_MARKER_ORIENT_AUTO: number;
|
|
|
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
|
|
|
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_STROKEWIDTH: number;
|
|
|
readonly SVG_MARKERUNITS_UNKNOWN: number;
|
|
|
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
|
|
|
readonly SVG_MARKER_ORIENT_ANGLE: number;
|
|
|
readonly SVG_MARKER_ORIENT_AUTO: number;
|
|
|
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
|
|
|
interface SVGMaskElement extends SVGElement {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly maskContentUnits: SVGAnimatedEnumeration;
|
|
|
readonly maskUnits: SVGAnimatedEnumeration;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGMaskElement: {
|
|
|
prototype: SVGMaskElement;
|
|
|
new(): SVGMaskElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <metadata> element. */
|
|
|
interface SVGMetadataElement extends SVGElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGMetadataElement: {
|
|
|
prototype: SVGMetadataElement;
|
|
|
new(): SVGMetadataElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <number> basic data type. */
|
|
|
interface SVGNumber {
|
|
|
value: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGNumber: {
|
|
|
prototype: SVGNumber;
|
|
|
new(): SVGNumber;
|
|
|
};
|
|
|
|
|
|
/** The SVGNumberList defines a list of SVGNumber objects. */
|
|
|
interface SVGNumberList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: SVGNumber): SVGNumber;
|
|
|
clear(): void;
|
|
|
getItem(index: number): SVGNumber;
|
|
|
initialize(newItem: SVGNumber): SVGNumber;
|
|
|
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
|
|
|
removeItem(index: number): SVGNumber;
|
|
|
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
|
|
|
[index: number]: SVGNumber;
|
|
|
}
|
|
|
|
|
|
declare var SVGNumberList: {
|
|
|
prototype: SVGNumberList;
|
|
|
new(): SVGNumberList;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <path> element. */
|
|
|
interface SVGPathElement extends SVGGeometryElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathElement: {
|
|
|
prototype: SVGPathElement;
|
|
|
new(): SVGPathElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <pattern> element. */
|
|
|
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly patternContentUnits: SVGAnimatedEnumeration;
|
|
|
readonly patternTransform: SVGAnimatedTransformList;
|
|
|
readonly patternUnits: SVGAnimatedEnumeration;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPatternElement: {
|
|
|
prototype: SVGPatternElement;
|
|
|
new(): SVGPatternElement;
|
|
|
};
|
|
|
|
|
|
interface SVGPointList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: DOMPoint): DOMPoint;
|
|
|
clear(): void;
|
|
|
getItem(index: number): DOMPoint;
|
|
|
initialize(newItem: DOMPoint): DOMPoint;
|
|
|
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
|
|
|
removeItem(index: number): DOMPoint;
|
|
|
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
|
|
|
[index: number]: DOMPoint;
|
|
|
}
|
|
|
|
|
|
declare var SVGPointList: {
|
|
|
prototype: SVGPointList;
|
|
|
new(): SVGPointList;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
|
|
|
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPolygonElement: {
|
|
|
prototype: SVGPolygonElement;
|
|
|
new(): SVGPolygonElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
|
|
|
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPolylineElement: {
|
|
|
prototype: SVGPolylineElement;
|
|
|
new(): SVGPolylineElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
|
|
|
interface SVGPreserveAspectRatio {
|
|
|
align: number;
|
|
|
meetOrSlice: number;
|
|
|
readonly SVG_MEETORSLICE_MEET: number;
|
|
|
readonly SVG_MEETORSLICE_SLICE: number;
|
|
|
readonly SVG_MEETORSLICE_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPreserveAspectRatio: {
|
|
|
prototype: SVGPreserveAspectRatio;
|
|
|
new(): SVGPreserveAspectRatio;
|
|
|
readonly SVG_MEETORSLICE_MEET: number;
|
|
|
readonly SVG_MEETORSLICE_SLICE: number;
|
|
|
readonly SVG_MEETORSLICE_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <RadialGradient> element. */
|
|
|
interface SVGRadialGradientElement extends SVGGradientElement {
|
|
|
readonly cx: SVGAnimatedLength;
|
|
|
readonly cy: SVGAnimatedLength;
|
|
|
readonly fr: SVGAnimatedLength;
|
|
|
readonly fx: SVGAnimatedLength;
|
|
|
readonly fy: SVGAnimatedLength;
|
|
|
readonly r: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGRadialGradientElement: {
|
|
|
prototype: SVGRadialGradientElement;
|
|
|
new(): SVGRadialGradientElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
|
|
|
interface SVGRectElement extends SVGGeometryElement {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly rx: SVGAnimatedLength;
|
|
|
readonly ry: SVGAnimatedLength;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGRectElement: {
|
|
|
prototype: SVGRectElement;
|
|
|
new(): SVGRectElement;
|
|
|
};
|
|
|
|
|
|
interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
|
|
|
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
|
|
|
currentScale: number;
|
|
|
readonly currentTranslate: DOMPointReadOnly;
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
animationsPaused(): boolean;
|
|
|
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
|
|
|
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
|
|
|
createSVGAngle(): SVGAngle;
|
|
|
createSVGLength(): SVGLength;
|
|
|
createSVGMatrix(): DOMMatrix;
|
|
|
createSVGNumber(): SVGNumber;
|
|
|
createSVGPoint(): DOMPoint;
|
|
|
createSVGRect(): DOMRect;
|
|
|
createSVGTransform(): SVGTransform;
|
|
|
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
|
|
|
deselectAll(): void;
|
|
|
/** @deprecated */
|
|
|
forceRedraw(): void;
|
|
|
getCurrentTime(): number;
|
|
|
getElementById(elementId: string): Element;
|
|
|
getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
|
getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
|
pauseAnimations(): void;
|
|
|
setCurrentTime(seconds: number): void;
|
|
|
/** @deprecated */
|
|
|
suspendRedraw(maxWaitMilliseconds: number): number;
|
|
|
unpauseAnimations(): void;
|
|
|
/** @deprecated */
|
|
|
unsuspendRedraw(suspendHandleID: number): void;
|
|
|
/** @deprecated */
|
|
|
unsuspendRedrawAll(): void;
|
|
|
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGSVGElement: {
|
|
|
prototype: SVGSVGElement;
|
|
|
new(): SVGSVGElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the SVG <script> element. */
|
|
|
interface SVGScriptElement extends SVGElement, SVGURIReference {
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGScriptElement: {
|
|
|
prototype: SVGScriptElement;
|
|
|
new(): SVGScriptElement;
|
|
|
};
|
|
|
|
|
|
interface SVGSetElement extends SVGAnimationElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGSetElement: {
|
|
|
prototype: SVGSetElement;
|
|
|
new(): SVGSetElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <stop> element. */
|
|
|
interface SVGStopElement extends SVGElement {
|
|
|
readonly offset: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGStopElement: {
|
|
|
prototype: SVGStopElement;
|
|
|
new(): SVGStopElement;
|
|
|
};
|
|
|
|
|
|
/** The SVGStringList defines a list of DOMString objects. */
|
|
|
interface SVGStringList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: string): string;
|
|
|
clear(): void;
|
|
|
getItem(index: number): string;
|
|
|
initialize(newItem: string): string;
|
|
|
insertItemBefore(newItem: string, index: number): string;
|
|
|
removeItem(index: number): string;
|
|
|
replaceItem(newItem: string, index: number): string;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var SVGStringList: {
|
|
|
prototype: SVGStringList;
|
|
|
new(): SVGStringList;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the SVG <style> element. */
|
|
|
interface SVGStyleElement extends SVGElement, LinkStyle {
|
|
|
disabled: boolean;
|
|
|
media: string;
|
|
|
title: string;
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGStyleElement: {
|
|
|
prototype: SVGStyleElement;
|
|
|
new(): SVGStyleElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <switch> element. */
|
|
|
interface SVGSwitchElement extends SVGGraphicsElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGSwitchElement: {
|
|
|
prototype: SVGSwitchElement;
|
|
|
new(): SVGSwitchElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <symbol> element. */
|
|
|
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGSymbolElement: {
|
|
|
prototype: SVGSymbolElement;
|
|
|
new(): SVGSymbolElement;
|
|
|
};
|
|
|
|
|
|
/** A <tspan> element. */
|
|
|
interface SVGTSpanElement extends SVGTextPositioningElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTSpanElement: {
|
|
|
prototype: SVGTSpanElement;
|
|
|
new(): SVGTSpanElement;
|
|
|
};
|
|
|
|
|
|
interface SVGTests {
|
|
|
readonly requiredExtensions: SVGStringList;
|
|
|
readonly systemLanguage: SVGStringList;
|
|
|
}
|
|
|
|
|
|
/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */
|
|
|
interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
readonly lengthAdjust: SVGAnimatedEnumeration;
|
|
|
readonly textLength: SVGAnimatedLength;
|
|
|
getCharNumAtPosition(point?: DOMPointInit): number;
|
|
|
getComputedTextLength(): number;
|
|
|
getEndPositionOfChar(charnum: number): DOMPoint;
|
|
|
getExtentOfChar(charnum: number): DOMRect;
|
|
|
getNumberOfChars(): number;
|
|
|
getRotationOfChar(charnum: number): number;
|
|
|
getStartPositionOfChar(charnum: number): DOMPoint;
|
|
|
getSubStringLength(charnum: number, nchars: number): number;
|
|
|
/** @deprecated */
|
|
|
selectSubString(charnum: number, nchars: number): void;
|
|
|
readonly LENGTHADJUST_SPACING: number;
|
|
|
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
|
|
|
readonly LENGTHADJUST_UNKNOWN: number;
|
|
|
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_SPACING: number;
|
|
|
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
|
|
|
readonly LENGTHADJUST_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <text> elements. */
|
|
|
interface SVGTextElement extends SVGTextPositioningElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTextElement: {
|
|
|
prototype: SVGTextElement;
|
|
|
new(): SVGTextElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <textPath> element. */
|
|
|
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
|
|
|
readonly method: SVGAnimatedEnumeration;
|
|
|
readonly spacing: SVGAnimatedEnumeration;
|
|
|
readonly startOffset: SVGAnimatedLength;
|
|
|
readonly TEXTPATH_METHODTYPE_ALIGN: number;
|
|
|
readonly TEXTPATH_METHODTYPE_STRETCH: number;
|
|
|
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
|
|
|
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_ALIGN: number;
|
|
|
readonly TEXTPATH_METHODTYPE_STRETCH: number;
|
|
|
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
|
|
|
interface SVGTextPositioningElement extends SVGTextContentElement {
|
|
|
readonly dx: SVGAnimatedLengthList;
|
|
|
readonly dy: SVGAnimatedLengthList;
|
|
|
readonly rotate: SVGAnimatedNumberList;
|
|
|
readonly x: SVGAnimatedLengthList;
|
|
|
readonly y: SVGAnimatedLengthList;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTextPositioningElement: {
|
|
|
prototype: SVGTextPositioningElement;
|
|
|
new(): SVGTextPositioningElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <title> element. */
|
|
|
interface SVGTitleElement extends SVGElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTitleElement: {
|
|
|
prototype: SVGTitleElement;
|
|
|
new(): SVGTitleElement;
|
|
|
};
|
|
|
|
|
|
/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute. */
|
|
|
interface SVGTransform {
|
|
|
readonly angle: number;
|
|
|
readonly matrix: DOMMatrix;
|
|
|
readonly type: number;
|
|
|
setMatrix(matrix?: DOMMatrix2DInit): void;
|
|
|
setRotate(angle: number, cx: number, cy: number): void;
|
|
|
setScale(sx: number, sy: number): void;
|
|
|
setSkewX(angle: number): void;
|
|
|
setSkewY(angle: number): void;
|
|
|
setTranslate(tx: number, ty: number): void;
|
|
|
readonly SVG_TRANSFORM_MATRIX: number;
|
|
|
readonly SVG_TRANSFORM_ROTATE: number;
|
|
|
readonly SVG_TRANSFORM_SCALE: number;
|
|
|
readonly SVG_TRANSFORM_SKEWX: number;
|
|
|
readonly SVG_TRANSFORM_SKEWY: number;
|
|
|
readonly SVG_TRANSFORM_TRANSLATE: number;
|
|
|
readonly SVG_TRANSFORM_UNKNOWN: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGTransform: {
|
|
|
prototype: SVGTransform;
|
|
|
new(): SVGTransform;
|
|
|
readonly SVG_TRANSFORM_MATRIX: number;
|
|
|
readonly SVG_TRANSFORM_ROTATE: number;
|
|
|
readonly SVG_TRANSFORM_SCALE: number;
|
|
|
readonly SVG_TRANSFORM_SKEWX: number;
|
|
|
readonly SVG_TRANSFORM_SKEWY: number;
|
|
|
readonly SVG_TRANSFORM_TRANSLATE: number;
|
|
|
readonly SVG_TRANSFORM_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** The SVGTransformList defines a list of SVGTransform objects. */
|
|
|
interface SVGTransformList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: SVGTransform): SVGTransform;
|
|
|
clear(): void;
|
|
|
consolidate(): SVGTransform | null;
|
|
|
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
|
|
|
getItem(index: number): SVGTransform;
|
|
|
initialize(newItem: SVGTransform): SVGTransform;
|
|
|
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
|
|
|
removeItem(index: number): SVGTransform;
|
|
|
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
|
|
|
[index: number]: SVGTransform;
|
|
|
}
|
|
|
|
|
|
declare var SVGTransformList: {
|
|
|
prototype: SVGTransformList;
|
|
|
new(): SVGTransformList;
|
|
|
};
|
|
|
|
|
|
interface SVGURIReference {
|
|
|
readonly href: SVGAnimatedString;
|
|
|
}
|
|
|
|
|
|
/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
|
|
|
interface SVGUnitTypes {
|
|
|
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
|
|
|
readonly SVG_UNIT_TYPE_UNKNOWN: number;
|
|
|
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGUnitTypes: {
|
|
|
prototype: SVGUnitTypes;
|
|
|
new(): SVGUnitTypes;
|
|
|
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
|
|
|
readonly SVG_UNIT_TYPE_UNKNOWN: number;
|
|
|
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <use> element. */
|
|
|
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGUseElement: {
|
|
|
prototype: SVGUseElement;
|
|
|
new(): SVGUseElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
|
|
|
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGViewElement: {
|
|
|
prototype: SVGViewElement;
|
|
|
new(): SVGViewElement;
|
|
|
};
|
|
|
|
|
|
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
|
|
|
interface Screen {
|
|
|
readonly availHeight: number;
|
|
|
readonly availWidth: number;
|
|
|
readonly colorDepth: number;
|
|
|
readonly height: number;
|
|
|
readonly orientation: ScreenOrientation;
|
|
|
readonly pixelDepth: number;
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var Screen: {
|
|
|
prototype: Screen;
|
|
|
new(): Screen;
|
|
|
};
|
|
|
|
|
|
interface ScreenOrientationEventMap {
|
|
|
"change": Event;
|
|
|
}
|
|
|
|
|
|
interface ScreenOrientation extends EventTarget {
|
|
|
readonly angle: number;
|
|
|
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
|
|
|
readonly type: OrientationType;
|
|
|
lock(orientation: OrientationLockType): Promise<void>;
|
|
|
unlock(): void;
|
|
|
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ScreenOrientation: {
|
|
|
prototype: ScreenOrientation;
|
|
|
new(): ScreenOrientation;
|
|
|
};
|
|
|
|
|
|
interface ScriptProcessorNodeEventMap {
|
|
|
"audioprocess": AudioProcessingEvent;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Allows the generation, processing, or analyzing of audio using JavaScript.
|
|
|
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
|
|
|
*/
|
|
|
interface ScriptProcessorNode extends AudioNode {
|
|
|
/** @deprecated */
|
|
|
readonly bufferSize: number;
|
|
|
/** @deprecated */
|
|
|
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
|
|
|
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
/** @deprecated */
|
|
|
declare var ScriptProcessorNode: {
|
|
|
prototype: ScriptProcessorNode;
|
|
|
new(): ScriptProcessorNode;
|
|
|
};
|
|
|
|
|
|
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
|
|
|
interface SecurityPolicyViolationEvent extends Event {
|
|
|
readonly blockedURI: string;
|
|
|
readonly columnNumber: number;
|
|
|
readonly disposition: SecurityPolicyViolationEventDisposition;
|
|
|
readonly documentURI: string;
|
|
|
readonly effectiveDirective: string;
|
|
|
readonly lineNumber: number;
|
|
|
readonly originalPolicy: string;
|
|
|
readonly referrer: string;
|
|
|
readonly sample: string;
|
|
|
readonly sourceFile: string;
|
|
|
readonly statusCode: number;
|
|
|
readonly violatedDirective: string;
|
|
|
}
|
|
|
|
|
|
declare var SecurityPolicyViolationEvent: {
|
|
|
prototype: SecurityPolicyViolationEvent;
|
|
|
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
|
|
|
};
|
|
|
|
|
|
/** A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection(). */
|
|
|
interface Selection {
|
|
|
readonly anchorNode: Node | null;
|
|
|
readonly anchorOffset: number;
|
|
|
readonly focusNode: Node | null;
|
|
|
readonly focusOffset: number;
|
|
|
readonly isCollapsed: boolean;
|
|
|
readonly rangeCount: number;
|
|
|
readonly type: string;
|
|
|
addRange(range: Range): void;
|
|
|
collapse(node: Node | null, offset?: number): void;
|
|
|
collapseToEnd(): void;
|
|
|
collapseToStart(): void;
|
|
|
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
|
|
|
deleteFromDocument(): void;
|
|
|
empty(): void;
|
|
|
extend(node: Node, offset?: number): void;
|
|
|
getRangeAt(index: number): Range;
|
|
|
removeAllRanges(): void;
|
|
|
removeRange(range: Range): void;
|
|
|
selectAllChildren(node: Node): void;
|
|
|
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
|
|
|
setPosition(node: Node | null, offset?: number): void;
|
|
|
toString(): string;
|
|
|
}
|
|
|
|
|
|
declare var Selection: {
|
|
|
prototype: Selection;
|
|
|
new(): Selection;
|
|
|
toString(): string;
|
|
|
};
|
|
|
|
|
|
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */
|
|
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
|
readonly scriptURL: string;
|
|
|
readonly state: ServiceWorkerState;
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): 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. */
|
|
|
interface ServiceWorkerContainer extends EventTarget {
|
|
|
readonly controller: ServiceWorker | null;
|
|
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
|
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
|
|
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
|
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
|
|
|
startMessages(): void;
|
|
|
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorkerContainer: {
|
|
|
prototype: ServiceWorkerContainer;
|
|
|
new(): ServiceWorkerContainer;
|
|
|
};
|
|
|
|
|
|
interface ServiceWorkerRegistrationEventMap {
|
|
|
"updatefound": Event;
|
|
|
}
|
|
|
|
|
|
/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */
|
|
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
|
readonly active: ServiceWorker | null;
|
|
|
readonly installing: ServiceWorker | null;
|
|
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
|
readonly pushManager: PushManager;
|
|
|
readonly scope: string;
|
|
|
readonly updateViaCache: ServiceWorkerUpdateViaCache;
|
|
|
readonly waiting: ServiceWorker | null;
|
|
|
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
|
|
|
showNotification(title: string, options?: NotificationOptions): Promise<void>;
|
|
|
unregister(): Promise<boolean>;
|
|
|
update(): Promise<void>;
|
|
|
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorkerRegistration: {
|
|
|
prototype: ServiceWorkerRegistration;
|
|
|
new(): ServiceWorkerRegistration;
|
|
|
};
|
|
|
|
|
|
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
readonly delegatesFocus: boolean;
|
|
|
readonly host: Element;
|
|
|
readonly mode: ShadowRootMode;
|
|
|
/**
|
|
|
* Throws a "NotSupportedError" DOMException if context object is a shadow root.
|
|
|
*/
|
|
|
}
|
|
|
|
|
|
declare var ShadowRoot: {
|
|
|
prototype: ShadowRoot;
|
|
|
new(): ShadowRoot;
|
|
|
};
|
|
|
|
|
|
interface SharedWorker extends EventTarget, AbstractWorker {
|
|
|
/**
|
|
|
* Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.
|
|
|
*/
|
|
|
readonly port: MessagePort;
|
|
|
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SharedWorker: {
|
|
|
prototype: SharedWorker;
|
|
|
new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
|
|
|
};
|
|
|
|
|
|
interface Slottable {
|
|
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
|
}
|
|
|
|
|
|
interface SourceBufferEventMap {
|
|
|
"abort": Event;
|
|
|
"error": Event;
|
|
|
"update": Event;
|
|
|
"updateend": Event;
|
|
|
"updatestart": Event;
|
|
|
}
|
|
|
|
|
|
/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments. */
|
|
|
interface SourceBuffer extends EventTarget {
|
|
|
appendWindowEnd: number;
|
|
|
appendWindowStart: number;
|
|
|
readonly buffered: TimeRanges;
|
|
|
mode: AppendMode;
|
|
|
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
timestampOffset: number;
|
|
|
readonly updating: boolean;
|
|
|
abort(): void;
|
|
|
appendBuffer(data: BufferSource): void;
|
|
|
changeType(type: string): void;
|
|
|
remove(start: number, end: number): void;
|
|
|
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SourceBuffer: {
|
|
|
prototype: SourceBuffer;
|
|
|
new(): SourceBuffer;
|
|
|
};
|
|
|
|
|
|
interface SourceBufferListEventMap {
|
|
|
"addsourcebuffer": Event;
|
|
|
"removesourcebuffer": Event;
|
|
|
}
|
|
|
|
|
|
/** A simple container list for multiple SourceBuffer objects. */
|
|
|
interface SourceBufferList extends EventTarget {
|
|
|
readonly length: number;
|
|
|
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
|
|
|
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
|
|
|
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: SourceBuffer;
|
|
|
}
|
|
|
|
|
|
declare var SourceBufferList: {
|
|
|
prototype: SourceBufferList;
|
|
|
new(): SourceBufferList;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionAlternative {
|
|
|
readonly confidence: number;
|
|
|
readonly transcript: string;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionAlternative: {
|
|
|
prototype: SpeechRecognitionAlternative;
|
|
|
new(): SpeechRecognitionAlternative;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionResult {
|
|
|
readonly isFinal: boolean;
|
|
|
readonly length: number;
|
|
|
item(index: number): SpeechRecognitionAlternative;
|
|
|
[index: number]: SpeechRecognitionAlternative;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionResult: {
|
|
|
prototype: SpeechRecognitionResult;
|
|
|
new(): SpeechRecognitionResult;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionResultList {
|
|
|
readonly length: number;
|
|
|
item(index: number): SpeechRecognitionResult;
|
|
|
[index: number]: SpeechRecognitionResult;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionResultList: {
|
|
|
prototype: SpeechRecognitionResultList;
|
|
|
new(): SpeechRecognitionResultList;
|
|
|
};
|
|
|
|
|
|
interface SpeechSynthesisEventMap {
|
|
|
"voiceschanged": Event;
|
|
|
}
|
|
|
|
|
|
/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */
|
|
|
interface SpeechSynthesis extends EventTarget {
|
|
|
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
|
|
|
readonly paused: boolean;
|
|
|
readonly pending: boolean;
|
|
|
readonly speaking: boolean;
|
|
|
cancel(): void;
|
|
|
getVoices(): SpeechSynthesisVoice[];
|
|
|
pause(): void;
|
|
|
resume(): void;
|
|
|
speak(utterance: SpeechSynthesisUtterance): void;
|
|
|
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesis: {
|
|
|
prototype: SpeechSynthesis;
|
|
|
new(): SpeechSynthesis;
|
|
|
};
|
|
|
|
|
|
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
|
|
|
readonly error: SpeechSynthesisErrorCode;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisErrorEvent: {
|
|
|
prototype: SpeechSynthesisErrorEvent;
|
|
|
new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
|
|
|
interface SpeechSynthesisEvent extends Event {
|
|
|
readonly charIndex: number;
|
|
|
readonly charLength: number;
|
|
|
readonly elapsedTime: number;
|
|
|
readonly name: string;
|
|
|
readonly utterance: SpeechSynthesisUtterance;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisEvent: {
|
|
|
prototype: SpeechSynthesisEvent;
|
|
|
new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
|
|
|
};
|
|
|
|
|
|
interface SpeechSynthesisUtteranceEventMap {
|
|
|
"boundary": SpeechSynthesisEvent;
|
|
|
"end": SpeechSynthesisEvent;
|
|
|
"error": SpeechSynthesisErrorEvent;
|
|
|
"mark": SpeechSynthesisEvent;
|
|
|
"pause": SpeechSynthesisEvent;
|
|
|
"resume": SpeechSynthesisEvent;
|
|
|
"start": SpeechSynthesisEvent;
|
|
|
}
|
|
|
|
|
|
/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */
|
|
|
interface SpeechSynthesisUtterance extends EventTarget {
|
|
|
lang: string;
|
|
|
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
|
|
|
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
pitch: number;
|
|
|
rate: number;
|
|
|
text: string;
|
|
|
voice: SpeechSynthesisVoice | null;
|
|
|
volume: number;
|
|
|
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisUtterance: {
|
|
|
prototype: SpeechSynthesisUtterance;
|
|
|
new(text?: string): SpeechSynthesisUtterance;
|
|
|
};
|
|
|
|
|
|
/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */
|
|
|
interface SpeechSynthesisVoice {
|
|
|
readonly default: boolean;
|
|
|
readonly lang: string;
|
|
|
readonly localService: boolean;
|
|
|
readonly name: string;
|
|
|
readonly voiceURI: string;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisVoice: {
|
|
|
prototype: SpeechSynthesisVoice;
|
|
|
new(): SpeechSynthesisVoice;
|
|
|
};
|
|
|
|
|
|
interface StaticRange extends AbstractRange {
|
|
|
}
|
|
|
|
|
|
declare var StaticRange: {
|
|
|
prototype: StaticRange;
|
|
|
new(init: StaticRangeInit): StaticRange;
|
|
|
};
|
|
|
|
|
|
/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */
|
|
|
interface StereoPannerNode extends AudioNode {
|
|
|
readonly pan: AudioParam;
|
|
|
}
|
|
|
|
|
|
declare var StereoPannerNode: {
|
|
|
prototype: StereoPannerNode;
|
|
|
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
|
|
|
};
|
|
|
|
|
|
/** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
|
|
|
interface Storage {
|
|
|
/**
|
|
|
* Returns the number of key/value pairs.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Removes all key/value pairs, if there are any.
|
|
|
*
|
|
|
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
|
*/
|
|
|
clear(): void;
|
|
|
/**
|
|
|
* Returns the current value associated with the given key, or null if the given key does not exist.
|
|
|
*/
|
|
|
getItem(key: string): string | null;
|
|
|
/**
|
|
|
* Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
|
|
|
*/
|
|
|
key(index: number): string | null;
|
|
|
/**
|
|
|
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
|
|
|
*
|
|
|
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
|
*/
|
|
|
removeItem(key: string): void;
|
|
|
/**
|
|
|
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
|
|
|
*
|
|
|
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
|
|
|
*
|
|
|
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
|
*/
|
|
|
setItem(key: string, value: string): void;
|
|
|
[name: string]: any;
|
|
|
}
|
|
|
|
|
|
declare var Storage: {
|
|
|
prototype: Storage;
|
|
|
new(): Storage;
|
|
|
};
|
|
|
|
|
|
/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
|
|
|
interface StorageEvent extends Event {
|
|
|
/**
|
|
|
* Returns the key of the storage item being changed.
|
|
|
*/
|
|
|
readonly key: string | null;
|
|
|
/**
|
|
|
* Returns the new value of the key of the storage item whose value is being changed.
|
|
|
*/
|
|
|
readonly newValue: string | null;
|
|
|
/**
|
|
|
* Returns the old value of the key of the storage item whose value is being changed.
|
|
|
*/
|
|
|
readonly oldValue: string | null;
|
|
|
/**
|
|
|
* Returns the Storage object that was affected.
|
|
|
*/
|
|
|
readonly storageArea: Storage | null;
|
|
|
/**
|
|
|
* Returns the URL of the document whose storage item changed.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
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;
|
|
|
};
|
|
|
|
|
|
interface StorageManager {
|
|
|
estimate(): Promise<StorageEstimate>;
|
|
|
persist(): Promise<boolean>;
|
|
|
persisted(): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var StorageManager: {
|
|
|
prototype: StorageManager;
|
|
|
new(): StorageManager;
|
|
|
};
|
|
|
|
|
|
/** @deprecated */
|
|
|
interface StyleMedia {
|
|
|
type: string;
|
|
|
matchMedium(mediaquery: string): boolean;
|
|
|
}
|
|
|
|
|
|
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
|
|
|
interface StyleSheet {
|
|
|
disabled: boolean;
|
|
|
readonly href: string | null;
|
|
|
readonly media: MediaList;
|
|
|
readonly ownerNode: Element | ProcessingInstruction | null;
|
|
|
readonly parentStyleSheet: CSSStyleSheet | null;
|
|
|
readonly title: string | null;
|
|
|
readonly type: string;
|
|
|
}
|
|
|
|
|
|
declare var StyleSheet: {
|
|
|
prototype: StyleSheet;
|
|
|
new(): StyleSheet;
|
|
|
};
|
|
|
|
|
|
/** A list of StyleSheet. */
|
|
|
interface StyleSheetList {
|
|
|
readonly length: number;
|
|
|
item(index: number): CSSStyleSheet | null;
|
|
|
[index: number]: CSSStyleSheet;
|
|
|
}
|
|
|
|
|
|
declare var StyleSheetList: {
|
|
|
prototype: StyleSheetList;
|
|
|
new(): StyleSheetList;
|
|
|
};
|
|
|
|
|
|
interface SubmitEvent extends Event {
|
|
|
/**
|
|
|
* Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.
|
|
|
*/
|
|
|
readonly submitter: HTMLElement | null;
|
|
|
}
|
|
|
|
|
|
declare var SubmitEvent: {
|
|
|
prototype: SubmitEvent;
|
|
|
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
|
|
|
};
|
|
|
|
|
|
/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */
|
|
|
interface SubtleCrypto {
|
|
|
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
|
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
|
|
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
|
|
|
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
|
|
|
}
|
|
|
|
|
|
declare var SubtleCrypto: {
|
|
|
prototype: SubtleCrypto;
|
|
|
new(): SubtleCrypto;
|
|
|
};
|
|
|
|
|
|
/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
|
|
|
interface Text extends CharacterData, Slottable {
|
|
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
|
/**
|
|
|
* Returns the combined data of all direct Text node siblings.
|
|
|
*/
|
|
|
readonly wholeText: string;
|
|
|
/**
|
|
|
* Splits data at the given offset and returns the remainder as Text node.
|
|
|
*/
|
|
|
splitText(offset: number): Text;
|
|
|
}
|
|
|
|
|
|
declare var Text: {
|
|
|
prototype: Text;
|
|
|
new(data?: string): Text;
|
|
|
};
|
|
|
|
|
|
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
|
|
|
interface TextDecoder extends TextDecoderCommon {
|
|
|
/**
|
|
|
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
|
|
|
*
|
|
|
* \`\`\`
|
|
|
* var string = "", decoder = new TextDecoder(encoding), buffer;
|
|
|
* while(buffer = next_chunk()) {
|
|
|
* string += decoder.decode(buffer, {stream:true});
|
|
|
* }
|
|
|
* string += decoder.decode(); // end-of-queue
|
|
|
* \`\`\`
|
|
|
*
|
|
|
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
|
|
|
*/
|
|
|
decode(input?: BufferSource, options?: TextDecodeOptions): string;
|
|
|
}
|
|
|
|
|
|
declare var TextDecoder: {
|
|
|
prototype: TextDecoder;
|
|
|
new(label?: string, options?: TextDecoderOptions): TextDecoder;
|
|
|
};
|
|
|
|
|
|
interface TextDecoderCommon {
|
|
|
/**
|
|
|
* Returns encoding's name, lowercased.
|
|
|
*/
|
|
|
readonly encoding: string;
|
|
|
/**
|
|
|
* Returns true if error mode is "fatal", otherwise false.
|
|
|
*/
|
|
|
readonly fatal: boolean;
|
|
|
/**
|
|
|
* Returns the value of ignore BOM.
|
|
|
*/
|
|
|
readonly ignoreBOM: boolean;
|
|
|
}
|
|
|
|
|
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
|
readonly readable: ReadableStream<string>;
|
|
|
readonly writable: WritableStream<BufferSource>;
|
|
|
}
|
|
|
|
|
|
declare var TextDecoderStream: {
|
|
|
prototype: TextDecoderStream;
|
|
|
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
|
};
|
|
|
|
|
|
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
|
|
|
interface TextEncoder extends TextEncoderCommon {
|
|
|
/**
|
|
|
* Returns the result of running UTF-8's encoder.
|
|
|
*/
|
|
|
encode(input?: string): Uint8Array;
|
|
|
/**
|
|
|
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
|
|
|
*/
|
|
|
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
|
}
|
|
|
|
|
|
declare var TextEncoder: {
|
|
|
prototype: TextEncoder;
|
|
|
new(): TextEncoder;
|
|
|
};
|
|
|
|
|
|
interface TextEncoderCommon {
|
|
|
/**
|
|
|
* Returns "utf-8".
|
|
|
*/
|
|
|
readonly encoding: string;
|
|
|
}
|
|
|
|
|
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
|
readonly readable: ReadableStream<Uint8Array>;
|
|
|
readonly writable: WritableStream<string>;
|
|
|
}
|
|
|
|
|
|
declare var TextEncoderStream: {
|
|
|
prototype: TextEncoderStream;
|
|
|
new(): TextEncoderStream;
|
|
|
};
|
|
|
|
|
|
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
|
|
|
interface TextMetrics {
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxAscent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxDescent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxLeft: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxRight: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly fontBoundingBoxAscent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly fontBoundingBoxDescent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var TextMetrics: {
|
|
|
prototype: TextMetrics;
|
|
|
new(): TextMetrics;
|
|
|
};
|
|
|
|
|
|
interface TextTrackEventMap {
|
|
|
"cuechange": Event;
|
|
|
}
|
|
|
|
|
|
/** This interface also inherits properties from EventTarget. */
|
|
|
interface TextTrack extends EventTarget {
|
|
|
/**
|
|
|
* Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.
|
|
|
*/
|
|
|
readonly activeCues: TextTrackCueList | null;
|
|
|
/**
|
|
|
* Returns the text track list of cues, as a TextTrackCueList object.
|
|
|
*/
|
|
|
readonly cues: TextTrackCueList | null;
|
|
|
/**
|
|
|
* Returns the ID of the given track.
|
|
|
*
|
|
|
* For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
|
|
|
*
|
|
|
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
|
|
|
*/
|
|
|
readonly id: string;
|
|
|
/**
|
|
|
* Returns the text track in-band metadata track dispatch type string.
|
|
|
*/
|
|
|
readonly inBandMetadataTrackDispatchType: string;
|
|
|
/**
|
|
|
* Returns the text track kind string.
|
|
|
*/
|
|
|
readonly kind: TextTrackKind;
|
|
|
/**
|
|
|
* Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).
|
|
|
*/
|
|
|
readonly label: string;
|
|
|
/**
|
|
|
* Returns the text track language string.
|
|
|
*/
|
|
|
readonly language: string;
|
|
|
/**
|
|
|
* Returns the text track mode, represented by a string from the following list:
|
|
|
*
|
|
|
* Can be set, to change the mode.
|
|
|
*/
|
|
|
mode: TextTrackMode;
|
|
|
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Adds the given cue to textTrack's text track list of cues.
|
|
|
*/
|
|
|
addCue(cue: TextTrackCue): void;
|
|
|
/**
|
|
|
* Removes the given cue from textTrack's text track list of cues.
|
|
|
*/
|
|
|
removeCue(cue: TextTrackCue): void;
|
|
|
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var TextTrack: {
|
|
|
prototype: TextTrack;
|
|
|
new(): TextTrack;
|
|
|
};
|
|
|
|
|
|
interface TextTrackCueEventMap {
|
|
|
"enter": Event;
|
|
|
"exit": Event;
|
|
|
}
|
|
|
|
|
|
/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */
|
|
|
interface TextTrackCue extends EventTarget {
|
|
|
/**
|
|
|
* Returns the text track cue end time, in seconds.
|
|
|
*
|
|
|
* Can be set.
|
|
|
*/
|
|
|
endTime: number;
|
|
|
/**
|
|
|
* Returns the text track cue identifier.
|
|
|
*
|
|
|
* Can be set.
|
|
|
*/
|
|
|
id: string;
|
|
|
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
|
|
|
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
|
|
|
*
|
|
|
* Can be set.
|
|
|
*/
|
|
|
pauseOnExit: boolean;
|
|
|
/**
|
|
|
* Returns the text track cue start time, in seconds.
|
|
|
*
|
|
|
* Can be set.
|
|
|
*/
|
|
|
startTime: number;
|
|
|
/**
|
|
|
* Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.
|
|
|
*/
|
|
|
readonly track: TextTrack | null;
|
|
|
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var TextTrackCue: {
|
|
|
prototype: TextTrackCue;
|
|
|
new(): TextTrackCue;
|
|
|
};
|
|
|
|
|
|
interface TextTrackCueList {
|
|
|
/**
|
|
|
* Returns the number of cues in the list.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
|
|
|
*
|
|
|
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
|
|
|
*/
|
|
|
getCueById(id: string): TextTrackCue | null;
|
|
|
[index: number]: TextTrackCue;
|
|
|
}
|
|
|
|
|
|
declare var TextTrackCueList: {
|
|
|
prototype: TextTrackCueList;
|
|
|
new(): TextTrackCueList;
|
|
|
};
|
|
|
|
|
|
interface TextTrackListEventMap {
|
|
|
"addtrack": TrackEvent;
|
|
|
"change": Event;
|
|
|
"removetrack": TrackEvent;
|
|
|
}
|
|
|
|
|
|
interface TextTrackList extends EventTarget {
|
|
|
readonly length: number;
|
|
|
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
|
|
|
onchange: ((this: TextTrackList, ev: Event) => any) | null;
|
|
|
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
|
|
|
getTrackById(id: string): TextTrack | null;
|
|
|
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: TextTrack;
|
|
|
}
|
|
|
|
|
|
declare var TextTrackList: {
|
|
|
prototype: TextTrackList;
|
|
|
new(): TextTrackList;
|
|
|
};
|
|
|
|
|
|
/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements. */
|
|
|
interface TimeRanges {
|
|
|
/**
|
|
|
* Returns the number of ranges in the object.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the time for the end of the range with the given index.
|
|
|
*
|
|
|
* Throws an "IndexSizeError" DOMException if the index is out of range.
|
|
|
*/
|
|
|
end(index: number): number;
|
|
|
/**
|
|
|
* Returns the time for the start of the range with the given index.
|
|
|
*
|
|
|
* Throws an "IndexSizeError" DOMException if the index is out of range.
|
|
|
*/
|
|
|
start(index: number): number;
|
|
|
}
|
|
|
|
|
|
declare var TimeRanges: {
|
|
|
prototype: TimeRanges;
|
|
|
new(): TimeRanges;
|
|
|
};
|
|
|
|
|
|
/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
|
|
|
interface Touch {
|
|
|
readonly clientX: number;
|
|
|
readonly clientY: number;
|
|
|
readonly force: number;
|
|
|
readonly identifier: number;
|
|
|
readonly pageX: number;
|
|
|
readonly pageY: number;
|
|
|
readonly radiusX: number;
|
|
|
readonly radiusY: number;
|
|
|
readonly rotationAngle: number;
|
|
|
readonly screenX: number;
|
|
|
readonly screenY: number;
|
|
|
readonly target: EventTarget;
|
|
|
}
|
|
|
|
|
|
declare var Touch: {
|
|
|
prototype: Touch;
|
|
|
new(touchInitDict: TouchInit): Touch;
|
|
|
};
|
|
|
|
|
|
/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */
|
|
|
interface TouchEvent extends UIEvent {
|
|
|
readonly altKey: boolean;
|
|
|
readonly changedTouches: TouchList;
|
|
|
readonly ctrlKey: boolean;
|
|
|
readonly metaKey: boolean;
|
|
|
readonly shiftKey: boolean;
|
|
|
readonly targetTouches: TouchList;
|
|
|
readonly touches: TouchList;
|
|
|
}
|
|
|
|
|
|
declare var TouchEvent: {
|
|
|
prototype: TouchEvent;
|
|
|
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
|
|
|
};
|
|
|
|
|
|
/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */
|
|
|
interface TouchList {
|
|
|
readonly length: number;
|
|
|
item(index: number): Touch | null;
|
|
|
[index: number]: Touch;
|
|
|
}
|
|
|
|
|
|
declare var TouchList: {
|
|
|
prototype: TouchList;
|
|
|
new(): TouchList;
|
|
|
};
|
|
|
|
|
|
/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */
|
|
|
interface TrackEvent extends Event {
|
|
|
/**
|
|
|
* Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.
|
|
|
*/
|
|
|
readonly track: TextTrack | null;
|
|
|
}
|
|
|
|
|
|
declare var TrackEvent: {
|
|
|
prototype: TrackEvent;
|
|
|
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
|
|
|
};
|
|
|
|
|
|
interface TransformStream<I = any, O = any> {
|
|
|
readonly readable: ReadableStream<O>;
|
|
|
readonly writable: WritableStream<I>;
|
|
|
}
|
|
|
|
|
|
declare var TransformStream: {
|
|
|
prototype: TransformStream;
|
|
|
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
|
|
|
};
|
|
|
|
|
|
interface TransformStreamDefaultController<O = any> {
|
|
|
readonly desiredSize: number | null;
|
|
|
enqueue(chunk?: O): void;
|
|
|
error(reason?: any): void;
|
|
|
terminate(): void;
|
|
|
}
|
|
|
|
|
|
declare var TransformStreamDefaultController: {
|
|
|
prototype: TransformStreamDefaultController;
|
|
|
new(): TransformStreamDefaultController;
|
|
|
};
|
|
|
|
|
|
/** Events providing information related to transitions. */
|
|
|
interface TransitionEvent extends Event {
|
|
|
readonly elapsedTime: number;
|
|
|
readonly propertyName: string;
|
|
|
readonly pseudoElement: string;
|
|
|
}
|
|
|
|
|
|
declare var TransitionEvent: {
|
|
|
prototype: TransitionEvent;
|
|
|
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
|
|
|
};
|
|
|
|
|
|
/** The nodes of a document subtree and a position within them. */
|
|
|
interface TreeWalker {
|
|
|
currentNode: Node;
|
|
|
readonly filter: NodeFilter | null;
|
|
|
readonly root: Node;
|
|
|
readonly whatToShow: number;
|
|
|
firstChild(): Node | null;
|
|
|
lastChild(): Node | null;
|
|
|
nextNode(): Node | null;
|
|
|
nextSibling(): Node | null;
|
|
|
parentNode(): Node | null;
|
|
|
previousNode(): Node | null;
|
|
|
previousSibling(): Node | null;
|
|
|
}
|
|
|
|
|
|
declare var TreeWalker: {
|
|
|
prototype: TreeWalker;
|
|
|
new(): TreeWalker;
|
|
|
};
|
|
|
|
|
|
/** Simple user interface events. */
|
|
|
interface UIEvent extends Event {
|
|
|
readonly detail: number;
|
|
|
readonly view: Window | null;
|
|
|
/** @deprecated */
|
|
|
readonly which: number;
|
|
|
/** @deprecated */
|
|
|
initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
|
|
|
}
|
|
|
|
|
|
declare var UIEvent: {
|
|
|
prototype: UIEvent;
|
|
|
new(type: string, eventInitDict?: UIEventInit): UIEvent;
|
|
|
};
|
|
|
|
|
|
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
|
|
|
interface URL {
|
|
|
hash: string;
|
|
|
host: string;
|
|
|
hostname: string;
|
|
|
href: string;
|
|
|
toString(): string;
|
|
|
readonly origin: string;
|
|
|
password: string;
|
|
|
pathname: string;
|
|
|
port: string;
|
|
|
protocol: string;
|
|
|
search: string;
|
|
|
readonly searchParams: URLSearchParams;
|
|
|
username: string;
|
|
|
toJSON(): string;
|
|
|
}
|
|
|
|
|
|
declare var URL: {
|
|
|
prototype: URL;
|
|
|
new(url: string | URL, base?: string | URL): URL;
|
|
|
createObjectURL(object: any): string;
|
|
|
revokeObjectURL(url: string): void;
|
|
|
};
|
|
|
|
|
|
type webkitURL = URL;
|
|
|
declare var webkitURL: typeof URL;
|
|
|
|
|
|
interface URLSearchParams {
|
|
|
/**
|
|
|
* Appends a specified key/value pair as a new search parameter.
|
|
|
*/
|
|
|
append(name: string, value: string): void;
|
|
|
/**
|
|
|
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
|
|
|
*/
|
|
|
delete(name: string): void;
|
|
|
/**
|
|
|
* Returns the first value associated to the given search parameter.
|
|
|
*/
|
|
|
get(name: string): string | null;
|
|
|
/**
|
|
|
* Returns all the values association with a given search parameter.
|
|
|
*/
|
|
|
getAll(name: string): string[];
|
|
|
/**
|
|
|
* Returns a Boolean indicating if such a search parameter exists.
|
|
|
*/
|
|
|
has(name: string): boolean;
|
|
|
/**
|
|
|
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
|
|
*/
|
|
|
set(name: string, value: string): void;
|
|
|
sort(): void;
|
|
|
/**
|
|
|
* Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var URLSearchParams: {
|
|
|
prototype: URLSearchParams;
|
|
|
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
|
toString(): string;
|
|
|
};
|
|
|
|
|
|
interface VTTCue extends TextTrackCue {
|
|
|
align: AlignSetting;
|
|
|
line: LineAndPositionSetting;
|
|
|
lineAlign: LineAlignSetting;
|
|
|
position: LineAndPositionSetting;
|
|
|
positionAlign: PositionAlignSetting;
|
|
|
region: VTTRegion | null;
|
|
|
size: number;
|
|
|
snapToLines: boolean;
|
|
|
text: string;
|
|
|
vertical: DirectionSetting;
|
|
|
getCueAsHTML(): DocumentFragment;
|
|
|
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var VTTCue: {
|
|
|
prototype: VTTCue;
|
|
|
new(startTime: number, endTime: number, text: string): VTTCue;
|
|
|
};
|
|
|
|
|
|
interface VTTRegion {
|
|
|
id: string;
|
|
|
lines: number;
|
|
|
regionAnchorX: number;
|
|
|
regionAnchorY: number;
|
|
|
scroll: ScrollSetting;
|
|
|
viewportAnchorX: number;
|
|
|
viewportAnchorY: number;
|
|
|
width: number;
|
|
|
}
|
|
|
|
|
|
declare var VTTRegion: {
|
|
|
prototype: VTTRegion;
|
|
|
new(): VTTRegion;
|
|
|
};
|
|
|
|
|
|
/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
|
|
|
interface ValidityState {
|
|
|
readonly badInput: boolean;
|
|
|
readonly customError: boolean;
|
|
|
readonly patternMismatch: boolean;
|
|
|
readonly rangeOverflow: boolean;
|
|
|
readonly rangeUnderflow: boolean;
|
|
|
readonly stepMismatch: boolean;
|
|
|
readonly tooLong: boolean;
|
|
|
readonly tooShort: boolean;
|
|
|
readonly typeMismatch: boolean;
|
|
|
readonly valid: boolean;
|
|
|
readonly valueMissing: boolean;
|
|
|
}
|
|
|
|
|
|
declare var ValidityState: {
|
|
|
prototype: ValidityState;
|
|
|
new(): ValidityState;
|
|
|
};
|
|
|
|
|
|
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
|
|
|
interface VideoPlaybackQuality {
|
|
|
/** @deprecated */
|
|
|
readonly corruptedVideoFrames: number;
|
|
|
readonly creationTime: DOMHighResTimeStamp;
|
|
|
readonly droppedVideoFrames: number;
|
|
|
readonly totalVideoFrames: number;
|
|
|
}
|
|
|
|
|
|
declare var VideoPlaybackQuality: {
|
|
|
prototype: VideoPlaybackQuality;
|
|
|
new(): VideoPlaybackQuality;
|
|
|
};
|
|
|
|
|
|
interface VisualViewportEventMap {
|
|
|
"resize": Event;
|
|
|
"scroll": Event;
|
|
|
}
|
|
|
|
|
|
interface VisualViewport extends EventTarget {
|
|
|
readonly height: number;
|
|
|
readonly offsetLeft: number;
|
|
|
readonly offsetTop: number;
|
|
|
onresize: ((this: VisualViewport, ev: Event) => any) | null;
|
|
|
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
|
|
|
readonly pageLeft: number;
|
|
|
readonly pageTop: number;
|
|
|
readonly scale: number;
|
|
|
readonly width: number;
|
|
|
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var VisualViewport: {
|
|
|
prototype: VisualViewport;
|
|
|
new(): VisualViewport;
|
|
|
};
|
|
|
|
|
|
interface WEBGL_color_buffer_float {
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
|
readonly RGBA32F_EXT: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_astc {
|
|
|
getSupportedProfiles(): string[];
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_etc {
|
|
|
readonly COMPRESSED_R11_EAC: GLenum;
|
|
|
readonly COMPRESSED_RG11_EAC: GLenum;
|
|
|
readonly COMPRESSED_RGB8_ETC2: GLenum;
|
|
|
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
|
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ETC2: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_etc1 {
|
|
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_pvrtc {
|
|
|
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
|
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
|
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
|
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
|
interface WEBGL_compressed_texture_s3tc {
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_s3tc_srgb {
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
|
|
|
interface WEBGL_debug_renderer_info {
|
|
|
readonly UNMASKED_RENDERER_WEBGL: GLenum;
|
|
|
readonly UNMASKED_VENDOR_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_debug_shaders {
|
|
|
getTranslatedShaderSource(shader: WebGLShader): string;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
|
|
|
interface WEBGL_depth_texture {
|
|
|
readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_draw_buffers {
|
|
|
drawBuffersWEBGL(buffers: GLenum[]): void;
|
|
|
readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER0_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER10_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER11_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER12_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER13_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER14_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER15_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER1_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER2_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER3_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER4_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER5_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER6_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER7_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER8_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER9_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_lose_context {
|
|
|
loseContext(): void;
|
|
|
restoreContext(): void;
|
|
|
}
|
|
|
|
|
|
/** A WaveShaperNode always has exactly one input and one output. */
|
|
|
interface WaveShaperNode extends AudioNode {
|
|
|
curve: Float32Array | null;
|
|
|
oversample: OverSampleType;
|
|
|
}
|
|
|
|
|
|
declare var WaveShaperNode: {
|
|
|
prototype: WaveShaperNode;
|
|
|
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
|
|
|
};
|
|
|
|
|
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
|
}
|
|
|
|
|
|
declare var WebGL2RenderingContext: {
|
|
|
prototype: WebGL2RenderingContext;
|
|
|
new(): WebGL2RenderingContext;
|
|
|
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly ALREADY_SIGNALED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
|
|
|
readonly COLOR: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9: GLenum;
|
|
|
readonly COMPARE_REF_TO_TEXTURE: GLenum;
|
|
|
readonly CONDITION_SATISFIED: GLenum;
|
|
|
readonly COPY_READ_BUFFER: GLenum;
|
|
|
readonly COPY_READ_BUFFER_BINDING: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
|
|
|
readonly CURRENT_QUERY: GLenum;
|
|
|
readonly DEPTH: GLenum;
|
|
|
readonly DEPTH24_STENCIL8: GLenum;
|
|
|
readonly DEPTH32F_STENCIL8: GLenum;
|
|
|
readonly DEPTH_COMPONENT24: GLenum;
|
|
|
readonly DEPTH_COMPONENT32F: GLenum;
|
|
|
readonly DRAW_BUFFER0: GLenum;
|
|
|
readonly DRAW_BUFFER1: GLenum;
|
|
|
readonly DRAW_BUFFER10: GLenum;
|
|
|
readonly DRAW_BUFFER11: GLenum;
|
|
|
readonly DRAW_BUFFER12: GLenum;
|
|
|
readonly DRAW_BUFFER13: GLenum;
|
|
|
readonly DRAW_BUFFER14: GLenum;
|
|
|
readonly DRAW_BUFFER15: GLenum;
|
|
|
readonly DRAW_BUFFER2: GLenum;
|
|
|
readonly DRAW_BUFFER3: GLenum;
|
|
|
readonly DRAW_BUFFER4: GLenum;
|
|
|
readonly DRAW_BUFFER5: GLenum;
|
|
|
readonly DRAW_BUFFER6: GLenum;
|
|
|
readonly DRAW_BUFFER7: GLenum;
|
|
|
readonly DRAW_BUFFER8: GLenum;
|
|
|
readonly DRAW_BUFFER9: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly DYNAMIC_COPY: GLenum;
|
|
|
readonly DYNAMIC_READ: GLenum;
|
|
|
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
|
|
|
readonly FLOAT_MAT2x3: GLenum;
|
|
|
readonly FLOAT_MAT2x4: GLenum;
|
|
|
readonly FLOAT_MAT3x2: GLenum;
|
|
|
readonly FLOAT_MAT3x4: GLenum;
|
|
|
readonly FLOAT_MAT4x2: GLenum;
|
|
|
readonly FLOAT_MAT4x3: GLenum;
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
|
|
|
readonly FRAMEBUFFER_DEFAULT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
|
|
|
readonly HALF_FLOAT: GLenum;
|
|
|
readonly INTERLEAVED_ATTRIBS: GLenum;
|
|
|
readonly INT_2_10_10_10_REV: GLenum;
|
|
|
readonly INT_SAMPLER_2D: GLenum;
|
|
|
readonly INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly INT_SAMPLER_3D: GLenum;
|
|
|
readonly INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly INVALID_INDEX: GLenum;
|
|
|
readonly MAX: GLenum;
|
|
|
readonly MAX_3D_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
|
|
|
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS: GLenum;
|
|
|
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS: GLenum;
|
|
|
readonly MAX_ELEMENTS_INDICES: GLenum;
|
|
|
readonly MAX_ELEMENTS_VERTICES: GLenum;
|
|
|
readonly MAX_ELEMENT_INDEX: GLenum;
|
|
|
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly MAX_SAMPLES: GLenum;
|
|
|
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
|
|
|
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
|
|
|
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
|
|
|
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
|
|
|
readonly MAX_VARYING_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MIN: GLenum;
|
|
|
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly OBJECT_TYPE: GLenum;
|
|
|
readonly PACK_ROW_LENGTH: GLenum;
|
|
|
readonly PACK_SKIP_PIXELS: GLenum;
|
|
|
readonly PACK_SKIP_ROWS: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
|
|
|
readonly QUERY_RESULT: GLenum;
|
|
|
readonly QUERY_RESULT_AVAILABLE: GLenum;
|
|
|
readonly R11F_G11F_B10F: GLenum;
|
|
|
readonly R16F: GLenum;
|
|
|
readonly R16I: GLenum;
|
|
|
readonly R16UI: GLenum;
|
|
|
readonly R32F: GLenum;
|
|
|
readonly R32I: GLenum;
|
|
|
readonly R32UI: GLenum;
|
|
|
readonly R8: GLenum;
|
|
|
readonly R8I: GLenum;
|
|
|
readonly R8UI: GLenum;
|
|
|
readonly R8_SNORM: GLenum;
|
|
|
readonly RASTERIZER_DISCARD: GLenum;
|
|
|
readonly READ_BUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly RED: GLenum;
|
|
|
readonly RED_INTEGER: GLenum;
|
|
|
readonly RENDERBUFFER_SAMPLES: GLenum;
|
|
|
readonly RG: GLenum;
|
|
|
readonly RG16F: GLenum;
|
|
|
readonly RG16I: GLenum;
|
|
|
readonly RG16UI: GLenum;
|
|
|
readonly RG32F: GLenum;
|
|
|
readonly RG32I: GLenum;
|
|
|
readonly RG32UI: GLenum;
|
|
|
readonly RG8: GLenum;
|
|
|
readonly RG8I: GLenum;
|
|
|
readonly RG8UI: GLenum;
|
|
|
readonly RG8_SNORM: GLenum;
|
|
|
readonly RGB10_A2: GLenum;
|
|
|
readonly RGB10_A2UI: GLenum;
|
|
|
readonly RGB16F: GLenum;
|
|
|
readonly RGB16I: GLenum;
|
|
|
readonly RGB16UI: GLenum;
|
|
|
readonly RGB32F: GLenum;
|
|
|
readonly RGB32I: GLenum;
|
|
|
readonly RGB32UI: GLenum;
|
|
|
readonly RGB8: GLenum;
|
|
|
readonly RGB8I: GLenum;
|
|
|
readonly RGB8UI: GLenum;
|
|
|
readonly RGB8_SNORM: GLenum;
|
|
|
readonly RGB9_E5: GLenum;
|
|
|
readonly RGBA16F: GLenum;
|
|
|
readonly RGBA16I: GLenum;
|
|
|
readonly RGBA16UI: GLenum;
|
|
|
readonly RGBA32F: GLenum;
|
|
|
readonly RGBA32I: GLenum;
|
|
|
readonly RGBA32UI: GLenum;
|
|
|
readonly RGBA8: GLenum;
|
|
|
readonly RGBA8I: GLenum;
|
|
|
readonly RGBA8UI: GLenum;
|
|
|
readonly RGBA8_SNORM: GLenum;
|
|
|
readonly RGBA_INTEGER: GLenum;
|
|
|
readonly RGB_INTEGER: GLenum;
|
|
|
readonly RG_INTEGER: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
|
|
|
readonly SAMPLER_2D_SHADOW: GLenum;
|
|
|
readonly SAMPLER_3D: GLenum;
|
|
|
readonly SAMPLER_BINDING: GLenum;
|
|
|
readonly SAMPLER_CUBE_SHADOW: GLenum;
|
|
|
readonly SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly SIGNALED: GLenum;
|
|
|
readonly SIGNED_NORMALIZED: GLenum;
|
|
|
readonly SRGB: GLenum;
|
|
|
readonly SRGB8: GLenum;
|
|
|
readonly SRGB8_ALPHA8: GLenum;
|
|
|
readonly STATIC_COPY: GLenum;
|
|
|
readonly STATIC_READ: GLenum;
|
|
|
readonly STENCIL: GLenum;
|
|
|
readonly STREAM_COPY: GLenum;
|
|
|
readonly STREAM_READ: GLenum;
|
|
|
readonly SYNC_CONDITION: GLenum;
|
|
|
readonly SYNC_FENCE: GLenum;
|
|
|
readonly SYNC_FLAGS: GLenum;
|
|
|
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
|
|
|
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
|
|
|
readonly SYNC_STATUS: GLenum;
|
|
|
readonly TEXTURE_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_3D: GLenum;
|
|
|
readonly TEXTURE_BASE_LEVEL: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_BINDING_3D: GLenum;
|
|
|
readonly TEXTURE_COMPARE_FUNC: GLenum;
|
|
|
readonly TEXTURE_COMPARE_MODE: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
|
|
|
readonly TEXTURE_MAX_LEVEL: GLenum;
|
|
|
readonly TEXTURE_MAX_LOD: GLenum;
|
|
|
readonly TEXTURE_MIN_LOD: GLenum;
|
|
|
readonly TEXTURE_WRAP_R: GLenum;
|
|
|
readonly TIMEOUT_EXPIRED: GLenum;
|
|
|
readonly TIMEOUT_IGNORED: GLint64;
|
|
|
readonly TRANSFORM_FEEDBACK: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
|
|
|
readonly UNIFORM_ARRAY_STRIDE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
|
|
|
readonly UNIFORM_BLOCK_BINDING: GLenum;
|
|
|
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_INDEX: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
|
|
|
readonly UNIFORM_BUFFER: GLenum;
|
|
|
readonly UNIFORM_BUFFER_BINDING: GLenum;
|
|
|
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
|
|
|
readonly UNIFORM_BUFFER_SIZE: GLenum;
|
|
|
readonly UNIFORM_BUFFER_START: GLenum;
|
|
|
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
|
|
|
readonly UNIFORM_MATRIX_STRIDE: GLenum;
|
|
|
readonly UNIFORM_OFFSET: GLenum;
|
|
|
readonly UNIFORM_SIZE: GLenum;
|
|
|
readonly UNIFORM_TYPE: GLenum;
|
|
|
readonly UNPACK_IMAGE_HEIGHT: GLenum;
|
|
|
readonly UNPACK_ROW_LENGTH: GLenum;
|
|
|
readonly UNPACK_SKIP_IMAGES: GLenum;
|
|
|
readonly UNPACK_SKIP_PIXELS: GLenum;
|
|
|
readonly UNPACK_SKIP_ROWS: GLenum;
|
|
|
readonly UNSIGNALED: GLenum;
|
|
|
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_24_8: GLenum;
|
|
|
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC2: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC3: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC4: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ARRAY_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
|
|
|
readonly WAIT_FAILED: GLenum;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
};
|
|
|
|
|
|
interface WebGL2RenderingContextBase {
|
|
|
beginQuery(target: GLenum, query: WebGLQuery): void;
|
|
|
beginTransformFeedback(primitiveMode: GLenum): void;
|
|
|
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
|
|
|
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
|
|
|
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
|
|
|
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
|
|
|
bindVertexArray(array: WebGLVertexArrayObject | null): void;
|
|
|
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
|
|
|
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
|
|
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
|
|
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
|
|
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
|
|
|
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
|
|
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
|
|
|
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
createQuery(): WebGLQuery | null;
|
|
|
createSampler(): WebGLSampler | null;
|
|
|
createTransformFeedback(): WebGLTransformFeedback | null;
|
|
|
createVertexArray(): WebGLVertexArrayObject | null;
|
|
|
deleteQuery(query: WebGLQuery | null): void;
|
|
|
deleteSampler(sampler: WebGLSampler | null): void;
|
|
|
deleteSync(sync: WebGLSync | null): void;
|
|
|
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
|
|
|
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
|
|
|
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
|
|
|
drawBuffers(buffers: GLenum[]): void;
|
|
|
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
|
|
|
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
|
|
|
endQuery(target: GLenum): void;
|
|
|
endTransformFeedback(): void;
|
|
|
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
|
|
|
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
|
|
|
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
|
|
|
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
|
|
|
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
|
|
|
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
|
|
|
getFragDataLocation(program: WebGLProgram, name: string): GLint;
|
|
|
getIndexedParameter(target: GLenum, index: GLuint): any;
|
|
|
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
|
|
|
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
|
|
|
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
|
|
|
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
|
|
|
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
|
|
|
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
|
|
|
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
|
|
|
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
|
|
|
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
isQuery(query: WebGLQuery | null): GLboolean;
|
|
|
isSampler(sampler: WebGLSampler | null): GLboolean;
|
|
|
isSync(sync: WebGLSync | null): GLboolean;
|
|
|
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
|
|
|
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
|
|
|
pauseTransformFeedback(): void;
|
|
|
readBuffer(src: GLenum): void;
|
|
|
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
resumeTransformFeedback(): void;
|
|
|
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
|
|
|
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
|
|
|
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
|
|
|
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
|
|
|
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
|
|
|
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
|
|
|
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
|
|
|
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
|
|
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
|
|
|
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
|
|
|
vertexAttribI4iv(index: GLuint, values: Int32List): void;
|
|
|
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
|
|
|
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
|
|
|
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
|
|
|
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
|
|
|
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly ALREADY_SIGNALED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
|
|
|
readonly COLOR: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9: GLenum;
|
|
|
readonly COMPARE_REF_TO_TEXTURE: GLenum;
|
|
|
readonly CONDITION_SATISFIED: GLenum;
|
|
|
readonly COPY_READ_BUFFER: GLenum;
|
|
|
readonly COPY_READ_BUFFER_BINDING: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
|
|
|
readonly CURRENT_QUERY: GLenum;
|
|
|
readonly DEPTH: GLenum;
|
|
|
readonly DEPTH24_STENCIL8: GLenum;
|
|
|
readonly DEPTH32F_STENCIL8: GLenum;
|
|
|
readonly DEPTH_COMPONENT24: GLenum;
|
|
|
readonly DEPTH_COMPONENT32F: GLenum;
|
|
|
readonly DRAW_BUFFER0: GLenum;
|
|
|
readonly DRAW_BUFFER1: GLenum;
|
|
|
readonly DRAW_BUFFER10: GLenum;
|
|
|
readonly DRAW_BUFFER11: GLenum;
|
|
|
readonly DRAW_BUFFER12: GLenum;
|
|
|
readonly DRAW_BUFFER13: GLenum;
|
|
|
readonly DRAW_BUFFER14: GLenum;
|
|
|
readonly DRAW_BUFFER15: GLenum;
|
|
|
readonly DRAW_BUFFER2: GLenum;
|
|
|
readonly DRAW_BUFFER3: GLenum;
|
|
|
readonly DRAW_BUFFER4: GLenum;
|
|
|
readonly DRAW_BUFFER5: GLenum;
|
|
|
readonly DRAW_BUFFER6: GLenum;
|
|
|
readonly DRAW_BUFFER7: GLenum;
|
|
|
readonly DRAW_BUFFER8: GLenum;
|
|
|
readonly DRAW_BUFFER9: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly DYNAMIC_COPY: GLenum;
|
|
|
readonly DYNAMIC_READ: GLenum;
|
|
|
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
|
|
|
readonly FLOAT_MAT2x3: GLenum;
|
|
|
readonly FLOAT_MAT2x4: GLenum;
|
|
|
readonly FLOAT_MAT3x2: GLenum;
|
|
|
readonly FLOAT_MAT3x4: GLenum;
|
|
|
readonly FLOAT_MAT4x2: GLenum;
|
|
|
readonly FLOAT_MAT4x3: GLenum;
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
|
|
|
readonly FRAMEBUFFER_DEFAULT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
|
|
|
readonly HALF_FLOAT: GLenum;
|
|
|
readonly INTERLEAVED_ATTRIBS: GLenum;
|
|
|
readonly INT_2_10_10_10_REV: GLenum;
|
|
|
readonly INT_SAMPLER_2D: GLenum;
|
|
|
readonly INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly INT_SAMPLER_3D: GLenum;
|
|
|
readonly INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly INVALID_INDEX: GLenum;
|
|
|
readonly MAX: GLenum;
|
|
|
readonly MAX_3D_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
|
|
|
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS: GLenum;
|
|
|
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS: GLenum;
|
|
|
readonly MAX_ELEMENTS_INDICES: GLenum;
|
|
|
readonly MAX_ELEMENTS_VERTICES: GLenum;
|
|
|
readonly MAX_ELEMENT_INDEX: GLenum;
|
|
|
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly MAX_SAMPLES: GLenum;
|
|
|
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
|
|
|
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
|
|
|
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
|
|
|
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
|
|
|
readonly MAX_VARYING_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MIN: GLenum;
|
|
|
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly OBJECT_TYPE: GLenum;
|
|
|
readonly PACK_ROW_LENGTH: GLenum;
|
|
|
readonly PACK_SKIP_PIXELS: GLenum;
|
|
|
readonly PACK_SKIP_ROWS: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
|
|
|
readonly QUERY_RESULT: GLenum;
|
|
|
readonly QUERY_RESULT_AVAILABLE: GLenum;
|
|
|
readonly R11F_G11F_B10F: GLenum;
|
|
|
readonly R16F: GLenum;
|
|
|
readonly R16I: GLenum;
|
|
|
readonly R16UI: GLenum;
|
|
|
readonly R32F: GLenum;
|
|
|
readonly R32I: GLenum;
|
|
|
readonly R32UI: GLenum;
|
|
|
readonly R8: GLenum;
|
|
|
readonly R8I: GLenum;
|
|
|
readonly R8UI: GLenum;
|
|
|
readonly R8_SNORM: GLenum;
|
|
|
readonly RASTERIZER_DISCARD: GLenum;
|
|
|
readonly READ_BUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly RED: GLenum;
|
|
|
readonly RED_INTEGER: GLenum;
|
|
|
readonly RENDERBUFFER_SAMPLES: GLenum;
|
|
|
readonly RG: GLenum;
|
|
|
readonly RG16F: GLenum;
|
|
|
readonly RG16I: GLenum;
|
|
|
readonly RG16UI: GLenum;
|
|
|
readonly RG32F: GLenum;
|
|
|
readonly RG32I: GLenum;
|
|
|
readonly RG32UI: GLenum;
|
|
|
readonly RG8: GLenum;
|
|
|
readonly RG8I: GLenum;
|
|
|
readonly RG8UI: GLenum;
|
|
|
readonly RG8_SNORM: GLenum;
|
|
|
readonly RGB10_A2: GLenum;
|
|
|
readonly RGB10_A2UI: GLenum;
|
|
|
readonly RGB16F: GLenum;
|
|
|
readonly RGB16I: GLenum;
|
|
|
readonly RGB16UI: GLenum;
|
|
|
readonly RGB32F: GLenum;
|
|
|
readonly RGB32I: GLenum;
|
|
|
readonly RGB32UI: GLenum;
|
|
|
readonly RGB8: GLenum;
|
|
|
readonly RGB8I: GLenum;
|
|
|
readonly RGB8UI: GLenum;
|
|
|
readonly RGB8_SNORM: GLenum;
|
|
|
readonly RGB9_E5: GLenum;
|
|
|
readonly RGBA16F: GLenum;
|
|
|
readonly RGBA16I: GLenum;
|
|
|
readonly RGBA16UI: GLenum;
|
|
|
readonly RGBA32F: GLenum;
|
|
|
readonly RGBA32I: GLenum;
|
|
|
readonly RGBA32UI: GLenum;
|
|
|
readonly RGBA8: GLenum;
|
|
|
readonly RGBA8I: GLenum;
|
|
|
readonly RGBA8UI: GLenum;
|
|
|
readonly RGBA8_SNORM: GLenum;
|
|
|
readonly RGBA_INTEGER: GLenum;
|
|
|
readonly RGB_INTEGER: GLenum;
|
|
|
readonly RG_INTEGER: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
|
|
|
readonly SAMPLER_2D_SHADOW: GLenum;
|
|
|
readonly SAMPLER_3D: GLenum;
|
|
|
readonly SAMPLER_BINDING: GLenum;
|
|
|
readonly SAMPLER_CUBE_SHADOW: GLenum;
|
|
|
readonly SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly SIGNALED: GLenum;
|
|
|
readonly SIGNED_NORMALIZED: GLenum;
|
|
|
readonly SRGB: GLenum;
|
|
|
readonly SRGB8: GLenum;
|
|
|
readonly SRGB8_ALPHA8: GLenum;
|
|
|
readonly STATIC_COPY: GLenum;
|
|
|
readonly STATIC_READ: GLenum;
|
|
|
readonly STENCIL: GLenum;
|
|
|
readonly STREAM_COPY: GLenum;
|
|
|
readonly STREAM_READ: GLenum;
|
|
|
readonly SYNC_CONDITION: GLenum;
|
|
|
readonly SYNC_FENCE: GLenum;
|
|
|
readonly SYNC_FLAGS: GLenum;
|
|
|
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
|
|
|
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
|
|
|
readonly SYNC_STATUS: GLenum;
|
|
|
readonly TEXTURE_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_3D: GLenum;
|
|
|
readonly TEXTURE_BASE_LEVEL: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_BINDING_3D: GLenum;
|
|
|
readonly TEXTURE_COMPARE_FUNC: GLenum;
|
|
|
readonly TEXTURE_COMPARE_MODE: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
|
|
|
readonly TEXTURE_MAX_LEVEL: GLenum;
|
|
|
readonly TEXTURE_MAX_LOD: GLenum;
|
|
|
readonly TEXTURE_MIN_LOD: GLenum;
|
|
|
readonly TEXTURE_WRAP_R: GLenum;
|
|
|
readonly TIMEOUT_EXPIRED: GLenum;
|
|
|
readonly TIMEOUT_IGNORED: GLint64;
|
|
|
readonly TRANSFORM_FEEDBACK: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
|
|
|
readonly UNIFORM_ARRAY_STRIDE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
|
|
|
readonly UNIFORM_BLOCK_BINDING: GLenum;
|
|
|
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_INDEX: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
|
|
|
readonly UNIFORM_BUFFER: GLenum;
|
|
|
readonly UNIFORM_BUFFER_BINDING: GLenum;
|
|
|
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
|
|
|
readonly UNIFORM_BUFFER_SIZE: GLenum;
|
|
|
readonly UNIFORM_BUFFER_START: GLenum;
|
|
|
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
|
|
|
readonly UNIFORM_MATRIX_STRIDE: GLenum;
|
|
|
readonly UNIFORM_OFFSET: GLenum;
|
|
|
readonly UNIFORM_SIZE: GLenum;
|
|
|
readonly UNIFORM_TYPE: GLenum;
|
|
|
readonly UNPACK_IMAGE_HEIGHT: GLenum;
|
|
|
readonly UNPACK_ROW_LENGTH: GLenum;
|
|
|
readonly UNPACK_SKIP_IMAGES: GLenum;
|
|
|
readonly UNPACK_SKIP_PIXELS: GLenum;
|
|
|
readonly UNPACK_SKIP_ROWS: GLenum;
|
|
|
readonly UNSIGNALED: GLenum;
|
|
|
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_24_8: GLenum;
|
|
|
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC2: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC3: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC4: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ARRAY_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
|
|
|
readonly WAIT_FAILED: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextOverloads {
|
|
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
|
|
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
|
|
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
}
|
|
|
|
|
|
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
|
|
|
interface WebGLActiveInfo {
|
|
|
readonly name: string;
|
|
|
readonly size: GLint;
|
|
|
readonly type: GLenum;
|
|
|
}
|
|
|
|
|
|
declare var WebGLActiveInfo: {
|
|
|
prototype: WebGLActiveInfo;
|
|
|
new(): WebGLActiveInfo;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
|
|
|
interface WebGLBuffer {
|
|
|
}
|
|
|
|
|
|
declare var WebGLBuffer: {
|
|
|
prototype: WebGLBuffer;
|
|
|
new(): WebGLBuffer;
|
|
|
};
|
|
|
|
|
|
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
|
|
|
interface WebGLContextEvent extends Event {
|
|
|
readonly statusMessage: string;
|
|
|
}
|
|
|
|
|
|
declare var WebGLContextEvent: {
|
|
|
prototype: WebGLContextEvent;
|
|
|
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
|
|
|
interface WebGLFramebuffer {
|
|
|
}
|
|
|
|
|
|
declare var WebGLFramebuffer: {
|
|
|
prototype: WebGLFramebuffer;
|
|
|
new(): WebGLFramebuffer;
|
|
|
};
|
|
|
|
|
|
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
|
|
|
interface WebGLProgram {
|
|
|
}
|
|
|
|
|
|
declare var WebGLProgram: {
|
|
|
prototype: WebGLProgram;
|
|
|
new(): WebGLProgram;
|
|
|
};
|
|
|
|
|
|
interface WebGLQuery {
|
|
|
}
|
|
|
|
|
|
declare var WebGLQuery: {
|
|
|
prototype: WebGLQuery;
|
|
|
new(): WebGLQuery;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
|
|
|
interface WebGLRenderbuffer {
|
|
|
}
|
|
|
|
|
|
declare var WebGLRenderbuffer: {
|
|
|
prototype: WebGLRenderbuffer;
|
|
|
new(): WebGLRenderbuffer;
|
|
|
};
|
|
|
|
|
|
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
|
|
|
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
|
|
|
}
|
|
|
|
|
|
declare var WebGLRenderingContext: {
|
|
|
prototype: WebGLRenderingContext;
|
|
|
new(): WebGLRenderingContext;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
};
|
|
|
|
|
|
interface WebGLRenderingContextBase {
|
|
|
readonly canvas: HTMLCanvasElement;
|
|
|
readonly drawingBufferHeight: GLsizei;
|
|
|
readonly drawingBufferWidth: GLsizei;
|
|
|
activeTexture(texture: GLenum): void;
|
|
|
attachShader(program: WebGLProgram, shader: WebGLShader): void;
|
|
|
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
|
|
|
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
|
|
|
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
|
|
|
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
|
|
|
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
|
|
|
blendEquation(mode: GLenum): void;
|
|
|
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
|
|
|
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
|
|
|
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
|
|
|
checkFramebufferStatus(target: GLenum): GLenum;
|
|
|
clear(mask: GLbitfield): void;
|
|
|
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
|
|
|
clearDepth(depth: GLclampf): void;
|
|
|
clearStencil(s: GLint): void;
|
|
|
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
|
|
|
compileShader(shader: WebGLShader): void;
|
|
|
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
|
|
|
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
createBuffer(): WebGLBuffer | null;
|
|
|
createFramebuffer(): WebGLFramebuffer | null;
|
|
|
createProgram(): WebGLProgram | null;
|
|
|
createRenderbuffer(): WebGLRenderbuffer | null;
|
|
|
createShader(type: GLenum): WebGLShader | null;
|
|
|
createTexture(): WebGLTexture | null;
|
|
|
cullFace(mode: GLenum): void;
|
|
|
deleteBuffer(buffer: WebGLBuffer | null): void;
|
|
|
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
|
|
|
deleteProgram(program: WebGLProgram | null): void;
|
|
|
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
deleteShader(shader: WebGLShader | null): void;
|
|
|
deleteTexture(texture: WebGLTexture | null): void;
|
|
|
depthFunc(func: GLenum): void;
|
|
|
depthMask(flag: GLboolean): void;
|
|
|
depthRange(zNear: GLclampf, zFar: GLclampf): void;
|
|
|
detachShader(program: WebGLProgram, shader: WebGLShader): void;
|
|
|
disable(cap: GLenum): void;
|
|
|
disableVertexAttribArray(index: GLuint): void;
|
|
|
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
|
|
|
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
|
|
|
enable(cap: GLenum): void;
|
|
|
enableVertexAttribArray(index: GLuint): void;
|
|
|
finish(): void;
|
|
|
flush(): void;
|
|
|
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
|
|
|
frontFace(mode: GLenum): void;
|
|
|
generateMipmap(target: GLenum): void;
|
|
|
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
|
|
|
getAttribLocation(program: WebGLProgram, name: string): GLint;
|
|
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
|
getError(): GLenum;
|
|
|
getExtension(extensionName: "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_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
|
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | 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_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
|
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
|
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
|
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
|
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
|
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
|
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
|
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
|
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
|
getExtension(name: string): any;
|
|
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
|
getParameter(pname: GLenum): any;
|
|
|
getProgramInfoLog(program: WebGLProgram): string | null;
|
|
|
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
|
|
|
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
|
|
|
getShaderInfoLog(shader: WebGLShader): string | null;
|
|
|
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
|
|
|
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
|
|
|
getShaderSource(shader: WebGLShader): string | null;
|
|
|
getSupportedExtensions(): string[] | null;
|
|
|
getTexParameter(target: GLenum, pname: GLenum): any;
|
|
|
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
|
|
|
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
|
|
|
getVertexAttrib(index: GLuint, pname: GLenum): any;
|
|
|
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
|
|
|
hint(target: GLenum, mode: GLenum): void;
|
|
|
isBuffer(buffer: WebGLBuffer | null): GLboolean;
|
|
|
isContextLost(): boolean;
|
|
|
isEnabled(cap: GLenum): GLboolean;
|
|
|
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
|
|
|
isProgram(program: WebGLProgram | null): GLboolean;
|
|
|
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
|
|
|
isShader(shader: WebGLShader | null): GLboolean;
|
|
|
isTexture(texture: WebGLTexture | null): GLboolean;
|
|
|
lineWidth(width: GLfloat): void;
|
|
|
linkProgram(program: WebGLProgram): void;
|
|
|
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
|
|
|
polygonOffset(factor: GLfloat, units: GLfloat): void;
|
|
|
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
sampleCoverage(value: GLclampf, invert: GLboolean): void;
|
|
|
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
shaderSource(shader: WebGLShader, source: string): void;
|
|
|
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
|
|
|
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
|
|
|
stencilMask(mask: GLuint): void;
|
|
|
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
|
|
|
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
|
|
|
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
|
|
|
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
|
|
|
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
|
|
|
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
|
|
|
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
|
|
|
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
|
|
|
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
|
|
|
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
|
|
|
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
|
|
|
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
|
|
|
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
|
|
|
useProgram(program: WebGLProgram | null): void;
|
|
|
validateProgram(program: WebGLProgram): void;
|
|
|
vertexAttrib1f(index: GLuint, x: GLfloat): void;
|
|
|
vertexAttrib1fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
|
|
|
vertexAttrib2fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
|
|
|
vertexAttrib3fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
|
|
|
vertexAttrib4fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
|
|
|
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextOverloads {
|
|
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
|
|
|
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLSampler {
|
|
|
}
|
|
|
|
|
|
declare var WebGLSampler: {
|
|
|
prototype: WebGLSampler;
|
|
|
new(): WebGLSampler;
|
|
|
};
|
|
|
|
|
|
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
|
|
|
interface WebGLShader {
|
|
|
}
|
|
|
|
|
|
declare var WebGLShader: {
|
|
|
prototype: WebGLShader;
|
|
|
new(): WebGLShader;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
|
|
|
interface WebGLShaderPrecisionFormat {
|
|
|
readonly precision: GLint;
|
|
|
readonly rangeMax: GLint;
|
|
|
readonly rangeMin: GLint;
|
|
|
}
|
|
|
|
|
|
declare var WebGLShaderPrecisionFormat: {
|
|
|
prototype: WebGLShaderPrecisionFormat;
|
|
|
new(): WebGLShaderPrecisionFormat;
|
|
|
};
|
|
|
|
|
|
interface WebGLSync {
|
|
|
}
|
|
|
|
|
|
declare var WebGLSync: {
|
|
|
prototype: WebGLSync;
|
|
|
new(): WebGLSync;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
|
|
|
interface WebGLTexture {
|
|
|
}
|
|
|
|
|
|
declare var WebGLTexture: {
|
|
|
prototype: WebGLTexture;
|
|
|
new(): WebGLTexture;
|
|
|
};
|
|
|
|
|
|
interface WebGLTransformFeedback {
|
|
|
}
|
|
|
|
|
|
declare var WebGLTransformFeedback: {
|
|
|
prototype: WebGLTransformFeedback;
|
|
|
new(): WebGLTransformFeedback;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
|
|
|
interface WebGLUniformLocation {
|
|
|
}
|
|
|
|
|
|
declare var WebGLUniformLocation: {
|
|
|
prototype: WebGLUniformLocation;
|
|
|
new(): WebGLUniformLocation;
|
|
|
};
|
|
|
|
|
|
interface WebGLVertexArrayObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLVertexArrayObject: {
|
|
|
prototype: WebGLVertexArrayObject;
|
|
|
new(): WebGLVertexArrayObject;
|
|
|
};
|
|
|
|
|
|
interface WebGLVertexArrayObjectOES {
|
|
|
}
|
|
|
|
|
|
interface WebSocketEventMap {
|
|
|
"close": CloseEvent;
|
|
|
"error": Event;
|
|
|
"message": MessageEvent;
|
|
|
"open": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
|
|
|
interface WebSocket extends EventTarget {
|
|
|
/**
|
|
|
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
|
|
|
*
|
|
|
* Can be set, to change how binary data is returned. The default is "blob".
|
|
|
*/
|
|
|
binaryType: BinaryType;
|
|
|
/**
|
|
|
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
|
|
|
*
|
|
|
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
|
|
|
*/
|
|
|
readonly bufferedAmount: number;
|
|
|
/**
|
|
|
* Returns the extensions selected by the server, if any.
|
|
|
*/
|
|
|
readonly extensions: string;
|
|
|
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
|
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
|
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
|
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
|
|
|
*/
|
|
|
readonly protocol: string;
|
|
|
/**
|
|
|
* Returns the state of the WebSocket object's connection. It can have the values described below.
|
|
|
*/
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns the URL that was used to establish the WebSocket connection.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
/**
|
|
|
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
|
|
|
*/
|
|
|
close(code?: number, reason?: string): void;
|
|
|
/**
|
|
|
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
|
|
|
*/
|
|
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CLOSING: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
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 CLOSED: number;
|
|
|
readonly CLOSING: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
};
|
|
|
|
|
|
/** Events that occur due to the user moving a mouse wheel or similar input device. */
|
|
|
interface WheelEvent extends MouseEvent {
|
|
|
readonly deltaMode: number;
|
|
|
readonly deltaX: number;
|
|
|
readonly deltaY: number;
|
|
|
readonly deltaZ: number;
|
|
|
readonly DOM_DELTA_LINE: number;
|
|
|
readonly DOM_DELTA_PAGE: number;
|
|
|
readonly DOM_DELTA_PIXEL: number;
|
|
|
}
|
|
|
|
|
|
declare var WheelEvent: {
|
|
|
prototype: WheelEvent;
|
|
|
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
|
|
|
readonly DOM_DELTA_LINE: number;
|
|
|
readonly DOM_DELTA_PAGE: number;
|
|
|
readonly DOM_DELTA_PIXEL: number;
|
|
|
};
|
|
|
|
|
|
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
|
|
|
"devicemotion": DeviceMotionEvent;
|
|
|
"deviceorientation": DeviceOrientationEvent;
|
|
|
"gamepadconnected": GamepadEvent;
|
|
|
"gamepaddisconnected": GamepadEvent;
|
|
|
"orientationchange": Event;
|
|
|
}
|
|
|
|
|
|
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
|
|
|
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
|
|
|
/** @deprecated This is a legacy alias of \`navigator\`. */
|
|
|
readonly clientInformation: Navigator;
|
|
|
/**
|
|
|
* Returns true if the window has been closed, false otherwise.
|
|
|
*/
|
|
|
readonly closed: boolean;
|
|
|
/**
|
|
|
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
|
|
|
*/
|
|
|
readonly customElements: CustomElementRegistry;
|
|
|
readonly devicePixelRatio: number;
|
|
|
readonly document: Document;
|
|
|
/** @deprecated */
|
|
|
readonly event: Event | undefined;
|
|
|
/** @deprecated */
|
|
|
readonly external: External;
|
|
|
readonly frameElement: Element | null;
|
|
|
readonly frames: WindowProxy;
|
|
|
readonly history: History;
|
|
|
readonly innerHeight: number;
|
|
|
readonly innerWidth: number;
|
|
|
readonly length: number;
|
|
|
get location(): Location;
|
|
|
set location(href: string | Location);
|
|
|
/**
|
|
|
* Returns true if the location bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
readonly locationbar: BarProp;
|
|
|
/**
|
|
|
* Returns true if the menu bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
readonly menubar: BarProp;
|
|
|
name: string;
|
|
|
readonly navigator: Navigator;
|
|
|
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
|
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
|
/** @deprecated */
|
|
|
onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
|
opener: any;
|
|
|
/** @deprecated */
|
|
|
readonly orientation: number;
|
|
|
readonly outerHeight: number;
|
|
|
readonly outerWidth: number;
|
|
|
/** @deprecated This is a legacy alias of \`scrollX\`. */
|
|
|
readonly pageXOffset: number;
|
|
|
/** @deprecated This is a legacy alias of \`scrollY\`. */
|
|
|
readonly pageYOffset: number;
|
|
|
/** Refers to either the parent WindowProxy, or itself. It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */
|
|
|
readonly parent: WindowProxy;
|
|
|
/**
|
|
|
* Returns true if the personal bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
readonly personalbar: BarProp;
|
|
|
readonly screen: Screen;
|
|
|
readonly screenLeft: number;
|
|
|
readonly screenTop: number;
|
|
|
readonly screenX: number;
|
|
|
readonly screenY: number;
|
|
|
readonly scrollX: number;
|
|
|
readonly scrollY: number;
|
|
|
/**
|
|
|
* Returns true if the scrollbars are visible; otherwise, returns false.
|
|
|
*/
|
|
|
readonly scrollbars: BarProp;
|
|
|
readonly self: Window & typeof globalThis;
|
|
|
readonly speechSynthesis: SpeechSynthesis;
|
|
|
/** @deprecated */
|
|
|
status: string;
|
|
|
/**
|
|
|
* Returns true if the status bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
readonly statusbar: BarProp;
|
|
|
/**
|
|
|
* Returns true if the toolbar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
readonly toolbar: BarProp;
|
|
|
readonly top: WindowProxy | null;
|
|
|
readonly visualViewport: VisualViewport;
|
|
|
readonly window: Window & typeof globalThis;
|
|
|
alert(message?: any): void;
|
|
|
blur(): void;
|
|
|
cancelIdleCallback(handle: number): void;
|
|
|
/** @deprecated */
|
|
|
captureEvents(): void;
|
|
|
/**
|
|
|
* Closes the window.
|
|
|
*/
|
|
|
close(): void;
|
|
|
confirm(message?: string): boolean;
|
|
|
/**
|
|
|
* Moves the focus to the window's browsing context, if any.
|
|
|
*/
|
|
|
focus(): void;
|
|
|
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
|
getSelection(): Selection | null;
|
|
|
matchMedia(query: string): MediaQueryList;
|
|
|
moveBy(x: number, y: number): void;
|
|
|
moveTo(x: number, y: number): void;
|
|
|
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
|
|
|
/**
|
|
|
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
|
|
|
*
|
|
|
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
|
*
|
|
|
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
|
|
|
*
|
|
|
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
|
|
|
*
|
|
|
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
|
|
|
*/
|
|
|
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
|
|
|
postMessage(message: any, options?: WindowPostMessageOptions): void;
|
|
|
print(): void;
|
|
|
prompt(message?: string, _default?: string): string | null;
|
|
|
/** @deprecated */
|
|
|
releaseEvents(): void;
|
|
|
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
|
|
|
resizeBy(x: number, y: number): void;
|
|
|
resizeTo(width: number, height: number): void;
|
|
|
scroll(options?: ScrollToOptions): void;
|
|
|
scroll(x: number, y: number): void;
|
|
|
scrollBy(options?: ScrollToOptions): void;
|
|
|
scrollBy(x: number, y: number): void;
|
|
|
scrollTo(options?: ScrollToOptions): void;
|
|
|
scrollTo(x: number, y: number): void;
|
|
|
/**
|
|
|
* Cancels the document load.
|
|
|
*/
|
|
|
stop(): void;
|
|
|
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: Window;
|
|
|
}
|
|
|
|
|
|
declare var Window: {
|
|
|
prototype: Window;
|
|
|
new(): Window;
|
|
|
};
|
|
|
|
|
|
interface WindowEventHandlersEventMap {
|
|
|
"afterprint": Event;
|
|
|
"beforeprint": Event;
|
|
|
"beforeunload": BeforeUnloadEvent;
|
|
|
"gamepadconnected": Event;
|
|
|
"gamepaddisconnected": Event;
|
|
|
"hashchange": Event;
|
|
|
"languagechange": Event;
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
"offline": Event;
|
|
|
"online": Event;
|
|
|
"pagehide": PageTransitionEvent;
|
|
|
"pageshow": PageTransitionEvent;
|
|
|
"popstate": PopStateEvent;
|
|
|
"rejectionhandled": PromiseRejectionEvent;
|
|
|
"storage": StorageEvent;
|
|
|
"unhandledrejection": PromiseRejectionEvent;
|
|
|
"unload": Event;
|
|
|
}
|
|
|
|
|
|
interface WindowEventHandlers {
|
|
|
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
|
|
|
ongamepadconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
ongamepaddisconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onhashchange: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
|
|
|
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
|
|
|
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
|
|
|
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
|
|
|
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
|
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
|
|
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
|
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
interface WindowLocalStorage {
|
|
|
readonly localStorage: Storage;
|
|
|
}
|
|
|
|
|
|
interface WindowOrWorkerGlobalScope {
|
|
|
readonly caches: CacheStorage;
|
|
|
readonly crossOriginIsolated: boolean;
|
|
|
readonly crypto: Crypto;
|
|
|
readonly indexedDB: IDBFactory;
|
|
|
readonly isSecureContext: boolean;
|
|
|
readonly origin: string;
|
|
|
readonly performance: Performance;
|
|
|
atob(data: string): string;
|
|
|
btoa(data: string): string;
|
|
|
clearInterval(handle?: number): void;
|
|
|
clearTimeout(handle?: number): void;
|
|
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
|
queueMicrotask(callback: VoidFunction): void;
|
|
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
}
|
|
|
|
|
|
interface WindowSessionStorage {
|
|
|
readonly sessionStorage: Storage;
|
|
|
}
|
|
|
|
|
|
interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
|
|
|
interface Worker extends EventTarget, AbstractWorker {
|
|
|
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
|
*/
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
/**
|
|
|
* Aborts worker's associated global environment.
|
|
|
*/
|
|
|
terminate(): void;
|
|
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Worker: {
|
|
|
prototype: Worker;
|
|
|
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
|
|
|
};
|
|
|
|
|
|
interface Worklet {
|
|
|
/**
|
|
|
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
|
|
|
*
|
|
|
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
|
|
|
*
|
|
|
* Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
|
|
|
*/
|
|
|
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Worklet: {
|
|
|
prototype: Worklet;
|
|
|
new(): Worklet;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
|
|
|
interface WritableStream<W = any> {
|
|
|
readonly locked: boolean;
|
|
|
abort(reason?: any): Promise<void>;
|
|
|
close(): Promise<void>;
|
|
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
|
}
|
|
|
|
|
|
declare var WritableStream: {
|
|
|
prototype: WritableStream;
|
|
|
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
|
interface WritableStreamDefaultController {
|
|
|
error(e?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var WritableStreamDefaultController: {
|
|
|
prototype: WritableStreamDefaultController;
|
|
|
new(): WritableStreamDefaultController;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
|
|
|
interface WritableStreamDefaultWriter<W = any> {
|
|
|
readonly closed: Promise<undefined>;
|
|
|
readonly desiredSize: number | null;
|
|
|
readonly ready: Promise<undefined>;
|
|
|
abort(reason?: any): Promise<void>;
|
|
|
close(): Promise<void>;
|
|
|
releaseLock(): void;
|
|
|
write(chunk?: W): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var WritableStreamDefaultWriter: {
|
|
|
prototype: WritableStreamDefaultWriter;
|
|
|
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
|
|
|
};
|
|
|
|
|
|
/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
|
|
|
interface XMLDocument extends Document {
|
|
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLDocument: {
|
|
|
prototype: XMLDocument;
|
|
|
new(): XMLDocument;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
|
|
|
"readystatechange": Event;
|
|
|
}
|
|
|
|
|
|
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
|
|
|
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns client's state.
|
|
|
*/
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns the response body.
|
|
|
*/
|
|
|
readonly response: any;
|
|
|
/**
|
|
|
* Returns response as text.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
|
|
|
*/
|
|
|
readonly responseText: string;
|
|
|
/**
|
|
|
* Returns the response type.
|
|
|
*
|
|
|
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
|
|
|
*
|
|
|
* When set: setting to "document" is ignored if current global object is not a Window object.
|
|
|
*
|
|
|
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
|
|
|
*
|
|
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
|
*/
|
|
|
responseType: XMLHttpRequestResponseType;
|
|
|
readonly responseURL: string;
|
|
|
/**
|
|
|
* Returns the response as document.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
|
|
|
*/
|
|
|
readonly responseXML: Document | null;
|
|
|
readonly status: number;
|
|
|
readonly statusText: string;
|
|
|
/**
|
|
|
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
|
|
|
*
|
|
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
|
*/
|
|
|
timeout: number;
|
|
|
/**
|
|
|
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
|
|
|
*/
|
|
|
readonly upload: XMLHttpRequestUpload;
|
|
|
/**
|
|
|
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
|
|
|
*
|
|
|
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
|
|
|
*/
|
|
|
withCredentials: boolean;
|
|
|
/**
|
|
|
* Cancels any network activity.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
getAllResponseHeaders(): string;
|
|
|
getResponseHeader(name: string): string | null;
|
|
|
/**
|
|
|
* Sets the request method, request URL, and synchronous flag.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
|
|
|
*
|
|
|
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
|
|
|
*
|
|
|
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
|
|
|
*/
|
|
|
open(method: string, url: string | URL): void;
|
|
|
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
|
|
|
/**
|
|
|
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if state is loading or done.
|
|
|
*/
|
|
|
overrideMimeType(mime: string): void;
|
|
|
/**
|
|
|
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
|
|
|
*/
|
|
|
send(body?: Document | XMLHttpRequestBodyInit | null): void;
|
|
|
/**
|
|
|
* Combines a header in author request headers.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
|
|
|
*/
|
|
|
setRequestHeader(name: string, value: string): void;
|
|
|
readonly DONE: number;
|
|
|
readonly HEADERS_RECEIVED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly OPENED: number;
|
|
|
readonly UNSENT: number;
|
|
|
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 DONE: number;
|
|
|
readonly HEADERS_RECEIVED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly OPENED: number;
|
|
|
readonly UNSENT: number;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestEventTargetEventMap {
|
|
|
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"error": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"load": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
}
|
|
|
|
|
|
interface XMLHttpRequestEventTarget extends EventTarget {
|
|
|
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLHttpRequestEventTarget: {
|
|
|
prototype: XMLHttpRequestEventTarget;
|
|
|
new(): XMLHttpRequestEventTarget;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
|
|
|
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLHttpRequestUpload: {
|
|
|
prototype: XMLHttpRequestUpload;
|
|
|
new(): XMLHttpRequestUpload;
|
|
|
};
|
|
|
|
|
|
/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
|
|
|
interface XMLSerializer {
|
|
|
serializeToString(root: Node): string;
|
|
|
}
|
|
|
|
|
|
declare var XMLSerializer: {
|
|
|
prototype: XMLSerializer;
|
|
|
new(): XMLSerializer;
|
|
|
};
|
|
|
|
|
|
/** The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */
|
|
|
interface XPathEvaluator extends XPathEvaluatorBase {
|
|
|
}
|
|
|
|
|
|
declare var XPathEvaluator: {
|
|
|
prototype: XPathEvaluator;
|
|
|
new(): XPathEvaluator;
|
|
|
};
|
|
|
|
|
|
interface XPathEvaluatorBase {
|
|
|
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
|
|
|
createNSResolver(nodeResolver: Node): XPathNSResolver;
|
|
|
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
|
|
|
}
|
|
|
|
|
|
/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
|
|
|
interface XPathExpression {
|
|
|
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
|
|
|
}
|
|
|
|
|
|
declare var XPathExpression: {
|
|
|
prototype: XPathExpression;
|
|
|
new(): XPathExpression;
|
|
|
};
|
|
|
|
|
|
/** The results generated by evaluating an XPath expression within the context of a given node. */
|
|
|
interface XPathResult {
|
|
|
readonly booleanValue: boolean;
|
|
|
readonly invalidIteratorState: boolean;
|
|
|
readonly numberValue: number;
|
|
|
readonly resultType: number;
|
|
|
readonly singleNodeValue: Node | null;
|
|
|
readonly snapshotLength: number;
|
|
|
readonly stringValue: string;
|
|
|
iterateNext(): Node | null;
|
|
|
snapshotItem(index: number): Node | null;
|
|
|
readonly ANY_TYPE: number;
|
|
|
readonly ANY_UNORDERED_NODE_TYPE: number;
|
|
|
readonly BOOLEAN_TYPE: number;
|
|
|
readonly FIRST_ORDERED_NODE_TYPE: number;
|
|
|
readonly NUMBER_TYPE: number;
|
|
|
readonly ORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
readonly STRING_TYPE: number;
|
|
|
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
}
|
|
|
|
|
|
declare var XPathResult: {
|
|
|
prototype: XPathResult;
|
|
|
new(): XPathResult;
|
|
|
readonly ANY_TYPE: number;
|
|
|
readonly ANY_UNORDERED_NODE_TYPE: number;
|
|
|
readonly BOOLEAN_TYPE: number;
|
|
|
readonly FIRST_ORDERED_NODE_TYPE: number;
|
|
|
readonly NUMBER_TYPE: number;
|
|
|
readonly ORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
readonly STRING_TYPE: number;
|
|
|
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
};
|
|
|
|
|
|
/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
|
|
|
interface XSLTProcessor {
|
|
|
clearParameters(): void;
|
|
|
getParameter(namespaceURI: string | null, localName: string): any;
|
|
|
importStylesheet(style: Node): void;
|
|
|
removeParameter(namespaceURI: string | null, localName: string): void;
|
|
|
reset(): void;
|
|
|
setParameter(namespaceURI: string | null, localName: string, value: any): void;
|
|
|
transformToDocument(source: Node): Document;
|
|
|
transformToFragment(source: Node, output: Document): DocumentFragment;
|
|
|
}
|
|
|
|
|
|
declare var XSLTProcessor: {
|
|
|
prototype: XSLTProcessor;
|
|
|
new(): XSLTProcessor;
|
|
|
};
|
|
|
|
|
|
interface Console {
|
|
|
assert(condition?: boolean, ...data: any[]): void;
|
|
|
clear(): void;
|
|
|
count(label?: string): void;
|
|
|
countReset(label?: string): void;
|
|
|
debug(...data: any[]): void;
|
|
|
dir(item?: any, options?: any): void;
|
|
|
dirxml(...data: any[]): void;
|
|
|
error(...data: any[]): void;
|
|
|
group(...data: any[]): void;
|
|
|
groupCollapsed(...data: any[]): void;
|
|
|
groupEnd(): void;
|
|
|
info(...data: any[]): void;
|
|
|
log(...data: any[]): void;
|
|
|
table(tabularData?: any, properties?: string[]): void;
|
|
|
time(label?: string): void;
|
|
|
timeEnd(label?: string): void;
|
|
|
timeLog(label?: string, ...data: any[]): void;
|
|
|
timeStamp(label?: string): void;
|
|
|
trace(...data: any[]): void;
|
|
|
warn(...data: any[]): void;
|
|
|
}
|
|
|
|
|
|
declare var console: Console;
|
|
|
|
|
|
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
|
|
|
declare namespace CSS {
|
|
|
function escape(ident: string): string;
|
|
|
function supports(property: string, value: string): boolean;
|
|
|
function supports(conditionText: string): boolean;
|
|
|
}
|
|
|
|
|
|
declare namespace WebAssembly {
|
|
|
interface CompileError extends Error {
|
|
|
}
|
|
|
|
|
|
var CompileError: {
|
|
|
prototype: CompileError;
|
|
|
new(): CompileError;
|
|
|
};
|
|
|
|
|
|
interface Global {
|
|
|
value: any;
|
|
|
valueOf(): any;
|
|
|
}
|
|
|
|
|
|
var Global: {
|
|
|
prototype: Global;
|
|
|
new(descriptor: GlobalDescriptor, v?: any): Global;
|
|
|
};
|
|
|
|
|
|
interface Instance {
|
|
|
readonly exports: Exports;
|
|
|
}
|
|
|
|
|
|
var Instance: {
|
|
|
prototype: Instance;
|
|
|
new(module: Module, importObject?: Imports): Instance;
|
|
|
};
|
|
|
|
|
|
interface LinkError extends Error {
|
|
|
}
|
|
|
|
|
|
var LinkError: {
|
|
|
prototype: LinkError;
|
|
|
new(): LinkError;
|
|
|
};
|
|
|
|
|
|
interface Memory {
|
|
|
readonly buffer: ArrayBuffer;
|
|
|
grow(delta: number): number;
|
|
|
}
|
|
|
|
|
|
var Memory: {
|
|
|
prototype: Memory;
|
|
|
new(descriptor: MemoryDescriptor): Memory;
|
|
|
};
|
|
|
|
|
|
interface Module {
|
|
|
}
|
|
|
|
|
|
var Module: {
|
|
|
prototype: Module;
|
|
|
new(bytes: BufferSource): Module;
|
|
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
|
};
|
|
|
|
|
|
interface RuntimeError extends Error {
|
|
|
}
|
|
|
|
|
|
var RuntimeError: {
|
|
|
prototype: RuntimeError;
|
|
|
new(): RuntimeError;
|
|
|
};
|
|
|
|
|
|
interface Table {
|
|
|
readonly length: number;
|
|
|
get(index: number): any;
|
|
|
grow(delta: number, value?: any): number;
|
|
|
set(index: number, value?: any): void;
|
|
|
}
|
|
|
|
|
|
var Table: {
|
|
|
prototype: Table;
|
|
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
|
};
|
|
|
|
|
|
interface GlobalDescriptor {
|
|
|
mutable?: boolean;
|
|
|
value: ValueType;
|
|
|
}
|
|
|
|
|
|
interface MemoryDescriptor {
|
|
|
initial: number;
|
|
|
maximum?: number;
|
|
|
shared?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ModuleExportDescriptor {
|
|
|
kind: ImportExportKind;
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface ModuleImportDescriptor {
|
|
|
kind: ImportExportKind;
|
|
|
module: string;
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface TableDescriptor {
|
|
|
element: TableKind;
|
|
|
initial: number;
|
|
|
maximum?: number;
|
|
|
}
|
|
|
|
|
|
interface WebAssemblyInstantiatedSource {
|
|
|
instance: Instance;
|
|
|
module: Module;
|
|
|
}
|
|
|
|
|
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
|
type TableKind = "anyfunc" | "externref";
|
|
|
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
|
type ExportValue = Function | Global | Memory | Table;
|
|
|
type Exports = Record<string, ExportValue>;
|
|
|
type ImportValue = ExportValue | number;
|
|
|
type Imports = Record<string, ModuleImports>;
|
|
|
type ModuleImports = Record<string, ImportValue>;
|
|
|
function compile(bytes: BufferSource): Promise<Module>;
|
|
|
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
|
|
|
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
|
function validate(bytes: BufferSource): boolean;
|
|
|
}
|
|
|
|
|
|
interface BlobCallback {
|
|
|
(blob: Blob | null): void;
|
|
|
}
|
|
|
|
|
|
interface CustomElementConstructor {
|
|
|
new (...params: any[]): HTMLElement;
|
|
|
}
|
|
|
|
|
|
interface DecodeErrorCallback {
|
|
|
(error: DOMException): void;
|
|
|
}
|
|
|
|
|
|
interface DecodeSuccessCallback {
|
|
|
(decodedData: AudioBuffer): void;
|
|
|
}
|
|
|
|
|
|
interface ErrorCallback {
|
|
|
(err: DOMException): void;
|
|
|
}
|
|
|
|
|
|
interface FileCallback {
|
|
|
(file: File): void;
|
|
|
}
|
|
|
|
|
|
interface FileSystemEntriesCallback {
|
|
|
(entries: FileSystemEntry[]): void;
|
|
|
}
|
|
|
|
|
|
interface FileSystemEntryCallback {
|
|
|
(entry: FileSystemEntry): void;
|
|
|
}
|
|
|
|
|
|
interface FrameRequestCallback {
|
|
|
(time: DOMHighResTimeStamp): void;
|
|
|
}
|
|
|
|
|
|
interface FunctionStringCallback {
|
|
|
(data: string): void;
|
|
|
}
|
|
|
|
|
|
interface IdleRequestCallback {
|
|
|
(deadline: IdleDeadline): void;
|
|
|
}
|
|
|
|
|
|
interface IntersectionObserverCallback {
|
|
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
|
}
|
|
|
|
|
|
interface MediaSessionActionHandler {
|
|
|
(details: MediaSessionActionDetails): void;
|
|
|
}
|
|
|
|
|
|
interface MutationCallback {
|
|
|
(mutations: MutationRecord[], observer: MutationObserver): void;
|
|
|
}
|
|
|
|
|
|
interface NotificationPermissionCallback {
|
|
|
(permission: NotificationPermission): void;
|
|
|
}
|
|
|
|
|
|
interface OnBeforeUnloadEventHandlerNonNull {
|
|
|
(event: Event): string | null;
|
|
|
}
|
|
|
|
|
|
interface OnErrorEventHandlerNonNull {
|
|
|
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
|
|
|
}
|
|
|
|
|
|
interface PerformanceObserverCallback {
|
|
|
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
|
|
|
}
|
|
|
|
|
|
interface PositionCallback {
|
|
|
(position: GeolocationPosition): void;
|
|
|
}
|
|
|
|
|
|
interface PositionErrorCallback {
|
|
|
(positionError: GeolocationPositionError): void;
|
|
|
}
|
|
|
|
|
|
interface QueuingStrategySize<T = any> {
|
|
|
(chunk?: T): number;
|
|
|
}
|
|
|
|
|
|
interface RTCPeerConnectionErrorCallback {
|
|
|
(error: DOMException): void;
|
|
|
}
|
|
|
|
|
|
interface RTCSessionDescriptionCallback {
|
|
|
(description: RTCSessionDescriptionInit): void;
|
|
|
}
|
|
|
|
|
|
interface RemotePlaybackAvailabilityCallback {
|
|
|
(available: boolean): void;
|
|
|
}
|
|
|
|
|
|
interface ResizeObserverCallback {
|
|
|
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
|
|
|
}
|
|
|
|
|
|
interface TransformerFlushCallback<O> {
|
|
|
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface TransformerStartCallback<O> {
|
|
|
(controller: TransformStreamDefaultController<O>): any;
|
|
|
}
|
|
|
|
|
|
interface TransformerTransformCallback<I, O> {
|
|
|
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkAbortCallback {
|
|
|
(reason?: any): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkCloseCallback {
|
|
|
(): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkStartCallback {
|
|
|
(controller: WritableStreamDefaultController): any;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkWriteCallback<W> {
|
|
|
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSourceCancelCallback {
|
|
|
(reason?: any): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSourcePullCallback<R> {
|
|
|
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSourceStartCallback<R> {
|
|
|
(controller: ReadableStreamController<R>): any;
|
|
|
}
|
|
|
|
|
|
interface VoidFunction {
|
|
|
(): void;
|
|
|
}
|
|
|
|
|
|
interface HTMLElementTagNameMap {
|
|
|
"a": HTMLAnchorElement;
|
|
|
"abbr": HTMLElement;
|
|
|
"address": HTMLElement;
|
|
|
"area": HTMLAreaElement;
|
|
|
"article": HTMLElement;
|
|
|
"aside": HTMLElement;
|
|
|
"audio": HTMLAudioElement;
|
|
|
"b": HTMLElement;
|
|
|
"base": HTMLBaseElement;
|
|
|
"bdi": HTMLElement;
|
|
|
"bdo": HTMLElement;
|
|
|
"blockquote": HTMLQuoteElement;
|
|
|
"body": HTMLBodyElement;
|
|
|
"br": HTMLBRElement;
|
|
|
"button": HTMLButtonElement;
|
|
|
"canvas": HTMLCanvasElement;
|
|
|
"caption": HTMLTableCaptionElement;
|
|
|
"cite": HTMLElement;
|
|
|
"code": HTMLElement;
|
|
|
"col": HTMLTableColElement;
|
|
|
"colgroup": HTMLTableColElement;
|
|
|
"data": HTMLDataElement;
|
|
|
"datalist": HTMLDataListElement;
|
|
|
"dd": HTMLElement;
|
|
|
"del": HTMLModElement;
|
|
|
"details": HTMLDetailsElement;
|
|
|
"dfn": HTMLElement;
|
|
|
"dialog": HTMLDialogElement;
|
|
|
"dir": HTMLDirectoryElement;
|
|
|
"div": HTMLDivElement;
|
|
|
"dl": HTMLDListElement;
|
|
|
"dt": HTMLElement;
|
|
|
"em": HTMLElement;
|
|
|
"embed": HTMLEmbedElement;
|
|
|
"fieldset": HTMLFieldSetElement;
|
|
|
"figcaption": HTMLElement;
|
|
|
"figure": HTMLElement;
|
|
|
"font": HTMLFontElement;
|
|
|
"footer": HTMLElement;
|
|
|
"form": HTMLFormElement;
|
|
|
"frame": HTMLFrameElement;
|
|
|
"frameset": HTMLFrameSetElement;
|
|
|
"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;
|
|
|
"marquee": HTMLMarqueeElement;
|
|
|
"menu": HTMLMenuElement;
|
|
|
"meta": HTMLMetaElement;
|
|
|
"meter": HTMLMeterElement;
|
|
|
"nav": HTMLElement;
|
|
|
"noscript": HTMLElement;
|
|
|
"object": HTMLObjectElement;
|
|
|
"ol": HTMLOListElement;
|
|
|
"optgroup": HTMLOptGroupElement;
|
|
|
"option": HTMLOptionElement;
|
|
|
"output": HTMLOutputElement;
|
|
|
"p": HTMLParagraphElement;
|
|
|
"param": HTMLParamElement;
|
|
|
"picture": HTMLPictureElement;
|
|
|
"pre": HTMLPreElement;
|
|
|
"progress": HTMLProgressElement;
|
|
|
"q": HTMLQuoteElement;
|
|
|
"rp": HTMLElement;
|
|
|
"rt": HTMLElement;
|
|
|
"ruby": HTMLElement;
|
|
|
"s": HTMLElement;
|
|
|
"samp": HTMLElement;
|
|
|
"script": HTMLScriptElement;
|
|
|
"section": HTMLElement;
|
|
|
"select": HTMLSelectElement;
|
|
|
"slot": HTMLSlotElement;
|
|
|
"small": HTMLElement;
|
|
|
"source": HTMLSourceElement;
|
|
|
"span": HTMLSpanElement;
|
|
|
"strong": HTMLElement;
|
|
|
"style": HTMLStyleElement;
|
|
|
"sub": HTMLElement;
|
|
|
"summary": HTMLElement;
|
|
|
"sup": HTMLElement;
|
|
|
"table": HTMLTableElement;
|
|
|
"tbody": HTMLTableSectionElement;
|
|
|
"td": HTMLTableCellElement;
|
|
|
"template": HTMLTemplateElement;
|
|
|
"textarea": HTMLTextAreaElement;
|
|
|
"tfoot": HTMLTableSectionElement;
|
|
|
"th": HTMLTableCellElement;
|
|
|
"thead": HTMLTableSectionElement;
|
|
|
"time": HTMLTimeElement;
|
|
|
"title": HTMLTitleElement;
|
|
|
"tr": HTMLTableRowElement;
|
|
|
"track": HTMLTrackElement;
|
|
|
"u": HTMLElement;
|
|
|
"ul": HTMLUListElement;
|
|
|
"var": HTMLElement;
|
|
|
"video": HTMLVideoElement;
|
|
|
"wbr": HTMLElement;
|
|
|
}
|
|
|
|
|
|
interface HTMLElementDeprecatedTagNameMap {
|
|
|
"listing": HTMLPreElement;
|
|
|
"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;
|
|
|
}
|
|
|
|
|
|
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
|
|
|
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
|
|
|
|
|
|
declare var Audio: {
|
|
|
new(src?: string): HTMLAudioElement;
|
|
|
};
|
|
|
declare var Image: {
|
|
|
new(width?: number, height?: number): HTMLImageElement;
|
|
|
};
|
|
|
declare var Option: {
|
|
|
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
|
|
|
};
|
|
|
/** @deprecated This is a legacy alias of \`navigator\`. */
|
|
|
declare var clientInformation: Navigator;
|
|
|
/**
|
|
|
* Returns true if the window has been closed, false otherwise.
|
|
|
*/
|
|
|
declare var closed: boolean;
|
|
|
/**
|
|
|
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
|
|
|
*/
|
|
|
declare var customElements: CustomElementRegistry;
|
|
|
declare var devicePixelRatio: number;
|
|
|
declare var document: Document;
|
|
|
/** @deprecated */
|
|
|
declare var event: Event | undefined;
|
|
|
/** @deprecated */
|
|
|
declare var external: External;
|
|
|
declare var frameElement: Element | null;
|
|
|
declare var frames: WindowProxy;
|
|
|
declare var history: History;
|
|
|
declare var innerHeight: number;
|
|
|
declare var innerWidth: number;
|
|
|
declare var length: number;
|
|
|
declare var location: Location;
|
|
|
/**
|
|
|
* Returns true if the location bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
declare var locationbar: BarProp;
|
|
|
/**
|
|
|
* Returns true if the menu bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
declare var menubar: BarProp;
|
|
|
/** @deprecated */
|
|
|
declare const name: void;
|
|
|
declare var navigator: Navigator;
|
|
|
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
|
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
|
/** @deprecated */
|
|
|
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var opener: any;
|
|
|
/** @deprecated */
|
|
|
declare var orientation: number;
|
|
|
declare var outerHeight: number;
|
|
|
declare var outerWidth: number;
|
|
|
/** @deprecated This is a legacy alias of \`scrollX\`. */
|
|
|
declare var pageXOffset: number;
|
|
|
/** @deprecated This is a legacy alias of \`scrollY\`. */
|
|
|
declare var pageYOffset: number;
|
|
|
/** Refers to either the parent WindowProxy, or itself. It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */
|
|
|
declare var parent: WindowProxy;
|
|
|
/**
|
|
|
* Returns true if the personal bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
declare var personalbar: BarProp;
|
|
|
declare var screen: Screen;
|
|
|
declare var screenLeft: number;
|
|
|
declare var screenTop: number;
|
|
|
declare var screenX: number;
|
|
|
declare var screenY: number;
|
|
|
declare var scrollX: number;
|
|
|
declare var scrollY: number;
|
|
|
/**
|
|
|
* Returns true if the scrollbars are visible; otherwise, returns false.
|
|
|
*/
|
|
|
declare var scrollbars: BarProp;
|
|
|
declare var self: Window & typeof globalThis;
|
|
|
declare var speechSynthesis: SpeechSynthesis;
|
|
|
/** @deprecated */
|
|
|
declare var status: string;
|
|
|
/**
|
|
|
* Returns true if the status bar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
declare var statusbar: BarProp;
|
|
|
/**
|
|
|
* Returns true if the toolbar is visible; otherwise, returns false.
|
|
|
*/
|
|
|
declare var toolbar: BarProp;
|
|
|
declare var top: WindowProxy | null;
|
|
|
declare var visualViewport: VisualViewport;
|
|
|
declare var window: Window & typeof globalThis;
|
|
|
declare function alert(message?: any): void;
|
|
|
declare function blur(): void;
|
|
|
declare function cancelIdleCallback(handle: number): void;
|
|
|
/** @deprecated */
|
|
|
declare function captureEvents(): void;
|
|
|
/**
|
|
|
* Closes the window.
|
|
|
*/
|
|
|
declare function close(): void;
|
|
|
declare function confirm(message?: string): boolean;
|
|
|
/**
|
|
|
* Moves the focus to the window's browsing context, if any.
|
|
|
*/
|
|
|
declare function focus(): void;
|
|
|
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
|
declare function getSelection(): Selection | null;
|
|
|
declare function matchMedia(query: string): MediaQueryList;
|
|
|
declare function moveBy(x: number, y: number): void;
|
|
|
declare function moveTo(x: number, y: number): void;
|
|
|
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
|
|
|
/**
|
|
|
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
|
|
|
*
|
|
|
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
|
*
|
|
|
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
|
|
|
*
|
|
|
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
|
|
|
*
|
|
|
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
|
|
|
*/
|
|
|
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
|
|
|
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
|
|
|
declare function print(): void;
|
|
|
declare function prompt(message?: string, _default?: string): string | null;
|
|
|
/** @deprecated */
|
|
|
declare function releaseEvents(): void;
|
|
|
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
|
|
|
declare function resizeBy(x: number, y: number): void;
|
|
|
declare function resizeTo(width: number, height: number): void;
|
|
|
declare function scroll(options?: ScrollToOptions): void;
|
|
|
declare function scroll(x: number, y: number): void;
|
|
|
declare function scrollBy(options?: ScrollToOptions): void;
|
|
|
declare function scrollBy(x: number, y: number): void;
|
|
|
declare function scrollTo(options?: ScrollToOptions): void;
|
|
|
declare function scrollTo(x: number, y: number): void;
|
|
|
/**
|
|
|
* Cancels the document load.
|
|
|
*/
|
|
|
declare function stop(): void;
|
|
|
declare function toString(): string;
|
|
|
/**
|
|
|
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
|
*/
|
|
|
declare function dispatchEvent(event: Event): boolean;
|
|
|
declare function cancelAnimationFrame(handle: number): void;
|
|
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
/**
|
|
|
* Fires when the user aborts the download.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the object loses the input focus.
|
|
|
* @param ev The focus event.
|
|
|
*/
|
|
|
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback is possible, but would require further buffering.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the contents of the object or selection have changed.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onchange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the left mouse button on the object
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var onclose: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user double-clicks the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object continuously during a drag operation.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object when the user releases the mouse at the close of a drag operation.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target element when the user drags the object to a valid drop target.
|
|
|
* @param ev The drag event.
|
|
|
*/
|
|
|
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
|
|
|
* @param ev The drag event.
|
|
|
*/
|
|
|
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target element continuously while the user drags the object over a valid drop target.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object when the user starts to drag a text selection or selected object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the duration attribute is updated.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the media element is reset to its initial state.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onemptied: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the end of playback is reached.
|
|
|
* @param ev The event
|
|
|
*/
|
|
|
declare var onended: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when an error occurs during object loading.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onerror: OnErrorEventHandler;
|
|
|
/**
|
|
|
* Fires when the object receives focus.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
|
|
|
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
|
|
|
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var oninput: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user presses a key.
|
|
|
* @param ev The keyboard event
|
|
|
*/
|
|
|
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user presses an alphanumeric key.
|
|
|
* @param ev The event.
|
|
|
* @deprecated
|
|
|
*/
|
|
|
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user releases a key.
|
|
|
* @param ev The keyboard event
|
|
|
*/
|
|
|
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires immediately after the browser loads the object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onload: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when media data is loaded at the current playback position.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the duration and dimensions of the media have been determined.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when Internet Explorer begins looking for media data.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the object with either mouse button.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse over the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse pointer outside the boundaries of the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse pointer into the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user releases a mouse button while the mouse is over the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback is paused.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onpause: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the play method is requested.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onplay: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the audio or video has started playing.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onplaying: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs to indicate progress while downloading media data.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the playback rate is increased or decreased.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onratechange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user resets a form.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onreset: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user repositions the scroll box in the scroll bar on the object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the seek operation ends.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onseeked: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the current playback position is moved.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onseeking: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the current selection changes.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onselect: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the download has stopped.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onstalled: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onsubmit: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs if the load operation has been intentionally halted.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs to indicate the current playback position.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
|
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
|
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
|
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
|
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the volume is changed, or playback is muted or unmuted.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback stops because the next frame of a video resource is not available.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
|
|
|
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
|
|
|
declare var ongamepadconnected: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ongamepaddisconnected: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onhashchange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
|
|
|
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
|
|
|
declare var onoffline: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ononline: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
|
|
|
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
|
|
|
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
|
|
|
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
|
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
|
declare var onunload: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var localStorage: Storage;
|
|
|
declare var caches: CacheStorage;
|
|
|
declare var crossOriginIsolated: boolean;
|
|
|
declare var crypto: Crypto;
|
|
|
declare var indexedDB: IDBFactory;
|
|
|
declare var isSecureContext: boolean;
|
|
|
declare var origin: string;
|
|
|
declare var performance: Performance;
|
|
|
declare function atob(data: string): string;
|
|
|
declare function btoa(data: string): string;
|
|
|
declare function clearInterval(handle?: number): void;
|
|
|
declare function clearTimeout(handle?: number): void;
|
|
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
declare var sessionStorage: Storage;
|
|
|
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
type AlgorithmIdentifier = Algorithm | string;
|
|
|
type BigInteger = Uint8Array;
|
|
|
type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
|
type BlobPart = BufferSource | Blob | string;
|
|
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
type COSEAlgorithmIdentifier = number;
|
|
|
type CSSNumberish = number;
|
|
|
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
|
|
|
type ClipboardItemData = Promise<ClipboardItemDataType>;
|
|
|
type ClipboardItemDataType = 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 DOMTimeStamp = number;
|
|
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
|
type Float32List = Float32Array | GLfloat[];
|
|
|
type FormDataEntryValue = File | string;
|
|
|
type GLbitfield = number;
|
|
|
type GLboolean = boolean;
|
|
|
type GLclampf = number;
|
|
|
type GLenum = number;
|
|
|
type GLfloat = number;
|
|
|
type GLint = number;
|
|
|
type GLint64 = number;
|
|
|
type GLintptr = number;
|
|
|
type GLsizei = number;
|
|
|
type GLsizeiptr = number;
|
|
|
type GLuint = number;
|
|
|
type GLuint64 = number;
|
|
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
|
type HeadersInit = string[][] | Record<string, string> | Headers;
|
|
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
|
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
|
|
|
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 OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
type PerformanceEntryList = PerformanceEntry[];
|
|
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
|
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
|
|
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
|
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
|
type RequestInfo = Request | string;
|
|
|
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
|
|
|
type TimerHandler = string | Function;
|
|
|
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
|
|
|
type Uint32List = Uint32Array | GLuint[];
|
|
|
type UvmEntries = UvmEntry[];
|
|
|
type UvmEntry = number[];
|
|
|
type VibratePattern = number | number[];
|
|
|
type WindowProxy = Window;
|
|
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
|
type AlignSetting = "center" | "end" | "left" | "right" | "start";
|
|
|
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
|
|
|
type AnimationReplaceState = "active" | "persisted" | "removed";
|
|
|
type AppendMode = "segments" | "sequence";
|
|
|
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
|
|
|
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
|
|
|
type AudioContextState = "closed" | "running" | "suspended";
|
|
|
type AuthenticatorAttachment = "cross-platform" | "platform";
|
|
|
type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
|
|
|
type AutoKeyword = "auto";
|
|
|
type AutomationRate = "a-rate" | "k-rate";
|
|
|
type BinaryType = "arraybuffer" | "blob";
|
|
|
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
|
|
|
type CanPlayTypeResult = "" | "maybe" | "probably";
|
|
|
type CanvasDirection = "inherit" | "ltr" | "rtl";
|
|
|
type CanvasFillRule = "evenodd" | "nonzero";
|
|
|
type CanvasFontKerning = "auto" | "none" | "normal";
|
|
|
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
|
|
|
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
|
|
|
type CanvasLineCap = "butt" | "round" | "square";
|
|
|
type CanvasLineJoin = "bevel" | "miter" | "round";
|
|
|
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
|
|
|
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
|
|
|
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
|
|
|
type ChannelCountMode = "clamped-max" | "explicit" | "max";
|
|
|
type ChannelInterpretation = "discrete" | "speakers";
|
|
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
|
type ColorSpaceConversion = "default" | "none";
|
|
|
type CompositeOperation = "accumulate" | "add" | "replace";
|
|
|
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
|
|
|
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
|
type CredentialMediationRequirement = "optional" | "required" | "silent";
|
|
|
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
|
|
|
type DirectionSetting = "" | "lr" | "rl";
|
|
|
type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
|
|
|
type DistanceModelType = "exponential" | "inverse" | "linear";
|
|
|
type DocumentReadyState = "complete" | "interactive" | "loading";
|
|
|
type EndOfStreamError = "decode" | "network";
|
|
|
type EndingType = "native" | "transparent";
|
|
|
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
|
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
|
type GamepadHapticActuatorType = "vibration";
|
|
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
|
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
|
type IDBRequestReadyState = "done" | "pending";
|
|
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
|
type ImageOrientation = "flipY" | "none";
|
|
|
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
|
type IterationCompositeOperation = "accumulate" | "replace";
|
|
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
|
type KeyType = "private" | "public" | "secret";
|
|
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
|
type LineAlignSetting = "center" | "end" | "start";
|
|
|
type 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 = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
|
|
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
|
type MediaStreamTrackState = "ended" | "live";
|
|
|
type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
|
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
|
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
|
type OverSampleType = "2x" | "4x" | "none";
|
|
|
type PanningModelType = "HRTF" | "equalpower";
|
|
|
type PaymentComplete = "fail" | "success" | "unknown";
|
|
|
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
|
|
|
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 PushPermissionState = "denied" | "granted" | "prompt";
|
|
|
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 RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
|
|
|
type RTCIceComponent = "rtcp" | "rtp";
|
|
|
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
|
|
|
type RTCIceCredentialType = "password";
|
|
|
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 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" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
|
|
|
type ReadyState = "closed" | "ended" | "open";
|
|
|
type RecordingState = "inactive" | "paused" | "recording";
|
|
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
|
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
|
|
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
|
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
|
|
|
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
|
|
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
|
|
type ScrollBehavior = "auto" | "smooth";
|
|
|
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
|
|
|
type ScrollRestoration = "auto" | "manual";
|
|
|
type ScrollSetting = "" | "up";
|
|
|
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
|
type SelectionMode = "end" | "preserve" | "select" | "start";
|
|
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
|
type ShadowRootMode = "closed" | "open";
|
|
|
type SlotAssignmentMode = "manual" | "named";
|
|
|
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
|
|
|
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
|
|
|
type TextTrackMode = "disabled" | "hidden" | "showing";
|
|
|
type TouchType = "direct" | "stylus";
|
|
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
|
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
|
|
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
|
|
|
type VisibilityState = "hidden" | "visible";
|
|
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
|
type WorkerType = "classic" | "module";
|
|
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
|
|
`,yi["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// Window Iterable APIs
|
|
|
/////////////////////////////
|
|
|
|
|
|
interface AudioParam {
|
|
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
|
|
}
|
|
|
|
|
|
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
|
|
|
}
|
|
|
|
|
|
interface BaseAudioContext {
|
|
|
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
|
|
|
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
|
}
|
|
|
|
|
|
interface CSSRuleList {
|
|
|
[Symbol.iterator](): IterableIterator<CSSRule>;
|
|
|
}
|
|
|
|
|
|
interface CSSStyleDeclaration {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface Cache {
|
|
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
|
}
|
|
|
|
|
|
interface CanvasPathDrawingStyles {
|
|
|
setLineDash(segments: Iterable<number>): void;
|
|
|
}
|
|
|
|
|
|
interface DOMRectList {
|
|
|
[Symbol.iterator](): IterableIterator<DOMRect>;
|
|
|
}
|
|
|
|
|
|
interface DOMStringList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface DOMTokenList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
entries(): IterableIterator<[number, string]>;
|
|
|
keys(): IterableIterator<number>;
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface DataTransferItemList {
|
|
|
[Symbol.iterator](): IterableIterator<DataTransferItem>;
|
|
|
}
|
|
|
|
|
|
interface FileList {
|
|
|
[Symbol.iterator](): IterableIterator<File>;
|
|
|
}
|
|
|
|
|
|
interface FontFaceSet extends Set<FontFace> {
|
|
|
}
|
|
|
|
|
|
interface FormData {
|
|
|
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
|
|
/**
|
|
|
* Returns a list of keys in the list.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns a list of values in the list.
|
|
|
*/
|
|
|
values(): IterableIterator<FormDataEntryValue>;
|
|
|
}
|
|
|
|
|
|
interface HTMLAllCollection {
|
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
|
}
|
|
|
|
|
|
interface HTMLCollectionBase {
|
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
|
}
|
|
|
|
|
|
interface HTMLCollectionOf<T extends Element> {
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface HTMLFormElement {
|
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
|
}
|
|
|
|
|
|
interface HTMLSelectElement {
|
|
|
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
|
|
|
}
|
|
|
|
|
|
interface Headers {
|
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all key/value pairs contained in this object.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
|
|
|
*/
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface IDBDatabase {
|
|
|
/**
|
|
|
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
|
*/
|
|
|
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
|
|
|
}
|
|
|
|
|
|
interface IDBObjectStore {
|
|
|
/**
|
|
|
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
|
}
|
|
|
|
|
|
interface MediaKeyStatusMap {
|
|
|
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
|
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
|
keys(): IterableIterator<BufferSource>;
|
|
|
values(): IterableIterator<MediaKeyStatus>;
|
|
|
}
|
|
|
|
|
|
interface MediaList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface MessageEvent<T = any> {
|
|
|
/** @deprecated */
|
|
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
|
}
|
|
|
|
|
|
interface MimeTypeArray {
|
|
|
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
|
}
|
|
|
|
|
|
interface NamedNodeMap {
|
|
|
[Symbol.iterator](): IterableIterator<Attr>;
|
|
|
}
|
|
|
|
|
|
interface Navigator {
|
|
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
|
|
|
vibrate(pattern: Iterable<number>): boolean;
|
|
|
}
|
|
|
|
|
|
interface NodeList {
|
|
|
[Symbol.iterator](): IterableIterator<Node>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, Node]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the list.
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the list.
|
|
|
*/
|
|
|
values(): IterableIterator<Node>;
|
|
|
}
|
|
|
|
|
|
interface NodeListOf<TNode extends Node> {
|
|
|
[Symbol.iterator](): IterableIterator<TNode>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, TNode]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the list.
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the list.
|
|
|
*/
|
|
|
values(): IterableIterator<TNode>;
|
|
|
}
|
|
|
|
|
|
interface Plugin {
|
|
|
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
|
}
|
|
|
|
|
|
interface PluginArray {
|
|
|
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
|
}
|
|
|
|
|
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
|
}
|
|
|
|
|
|
interface ReadableStream<R = any> {
|
|
|
[Symbol.iterator](): IterableIterator<any>;
|
|
|
entries(): IterableIterator<[number, any]>;
|
|
|
keys(): IterableIterator<number>;
|
|
|
values(): IterableIterator<any>;
|
|
|
}
|
|
|
|
|
|
interface SVGLengthList {
|
|
|
[Symbol.iterator](): IterableIterator<SVGLength>;
|
|
|
}
|
|
|
|
|
|
interface SVGNumberList {
|
|
|
[Symbol.iterator](): IterableIterator<SVGNumber>;
|
|
|
}
|
|
|
|
|
|
interface SVGPointList {
|
|
|
[Symbol.iterator](): IterableIterator<DOMPoint>;
|
|
|
}
|
|
|
|
|
|
interface SVGStringList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface SVGTransformList {
|
|
|
[Symbol.iterator](): IterableIterator<SVGTransform>;
|
|
|
}
|
|
|
|
|
|
interface SourceBufferList {
|
|
|
[Symbol.iterator](): IterableIterator<SourceBuffer>;
|
|
|
}
|
|
|
|
|
|
interface SpeechRecognitionResult {
|
|
|
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
|
|
|
}
|
|
|
|
|
|
interface SpeechRecognitionResultList {
|
|
|
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
|
|
|
}
|
|
|
|
|
|
interface StyleSheetList {
|
|
|
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
|
|
|
}
|
|
|
|
|
|
interface SubtleCrypto {
|
|
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
|
|
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
|
}
|
|
|
|
|
|
interface TextTrackCueList {
|
|
|
[Symbol.iterator](): IterableIterator<TextTrackCue>;
|
|
|
}
|
|
|
|
|
|
interface TextTrackList {
|
|
|
[Symbol.iterator](): IterableIterator<TextTrack>;
|
|
|
}
|
|
|
|
|
|
interface TouchList {
|
|
|
[Symbol.iterator](): IterableIterator<Touch>;
|
|
|
}
|
|
|
|
|
|
interface URLSearchParams {
|
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the search params.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns a list of keys in the search params.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns a list of values in the search params.
|
|
|
*/
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_draw_buffers {
|
|
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextBase {
|
|
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
|
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
|
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
|
|
|
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
|
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
|
|
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
|
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
|
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
|
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextOverloads {
|
|
|
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextBase {
|
|
|
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextOverloads {
|
|
|
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
}
|
|
|
`,yi["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;
|
|
|
delete(key: K): boolean;
|
|
|
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
|
|
|
get(key: K): V | undefined;
|
|
|
has(key: K): boolean;
|
|
|
set(key: K, value: V): this;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface MapConstructor {
|
|
|
new(): Map<any, any>;
|
|
|
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
|
|
readonly prototype: Map<any, any>;
|
|
|
}
|
|
|
declare var Map: MapConstructor;
|
|
|
|
|
|
interface ReadonlyMap<K, V> {
|
|
|
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
|
|
|
get(key: K): V | undefined;
|
|
|
has(key: K): boolean;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface WeakMap<K extends object, V> {
|
|
|
delete(key: K): boolean;
|
|
|
get(key: K): V | undefined;
|
|
|
has(key: K): boolean;
|
|
|
set(key: K, value: V): this;
|
|
|
}
|
|
|
|
|
|
interface WeakMapConstructor {
|
|
|
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
|
|
|
readonly prototype: WeakMap<object, any>;
|
|
|
}
|
|
|
declare var WeakMap: WeakMapConstructor;
|
|
|
|
|
|
interface Set<T> {
|
|
|
add(value: T): this;
|
|
|
clear(): void;
|
|
|
delete(value: T): boolean;
|
|
|
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
|
|
|
has(value: T): boolean;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface SetConstructor {
|
|
|
new <T = any>(values?: readonly T[] | null): Set<T>;
|
|
|
readonly prototype: Set<any>;
|
|
|
}
|
|
|
declare var Set: SetConstructor;
|
|
|
|
|
|
interface ReadonlySet<T> {
|
|
|
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
|
|
|
has(value: T): boolean;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface WeakSet<T extends object> {
|
|
|
add(value: T): this;
|
|
|
delete(value: T): boolean;
|
|
|
has(value: T): boolean;
|
|
|
}
|
|
|
|
|
|
interface WeakSetConstructor {
|
|
|
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
|
|
|
readonly prototype: WeakSet<object>;
|
|
|
}
|
|
|
declare var WeakSet: WeakSetConstructor;
|
|
|
`,yi["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: (this: void, 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, 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, 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, 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: (this: void, 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
|
|
|
* @param name
|
|
|
*/
|
|
|
anchor(name: string): string;
|
|
|
|
|
|
/** Returns a \`<big>\` HTML element */
|
|
|
big(): string;
|
|
|
|
|
|
/** Returns a \`<blink>\` HTML element */
|
|
|
blink(): string;
|
|
|
|
|
|
/** Returns a \`<b>\` HTML element */
|
|
|
bold(): string;
|
|
|
|
|
|
/** Returns a \`<tt>\` HTML element */
|
|
|
fixed(): string;
|
|
|
|
|
|
/** Returns a \`<font>\` HTML element and sets the color attribute value */
|
|
|
fontcolor(color: string): string;
|
|
|
|
|
|
/** Returns a \`<font>\` HTML element and sets the size attribute value */
|
|
|
fontsize(size: number): string;
|
|
|
|
|
|
/** Returns a \`<font>\` HTML element and sets the size attribute value */
|
|
|
fontsize(size: string): string;
|
|
|
|
|
|
/** Returns an \`<i>\` HTML element */
|
|
|
italics(): string;
|
|
|
|
|
|
/** Returns an \`<a>\` HTML element and sets the href attribute value */
|
|
|
link(url: string): string;
|
|
|
|
|
|
/** Returns a \`<small>\` HTML element */
|
|
|
small(): string;
|
|
|
|
|
|
/** Returns a \`<strike>\` HTML element */
|
|
|
strike(): string;
|
|
|
|
|
|
/** Returns a \`<sub>\` HTML element */
|
|
|
sub(): string;
|
|
|
|
|
|
/** Returns a \`<sup>\` HTML element */
|
|
|
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;
|
|
|
}
|
|
|
`,yi["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" />
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["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 <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
|
|
|
}
|
|
|
|
|
|
interface WeakMap<K extends object, V> { }
|
|
|
|
|
|
interface WeakMapConstructor {
|
|
|
new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
|
|
|
}
|
|
|
|
|
|
interface Set<T> {
|
|
|
/** Iterates over values in the set. */
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
/**
|
|
|
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
|
|
|
*/
|
|
|
entries(): IterableIterator<[T, T]>;
|
|
|
/**
|
|
|
* Despite its name, returns an iterable of the values in the set.
|
|
|
*/
|
|
|
keys(): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the set.
|
|
|
*/
|
|
|
values(): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface ReadonlySet<T> {
|
|
|
/** Iterates over values in the set. */
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
|
|
|
*/
|
|
|
entries(): IterableIterator<[T, T]>;
|
|
|
|
|
|
/**
|
|
|
* Despite its name, returns an iterable of the values in the set.
|
|
|
*/
|
|
|
keys(): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the set.
|
|
|
*/
|
|
|
values(): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface SetConstructor {
|
|
|
new <T>(iterable?: Iterable<T> | null): Set<T>;
|
|
|
}
|
|
|
|
|
|
interface WeakSet<T extends object> { }
|
|
|
|
|
|
interface WeakSetConstructor {
|
|
|
new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
|
|
|
}
|
|
|
|
|
|
interface Promise<T> { }
|
|
|
|
|
|
interface PromiseConstructor {
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An iterable of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<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>): Promise<T extends PromiseLike<infer U> ? U : 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<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;
|
|
|
}
|
|
|
`,yi["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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2, T3, T4, T5, T6, T7>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2, T3, T4, T5, T6>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2, T3, T4, T5>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2, T3, T4>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<[T1, T2, T3, T4]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2, T3>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
|
|
|
|
|
/**
|
|
|
* 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<T1, T2>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
|
|
|
|
|
/**
|
|
|
* 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>(values: readonly (T | PromiseLike<T>)[]): Promise<T[]>;
|
|
|
|
|
|
// see: lib.es2015.iterable.d.ts
|
|
|
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<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>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;
|
|
|
|
|
|
// see: lib.es2015.iterable.d.ts
|
|
|
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : 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 | PromiseLike<T>): Promise<T>;
|
|
|
}
|
|
|
|
|
|
declare var Promise: PromiseConstructor;
|
|
|
`,yi["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> {
|
|
|
apply?(target: T, thisArg: any, argArray: any[]): any;
|
|
|
construct?(target: T, argArray: any[], newTarget: Function): object;
|
|
|
defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;
|
|
|
deleteProperty?(target: T, p: string | symbol): boolean;
|
|
|
get?(target: T, p: string | symbol, receiver: any): any;
|
|
|
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
|
|
|
getPrototypeOf?(target: T): object | null;
|
|
|
has?(target: T, p: string | symbol): boolean;
|
|
|
isExtensible?(target: T): boolean;
|
|
|
ownKeys?(target: T): ArrayLike<string | symbol>;
|
|
|
preventExtensions?(target: T): boolean;
|
|
|
set?(target: T, p: string | symbol, value: any, receiver: any): boolean;
|
|
|
setPrototypeOf?(target: T, v: object | null): boolean;
|
|
|
}
|
|
|
|
|
|
interface ProxyConstructor {
|
|
|
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
|
|
|
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
|
|
|
}
|
|
|
declare var Proxy: ProxyConstructor;
|
|
|
`,yi["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(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(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): 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(target: object, propertyKey: PropertyKey, receiver?: 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 target Object that contains the property.
|
|
|
* @param propertyKey The property name.
|
|
|
*/
|
|
|
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | 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(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;
|
|
|
}
|
|
|
`,yi["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;`,yi["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 own property names are property names 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> {
|
|
|
/**
|
|
|
* Returns an object whose properties have the value 'true'
|
|
|
* when they will be absent when used in a 'with' statement.
|
|
|
*/
|
|
|
[Symbol.unscopables](): {
|
|
|
copyWithin: boolean;
|
|
|
entries: boolean;
|
|
|
fill: boolean;
|
|
|
find: boolean;
|
|
|
findIndex: boolean;
|
|
|
keys: boolean;
|
|
|
values: boolean;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
interface Date {
|
|
|
/**
|
|
|
* Converts a Date object to a string.
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: "default"): string;
|
|
|
/**
|
|
|
* Converts a Date object to a string.
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: "string"): string;
|
|
|
/**
|
|
|
* Converts a Date object to a number.
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: "number"): number;
|
|
|
/**
|
|
|
* Converts a Date object to a string or number.
|
|
|
*
|
|
|
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
|
|
|
*
|
|
|
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
|
|
|
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: string): string | number;
|
|
|
}
|
|
|
|
|
|
interface Map<K, V> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface WeakMap<K extends object, V> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Set<T> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface WeakSet<T extends object> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface JSON {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Function {
|
|
|
/**
|
|
|
* Determines whether the given value inherits from this function if this function was used
|
|
|
* as a constructor function.
|
|
|
*
|
|
|
* A constructor function can control which objects are recognized as its instances by
|
|
|
* 'instanceof' by overriding this method.
|
|
|
*/
|
|
|
[Symbol.hasInstance](value: any): boolean;
|
|
|
}
|
|
|
|
|
|
interface GeneratorFunction {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Math {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Promise<T> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface PromiseConstructor {
|
|
|
readonly [Symbol.species]: PromiseConstructor;
|
|
|
}
|
|
|
|
|
|
interface RegExp {
|
|
|
/**
|
|
|
* Matches a string with this regular expression, and returns an array containing the results of
|
|
|
* that search.
|
|
|
* @param string A string to search within.
|
|
|
*/
|
|
|
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using this regular expression.
|
|
|
* @param string A String object or string literal whose contents matching against
|
|
|
* this regular expression will be replaced
|
|
|
* @param replaceValue A String object or string literal containing the text to replace for every
|
|
|
* successful match of this regular expression.
|
|
|
*/
|
|
|
[Symbol.replace](string: string, replaceValue: string): string;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using this regular expression.
|
|
|
* @param string A String object or string literal whose contents matching against
|
|
|
* this regular expression will be replaced
|
|
|
* @param replacer A function that returns the replacement text.
|
|
|
*/
|
|
|
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
|
|
|
|
/**
|
|
|
* Finds the position beginning first substring match in a regular expression search
|
|
|
* using this regular expression.
|
|
|
*
|
|
|
* @param string The string to search within.
|
|
|
*/
|
|
|
[Symbol.search](string: string): number;
|
|
|
|
|
|
/**
|
|
|
* Returns an array of substrings that were delimited by strings in the original input that
|
|
|
* match against this regular expression.
|
|
|
*
|
|
|
* If the regular expression contains capturing parentheses, then each time this
|
|
|
* regular expression matches, the results (including any undefined results) of the
|
|
|
* capturing parentheses are spliced.
|
|
|
*
|
|
|
* @param string string value to split
|
|
|
* @param limit if not undefined, the output array is truncated so that it contains no more
|
|
|
* than 'limit' elements.
|
|
|
*/
|
|
|
[Symbol.split](string: string, limit?: number): string[];
|
|
|
}
|
|
|
|
|
|
interface RegExpConstructor {
|
|
|
readonly [Symbol.species]: RegExpConstructor;
|
|
|
}
|
|
|
|
|
|
interface String {
|
|
|
/**
|
|
|
* Matches a string or an object that supports being matched against, and returns an array
|
|
|
* containing the results of that search, or null if no matches are found.
|
|
|
* @param matcher An object that supports being matched against.
|
|
|
*/
|
|
|
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
|
|
|
|
|
|
/**
|
|
|
* Replaces first match with string or all matches with RegExp.
|
|
|
* @param searchValue A string or RegExp search value.
|
|
|
* @param replaceValue A string containing the text to replace for match.
|
|
|
*/
|
|
|
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;
|
|
|
}
|
|
|
`,yi["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;
|
|
|
}`,yi["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" />`,yi["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" />`,yi["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" />
|
|
|
`,yi["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" />`,yi["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 {
|
|
|
type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";
|
|
|
|
|
|
interface DateTimeFormatPart {
|
|
|
type: DateTimeFormatPartTypes;
|
|
|
value: string;
|
|
|
}
|
|
|
|
|
|
interface DateTimeFormat {
|
|
|
formatToParts(date?: Date | number): DateTimeFormatPart[];
|
|
|
}
|
|
|
}
|
|
|
`,yi["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 };
|
|
|
}
|
|
|
`,yi["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;
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["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>;
|
|
|
}`,yi["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" />
|
|
|
`,yi["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" />`,yi["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";
|
|
|
type?: PluralRuleType;
|
|
|
minimumIntegerDigits?: number;
|
|
|
minimumFractionDigits?: number;
|
|
|
maximumFractionDigits?: number;
|
|
|
minimumSignificantDigits?: number;
|
|
|
maximumSignificantDigits?: number;
|
|
|
}
|
|
|
|
|
|
interface ResolvedPluralRulesOptions {
|
|
|
locale: string;
|
|
|
pluralCategories: LDMLPluralRule[];
|
|
|
type: PluralRuleType;
|
|
|
minimumIntegerDigits: number;
|
|
|
minimumFractionDigits: number;
|
|
|
maximumFractionDigits: number;
|
|
|
minimumSignificantDigits?: number;
|
|
|
maximumSignificantDigits?: number;
|
|
|
}
|
|
|
|
|
|
interface PluralRules {
|
|
|
resolvedOptions(): ResolvedPluralRulesOptions;
|
|
|
select(n: number): LDMLPluralRule;
|
|
|
}
|
|
|
|
|
|
const PluralRules: {
|
|
|
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
|
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
|
supportedLocalesOf(
|
|
|
locales: string | string[],
|
|
|
options?: PluralRulesOptions,
|
|
|
): string[];
|
|
|
};
|
|
|
}
|
|
|
`,yi["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>
|
|
|
}
|
|
|
`,yi["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;
|
|
|
}`,yi["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>[]
|
|
|
}
|
|
|
`,yi["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" />
|
|
|
`,yi["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" />
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["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. */
|
|
|
trimLeft(): string;
|
|
|
|
|
|
/** Removes the trailing white space and line terminator characters from a string. */
|
|
|
trimRight(): string;
|
|
|
}
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["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"/>
|
|
|
|
|
|
|
|
|
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?: string, 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.
|
|
|
*/
|
|
|
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.
|
|
|
*/
|
|
|
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,
|
|
|
* otherwise a little-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,
|
|
|
* otherwise a little-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;
|
|
|
}
|
|
|
}
|
|
|
`,yi["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.promise" />
|
|
|
/// <reference lib="es2020.sharedmemory" />
|
|
|
/// <reference lib="es2020.string" />
|
|
|
/// <reference lib="es2020.symbol.wellknown" />
|
|
|
/// <reference lib="es2020.intl" />
|
|
|
`,yi["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" />
|
|
|
`,yi["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"/>
|
|
|
|
|
|
|
|
|
declare namespace Intl {
|
|
|
|
|
|
/**
|
|
|
* [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
|
|
|
*
|
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
|
|
*
|
|
|
*/
|
|
|
type UnicodeBCP47LocaleIdentifier = string;
|
|
|
|
|
|
/**
|
|
|
* Unit to use in the relative time internationalized message.
|
|
|
*
|
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-singularrelativetimeunit).
|
|
|
*/
|
|
|
type RelativeTimeFormatUnit =
|
|
|
| "year" | "years"
|
|
|
| "quarter" | "quarters"
|
|
|
| "month" | "months"
|
|
|
| "week" | "weeks"
|
|
|
| "day" | "days"
|
|
|
| "hour" | "hours"
|
|
|
| "minute" | "minutes"
|
|
|
| "second" | "seconds"
|
|
|
;
|
|
|
|
|
|
/**
|
|
|
* The locale matching algorithm to use.
|
|
|
*
|
|
|
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
|
|
|
*/
|
|
|
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).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
|
|
|
*/
|
|
|
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).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
|
|
|
*/
|
|
|
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
|
|
|
|
|
|
/**
|
|
|
* 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).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
|
|
|
*/
|
|
|
interface RelativeTimeFormatOptions {
|
|
|
localeMatcher?: RelativeTimeFormatLocaleMatcher;
|
|
|
numeric?: RelativeTimeFormatNumeric;
|
|
|
style?: RelativeTimeFormatStyle;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* An object with properties reflecting the locale
|
|
|
* and formatting options computed during initialization
|
|
|
* of the \`Intel.RelativeTimeFormat\` object
|
|
|
*
|
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#table-relativetimeformat-resolvedoptions-properties)
|
|
|
*/
|
|
|
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).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts).
|
|
|
*/
|
|
|
interface RelativeTimeFormatPart {
|
|
|
type: string;
|
|
|
value: string;
|
|
|
unit?: RelativeTimeFormatUnit;
|
|
|
}
|
|
|
|
|
|
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.
|
|
|
* Possible values are: \`"year"\`, \`"quarter"\`, \`"month"\`, \`"week"\`,
|
|
|
* \`"day"\`, \`"hour"\`, \`"minute"\`, \`"second"\`.
|
|
|
* Plural forms are also permitted.
|
|
|
*
|
|
|
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
|
|
|
*
|
|
|
* @returns Internationalized relative time message as string
|
|
|
*
|
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.format).
|
|
|
*/
|
|
|
format(
|
|
|
value: number,
|
|
|
unit: RelativeTimeFormatUnit,
|
|
|
): string;
|
|
|
|
|
|
/**
|
|
|
* A version of the format method which it returns an array of objects
|
|
|
* which represent "parts" of the object,
|
|
|
* separating the formatted number into its constituent parts
|
|
|
* and separating it from other surrounding text.
|
|
|
* These objects have two properties:
|
|
|
* \`type\` a NumberFormat formatToParts type, and \`value\`,
|
|
|
* which is the String which is the component of the output.
|
|
|
* If a "part" came from NumberFormat,
|
|
|
* it will have a unit property which indicates the \`unit\` being formatted;
|
|
|
* literals which are part of the larger frame will not have this property.
|
|
|
*
|
|
|
* @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.
|
|
|
* Possible values are: \`"year"\`, \`"quarter"\`, \`"month"\`, \`"week"\`,
|
|
|
* \`"day"\`, \`"hour"\`, \`"minute"\`, \`"second"\`.
|
|
|
* Plural forms are also permitted.
|
|
|
*
|
|
|
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
|
|
|
*
|
|
|
* @returns Array of [FormatRelativeTimeToParts](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts)
|
|
|
*
|
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.formatToParts).
|
|
|
*/
|
|
|
formatToParts(
|
|
|
value: number,
|
|
|
unit: RelativeTimeFormatUnit,
|
|
|
): RelativeTimeFormatPart[];
|
|
|
|
|
|
/**
|
|
|
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
|
|
|
*
|
|
|
* @returns A new object with properties reflecting the locale
|
|
|
* and formatting options computed during initialization
|
|
|
* of the \`Intel.RelativeTimeFormat\` object.
|
|
|
*
|
|
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-intl.relativetimeformat.prototype.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.
|
|
|
*
|
|
|
* Part of [Intl object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)
|
|
|
* namespace and the [ECMAScript Internationalization API](https://www.ecma-international.org/publications/standards/Ecma-402.htm).
|
|
|
*
|
|
|
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
|
|
|
*
|
|
|
* [Polyfills](https://github.com/tc39/proposal-intl-relative-time#polyfills).
|
|
|
*/
|
|
|
const RelativeTimeFormat: {
|
|
|
/**
|
|
|
* Constructor 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 the formatting.
|
|
|
* An object with some or all of the following properties:
|
|
|
* - \`localeMatcher\` - The locale matching algorithm to use.
|
|
|
* Possible values are \`"lookup"\` and \`"best fit"\`; the default is \`"best fit"\`.
|
|
|
* For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
|
|
|
* - \`numeric\` - The format of output message.
|
|
|
* Possible values are: \`"always"\` (default, e.g., \`1 day ago\`) or \`"auto"\` (e.g., \`yesterday\`).
|
|
|
* The \`"auto"\` value allows to not always have to use numeric values in the output.
|
|
|
* - \`style\` - The length of the internationalized message. Possible values are:
|
|
|
* \`"long"\` (default, e.g., in 1 month),
|
|
|
* \`"short"\` (e.g., in 1 mo.)
|
|
|
* or \`"narrow"\` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.
|
|
|
*
|
|
|
* @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).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-intl-relativetimeformat-constructor).
|
|
|
*/
|
|
|
new(
|
|
|
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
|
|
options?: RelativeTimeFormatOptions,
|
|
|
): RelativeTimeFormat;
|
|
|
|
|
|
/**
|
|
|
* Returns an array containing those of the provided locales
|
|
|
* that are supported in date and time formatting
|
|
|
* without having to fall back to the runtime's default locale.
|
|
|
*
|
|
|
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
|
|
* For the general form and interpretation of the locales argument,
|
|
|
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
|
|
*
|
|
|
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
|
|
* with some or all of options of the formatting.
|
|
|
* An object with some or all of the following properties:
|
|
|
* - \`localeMatcher\` - The locale matching algorithm to use.
|
|
|
* Possible values are \`"lookup"\` and \`"best fit"\`; the default is \`"best fit"\`.
|
|
|
* For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
|
|
|
* - \`numeric\` - The format of output message.
|
|
|
* Possible values are: \`"always"\` (default, e.g., \`1 day ago\`) or \`"auto"\` (e.g., \`yesterday\`).
|
|
|
* The \`"auto"\` value allows to not always have to use numeric values in the output.
|
|
|
* - \`style\` - The length of the internationalized message. Possible values are:
|
|
|
* \`"long"\` (default, e.g., in 1 month),
|
|
|
* \`"short"\` (e.g., in 1 mo.)
|
|
|
* or \`"narrow"\` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.
|
|
|
*
|
|
|
* @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).
|
|
|
*
|
|
|
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.supportedLocalesOf).
|
|
|
*/
|
|
|
supportedLocalesOf(
|
|
|
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
|
|
options?: RelativeTimeFormatOptions,
|
|
|
): UnicodeBCP47LocaleIdentifier[];
|
|
|
};
|
|
|
|
|
|
interface NumberFormatOptions {
|
|
|
compactDisplay?: string;
|
|
|
notation?: string;
|
|
|
signDisplay?: string;
|
|
|
unit?: string;
|
|
|
unitDisplay?: string;
|
|
|
}
|
|
|
|
|
|
interface ResolvedNumberFormatOptions {
|
|
|
compactDisplay?: string;
|
|
|
notation?: string;
|
|
|
signDisplay?: string;
|
|
|
unit?: string;
|
|
|
unitDisplay?: string;
|
|
|
}
|
|
|
|
|
|
interface DateTimeFormatOptions {
|
|
|
dateStyle?: "full" | "long" | "medium" | "short";
|
|
|
timeStyle?: "full" | "long" | "medium" | "short";
|
|
|
calendar?: string;
|
|
|
dayPeriod?: "narrow" | "short" | "long";
|
|
|
numberingSystem?: string;
|
|
|
hourCycle?: "h11" | "h12" | "h23" | "h24";
|
|
|
fractionalSecondDigits?: 0 | 1 | 2 | 3;
|
|
|
}
|
|
|
}
|
|
|
`,yi["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[] | readonly [unknown]>(values: T):
|
|
|
Promise<{ -readonly [P in keyof T]: PromiseSettledResult<T[P] extends PromiseLike<infer U> ? U : 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>): Promise<PromiseSettledResult<T extends PromiseLike<infer U> ? U : T>[]>;
|
|
|
}
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
/// <reference lib="es2015.iterable" />
|
|
|
|
|
|
interface String {
|
|
|
/**
|
|
|
* Matches a string with a regular expression, and returns an iterable of matches
|
|
|
* containing the results of that search.
|
|
|
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
|
|
|
*/
|
|
|
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
|
|
|
}
|
|
|
`,yi["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>;
|
|
|
}
|
|
|
`,yi["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" />
|
|
|
`,yi["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" />
|
|
|
`,yi["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>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>
|
|
|
}
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
interface WeakRef<T extends object> {
|
|
|
readonly [Symbol.toStringTag]: "WeakRef";
|
|
|
|
|
|
/**
|
|
|
* Returns the WeakRef instance's target object, or undefined if the target object has been
|
|
|
* reclaimed.
|
|
|
*/
|
|
|
deref(): T | undefined;
|
|
|
}
|
|
|
|
|
|
interface WeakRefConstructor {
|
|
|
readonly prototype: WeakRef<any>;
|
|
|
|
|
|
/**
|
|
|
* Creates a WeakRef instance for the given target object.
|
|
|
* @param target The target object for the WeakRef instance.
|
|
|
*/
|
|
|
new<T extends object>(target: T): WeakRef<T>;
|
|
|
}
|
|
|
|
|
|
declare var WeakRef: WeakRefConstructor;
|
|
|
|
|
|
interface FinalizationRegistry<T> {
|
|
|
readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
|
|
|
|
|
/**
|
|
|
* Registers an object with the registry.
|
|
|
* @param target The target object to register.
|
|
|
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
|
|
|
* target object.
|
|
|
* @param unregisterToken The token to pass to the unregister method to unregister the target
|
|
|
* object. If provided (and not undefined), this must be an object. If not provided, the target
|
|
|
* cannot be unregistered.
|
|
|
*/
|
|
|
register(target: object, heldValue: T, unregisterToken?: object): void;
|
|
|
|
|
|
/**
|
|
|
* Unregisters an object from the registry.
|
|
|
* @param unregisterToken The token that was used as the unregisterToken argument when calling
|
|
|
* register to register the target object.
|
|
|
*/
|
|
|
unregister(unregisterToken: object): void;
|
|
|
}
|
|
|
|
|
|
interface FinalizationRegistryConstructor {
|
|
|
readonly prototype: FinalizationRegistry<any>;
|
|
|
|
|
|
/**
|
|
|
* Creates a finalization registry with an associated cleanup callback
|
|
|
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
|
|
|
*/
|
|
|
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
|
|
|
}
|
|
|
|
|
|
declare var FinalizationRegistry: FinalizationRegistryConstructor;
|
|
|
`,yi["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"/>
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// 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 encoded 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 encoded 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.
|
|
|
* @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.
|
|
|
* @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 {
|
|
|
[s: string]: 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 o Object on which to lock the attributes.
|
|
|
*/
|
|
|
freeze<T>(a: 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 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>(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: any[]) => any ? U : unknown;
|
|
|
|
|
|
/**
|
|
|
* Removes the 'this' parameter from a function type.
|
|
|
*/
|
|
|
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
|
|
|
|
|
|
interface CallableFunction extends Function {
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args An array of argument values to be passed to the function.
|
|
|
*/
|
|
|
apply<T, R>(this: (this: T) => R, thisArg: T): R;
|
|
|
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
|
|
|
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Argument values to be passed to the function.
|
|
|
*/
|
|
|
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
|
|
|
|
|
|
/**
|
|
|
* For a given function, creates a bound function that has the same body as the original function.
|
|
|
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Arguments to bind to the parameters of the function.
|
|
|
*/
|
|
|
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
|
|
|
bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
|
|
|
bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
|
|
|
bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
|
|
|
bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
|
|
|
bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
|
|
|
}
|
|
|
|
|
|
interface NewableFunction extends Function {
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args An array of argument values to be passed to the function.
|
|
|
*/
|
|
|
apply<T>(this: new () => T, thisArg: T): void;
|
|
|
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
|
|
|
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Argument values to be passed to the function.
|
|
|
*/
|
|
|
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
|
|
|
|
|
|
/**
|
|
|
* For a given function, creates a bound function that has the same body as the original function.
|
|
|
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Arguments to bind to the parameters of the function.
|
|
|
*/
|
|
|
bind<T>(this: T, thisArg: any): T;
|
|
|
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
|
|
|
bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
|
|
|
bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
|
|
|
bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
|
|
|
bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
|
|
|
}
|
|
|
|
|
|
interface IArguments {
|
|
|
[index: number]: any;
|
|
|
length: number;
|
|
|
callee: Function;
|
|
|
}
|
|
|
|
|
|
interface String {
|
|
|
/** Returns a string representation of a string. */
|
|
|
toString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the character at the specified index.
|
|
|
* @param pos The zero-based index of the desired character.
|
|
|
*/
|
|
|
charAt(pos: number): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the Unicode value of the character at the specified location.
|
|
|
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
|
|
|
*/
|
|
|
charCodeAt(index: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns a string that contains the concatenation of two or more strings.
|
|
|
* @param strings The strings to append to the end of the string.
|
|
|
*/
|
|
|
concat(...strings: string[]): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the position of the first occurrence of a substring.
|
|
|
* @param searchString The substring to search for in the string
|
|
|
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
|
|
|
*/
|
|
|
indexOf(searchString: string, position?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the last occurrence of a substring in the string.
|
|
|
* @param searchString The substring to search for.
|
|
|
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
|
|
|
*/
|
|
|
lastIndexOf(searchString: string, position?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Determines whether two strings are equivalent in the current locale.
|
|
|
* @param that String to compare to target string
|
|
|
*/
|
|
|
localeCompare(that: string): number;
|
|
|
|
|
|
/**
|
|
|
* Matches a string with a regular expression, and returns an array containing the results of that search.
|
|
|
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
|
|
|
*/
|
|
|
match(regexp: string | RegExp): RegExpMatchArray | null;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using a regular expression or search string.
|
|
|
* @param searchValue A string to search for.
|
|
|
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
|
|
|
*/
|
|
|
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.
|
|
|
* @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 {
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
/** Gets the time value in milliseconds. */
|
|
|
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;
|
|
|
new(year: number, month: 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 month 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, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
|
|
|
now(): number;
|
|
|
}
|
|
|
|
|
|
declare var Date: DateConstructor;
|
|
|
|
|
|
interface RegExpMatchArray extends Array<string> {
|
|
|
index?: number;
|
|
|
input?: string;
|
|
|
}
|
|
|
|
|
|
interface RegExpExecArray extends Array<string> {
|
|
|
index: number;
|
|
|
input: 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
|
|
|
compile(): 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
|
|
|
$1: string;
|
|
|
$2: string;
|
|
|
$3: string;
|
|
|
$4: string;
|
|
|
$5: string;
|
|
|
$6: string;
|
|
|
$7: string;
|
|
|
$8: string;
|
|
|
$9: string;
|
|
|
lastMatch: 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 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, 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 ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
|
|
|
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
|
|
|
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
|
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
|
|
|
|
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>;
|
|
|
}
|
|
|
|
|
|
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 extends null | undefined ? never : T;
|
|
|
|
|
|
/**
|
|
|
* Obtain the parameters of a function type in a tuple
|
|
|
*/
|
|
|
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
|
|
|
|
|
|
/**
|
|
|
* Obtain the parameters of a constructor function type in a tuple
|
|
|
*/
|
|
|
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
|
|
|
|
|
|
/**
|
|
|
* Obtain the return type of a function type
|
|
|
*/
|
|
|
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
|
|
|
|
|
|
/**
|
|
|
* Obtain the return type of a constructor function type
|
|
|
*/
|
|
|
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
|
|
|
|
|
|
/**
|
|
|
* Convert string literal type to uppercase
|
|
|
*/
|
|
|
type Uppercase<S extends string> = intrinsic;
|
|
|
|
|
|
/**
|
|
|
* Convert string literal type to lowercase
|
|
|
*/
|
|
|
type Lowercase<S extends string> = intrinsic;
|
|
|
|
|
|
/**
|
|
|
* Convert first character of string literal type to uppercase
|
|
|
*/
|
|
|
type Capitalize<S extends string> = intrinsic;
|
|
|
|
|
|
/**
|
|
|
* Convert first character of string literal type to lowercase
|
|
|
*/
|
|
|
type Uncapitalize<S extends string> = intrinsic;
|
|
|
|
|
|
/**
|
|
|
* Marker for contextual 'this' type
|
|
|
*/
|
|
|
interface ThisType<T> { }
|
|
|
|
|
|
/**
|
|
|
* Represents a raw buffer of binary data, which is used to store data for the
|
|
|
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
|
|
|
* but can be passed to a typed array or DataView Object to interpret the raw
|
|
|
* buffer as needed.
|
|
|
*/
|
|
|
interface ArrayBuffer {
|
|
|
/**
|
|
|
* Read-only. The length of the ArrayBuffer (in bytes).
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an ArrayBuffer.
|
|
|
*/
|
|
|
slice(begin: number, end?: number): ArrayBuffer;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
|
|
|
*/
|
|
|
interface ArrayBufferTypes {
|
|
|
ArrayBuffer: ArrayBuffer;
|
|
|
}
|
|
|
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
|
|
|
|
|
|
interface ArrayBufferConstructor {
|
|
|
readonly prototype: ArrayBuffer;
|
|
|
new(byteLength: number): ArrayBuffer;
|
|
|
isView(arg: any): arg is ArrayBufferView;
|
|
|
}
|
|
|
declare var ArrayBuffer: ArrayBufferConstructor;
|
|
|
|
|
|
interface ArrayBufferView {
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
byteOffset: number;
|
|
|
}
|
|
|
|
|
|
interface DataView {
|
|
|
readonly buffer: ArrayBuffer;
|
|
|
readonly byteLength: number;
|
|
|
readonly byteOffset: number;
|
|
|
/**
|
|
|
* Gets the Float32 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
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.
|
|
|
*/
|
|
|
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.
|
|
|
*/
|
|
|
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.
|
|
|
*/
|
|
|
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.
|
|
|
*/
|
|
|
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.
|
|
|
*/
|
|
|
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,
|
|
|
* otherwise a little-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,
|
|
|
* otherwise a little-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,
|
|
|
* otherwise a little-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,
|
|
|
* otherwise a little-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,
|
|
|
* otherwise a little-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,
|
|
|
* otherwise a little-endian value should be written.
|
|
|
*/
|
|
|
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
|
}
|
|
|
|
|
|
interface DataViewConstructor {
|
|
|
readonly prototype: DataView;
|
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
|
|
|
}
|
|
|
declare var DataView: DataViewConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
|
|
|
* number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Int8Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param predicate A function that accepts up to three arguments. The every method calls
|
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param predicate A function that accepts up to three arguments. The filter method calls
|
|
|
* the predicate function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param predicate A function that accepts up to three arguments. The some method calls
|
|
|
* the predicate function for each element in the array until the predicate returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character 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, ASCII character 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, ASCII character 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, ASCII character 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, ASCII character 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, ASCII character 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, ASCII character 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, ASCII character 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, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Float64Array;
|
|
|
|
|
|
toString(): string;
|
|
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
|
valueOf(): Float64Array;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Float64ArrayConstructor {
|
|
|
readonly prototype: Float64Array;
|
|
|
new(length: number): Float64Array;
|
|
|
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
|
|
|
|
|
}
|
|
|
declare var Float64Array: Float64ArrayConstructor;
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// ECMAScript Internationalization API
|
|
|
/////////////////////////////
|
|
|
|
|
|
declare namespace Intl {
|
|
|
interface CollatorOptions {
|
|
|
usage?: string;
|
|
|
localeMatcher?: string;
|
|
|
numeric?: boolean;
|
|
|
caseFirst?: string;
|
|
|
sensitivity?: string;
|
|
|
ignorePunctuation?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ResolvedCollatorOptions {
|
|
|
locale: string;
|
|
|
usage: string;
|
|
|
sensitivity: string;
|
|
|
ignorePunctuation: boolean;
|
|
|
collation: string;
|
|
|
caseFirst: string;
|
|
|
numeric: boolean;
|
|
|
}
|
|
|
|
|
|
interface Collator {
|
|
|
compare(x: string, y: string): number;
|
|
|
resolvedOptions(): ResolvedCollatorOptions;
|
|
|
}
|
|
|
var Collator: {
|
|
|
new(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
|
(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
|
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
|
|
};
|
|
|
|
|
|
interface NumberFormatOptions {
|
|
|
localeMatcher?: string;
|
|
|
style?: string;
|
|
|
currency?: string;
|
|
|
currencyDisplay?: string;
|
|
|
currencySign?: string;
|
|
|
useGrouping?: boolean;
|
|
|
minimumIntegerDigits?: number;
|
|
|
minimumFractionDigits?: number;
|
|
|
maximumFractionDigits?: number;
|
|
|
minimumSignificantDigits?: number;
|
|
|
maximumSignificantDigits?: number;
|
|
|
}
|
|
|
|
|
|
interface ResolvedNumberFormatOptions {
|
|
|
locale: string;
|
|
|
numberingSystem: string;
|
|
|
style: string;
|
|
|
currency?: string;
|
|
|
currencyDisplay?: string;
|
|
|
minimumIntegerDigits: number;
|
|
|
minimumFractionDigits: number;
|
|
|
maximumFractionDigits: number;
|
|
|
minimumSignificantDigits?: number;
|
|
|
maximumSignificantDigits?: number;
|
|
|
useGrouping: boolean;
|
|
|
}
|
|
|
|
|
|
interface NumberFormat {
|
|
|
format(value: number): string;
|
|
|
resolvedOptions(): ResolvedNumberFormatOptions;
|
|
|
}
|
|
|
var NumberFormat: {
|
|
|
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
|
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
|
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
|
|
};
|
|
|
|
|
|
interface DateTimeFormatOptions {
|
|
|
localeMatcher?: "best fit" | "lookup";
|
|
|
weekday?: "long" | "short" | "narrow";
|
|
|
era?: "long" | "short" | "narrow";
|
|
|
year?: "numeric" | "2-digit";
|
|
|
month?: "numeric" | "2-digit" | "long" | "short" | "narrow";
|
|
|
day?: "numeric" | "2-digit";
|
|
|
hour?: "numeric" | "2-digit";
|
|
|
minute?: "numeric" | "2-digit";
|
|
|
second?: "numeric" | "2-digit";
|
|
|
timeZoneName?: "long" | "short";
|
|
|
formatMatcher?: "best fit" | "basic";
|
|
|
hour12?: boolean;
|
|
|
timeZone?: string;
|
|
|
}
|
|
|
|
|
|
interface ResolvedDateTimeFormatOptions {
|
|
|
locale: string;
|
|
|
calendar: string;
|
|
|
numberingSystem: string;
|
|
|
timeZone: string;
|
|
|
hour12?: boolean;
|
|
|
weekday?: string;
|
|
|
era?: string;
|
|
|
year?: string;
|
|
|
month?: string;
|
|
|
day?: string;
|
|
|
hour?: string;
|
|
|
minute?: string;
|
|
|
second?: string;
|
|
|
timeZoneName?: string;
|
|
|
}
|
|
|
|
|
|
interface DateTimeFormat {
|
|
|
format(date?: Date | number): string;
|
|
|
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
|
|
}
|
|
|
var DateTimeFormat: {
|
|
|
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
|
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
|
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
|
|
};
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
}
|
|
|
`,yi["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" />
|
|
|
`,yi["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="es2021" />
|
|
|
/// <reference lib="esnext.intl" />
|
|
|
`,yi["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" />`,yi["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 {
|
|
|
type NumberFormatPartTypes = "compact" | "currency" | "decimal" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "fraction" | "group" | "infinity" | "integer" | "literal" | "minusSign" | "nan" | "plusSign" | "percentSign" | "unit" | "unknown";
|
|
|
|
|
|
interface NumberFormatPart {
|
|
|
type: NumberFormatPartTypes;
|
|
|
value: string;
|
|
|
}
|
|
|
|
|
|
interface NumberFormat {
|
|
|
formatToParts(number?: number | bigint): NumberFormatPart[];
|
|
|
}
|
|
|
}
|
|
|
`,yi["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 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>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>
|
|
|
}
|
|
|
`,yi["lib.esnext.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;
|
|
|
}
|
|
|
`,yi["lib.esnext.weakref.d.ts"]=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
interface WeakRef<T extends object> {
|
|
|
readonly [Symbol.toStringTag]: "WeakRef";
|
|
|
|
|
|
/**
|
|
|
* Returns the WeakRef instance's target object, or undefined if the target object has been
|
|
|
* reclaimed.
|
|
|
*/
|
|
|
deref(): T | undefined;
|
|
|
}
|
|
|
|
|
|
interface WeakRefConstructor {
|
|
|
readonly prototype: WeakRef<any>;
|
|
|
|
|
|
/**
|
|
|
* Creates a WeakRef instance for the given target object.
|
|
|
* @param target The target object for the WeakRef instance.
|
|
|
*/
|
|
|
new<T extends object>(target?: T): WeakRef<T>;
|
|
|
}
|
|
|
|
|
|
declare var WeakRef: WeakRefConstructor;
|
|
|
|
|
|
interface FinalizationRegistry {
|
|
|
readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
|
|
|
|
|
/**
|
|
|
* Registers an object with the registry.
|
|
|
* @param target The target object to register.
|
|
|
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
|
|
|
* target object.
|
|
|
* @param unregisterToken The token to pass to the unregister method to unregister the target
|
|
|
* object. If provided (and not undefined), this must be an object. If not provided, the target
|
|
|
* cannot be unregistered.
|
|
|
*/
|
|
|
register(target: object, heldValue: any, unregisterToken?: object): void;
|
|
|
|
|
|
/**
|
|
|
* Unregisters an object from the registry.
|
|
|
* @param unregisterToken The token that was used as the unregisterToken argument when calling
|
|
|
* register to register the target object.
|
|
|
*/
|
|
|
unregister(unregisterToken: object): void;
|
|
|
}
|
|
|
|
|
|
interface FinalizationRegistryConstructor {
|
|
|
readonly prototype: FinalizationRegistry;
|
|
|
|
|
|
/**
|
|
|
* Creates a finalization registry with an associated cleanup callback
|
|
|
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
|
|
|
*/
|
|
|
new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
|
|
|
}
|
|
|
|
|
|
declare var FinalizationRegistry: FinalizationRegistryConstructor;
|
|
|
`,yi["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;
|
|
|
}
|
|
|
`,yi["lib.webworker.d.ts"]=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// Worker APIs
|
|
|
/////////////////////////////
|
|
|
|
|
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
|
once?: boolean;
|
|
|
passive?: boolean;
|
|
|
signal?: AbortSignal;
|
|
|
}
|
|
|
|
|
|
interface AesCbcParams extends Algorithm {
|
|
|
iv: BufferSource;
|
|
|
}
|
|
|
|
|
|
interface AesCtrParams extends Algorithm {
|
|
|
counter: BufferSource;
|
|
|
length: number;
|
|
|
}
|
|
|
|
|
|
interface AesDerivedKeyParams extends Algorithm {
|
|
|
length: number;
|
|
|
}
|
|
|
|
|
|
interface AesGcmParams extends Algorithm {
|
|
|
additionalData?: BufferSource;
|
|
|
iv: BufferSource;
|
|
|
tagLength?: number;
|
|
|
}
|
|
|
|
|
|
interface AesKeyAlgorithm extends KeyAlgorithm {
|
|
|
length: number;
|
|
|
}
|
|
|
|
|
|
interface AesKeyGenParams extends Algorithm {
|
|
|
length: number;
|
|
|
}
|
|
|
|
|
|
interface Algorithm {
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface AudioConfiguration {
|
|
|
bitrate?: number;
|
|
|
channels?: string;
|
|
|
contentType: string;
|
|
|
samplerate?: number;
|
|
|
spatialRendering?: boolean;
|
|
|
}
|
|
|
|
|
|
interface BlobPropertyBag {
|
|
|
endings?: EndingType;
|
|
|
type?: string;
|
|
|
}
|
|
|
|
|
|
interface CacheQueryOptions {
|
|
|
ignoreMethod?: boolean;
|
|
|
ignoreSearch?: boolean;
|
|
|
ignoreVary?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ClientQueryOptions {
|
|
|
includeUncontrolled?: boolean;
|
|
|
type?: ClientTypes;
|
|
|
}
|
|
|
|
|
|
interface CloseEventInit extends EventInit {
|
|
|
code?: number;
|
|
|
reason?: string;
|
|
|
wasClean?: boolean;
|
|
|
}
|
|
|
|
|
|
interface CryptoKeyPair {
|
|
|
privateKey?: CryptoKey;
|
|
|
publicKey?: CryptoKey;
|
|
|
}
|
|
|
|
|
|
interface CustomEventInit<T = any> extends EventInit {
|
|
|
detail?: T;
|
|
|
}
|
|
|
|
|
|
interface DOMMatrix2DInit {
|
|
|
a?: number;
|
|
|
b?: number;
|
|
|
c?: number;
|
|
|
d?: number;
|
|
|
e?: number;
|
|
|
f?: number;
|
|
|
m11?: number;
|
|
|
m12?: number;
|
|
|
m21?: number;
|
|
|
m22?: number;
|
|
|
m41?: number;
|
|
|
m42?: number;
|
|
|
}
|
|
|
|
|
|
interface DOMMatrixInit extends DOMMatrix2DInit {
|
|
|
is2D?: boolean;
|
|
|
m13?: number;
|
|
|
m14?: number;
|
|
|
m23?: number;
|
|
|
m24?: number;
|
|
|
m31?: number;
|
|
|
m32?: number;
|
|
|
m33?: number;
|
|
|
m34?: number;
|
|
|
m43?: number;
|
|
|
m44?: number;
|
|
|
}
|
|
|
|
|
|
interface DOMPointInit {
|
|
|
w?: number;
|
|
|
x?: number;
|
|
|
y?: number;
|
|
|
z?: number;
|
|
|
}
|
|
|
|
|
|
interface DOMQuadInit {
|
|
|
p1?: DOMPointInit;
|
|
|
p2?: DOMPointInit;
|
|
|
p3?: DOMPointInit;
|
|
|
p4?: DOMPointInit;
|
|
|
}
|
|
|
|
|
|
interface DOMRectInit {
|
|
|
height?: number;
|
|
|
width?: number;
|
|
|
x?: number;
|
|
|
y?: number;
|
|
|
}
|
|
|
|
|
|
interface EcKeyGenParams extends Algorithm {
|
|
|
namedCurve: NamedCurve;
|
|
|
}
|
|
|
|
|
|
interface EcKeyImportParams extends Algorithm {
|
|
|
namedCurve: NamedCurve;
|
|
|
}
|
|
|
|
|
|
interface EcdhKeyDeriveParams extends Algorithm {
|
|
|
public: CryptoKey;
|
|
|
}
|
|
|
|
|
|
interface EcdsaParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
}
|
|
|
|
|
|
interface ErrorEventInit extends EventInit {
|
|
|
colno?: number;
|
|
|
error?: any;
|
|
|
filename?: string;
|
|
|
lineno?: number;
|
|
|
message?: string;
|
|
|
}
|
|
|
|
|
|
interface EventInit {
|
|
|
bubbles?: boolean;
|
|
|
cancelable?: boolean;
|
|
|
composed?: boolean;
|
|
|
}
|
|
|
|
|
|
interface EventListenerOptions {
|
|
|
capture?: boolean;
|
|
|
}
|
|
|
|
|
|
interface EventSourceInit {
|
|
|
withCredentials?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ExtendableEventInit extends EventInit {
|
|
|
}
|
|
|
|
|
|
interface ExtendableMessageEventInit extends ExtendableEventInit {
|
|
|
data?: any;
|
|
|
lastEventId?: string;
|
|
|
origin?: string;
|
|
|
ports?: MessagePort[];
|
|
|
source?: Client | ServiceWorker | MessagePort | null;
|
|
|
}
|
|
|
|
|
|
interface FetchEventInit extends ExtendableEventInit {
|
|
|
clientId?: string;
|
|
|
handled?: Promise<undefined>;
|
|
|
preloadResponse?: Promise<any>;
|
|
|
replacesClientId?: string;
|
|
|
request: Request;
|
|
|
resultingClientId?: string;
|
|
|
}
|
|
|
|
|
|
interface FilePropertyBag extends BlobPropertyBag {
|
|
|
lastModified?: number;
|
|
|
}
|
|
|
|
|
|
interface FontFaceDescriptors {
|
|
|
display?: string;
|
|
|
featureSettings?: string;
|
|
|
stretch?: string;
|
|
|
style?: string;
|
|
|
unicodeRange?: string;
|
|
|
variant?: string;
|
|
|
weight?: string;
|
|
|
}
|
|
|
|
|
|
interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
fontfaces?: FontFace[];
|
|
|
}
|
|
|
|
|
|
interface GetNotificationOptions {
|
|
|
tag?: string;
|
|
|
}
|
|
|
|
|
|
interface HkdfParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
info: BufferSource;
|
|
|
salt: BufferSource;
|
|
|
}
|
|
|
|
|
|
interface HmacImportParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
length?: number;
|
|
|
}
|
|
|
|
|
|
interface HmacKeyGenParams extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
length?: number;
|
|
|
}
|
|
|
|
|
|
interface IDBDatabaseInfo {
|
|
|
name?: string;
|
|
|
version?: number;
|
|
|
}
|
|
|
|
|
|
interface IDBIndexParameters {
|
|
|
multiEntry?: boolean;
|
|
|
unique?: boolean;
|
|
|
}
|
|
|
|
|
|
interface IDBObjectStoreParameters {
|
|
|
autoIncrement?: boolean;
|
|
|
keyPath?: string | string[] | null;
|
|
|
}
|
|
|
|
|
|
interface 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 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 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 NotificationAction {
|
|
|
action: string;
|
|
|
icon?: string;
|
|
|
title: string;
|
|
|
}
|
|
|
|
|
|
interface NotificationEventInit extends ExtendableEventInit {
|
|
|
action?: string;
|
|
|
notification: Notification;
|
|
|
}
|
|
|
|
|
|
interface NotificationOptions {
|
|
|
actions?: NotificationAction[];
|
|
|
badge?: string;
|
|
|
body?: string;
|
|
|
data?: any;
|
|
|
dir?: NotificationDirection;
|
|
|
icon?: string;
|
|
|
image?: string;
|
|
|
lang?: string;
|
|
|
renotify?: boolean;
|
|
|
requireInteraction?: boolean;
|
|
|
silent?: boolean;
|
|
|
tag?: string;
|
|
|
timestamp?: DOMTimeStamp;
|
|
|
vibrate?: VibratePattern;
|
|
|
}
|
|
|
|
|
|
interface Pbkdf2Params extends Algorithm {
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
iterations: number;
|
|
|
salt: BufferSource;
|
|
|
}
|
|
|
|
|
|
interface PerformanceMarkOptions {
|
|
|
detail?: any;
|
|
|
startTime?: DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface PerformanceMeasureOptions {
|
|
|
detail?: any;
|
|
|
duration?: DOMHighResTimeStamp;
|
|
|
end?: string | DOMHighResTimeStamp;
|
|
|
start?: string | DOMHighResTimeStamp;
|
|
|
}
|
|
|
|
|
|
interface PerformanceObserverInit {
|
|
|
buffered?: boolean;
|
|
|
entryTypes?: string[];
|
|
|
type?: string;
|
|
|
}
|
|
|
|
|
|
interface PermissionDescriptor {
|
|
|
name: PermissionName;
|
|
|
}
|
|
|
|
|
|
interface PostMessageOptions {
|
|
|
transfer?: any[];
|
|
|
}
|
|
|
|
|
|
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?: DOMTimeStamp | 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 ReadableStreamDefaultReadDoneResult {
|
|
|
done: true;
|
|
|
value?: undefined;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamDefaultReadValueResult<T> {
|
|
|
done: false;
|
|
|
value: T;
|
|
|
}
|
|
|
|
|
|
interface ReadableWritablePair<R = any, W = any> {
|
|
|
readable: ReadableStream<R>;
|
|
|
/**
|
|
|
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
|
|
|
*
|
|
|
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
|
|
|
*/
|
|
|
writable: WritableStream<W>;
|
|
|
}
|
|
|
|
|
|
interface RegistrationOptions {
|
|
|
scope?: string;
|
|
|
type?: WorkerType;
|
|
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
|
}
|
|
|
|
|
|
interface RequestInit {
|
|
|
/**
|
|
|
* A BodyInit object or null to set request's body.
|
|
|
*/
|
|
|
body?: BodyInit | null;
|
|
|
/**
|
|
|
* A string indicating how the request will interact with the browser's cache to set request's cache.
|
|
|
*/
|
|
|
cache?: RequestCache;
|
|
|
/**
|
|
|
* A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
|
|
|
*/
|
|
|
credentials?: RequestCredentials;
|
|
|
/**
|
|
|
* A Headers object, an object literal, or an array of two-item arrays to set request's headers.
|
|
|
*/
|
|
|
headers?: HeadersInit;
|
|
|
/**
|
|
|
* A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
|
|
|
*/
|
|
|
integrity?: string;
|
|
|
/**
|
|
|
* A boolean to set request's keepalive.
|
|
|
*/
|
|
|
keepalive?: boolean;
|
|
|
/**
|
|
|
* A string to set request's method.
|
|
|
*/
|
|
|
method?: string;
|
|
|
/**
|
|
|
* A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
|
|
|
*/
|
|
|
mode?: RequestMode;
|
|
|
/**
|
|
|
* A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
|
|
|
*/
|
|
|
redirect?: RequestRedirect;
|
|
|
/**
|
|
|
* A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
|
|
|
*/
|
|
|
referrer?: string;
|
|
|
/**
|
|
|
* A referrer policy to set request's referrerPolicy.
|
|
|
*/
|
|
|
referrerPolicy?: ReferrerPolicy;
|
|
|
/**
|
|
|
* An AbortSignal to set request's signal.
|
|
|
*/
|
|
|
signal?: AbortSignal | null;
|
|
|
/**
|
|
|
* Can only be null. Used to disassociate request from any Window.
|
|
|
*/
|
|
|
window?: any;
|
|
|
}
|
|
|
|
|
|
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 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 UnderlyingSink<W = any> {
|
|
|
abort?: UnderlyingSinkAbortCallback;
|
|
|
close?: UnderlyingSinkCloseCallback;
|
|
|
start?: UnderlyingSinkStartCallback;
|
|
|
type?: undefined;
|
|
|
write?: UnderlyingSinkWriteCallback<W>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSource<R = any> {
|
|
|
cancel?: UnderlyingSourceCancelCallback;
|
|
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
|
start?: UnderlyingSourceStartCallback<R>;
|
|
|
type?: undefined;
|
|
|
}
|
|
|
|
|
|
interface VideoConfiguration {
|
|
|
bitrate: number;
|
|
|
colorGamut?: ColorGamut;
|
|
|
contentType: string;
|
|
|
framerate: number;
|
|
|
hdrMetadataType?: HdrMetadataType;
|
|
|
height: number;
|
|
|
scalabilityMode?: string;
|
|
|
transferFunction?: TransferFunction;
|
|
|
width: number;
|
|
|
}
|
|
|
|
|
|
interface WebGLContextAttributes {
|
|
|
alpha?: boolean;
|
|
|
antialias?: boolean;
|
|
|
depth?: boolean;
|
|
|
desynchronized?: boolean;
|
|
|
failIfMajorPerformanceCaveat?: boolean;
|
|
|
powerPreference?: WebGLPowerPreference;
|
|
|
premultipliedAlpha?: boolean;
|
|
|
preserveDrawingBuffer?: boolean;
|
|
|
stencil?: boolean;
|
|
|
}
|
|
|
|
|
|
interface WebGLContextEventInit extends EventInit {
|
|
|
statusMessage?: string;
|
|
|
}
|
|
|
|
|
|
interface WorkerOptions {
|
|
|
credentials?: RequestCredentials;
|
|
|
name?: string;
|
|
|
type?: WorkerType;
|
|
|
}
|
|
|
|
|
|
/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
|
|
|
interface ANGLE_instanced_arrays {
|
|
|
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
|
|
|
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
|
|
|
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
|
|
|
}
|
|
|
|
|
|
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
|
interface AbortController {
|
|
|
/**
|
|
|
* Returns the AbortSignal object associated with this object.
|
|
|
*/
|
|
|
readonly signal: AbortSignal;
|
|
|
/**
|
|
|
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
}
|
|
|
|
|
|
declare var AbortController: {
|
|
|
prototype: AbortController;
|
|
|
new(): AbortController;
|
|
|
};
|
|
|
|
|
|
interface AbortSignalEventMap {
|
|
|
"abort": Event;
|
|
|
}
|
|
|
|
|
|
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
|
interface AbortSignal extends EventTarget {
|
|
|
/**
|
|
|
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
|
*/
|
|
|
readonly aborted: boolean;
|
|
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
|
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;
|
|
|
};
|
|
|
|
|
|
interface AbstractWorkerEventMap {
|
|
|
"error": ErrorEvent;
|
|
|
}
|
|
|
|
|
|
interface AbstractWorker {
|
|
|
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
|
|
|
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
interface AnimationFrameProvider {
|
|
|
cancelAnimationFrame(handle: number): void;
|
|
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
}
|
|
|
|
|
|
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
|
|
|
interface Blob {
|
|
|
readonly size: number;
|
|
|
readonly type: string;
|
|
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
|
stream(): ReadableStream;
|
|
|
text(): Promise<string>;
|
|
|
}
|
|
|
|
|
|
declare var Blob: {
|
|
|
prototype: Blob;
|
|
|
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
|
};
|
|
|
|
|
|
interface Body {
|
|
|
readonly body: ReadableStream<Uint8Array> | null;
|
|
|
readonly bodyUsed: boolean;
|
|
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
|
blob(): Promise<Blob>;
|
|
|
formData(): Promise<FormData>;
|
|
|
json(): Promise<any>;
|
|
|
text(): Promise<string>;
|
|
|
}
|
|
|
|
|
|
interface BroadcastChannelEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
interface BroadcastChannel extends EventTarget {
|
|
|
/**
|
|
|
* Returns the channel name (as passed to the constructor).
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Closes the BroadcastChannel object, opening it up to garbage collection.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
|
|
|
*/
|
|
|
postMessage(message: any): void;
|
|
|
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var BroadcastChannel: {
|
|
|
prototype: BroadcastChannel;
|
|
|
new(name: string): BroadcastChannel;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
|
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
|
readonly highWaterMark: number;
|
|
|
readonly size: QueuingStrategySize<ArrayBufferView>;
|
|
|
}
|
|
|
|
|
|
declare var ByteLengthQueuingStrategy: {
|
|
|
prototype: ByteLengthQueuingStrategy;
|
|
|
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
|
};
|
|
|
|
|
|
/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
|
|
|
interface Cache {
|
|
|
add(request: RequestInfo): Promise<void>;
|
|
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
|
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
|
|
|
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
|
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
|
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
|
put(request: RequestInfo, response: Response): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Cache: {
|
|
|
prototype: Cache;
|
|
|
new(): Cache;
|
|
|
};
|
|
|
|
|
|
/** The storage for Cache objects. */
|
|
|
interface CacheStorage {
|
|
|
delete(cacheName: string): Promise<boolean>;
|
|
|
has(cacheName: string): Promise<boolean>;
|
|
|
keys(): Promise<string[]>;
|
|
|
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
|
open(cacheName: string): Promise<Cache>;
|
|
|
}
|
|
|
|
|
|
declare var CacheStorage: {
|
|
|
prototype: CacheStorage;
|
|
|
new(): CacheStorage;
|
|
|
};
|
|
|
|
|
|
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
|
|
|
interface CanvasGradient {
|
|
|
/**
|
|
|
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
|
|
|
*
|
|
|
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
|
|
|
*/
|
|
|
addColorStop(offset: number, color: string): void;
|
|
|
}
|
|
|
|
|
|
declare var CanvasGradient: {
|
|
|
prototype: CanvasGradient;
|
|
|
new(): CanvasGradient;
|
|
|
};
|
|
|
|
|
|
interface CanvasPath {
|
|
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
|
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
|
|
|
closePath(): void;
|
|
|
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
|
lineTo(x: number, y: number): void;
|
|
|
moveTo(x: number, y: number): void;
|
|
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
|
rect(x: number, y: number, w: number, h: number): void;
|
|
|
}
|
|
|
|
|
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
|
interface CanvasPattern {
|
|
|
/**
|
|
|
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
|
|
|
*/
|
|
|
setTransform(transform?: DOMMatrix2DInit): void;
|
|
|
}
|
|
|
|
|
|
declare var CanvasPattern: {
|
|
|
prototype: CanvasPattern;
|
|
|
new(): CanvasPattern;
|
|
|
};
|
|
|
|
|
|
/** The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get(). */
|
|
|
interface Client {
|
|
|
readonly frameType: FrameType;
|
|
|
readonly id: string;
|
|
|
readonly type: ClientTypes;
|
|
|
readonly url: string;
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Client: {
|
|
|
prototype: Client;
|
|
|
new(): Client;
|
|
|
};
|
|
|
|
|
|
/** Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker. */
|
|
|
interface Clients {
|
|
|
claim(): Promise<void>;
|
|
|
get(id: string): Promise<Client | undefined>;
|
|
|
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
|
|
|
openWindow(url: string | URL): Promise<WindowClient | null>;
|
|
|
}
|
|
|
|
|
|
declare var Clients: {
|
|
|
prototype: Clients;
|
|
|
new(): Clients;
|
|
|
};
|
|
|
|
|
|
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
|
|
|
interface CloseEvent extends Event {
|
|
|
/**
|
|
|
* Returns the WebSocket connection close code provided by the server.
|
|
|
*/
|
|
|
readonly code: number;
|
|
|
/**
|
|
|
* Returns the WebSocket connection close reason provided by the server.
|
|
|
*/
|
|
|
readonly reason: string;
|
|
|
/**
|
|
|
* Returns true if the connection closed cleanly; false otherwise.
|
|
|
*/
|
|
|
readonly wasClean: boolean;
|
|
|
}
|
|
|
|
|
|
declare var CloseEvent: {
|
|
|
prototype: CloseEvent;
|
|
|
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
|
interface CountQueuingStrategy extends QueuingStrategy {
|
|
|
readonly highWaterMark: number;
|
|
|
readonly size: QueuingStrategySize;
|
|
|
}
|
|
|
|
|
|
declare var CountQueuingStrategy: {
|
|
|
prototype: CountQueuingStrategy;
|
|
|
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
|
};
|
|
|
|
|
|
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
|
|
|
interface Crypto {
|
|
|
readonly subtle: SubtleCrypto;
|
|
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
|
}
|
|
|
|
|
|
declare var Crypto: {
|
|
|
prototype: Crypto;
|
|
|
new(): Crypto;
|
|
|
};
|
|
|
|
|
|
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */
|
|
|
interface CryptoKey {
|
|
|
readonly algorithm: KeyAlgorithm;
|
|
|
readonly extractable: boolean;
|
|
|
readonly type: KeyType;
|
|
|
readonly usages: KeyUsage[];
|
|
|
}
|
|
|
|
|
|
declare var CryptoKey: {
|
|
|
prototype: CryptoKey;
|
|
|
new(): CryptoKey;
|
|
|
};
|
|
|
|
|
|
interface CustomEvent<T = any> extends Event {
|
|
|
/**
|
|
|
* Returns any custom data event was created with. Typically used for synthetic events.
|
|
|
*/
|
|
|
readonly detail: T;
|
|
|
/** @deprecated */
|
|
|
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
|
}
|
|
|
|
|
|
declare var CustomEvent: {
|
|
|
prototype: CustomEvent;
|
|
|
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
|
};
|
|
|
|
|
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
|
interface DOMException {
|
|
|
readonly code: number;
|
|
|
readonly message: string;
|
|
|
readonly name: string;
|
|
|
readonly ABORT_ERR: number;
|
|
|
readonly DATA_CLONE_ERR: number;
|
|
|
readonly DOMSTRING_SIZE_ERR: number;
|
|
|
readonly HIERARCHY_REQUEST_ERR: number;
|
|
|
readonly INDEX_SIZE_ERR: number;
|
|
|
readonly INUSE_ATTRIBUTE_ERR: number;
|
|
|
readonly INVALID_ACCESS_ERR: number;
|
|
|
readonly INVALID_CHARACTER_ERR: number;
|
|
|
readonly INVALID_MODIFICATION_ERR: number;
|
|
|
readonly INVALID_NODE_TYPE_ERR: number;
|
|
|
readonly INVALID_STATE_ERR: number;
|
|
|
readonly NAMESPACE_ERR: number;
|
|
|
readonly NETWORK_ERR: number;
|
|
|
readonly NOT_FOUND_ERR: number;
|
|
|
readonly NOT_SUPPORTED_ERR: number;
|
|
|
readonly NO_DATA_ALLOWED_ERR: number;
|
|
|
readonly NO_MODIFICATION_ALLOWED_ERR: number;
|
|
|
readonly QUOTA_EXCEEDED_ERR: number;
|
|
|
readonly SECURITY_ERR: number;
|
|
|
readonly SYNTAX_ERR: number;
|
|
|
readonly TIMEOUT_ERR: number;
|
|
|
readonly TYPE_MISMATCH_ERR: number;
|
|
|
readonly URL_MISMATCH_ERR: number;
|
|
|
readonly VALIDATION_ERR: number;
|
|
|
readonly WRONG_DOCUMENT_ERR: number;
|
|
|
}
|
|
|
|
|
|
declare var DOMException: {
|
|
|
prototype: DOMException;
|
|
|
new(message?: string, name?: string): DOMException;
|
|
|
readonly ABORT_ERR: number;
|
|
|
readonly DATA_CLONE_ERR: number;
|
|
|
readonly DOMSTRING_SIZE_ERR: number;
|
|
|
readonly HIERARCHY_REQUEST_ERR: number;
|
|
|
readonly INDEX_SIZE_ERR: number;
|
|
|
readonly INUSE_ATTRIBUTE_ERR: number;
|
|
|
readonly INVALID_ACCESS_ERR: number;
|
|
|
readonly INVALID_CHARACTER_ERR: number;
|
|
|
readonly INVALID_MODIFICATION_ERR: number;
|
|
|
readonly INVALID_NODE_TYPE_ERR: number;
|
|
|
readonly INVALID_STATE_ERR: number;
|
|
|
readonly NAMESPACE_ERR: number;
|
|
|
readonly NETWORK_ERR: number;
|
|
|
readonly NOT_FOUND_ERR: number;
|
|
|
readonly NOT_SUPPORTED_ERR: number;
|
|
|
readonly NO_DATA_ALLOWED_ERR: number;
|
|
|
readonly NO_MODIFICATION_ALLOWED_ERR: number;
|
|
|
readonly QUOTA_EXCEEDED_ERR: number;
|
|
|
readonly SECURITY_ERR: number;
|
|
|
readonly SYNTAX_ERR: number;
|
|
|
readonly TIMEOUT_ERR: number;
|
|
|
readonly TYPE_MISMATCH_ERR: number;
|
|
|
readonly URL_MISMATCH_ERR: number;
|
|
|
readonly VALIDATION_ERR: number;
|
|
|
readonly WRONG_DOCUMENT_ERR: number;
|
|
|
};
|
|
|
|
|
|
interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
a: number;
|
|
|
b: number;
|
|
|
c: number;
|
|
|
d: number;
|
|
|
e: number;
|
|
|
f: number;
|
|
|
m11: number;
|
|
|
m12: number;
|
|
|
m13: number;
|
|
|
m14: number;
|
|
|
m21: number;
|
|
|
m22: number;
|
|
|
m23: number;
|
|
|
m24: number;
|
|
|
m31: number;
|
|
|
m32: number;
|
|
|
m33: number;
|
|
|
m34: number;
|
|
|
m41: number;
|
|
|
m42: number;
|
|
|
m43: number;
|
|
|
m44: number;
|
|
|
invertSelf(): DOMMatrix;
|
|
|
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
|
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
|
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
|
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
|
|
|
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
|
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
skewXSelf(sx?: number): DOMMatrix;
|
|
|
skewYSelf(sy?: number): DOMMatrix;
|
|
|
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
|
|
}
|
|
|
|
|
|
declare var DOMMatrix: {
|
|
|
prototype: DOMMatrix;
|
|
|
new(init?: string | number[]): DOMMatrix;
|
|
|
fromFloat32Array(array32: Float32Array): DOMMatrix;
|
|
|
fromFloat64Array(array64: Float64Array): DOMMatrix;
|
|
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
|
};
|
|
|
|
|
|
interface DOMMatrixReadOnly {
|
|
|
readonly a: number;
|
|
|
readonly b: number;
|
|
|
readonly c: number;
|
|
|
readonly d: number;
|
|
|
readonly e: number;
|
|
|
readonly f: number;
|
|
|
readonly is2D: boolean;
|
|
|
readonly isIdentity: boolean;
|
|
|
readonly m11: number;
|
|
|
readonly m12: number;
|
|
|
readonly m13: number;
|
|
|
readonly m14: number;
|
|
|
readonly m21: number;
|
|
|
readonly m22: number;
|
|
|
readonly m23: number;
|
|
|
readonly m24: number;
|
|
|
readonly m31: number;
|
|
|
readonly m32: number;
|
|
|
readonly m33: number;
|
|
|
readonly m34: number;
|
|
|
readonly m41: number;
|
|
|
readonly m42: number;
|
|
|
readonly m43: number;
|
|
|
readonly m44: number;
|
|
|
flipX(): DOMMatrix;
|
|
|
flipY(): DOMMatrix;
|
|
|
inverse(): DOMMatrix;
|
|
|
multiply(other?: DOMMatrixInit): DOMMatrix;
|
|
|
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
|
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
|
rotateFromVector(x?: number, y?: number): DOMMatrix;
|
|
|
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
|
/** @deprecated */
|
|
|
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
|
|
|
skewX(sx?: number): DOMMatrix;
|
|
|
skewY(sy?: number): DOMMatrix;
|
|
|
toFloat32Array(): Float32Array;
|
|
|
toFloat64Array(): Float64Array;
|
|
|
toJSON(): any;
|
|
|
transformPoint(point?: DOMPointInit): DOMPoint;
|
|
|
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
|
|
}
|
|
|
|
|
|
declare var DOMMatrixReadOnly: {
|
|
|
prototype: DOMMatrixReadOnly;
|
|
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
|
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
|
|
|
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
|
|
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
|
};
|
|
|
|
|
|
interface DOMPoint extends DOMPointReadOnly {
|
|
|
w: number;
|
|
|
x: number;
|
|
|
y: number;
|
|
|
z: number;
|
|
|
}
|
|
|
|
|
|
declare var DOMPoint: {
|
|
|
prototype: DOMPoint;
|
|
|
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
|
|
fromPoint(other?: DOMPointInit): DOMPoint;
|
|
|
};
|
|
|
|
|
|
interface DOMPointReadOnly {
|
|
|
readonly w: number;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
readonly z: number;
|
|
|
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var DOMPointReadOnly: {
|
|
|
prototype: DOMPointReadOnly;
|
|
|
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
|
|
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
|
|
|
};
|
|
|
|
|
|
interface DOMQuad {
|
|
|
readonly p1: DOMPoint;
|
|
|
readonly p2: DOMPoint;
|
|
|
readonly p3: DOMPoint;
|
|
|
readonly p4: DOMPoint;
|
|
|
getBounds(): DOMRect;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var DOMQuad: {
|
|
|
prototype: DOMQuad;
|
|
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
|
};
|
|
|
|
|
|
interface DOMRect extends DOMRectReadOnly {
|
|
|
height: number;
|
|
|
width: number;
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var DOMRect: {
|
|
|
prototype: DOMRect;
|
|
|
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
|
|
|
fromRect(other?: DOMRectInit): DOMRect;
|
|
|
};
|
|
|
|
|
|
interface DOMRectReadOnly {
|
|
|
readonly bottom: number;
|
|
|
readonly height: number;
|
|
|
readonly left: number;
|
|
|
readonly right: number;
|
|
|
readonly top: number;
|
|
|
readonly width: number;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var DOMRectReadOnly: {
|
|
|
prototype: DOMRectReadOnly;
|
|
|
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
|
|
fromRect(other?: DOMRectInit): DOMRectReadOnly;
|
|
|
};
|
|
|
|
|
|
/** A type returned by some APIs which contains a list of DOMString (strings). */
|
|
|
interface DOMStringList {
|
|
|
/**
|
|
|
* Returns the number of strings in strings.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns true if strings contains string, and false otherwise.
|
|
|
*/
|
|
|
contains(string: string): boolean;
|
|
|
/**
|
|
|
* Returns the string with index index from strings.
|
|
|
*/
|
|
|
item(index: number): string | null;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var DOMStringList: {
|
|
|
prototype: DOMStringList;
|
|
|
new(): DOMStringList;
|
|
|
};
|
|
|
|
|
|
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
|
|
|
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
|
|
|
/**
|
|
|
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Aborts dedicatedWorkerGlobal.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
|
*/
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var DedicatedWorkerGlobalScope: {
|
|
|
prototype: DedicatedWorkerGlobalScope;
|
|
|
new(): DedicatedWorkerGlobalScope;
|
|
|
};
|
|
|
|
|
|
interface EXT_blend_minmax {
|
|
|
readonly MAX_EXT: GLenum;
|
|
|
readonly MIN_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface EXT_color_buffer_float {
|
|
|
}
|
|
|
|
|
|
interface EXT_color_buffer_half_float {
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
|
readonly RGB16F_EXT: GLenum;
|
|
|
readonly RGBA16F_EXT: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface EXT_float_blend {
|
|
|
}
|
|
|
|
|
|
/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
|
|
|
interface EXT_frag_depth {
|
|
|
}
|
|
|
|
|
|
interface EXT_sRGB {
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
|
|
|
readonly SRGB8_ALPHA8_EXT: GLenum;
|
|
|
readonly SRGB_ALPHA_EXT: GLenum;
|
|
|
readonly SRGB_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface EXT_shader_texture_lod {
|
|
|
}
|
|
|
|
|
|
interface EXT_texture_compression_rgtc {
|
|
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
|
|
|
interface EXT_texture_filter_anisotropic {
|
|
|
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
|
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
/** Events providing information related to errors in scripts or in files. */
|
|
|
interface ErrorEvent extends Event {
|
|
|
readonly colno: number;
|
|
|
readonly error: any;
|
|
|
readonly filename: string;
|
|
|
readonly lineno: number;
|
|
|
readonly message: string;
|
|
|
}
|
|
|
|
|
|
declare var ErrorEvent: {
|
|
|
prototype: ErrorEvent;
|
|
|
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** An event which takes place in the DOM. */
|
|
|
interface Event {
|
|
|
/**
|
|
|
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
|
|
|
*/
|
|
|
readonly bubbles: boolean;
|
|
|
cancelBubble: boolean;
|
|
|
/**
|
|
|
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
|
|
|
*/
|
|
|
readonly cancelable: boolean;
|
|
|
/**
|
|
|
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
|
|
|
*/
|
|
|
readonly composed: boolean;
|
|
|
/**
|
|
|
* Returns the object whose event listener's callback is currently being invoked.
|
|
|
*/
|
|
|
readonly currentTarget: EventTarget | null;
|
|
|
/**
|
|
|
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
|
|
|
*/
|
|
|
readonly defaultPrevented: boolean;
|
|
|
/**
|
|
|
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
|
|
|
*/
|
|
|
readonly eventPhase: number;
|
|
|
/**
|
|
|
* Returns true if event was dispatched by the user agent, and false otherwise.
|
|
|
*/
|
|
|
readonly isTrusted: boolean;
|
|
|
/** @deprecated */
|
|
|
returnValue: boolean;
|
|
|
/** @deprecated */
|
|
|
readonly srcElement: EventTarget | null;
|
|
|
/**
|
|
|
* Returns the object to which event is dispatched (its target).
|
|
|
*/
|
|
|
readonly target: EventTarget | null;
|
|
|
/**
|
|
|
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
|
|
|
*/
|
|
|
readonly timeStamp: DOMHighResTimeStamp;
|
|
|
/**
|
|
|
* Returns the type of event, e.g. "click", "hashchange", or "submit".
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
|
|
|
*/
|
|
|
composedPath(): EventTarget[];
|
|
|
/** @deprecated */
|
|
|
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
|
/**
|
|
|
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
|
|
|
*/
|
|
|
preventDefault(): void;
|
|
|
/**
|
|
|
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
|
|
|
*/
|
|
|
stopImmediatePropagation(): void;
|
|
|
/**
|
|
|
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
|
|
|
*/
|
|
|
stopPropagation(): void;
|
|
|
readonly AT_TARGET: number;
|
|
|
readonly BUBBLING_PHASE: number;
|
|
|
readonly CAPTURING_PHASE: number;
|
|
|
readonly NONE: number;
|
|
|
}
|
|
|
|
|
|
declare var Event: {
|
|
|
prototype: Event;
|
|
|
new(type: string, eventInitDict?: EventInit): Event;
|
|
|
readonly AT_TARGET: number;
|
|
|
readonly BUBBLING_PHASE: number;
|
|
|
readonly CAPTURING_PHASE: number;
|
|
|
readonly NONE: number;
|
|
|
};
|
|
|
|
|
|
interface EventListener {
|
|
|
(evt: Event): void;
|
|
|
}
|
|
|
|
|
|
interface EventListenerObject {
|
|
|
handleEvent(object: Event): void;
|
|
|
}
|
|
|
|
|
|
interface EventSourceEventMap {
|
|
|
"error": Event;
|
|
|
"message": MessageEvent;
|
|
|
"open": Event;
|
|
|
}
|
|
|
|
|
|
interface EventSource extends EventTarget {
|
|
|
onerror: ((this: EventSource, ev: Event) => any) | null;
|
|
|
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
|
|
|
onopen: ((this: EventSource, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns the state of this EventSource object's connection. It can have the values described below.
|
|
|
*/
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns the URL providing the event stream.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
/**
|
|
|
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
|
|
|
*/
|
|
|
readonly withCredentials: boolean;
|
|
|
/**
|
|
|
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
|
|
|
*/
|
|
|
close(): void;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => 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: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var EventSource: {
|
|
|
prototype: EventSource;
|
|
|
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
};
|
|
|
|
|
|
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
|
|
|
interface EventTarget {
|
|
|
/**
|
|
|
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
|
|
|
*
|
|
|
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
|
|
|
*
|
|
|
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
|
|
|
*
|
|
|
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
|
|
|
*
|
|
|
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
|
|
|
*
|
|
|
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
|
|
|
*
|
|
|
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
|
|
|
*/
|
|
|
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
|
/**
|
|
|
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
|
*/
|
|
|
dispatchEvent(event: Event): boolean;
|
|
|
/**
|
|
|
* Removes the event listener in target's event listener list with the same type, callback, and options.
|
|
|
*/
|
|
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
|
}
|
|
|
|
|
|
declare var EventTarget: {
|
|
|
prototype: EventTarget;
|
|
|
new(): EventTarget;
|
|
|
};
|
|
|
|
|
|
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
|
|
|
interface ExtendableEvent extends Event {
|
|
|
waitUntil(f: any): void;
|
|
|
}
|
|
|
|
|
|
declare var ExtendableEvent: {
|
|
|
prototype: ExtendableEvent;
|
|
|
new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
|
|
|
};
|
|
|
|
|
|
/** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events. */
|
|
|
interface ExtendableMessageEvent extends ExtendableEvent {
|
|
|
readonly data: any;
|
|
|
readonly lastEventId: string;
|
|
|
readonly origin: string;
|
|
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
|
readonly source: Client | ServiceWorker | MessagePort | null;
|
|
|
}
|
|
|
|
|
|
declare var ExtendableMessageEvent: {
|
|
|
prototype: ExtendableMessageEvent;
|
|
|
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
|
|
|
};
|
|
|
|
|
|
/** This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
|
|
|
interface FetchEvent extends ExtendableEvent {
|
|
|
readonly clientId: string;
|
|
|
readonly handled: Promise<undefined>;
|
|
|
readonly request: Request;
|
|
|
readonly resultingClientId: string;
|
|
|
respondWith(r: Response | PromiseLike<Response>): void;
|
|
|
}
|
|
|
|
|
|
declare var FetchEvent: {
|
|
|
prototype: FetchEvent;
|
|
|
new(type: string, eventInitDict: FetchEventInit): FetchEvent;
|
|
|
};
|
|
|
|
|
|
/** Provides information about files and allows JavaScript in a web page to access their content. */
|
|
|
interface File extends Blob {
|
|
|
readonly lastModified: number;
|
|
|
readonly name: string;
|
|
|
readonly webkitRelativePath: string;
|
|
|
}
|
|
|
|
|
|
declare var File: {
|
|
|
prototype: File;
|
|
|
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
|
|
|
};
|
|
|
|
|
|
/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
|
|
|
interface FileList {
|
|
|
readonly length: number;
|
|
|
item(index: number): File | null;
|
|
|
[index: number]: File;
|
|
|
}
|
|
|
|
|
|
declare var FileList: {
|
|
|
prototype: FileList;
|
|
|
new(): FileList;
|
|
|
};
|
|
|
|
|
|
interface FileReaderEventMap {
|
|
|
"abort": ProgressEvent<FileReader>;
|
|
|
"error": ProgressEvent<FileReader>;
|
|
|
"load": ProgressEvent<FileReader>;
|
|
|
"loadend": ProgressEvent<FileReader>;
|
|
|
"loadstart": ProgressEvent<FileReader>;
|
|
|
"progress": ProgressEvent<FileReader>;
|
|
|
}
|
|
|
|
|
|
/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
|
|
|
interface FileReader extends EventTarget {
|
|
|
readonly error: DOMException | null;
|
|
|
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
readonly readyState: number;
|
|
|
readonly result: string | ArrayBuffer | null;
|
|
|
abort(): void;
|
|
|
readAsArrayBuffer(blob: Blob): void;
|
|
|
readAsBinaryString(blob: Blob): void;
|
|
|
readAsDataURL(blob: Blob): void;
|
|
|
readAsText(blob: Blob, encoding?: string): void;
|
|
|
readonly DONE: number;
|
|
|
readonly EMPTY: number;
|
|
|
readonly LOADING: number;
|
|
|
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 DONE: number;
|
|
|
readonly EMPTY: number;
|
|
|
readonly LOADING: number;
|
|
|
};
|
|
|
|
|
|
/** Allows to read File or Blob objects in a synchronous way. */
|
|
|
interface FileReaderSync {
|
|
|
readAsArrayBuffer(blob: Blob): ArrayBuffer;
|
|
|
/** @deprecated */
|
|
|
readAsBinaryString(blob: Blob): string;
|
|
|
readAsDataURL(blob: Blob): string;
|
|
|
readAsText(blob: Blob, encoding?: string): string;
|
|
|
}
|
|
|
|
|
|
declare var FileReaderSync: {
|
|
|
prototype: FileReaderSync;
|
|
|
new(): FileReaderSync;
|
|
|
};
|
|
|
|
|
|
interface FontFace {
|
|
|
ascentOverride: string;
|
|
|
descentOverride: string;
|
|
|
display: string;
|
|
|
family: string;
|
|
|
featureSettings: string;
|
|
|
lineGapOverride: string;
|
|
|
readonly loaded: Promise<FontFace>;
|
|
|
readonly status: FontFaceLoadStatus;
|
|
|
stretch: string;
|
|
|
style: string;
|
|
|
unicodeRange: string;
|
|
|
variant: string;
|
|
|
variationSettings: string;
|
|
|
weight: string;
|
|
|
load(): Promise<FontFace>;
|
|
|
}
|
|
|
|
|
|
declare var FontFace: {
|
|
|
prototype: FontFace;
|
|
|
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
|
|
|
};
|
|
|
|
|
|
interface FontFaceSetEventMap {
|
|
|
"loading": Event;
|
|
|
"loadingdone": Event;
|
|
|
"loadingerror": Event;
|
|
|
}
|
|
|
|
|
|
interface FontFaceSet extends EventTarget {
|
|
|
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
|
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
|
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
|
readonly ready: Promise<FontFaceSet>;
|
|
|
readonly status: FontFaceSetLoadStatus;
|
|
|
check(font: string, text?: string): boolean;
|
|
|
load(font: string, text?: string): Promise<FontFace[]>;
|
|
|
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
|
|
|
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var FontFaceSet: {
|
|
|
prototype: FontFaceSet;
|
|
|
new(initialFaces: FontFace[]): FontFaceSet;
|
|
|
};
|
|
|
|
|
|
interface FontFaceSetLoadEvent extends Event {
|
|
|
readonly fontfaces: ReadonlyArray<FontFace>;
|
|
|
}
|
|
|
|
|
|
declare var FontFaceSetLoadEvent: {
|
|
|
prototype: FontFaceSetLoadEvent;
|
|
|
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
|
|
|
};
|
|
|
|
|
|
interface FontFaceSource {
|
|
|
readonly fonts: FontFaceSet;
|
|
|
}
|
|
|
|
|
|
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
|
|
|
interface FormData {
|
|
|
append(name: string, value: string | Blob, fileName?: string): void;
|
|
|
delete(name: string): void;
|
|
|
get(name: string): FormDataEntryValue | null;
|
|
|
getAll(name: string): FormDataEntryValue[];
|
|
|
has(name: string): boolean;
|
|
|
set(name: string, value: string | Blob, fileName?: string): void;
|
|
|
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var FormData: {
|
|
|
prototype: FormData;
|
|
|
new(): FormData;
|
|
|
};
|
|
|
|
|
|
interface GenericTransformStream {
|
|
|
readonly readable: ReadableStream;
|
|
|
readonly writable: WritableStream;
|
|
|
}
|
|
|
|
|
|
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
|
|
|
interface Headers {
|
|
|
append(name: string, value: string): void;
|
|
|
delete(name: string): void;
|
|
|
get(name: string): string | null;
|
|
|
has(name: string): boolean;
|
|
|
set(name: string, value: string): void;
|
|
|
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var Headers: {
|
|
|
prototype: Headers;
|
|
|
new(init?: HeadersInit): Headers;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
|
|
|
interface IDBCursor {
|
|
|
/**
|
|
|
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
|
|
|
*/
|
|
|
readonly direction: IDBCursorDirection;
|
|
|
/**
|
|
|
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
|
*/
|
|
|
readonly key: IDBValidKey;
|
|
|
/**
|
|
|
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
|
*/
|
|
|
readonly primaryKey: IDBValidKey;
|
|
|
readonly request: IDBRequest;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
|
|
|
*/
|
|
|
readonly source: IDBObjectStore | IDBIndex;
|
|
|
/**
|
|
|
* Advances the cursor through the next count records in range.
|
|
|
*/
|
|
|
advance(count: number): void;
|
|
|
/**
|
|
|
* Advances the cursor to the next record in range.
|
|
|
*/
|
|
|
continue(key?: IDBValidKey): void;
|
|
|
/**
|
|
|
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
|
|
|
*/
|
|
|
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
|
|
|
/**
|
|
|
* Delete the record pointed at by the cursor with a new value.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
delete(): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Updated the record pointed at by the cursor with a new value.
|
|
|
*
|
|
|
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
update(value: any): IDBRequest<IDBValidKey>;
|
|
|
}
|
|
|
|
|
|
declare var IDBCursor: {
|
|
|
prototype: IDBCursor;
|
|
|
new(): IDBCursor;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
|
|
|
interface IDBCursorWithValue extends IDBCursor {
|
|
|
/**
|
|
|
* Returns the cursor's current value.
|
|
|
*/
|
|
|
readonly value: any;
|
|
|
}
|
|
|
|
|
|
declare var IDBCursorWithValue: {
|
|
|
prototype: IDBCursorWithValue;
|
|
|
new(): IDBCursorWithValue;
|
|
|
};
|
|
|
|
|
|
interface IDBDatabaseEventMap {
|
|
|
"abort": Event;
|
|
|
"close": Event;
|
|
|
"error": Event;
|
|
|
"versionchange": IDBVersionChangeEvent;
|
|
|
}
|
|
|
|
|
|
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
|
|
|
interface IDBDatabase extends EventTarget {
|
|
|
/**
|
|
|
* Returns the name of the database.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
/**
|
|
|
* Returns a list of the names of object stores in the database.
|
|
|
*/
|
|
|
readonly objectStoreNames: DOMStringList;
|
|
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
|
/**
|
|
|
* Returns the version of the database.
|
|
|
*/
|
|
|
readonly version: number;
|
|
|
/**
|
|
|
* Closes the connection once all running transactions have finished.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
|
|
|
*
|
|
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
|
|
|
/**
|
|
|
* Deletes the object store with the given name.
|
|
|
*
|
|
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
deleteObjectStore(name: string): void;
|
|
|
/**
|
|
|
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
|
*/
|
|
|
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBDatabase: {
|
|
|
prototype: IDBDatabase;
|
|
|
new(): IDBDatabase;
|
|
|
};
|
|
|
|
|
|
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
|
|
|
interface IDBFactory {
|
|
|
/**
|
|
|
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
|
|
|
*
|
|
|
* Throws a "DataError" DOMException if either input is not a valid key.
|
|
|
*/
|
|
|
cmp(first: any, second: any): number;
|
|
|
databases(): Promise<IDBDatabaseInfo[]>;
|
|
|
/**
|
|
|
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
|
|
|
*/
|
|
|
deleteDatabase(name: string): IDBOpenDBRequest;
|
|
|
/**
|
|
|
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
|
|
|
*/
|
|
|
open(name: string, version?: number): IDBOpenDBRequest;
|
|
|
}
|
|
|
|
|
|
declare var IDBFactory: {
|
|
|
prototype: IDBFactory;
|
|
|
new(): IDBFactory;
|
|
|
};
|
|
|
|
|
|
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
|
|
|
interface IDBIndex {
|
|
|
readonly keyPath: string | string[];
|
|
|
readonly multiEntry: boolean;
|
|
|
/**
|
|
|
* Returns the name of the index.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore the index belongs to.
|
|
|
*/
|
|
|
readonly objectStore: IDBObjectStore;
|
|
|
readonly unique: boolean;
|
|
|
/**
|
|
|
* Retrieves the number of records matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the count.
|
|
|
*/
|
|
|
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
|
/**
|
|
|
* Retrieves the value of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
|
*/
|
|
|
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
|
/**
|
|
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the values.
|
|
|
*/
|
|
|
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
|
/**
|
|
|
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the keys.
|
|
|
*/
|
|
|
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
|
/**
|
|
|
* Retrieves the key of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the key, or undefined if there was no matching record.
|
|
|
*/
|
|
|
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
|
/**
|
|
|
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
|
|
|
*/
|
|
|
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
|
|
|
/**
|
|
|
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
|
|
|
*/
|
|
|
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
|
|
|
}
|
|
|
|
|
|
declare var IDBIndex: {
|
|
|
prototype: IDBIndex;
|
|
|
new(): IDBIndex;
|
|
|
};
|
|
|
|
|
|
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
|
|
|
interface IDBKeyRange {
|
|
|
/**
|
|
|
* Returns lower bound, or undefined if none.
|
|
|
*/
|
|
|
readonly lower: any;
|
|
|
/**
|
|
|
* Returns true if the lower open flag is set, and false otherwise.
|
|
|
*/
|
|
|
readonly lowerOpen: boolean;
|
|
|
/**
|
|
|
* Returns upper bound, or undefined if none.
|
|
|
*/
|
|
|
readonly upper: any;
|
|
|
/**
|
|
|
* Returns true if the upper open flag is set, and false otherwise.
|
|
|
*/
|
|
|
readonly upperOpen: boolean;
|
|
|
/**
|
|
|
* Returns true if key is included in the range, and false otherwise.
|
|
|
*/
|
|
|
includes(key: any): boolean;
|
|
|
}
|
|
|
|
|
|
declare var IDBKeyRange: {
|
|
|
prototype: IDBKeyRange;
|
|
|
new(): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
|
|
*/
|
|
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
|
|
*/
|
|
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange spanning only key.
|
|
|
*/
|
|
|
only(value: any): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
|
|
*/
|
|
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
|
|
};
|
|
|
|
|
|
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
|
|
|
interface IDBObjectStore {
|
|
|
/**
|
|
|
* Returns true if the store has a key generator, and false otherwise.
|
|
|
*/
|
|
|
readonly autoIncrement: boolean;
|
|
|
/**
|
|
|
* Returns a list of the names of indexes in the store.
|
|
|
*/
|
|
|
readonly indexNames: DOMStringList;
|
|
|
/**
|
|
|
* Returns the key path of the store, or null if none.
|
|
|
*/
|
|
|
readonly keyPath: string | string[];
|
|
|
/**
|
|
|
* Returns the name of the store.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the associated transaction.
|
|
|
*/
|
|
|
readonly transaction: IDBTransaction;
|
|
|
/**
|
|
|
* Adds or updates a record in store with the given value and key.
|
|
|
*
|
|
|
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
|
|
|
*
|
|
|
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
|
|
|
/**
|
|
|
* Deletes all records in store.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
clear(): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Retrieves the number of records matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the count.
|
|
|
*/
|
|
|
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
|
/**
|
|
|
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
|
|
|
/**
|
|
|
* Deletes records in store with the given key or in the given key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Deletes the index in store with the given name.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
deleteIndex(name: string): void;
|
|
|
/**
|
|
|
* Retrieves the value of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
|
*/
|
|
|
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
|
/**
|
|
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the values.
|
|
|
*/
|
|
|
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
|
/**
|
|
|
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the keys.
|
|
|
*/
|
|
|
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
|
/**
|
|
|
* Retrieves the key of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the key, or undefined if there was no matching record.
|
|
|
*/
|
|
|
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
|
index(name: string): IDBIndex;
|
|
|
/**
|
|
|
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
|
|
|
*/
|
|
|
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
|
|
|
/**
|
|
|
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
|
|
|
*/
|
|
|
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
|
|
|
/**
|
|
|
* Adds or updates a record in store with the given value and key.
|
|
|
*
|
|
|
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
|
|
|
*
|
|
|
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
|
|
|
}
|
|
|
|
|
|
declare var IDBObjectStore: {
|
|
|
prototype: IDBObjectStore;
|
|
|
new(): IDBObjectStore;
|
|
|
};
|
|
|
|
|
|
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
|
|
|
"blocked": Event;
|
|
|
"upgradeneeded": IDBVersionChangeEvent;
|
|
|
}
|
|
|
|
|
|
/** Also inherits methods from its parents IDBRequest and EventTarget. */
|
|
|
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
|
|
|
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
|
|
|
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
|
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBOpenDBRequest: {
|
|
|
prototype: IDBOpenDBRequest;
|
|
|
new(): IDBOpenDBRequest;
|
|
|
};
|
|
|
|
|
|
interface IDBRequestEventMap {
|
|
|
"error": Event;
|
|
|
"success": Event;
|
|
|
}
|
|
|
|
|
|
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
|
|
|
interface IDBRequest<T = any> extends EventTarget {
|
|
|
/**
|
|
|
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
|
*/
|
|
|
readonly error: DOMException | null;
|
|
|
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
|
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns "pending" until a request is complete, then returns "done".
|
|
|
*/
|
|
|
readonly readyState: IDBRequestReadyState;
|
|
|
/**
|
|
|
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
|
*/
|
|
|
readonly result: T;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
|
|
|
*/
|
|
|
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
|
|
|
/**
|
|
|
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
|
|
|
*/
|
|
|
readonly transaction: IDBTransaction | null;
|
|
|
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBRequest: {
|
|
|
prototype: IDBRequest;
|
|
|
new(): IDBRequest;
|
|
|
};
|
|
|
|
|
|
interface IDBTransactionEventMap {
|
|
|
"abort": Event;
|
|
|
"complete": Event;
|
|
|
"error": Event;
|
|
|
}
|
|
|
|
|
|
interface IDBTransaction extends EventTarget {
|
|
|
/**
|
|
|
* Returns the transaction's connection.
|
|
|
*/
|
|
|
readonly db: IDBDatabase;
|
|
|
/**
|
|
|
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
|
|
|
*/
|
|
|
readonly error: DOMException | null;
|
|
|
/**
|
|
|
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
|
|
|
*/
|
|
|
readonly mode: IDBTransactionMode;
|
|
|
/**
|
|
|
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
|
|
|
*/
|
|
|
readonly objectStoreNames: DOMStringList;
|
|
|
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
commit(): void;
|
|
|
/**
|
|
|
* Returns an IDBObjectStore in the transaction's scope.
|
|
|
*/
|
|
|
objectStore(name: string): IDBObjectStore;
|
|
|
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBTransaction: {
|
|
|
prototype: IDBTransaction;
|
|
|
new(): IDBTransaction;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
|
|
|
interface IDBVersionChangeEvent extends Event {
|
|
|
readonly newVersion: number | null;
|
|
|
readonly oldVersion: number;
|
|
|
}
|
|
|
|
|
|
declare var IDBVersionChangeEvent: {
|
|
|
prototype: IDBVersionChangeEvent;
|
|
|
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
|
|
|
};
|
|
|
|
|
|
interface ImageBitmap {
|
|
|
/**
|
|
|
* Returns the intrinsic height of the image, in CSS pixels.
|
|
|
*/
|
|
|
readonly height: number;
|
|
|
/**
|
|
|
* Returns the intrinsic width of the image, in CSS pixels.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
/**
|
|
|
* Releases imageBitmap's underlying bitmap data.
|
|
|
*/
|
|
|
close(): void;
|
|
|
}
|
|
|
|
|
|
declare var ImageBitmap: {
|
|
|
prototype: ImageBitmap;
|
|
|
new(): ImageBitmap;
|
|
|
};
|
|
|
|
|
|
interface ImageBitmapRenderingContext {
|
|
|
/**
|
|
|
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
|
|
|
*/
|
|
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
|
}
|
|
|
|
|
|
declare var ImageBitmapRenderingContext: {
|
|
|
prototype: ImageBitmapRenderingContext;
|
|
|
new(): ImageBitmapRenderingContext;
|
|
|
};
|
|
|
|
|
|
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
|
|
|
interface ImageData {
|
|
|
/**
|
|
|
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
|
|
|
*/
|
|
|
readonly data: Uint8ClampedArray;
|
|
|
/**
|
|
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
|
*/
|
|
|
readonly height: number;
|
|
|
/**
|
|
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var ImageData: {
|
|
|
prototype: ImageData;
|
|
|
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
|
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
|
};
|
|
|
|
|
|
interface KHR_parallel_shader_compile {
|
|
|
readonly COMPLETION_STATUS_KHR: GLenum;
|
|
|
}
|
|
|
|
|
|
interface MediaCapabilities {
|
|
|
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
|
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
|
|
|
}
|
|
|
|
|
|
declare var MediaCapabilities: {
|
|
|
prototype: MediaCapabilities;
|
|
|
new(): MediaCapabilities;
|
|
|
};
|
|
|
|
|
|
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
|
|
|
interface MessageChannel {
|
|
|
/**
|
|
|
* Returns the first MessagePort object.
|
|
|
*/
|
|
|
readonly port1: MessagePort;
|
|
|
/**
|
|
|
* Returns the second MessagePort object.
|
|
|
*/
|
|
|
readonly port2: MessagePort;
|
|
|
}
|
|
|
|
|
|
declare var MessageChannel: {
|
|
|
prototype: MessageChannel;
|
|
|
new(): MessageChannel;
|
|
|
};
|
|
|
|
|
|
/** A message received by a target object. */
|
|
|
interface MessageEvent<T = any> extends Event {
|
|
|
/**
|
|
|
* Returns the data of the message.
|
|
|
*/
|
|
|
readonly data: T;
|
|
|
/**
|
|
|
* Returns the last event ID string, for server-sent events.
|
|
|
*/
|
|
|
readonly lastEventId: string;
|
|
|
/**
|
|
|
* Returns the origin of the message, for server-sent events and cross-document messaging.
|
|
|
*/
|
|
|
readonly origin: string;
|
|
|
/**
|
|
|
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
|
|
|
*/
|
|
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
|
/**
|
|
|
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
|
|
|
*/
|
|
|
readonly source: MessageEventSource | null;
|
|
|
/** @deprecated */
|
|
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
|
|
|
}
|
|
|
|
|
|
declare var MessageEvent: {
|
|
|
prototype: MessageEvent;
|
|
|
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
|
|
|
};
|
|
|
|
|
|
interface MessagePortEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
|
|
|
interface MessagePort extends EventTarget {
|
|
|
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Disconnects the port, so that it is no longer active.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
|
*
|
|
|
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
|
|
|
*/
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
/**
|
|
|
* Begins dispatching messages received on the port.
|
|
|
*/
|
|
|
start(): void;
|
|
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MessagePort: {
|
|
|
prototype: MessagePort;
|
|
|
new(): MessagePort;
|
|
|
};
|
|
|
|
|
|
interface NavigatorConcurrentHardware {
|
|
|
readonly hardwareConcurrency: number;
|
|
|
}
|
|
|
|
|
|
interface NavigatorID {
|
|
|
/** @deprecated */
|
|
|
readonly appCodeName: string;
|
|
|
/** @deprecated */
|
|
|
readonly appName: string;
|
|
|
/** @deprecated */
|
|
|
readonly appVersion: string;
|
|
|
/** @deprecated */
|
|
|
readonly platform: string;
|
|
|
/** @deprecated */
|
|
|
readonly product: string;
|
|
|
readonly userAgent: string;
|
|
|
}
|
|
|
|
|
|
interface NavigatorLanguage {
|
|
|
readonly language: string;
|
|
|
readonly languages: ReadonlyArray<string>;
|
|
|
}
|
|
|
|
|
|
interface NavigatorNetworkInformation {
|
|
|
readonly connection: NetworkInformation;
|
|
|
}
|
|
|
|
|
|
interface NavigatorOnLine {
|
|
|
readonly onLine: boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorStorage {
|
|
|
readonly storage: StorageManager;
|
|
|
}
|
|
|
|
|
|
interface NetworkInformation extends EventTarget {
|
|
|
readonly type: ConnectionType;
|
|
|
}
|
|
|
|
|
|
declare var NetworkInformation: {
|
|
|
prototype: NetworkInformation;
|
|
|
new(): NetworkInformation;
|
|
|
};
|
|
|
|
|
|
interface NotificationEventMap {
|
|
|
"click": Event;
|
|
|
"close": Event;
|
|
|
"error": Event;
|
|
|
"show": Event;
|
|
|
}
|
|
|
|
|
|
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
|
|
|
interface Notification extends EventTarget {
|
|
|
readonly body: string;
|
|
|
readonly data: any;
|
|
|
readonly dir: NotificationDirection;
|
|
|
readonly icon: string;
|
|
|
readonly lang: string;
|
|
|
onclick: ((this: Notification, ev: Event) => any) | null;
|
|
|
onclose: ((this: Notification, ev: Event) => any) | null;
|
|
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
|
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
|
|
readonly tag: string;
|
|
|
readonly title: string;
|
|
|
close(): void;
|
|
|
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Notification: {
|
|
|
prototype: Notification;
|
|
|
new(title: string, options?: NotificationOptions): Notification;
|
|
|
readonly permission: NotificationPermission;
|
|
|
};
|
|
|
|
|
|
/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
|
|
|
interface NotificationEvent extends ExtendableEvent {
|
|
|
readonly action: string;
|
|
|
readonly notification: Notification;
|
|
|
}
|
|
|
|
|
|
declare var NotificationEvent: {
|
|
|
prototype: NotificationEvent;
|
|
|
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
|
|
|
};
|
|
|
|
|
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
|
interface OES_element_index_uint {
|
|
|
}
|
|
|
|
|
|
interface OES_fbo_render_mipmap {
|
|
|
}
|
|
|
|
|
|
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
|
|
|
interface OES_standard_derivatives {
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
|
|
|
interface OES_texture_float {
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
|
|
|
interface OES_texture_float_linear {
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
|
|
|
interface OES_texture_half_float {
|
|
|
readonly HALF_FLOAT_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
|
|
|
interface OES_texture_half_float_linear {
|
|
|
}
|
|
|
|
|
|
interface OES_vertex_array_object {
|
|
|
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
|
|
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
|
|
|
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
|
|
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
|
|
|
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
interface OVR_multiview2 {
|
|
|
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
|
|
|
readonly MAX_VIEWS_OVR: GLenum;
|
|
|
}
|
|
|
|
|
|
/** @deprecated this is not available in most browsers */
|
|
|
interface OffscreenCanvas extends EventTarget {
|
|
|
}
|
|
|
|
|
|
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
|
|
|
interface Path2D extends CanvasPath {
|
|
|
/**
|
|
|
* Adds to the path the path given by the argument.
|
|
|
*/
|
|
|
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
|
|
|
}
|
|
|
|
|
|
declare var Path2D: {
|
|
|
prototype: Path2D;
|
|
|
new(path?: Path2D | string): Path2D;
|
|
|
};
|
|
|
|
|
|
interface PerformanceEventMap {
|
|
|
"resourcetimingbufferfull": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
|
interface Performance extends EventTarget {
|
|
|
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
|
|
readonly timeOrigin: DOMHighResTimeStamp;
|
|
|
clearMarks(markName?: string): void;
|
|
|
clearMeasures(measureName?: string): void;
|
|
|
clearResourceTimings(): void;
|
|
|
getEntries(): PerformanceEntryList;
|
|
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
|
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
|
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
|
|
|
now(): DOMHighResTimeStamp;
|
|
|
setResourceTimingBufferSize(maxSize: number): void;
|
|
|
toJSON(): any;
|
|
|
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Performance: {
|
|
|
prototype: Performance;
|
|
|
new(): Performance;
|
|
|
};
|
|
|
|
|
|
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
|
|
|
interface PerformanceEntry {
|
|
|
readonly duration: DOMHighResTimeStamp;
|
|
|
readonly entryType: string;
|
|
|
readonly name: string;
|
|
|
readonly startTime: DOMHighResTimeStamp;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceEntry: {
|
|
|
prototype: PerformanceEntry;
|
|
|
new(): PerformanceEntry;
|
|
|
};
|
|
|
|
|
|
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
|
|
|
interface PerformanceMark extends PerformanceEntry {
|
|
|
readonly detail: any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceMark: {
|
|
|
prototype: PerformanceMark;
|
|
|
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
|
};
|
|
|
|
|
|
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
|
|
|
interface PerformanceMeasure extends PerformanceEntry {
|
|
|
readonly detail: any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceMeasure: {
|
|
|
prototype: PerformanceMeasure;
|
|
|
new(): PerformanceMeasure;
|
|
|
};
|
|
|
|
|
|
interface PerformanceObserver {
|
|
|
disconnect(): void;
|
|
|
observe(options?: PerformanceObserverInit): void;
|
|
|
takeRecords(): PerformanceEntryList;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceObserver: {
|
|
|
prototype: PerformanceObserver;
|
|
|
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
|
|
readonly supportedEntryTypes: ReadonlyArray<string>;
|
|
|
};
|
|
|
|
|
|
interface PerformanceObserverEntryList {
|
|
|
getEntries(): PerformanceEntryList;
|
|
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceObserverEntryList: {
|
|
|
prototype: PerformanceObserverEntryList;
|
|
|
new(): PerformanceObserverEntryList;
|
|
|
};
|
|
|
|
|
|
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
|
|
|
interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
readonly connectEnd: DOMHighResTimeStamp;
|
|
|
readonly connectStart: DOMHighResTimeStamp;
|
|
|
readonly decodedBodySize: number;
|
|
|
readonly domainLookupEnd: DOMHighResTimeStamp;
|
|
|
readonly domainLookupStart: DOMHighResTimeStamp;
|
|
|
readonly encodedBodySize: number;
|
|
|
readonly fetchStart: DOMHighResTimeStamp;
|
|
|
readonly initiatorType: string;
|
|
|
readonly nextHopProtocol: string;
|
|
|
readonly redirectEnd: DOMHighResTimeStamp;
|
|
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
|
readonly requestStart: DOMHighResTimeStamp;
|
|
|
readonly responseEnd: DOMHighResTimeStamp;
|
|
|
readonly responseStart: DOMHighResTimeStamp;
|
|
|
readonly secureConnectionStart: DOMHighResTimeStamp;
|
|
|
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
|
|
|
readonly transferSize: number;
|
|
|
readonly workerStart: DOMHighResTimeStamp;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceResourceTiming: {
|
|
|
prototype: PerformanceResourceTiming;
|
|
|
new(): PerformanceResourceTiming;
|
|
|
};
|
|
|
|
|
|
interface PerformanceServerTiming {
|
|
|
readonly description: string;
|
|
|
readonly duration: DOMHighResTimeStamp;
|
|
|
readonly name: string;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceServerTiming: {
|
|
|
prototype: PerformanceServerTiming;
|
|
|
new(): PerformanceServerTiming;
|
|
|
};
|
|
|
|
|
|
interface PermissionStatusEventMap {
|
|
|
"change": Event;
|
|
|
}
|
|
|
|
|
|
interface PermissionStatus extends EventTarget {
|
|
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
|
readonly state: PermissionState;
|
|
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var PermissionStatus: {
|
|
|
prototype: PermissionStatus;
|
|
|
new(): PermissionStatus;
|
|
|
};
|
|
|
|
|
|
interface Permissions {
|
|
|
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
|
|
|
}
|
|
|
|
|
|
declare var Permissions: {
|
|
|
prototype: Permissions;
|
|
|
new(): Permissions;
|
|
|
};
|
|
|
|
|
|
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
|
|
|
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
|
readonly lengthComputable: boolean;
|
|
|
readonly loaded: number;
|
|
|
readonly target: T | null;
|
|
|
readonly total: number;
|
|
|
}
|
|
|
|
|
|
declare var ProgressEvent: {
|
|
|
prototype: ProgressEvent;
|
|
|
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
|
|
|
};
|
|
|
|
|
|
interface PromiseRejectionEvent extends Event {
|
|
|
readonly promise: Promise<any>;
|
|
|
readonly reason: any;
|
|
|
}
|
|
|
|
|
|
declare var PromiseRejectionEvent: {
|
|
|
prototype: PromiseRejectionEvent;
|
|
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
|
};
|
|
|
|
|
|
/** This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. */
|
|
|
interface PushEvent extends ExtendableEvent {
|
|
|
readonly data: PushMessageData | null;
|
|
|
}
|
|
|
|
|
|
declare var PushEvent: {
|
|
|
prototype: PushEvent;
|
|
|
new(type: string, eventInitDict?: PushEventInit): PushEvent;
|
|
|
};
|
|
|
|
|
|
/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */
|
|
|
interface PushManager {
|
|
|
getSubscription(): Promise<PushSubscription | null>;
|
|
|
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
|
|
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
|
|
}
|
|
|
|
|
|
declare var PushManager: {
|
|
|
prototype: PushManager;
|
|
|
new(): PushManager;
|
|
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
|
};
|
|
|
|
|
|
/** This Push API interface provides methods which let you retrieve the push data sent by a server in various formats. */
|
|
|
interface PushMessageData {
|
|
|
arrayBuffer(): ArrayBuffer;
|
|
|
blob(): Blob;
|
|
|
json(): any;
|
|
|
text(): string;
|
|
|
}
|
|
|
|
|
|
declare var PushMessageData: {
|
|
|
prototype: PushMessageData;
|
|
|
new(): PushMessageData;
|
|
|
};
|
|
|
|
|
|
/** This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. */
|
|
|
interface PushSubscription {
|
|
|
readonly endpoint: string;
|
|
|
readonly options: PushSubscriptionOptions;
|
|
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
|
toJSON(): PushSubscriptionJSON;
|
|
|
unsubscribe(): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var PushSubscription: {
|
|
|
prototype: PushSubscription;
|
|
|
new(): PushSubscription;
|
|
|
};
|
|
|
|
|
|
interface PushSubscriptionOptions {
|
|
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
|
}
|
|
|
|
|
|
declare var PushSubscriptionOptions: {
|
|
|
prototype: PushSubscriptionOptions;
|
|
|
new(): PushSubscriptionOptions;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
|
interface ReadableStream<R = any> {
|
|
|
readonly locked: boolean;
|
|
|
cancel(reason?: any): Promise<void>;
|
|
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
|
forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var ReadableStream: {
|
|
|
prototype: ReadableStream;
|
|
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
|
};
|
|
|
|
|
|
interface ReadableStreamDefaultController<R = any> {
|
|
|
readonly desiredSize: number | null;
|
|
|
close(): void;
|
|
|
enqueue(chunk?: R): void;
|
|
|
error(e?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var ReadableStreamDefaultController: {
|
|
|
prototype: ReadableStreamDefaultController;
|
|
|
new(): ReadableStreamDefaultController;
|
|
|
};
|
|
|
|
|
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
|
read(): Promise<ReadableStreamDefaultReadResult<R>>;
|
|
|
releaseLock(): void;
|
|
|
}
|
|
|
|
|
|
declare var ReadableStreamDefaultReader: {
|
|
|
prototype: ReadableStreamDefaultReader;
|
|
|
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
|
|
|
};
|
|
|
|
|
|
interface ReadableStreamGenericReader {
|
|
|
readonly closed: Promise<undefined>;
|
|
|
cancel(reason?: any): Promise<void>;
|
|
|
}
|
|
|
|
|
|
/** This Fetch API interface represents a resource request. */
|
|
|
interface Request extends Body {
|
|
|
/**
|
|
|
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
|
|
|
*/
|
|
|
readonly cache: RequestCache;
|
|
|
/**
|
|
|
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
|
|
|
*/
|
|
|
readonly credentials: RequestCredentials;
|
|
|
/**
|
|
|
* Returns the kind of resource requested by request, e.g., "document" or "script".
|
|
|
*/
|
|
|
readonly destination: RequestDestination;
|
|
|
/**
|
|
|
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
|
|
|
*/
|
|
|
readonly headers: Headers;
|
|
|
/**
|
|
|
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
|
|
|
*/
|
|
|
readonly integrity: string;
|
|
|
/**
|
|
|
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
|
|
*/
|
|
|
readonly keepalive: boolean;
|
|
|
/**
|
|
|
* Returns request's HTTP method, which is "GET" by default.
|
|
|
*/
|
|
|
readonly method: string;
|
|
|
/**
|
|
|
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
|
|
|
*/
|
|
|
readonly mode: RequestMode;
|
|
|
/**
|
|
|
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
|
|
|
*/
|
|
|
readonly redirect: RequestRedirect;
|
|
|
/**
|
|
|
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
|
|
|
*/
|
|
|
readonly referrer: string;
|
|
|
/**
|
|
|
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
|
|
|
*/
|
|
|
readonly referrerPolicy: ReferrerPolicy;
|
|
|
/**
|
|
|
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
|
|
|
*/
|
|
|
readonly signal: AbortSignal;
|
|
|
/**
|
|
|
* Returns the URL of request as a string.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
clone(): Request;
|
|
|
}
|
|
|
|
|
|
declare var Request: {
|
|
|
prototype: Request;
|
|
|
new(input: RequestInfo, init?: RequestInit): Request;
|
|
|
};
|
|
|
|
|
|
/** This Fetch API interface represents the response to a request. */
|
|
|
interface Response extends Body {
|
|
|
readonly headers: Headers;
|
|
|
readonly ok: boolean;
|
|
|
readonly redirected: boolean;
|
|
|
readonly status: number;
|
|
|
readonly statusText: string;
|
|
|
readonly type: ResponseType;
|
|
|
readonly url: string;
|
|
|
clone(): Response;
|
|
|
}
|
|
|
|
|
|
declare var Response: {
|
|
|
prototype: Response;
|
|
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
|
|
error(): Response;
|
|
|
redirect(url: string | URL, status?: number): Response;
|
|
|
};
|
|
|
|
|
|
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
|
|
|
interface SecurityPolicyViolationEvent extends Event {
|
|
|
readonly blockedURI: string;
|
|
|
readonly columnNumber: number;
|
|
|
readonly disposition: SecurityPolicyViolationEventDisposition;
|
|
|
readonly documentURI: string;
|
|
|
readonly effectiveDirective: string;
|
|
|
readonly lineNumber: number;
|
|
|
readonly originalPolicy: string;
|
|
|
readonly referrer: string;
|
|
|
readonly sample: string;
|
|
|
readonly sourceFile: string;
|
|
|
readonly statusCode: number;
|
|
|
readonly violatedDirective: string;
|
|
|
}
|
|
|
|
|
|
declare var SecurityPolicyViolationEvent: {
|
|
|
prototype: SecurityPolicyViolationEvent;
|
|
|
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
|
|
|
};
|
|
|
|
|
|
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */
|
|
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
|
readonly scriptURL: string;
|
|
|
readonly state: ServiceWorkerState;
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): 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. */
|
|
|
interface ServiceWorkerContainer extends EventTarget {
|
|
|
readonly controller: ServiceWorker | null;
|
|
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
|
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
|
|
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
|
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
|
|
|
startMessages(): void;
|
|
|
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorkerContainer: {
|
|
|
prototype: ServiceWorkerContainer;
|
|
|
new(): ServiceWorkerContainer;
|
|
|
};
|
|
|
|
|
|
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
"activate": ExtendableEvent;
|
|
|
"fetch": FetchEvent;
|
|
|
"install": ExtendableEvent;
|
|
|
"message": ExtendableMessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
"notificationclick": NotificationEvent;
|
|
|
"notificationclose": NotificationEvent;
|
|
|
"push": PushEvent;
|
|
|
}
|
|
|
|
|
|
/** This ServiceWorker API interface represents the global execution context of a service worker. */
|
|
|
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
readonly clients: Clients;
|
|
|
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
|
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
|
|
|
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
|
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
|
readonly registration: ServiceWorkerRegistration;
|
|
|
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. */
|
|
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
|
readonly active: ServiceWorker | null;
|
|
|
readonly installing: ServiceWorker | null;
|
|
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
|
readonly pushManager: PushManager;
|
|
|
readonly scope: string;
|
|
|
readonly updateViaCache: ServiceWorkerUpdateViaCache;
|
|
|
readonly waiting: ServiceWorker | null;
|
|
|
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
|
|
|
showNotification(title: string, options?: NotificationOptions): Promise<void>;
|
|
|
unregister(): Promise<boolean>;
|
|
|
update(): Promise<void>;
|
|
|
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorkerRegistration: {
|
|
|
prototype: ServiceWorkerRegistration;
|
|
|
new(): ServiceWorkerRegistration;
|
|
|
};
|
|
|
|
|
|
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
"connect": MessageEvent;
|
|
|
}
|
|
|
|
|
|
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
/**
|
|
|
* Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Aborts sharedWorkerGlobal.
|
|
|
*/
|
|
|
close(): void;
|
|
|
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SharedWorkerGlobalScope: {
|
|
|
prototype: SharedWorkerGlobalScope;
|
|
|
new(): SharedWorkerGlobalScope;
|
|
|
};
|
|
|
|
|
|
interface StorageManager {
|
|
|
estimate(): Promise<StorageEstimate>;
|
|
|
persisted(): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var StorageManager: {
|
|
|
prototype: StorageManager;
|
|
|
new(): StorageManager;
|
|
|
};
|
|
|
|
|
|
/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */
|
|
|
interface SubtleCrypto {
|
|
|
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
|
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
|
|
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
|
|
|
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
|
|
|
}
|
|
|
|
|
|
declare var SubtleCrypto: {
|
|
|
prototype: SubtleCrypto;
|
|
|
new(): SubtleCrypto;
|
|
|
};
|
|
|
|
|
|
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
|
|
|
interface TextDecoder extends TextDecoderCommon {
|
|
|
/**
|
|
|
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
|
|
|
*
|
|
|
* \`\`\`
|
|
|
* var string = "", decoder = new TextDecoder(encoding), buffer;
|
|
|
* while(buffer = next_chunk()) {
|
|
|
* string += decoder.decode(buffer, {stream:true});
|
|
|
* }
|
|
|
* string += decoder.decode(); // end-of-queue
|
|
|
* \`\`\`
|
|
|
*
|
|
|
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
|
|
|
*/
|
|
|
decode(input?: BufferSource, options?: TextDecodeOptions): string;
|
|
|
}
|
|
|
|
|
|
declare var TextDecoder: {
|
|
|
prototype: TextDecoder;
|
|
|
new(label?: string, options?: TextDecoderOptions): TextDecoder;
|
|
|
};
|
|
|
|
|
|
interface TextDecoderCommon {
|
|
|
/**
|
|
|
* Returns encoding's name, lowercased.
|
|
|
*/
|
|
|
readonly encoding: string;
|
|
|
/**
|
|
|
* Returns true if error mode is "fatal", otherwise false.
|
|
|
*/
|
|
|
readonly fatal: boolean;
|
|
|
/**
|
|
|
* Returns the value of ignore BOM.
|
|
|
*/
|
|
|
readonly ignoreBOM: boolean;
|
|
|
}
|
|
|
|
|
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
|
readonly readable: ReadableStream<string>;
|
|
|
readonly writable: WritableStream<BufferSource>;
|
|
|
}
|
|
|
|
|
|
declare var TextDecoderStream: {
|
|
|
prototype: TextDecoderStream;
|
|
|
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
|
};
|
|
|
|
|
|
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
|
|
|
interface TextEncoder extends TextEncoderCommon {
|
|
|
/**
|
|
|
* Returns the result of running UTF-8's encoder.
|
|
|
*/
|
|
|
encode(input?: string): Uint8Array;
|
|
|
/**
|
|
|
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
|
|
|
*/
|
|
|
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
|
}
|
|
|
|
|
|
declare var TextEncoder: {
|
|
|
prototype: TextEncoder;
|
|
|
new(): TextEncoder;
|
|
|
};
|
|
|
|
|
|
interface TextEncoderCommon {
|
|
|
/**
|
|
|
* Returns "utf-8".
|
|
|
*/
|
|
|
readonly encoding: string;
|
|
|
}
|
|
|
|
|
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
|
readonly readable: ReadableStream<Uint8Array>;
|
|
|
readonly writable: WritableStream<string>;
|
|
|
}
|
|
|
|
|
|
declare var TextEncoderStream: {
|
|
|
prototype: TextEncoderStream;
|
|
|
new(): TextEncoderStream;
|
|
|
};
|
|
|
|
|
|
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
|
|
|
interface TextMetrics {
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxAscent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxDescent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxLeft: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxRight: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly fontBoundingBoxAscent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly fontBoundingBoxDescent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var TextMetrics: {
|
|
|
prototype: TextMetrics;
|
|
|
new(): TextMetrics;
|
|
|
};
|
|
|
|
|
|
interface TransformStream<I = any, O = any> {
|
|
|
readonly readable: ReadableStream<O>;
|
|
|
readonly writable: WritableStream<I>;
|
|
|
}
|
|
|
|
|
|
declare var TransformStream: {
|
|
|
prototype: TransformStream;
|
|
|
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
|
|
|
};
|
|
|
|
|
|
interface TransformStreamDefaultController<O = any> {
|
|
|
readonly desiredSize: number | null;
|
|
|
enqueue(chunk?: O): void;
|
|
|
error(reason?: any): void;
|
|
|
terminate(): void;
|
|
|
}
|
|
|
|
|
|
declare var TransformStreamDefaultController: {
|
|
|
prototype: TransformStreamDefaultController;
|
|
|
new(): TransformStreamDefaultController;
|
|
|
};
|
|
|
|
|
|
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
|
|
|
interface URL {
|
|
|
hash: string;
|
|
|
host: string;
|
|
|
hostname: string;
|
|
|
href: string;
|
|
|
toString(): string;
|
|
|
readonly origin: string;
|
|
|
password: string;
|
|
|
pathname: string;
|
|
|
port: string;
|
|
|
protocol: string;
|
|
|
search: string;
|
|
|
readonly searchParams: URLSearchParams;
|
|
|
username: string;
|
|
|
toJSON(): string;
|
|
|
}
|
|
|
|
|
|
declare var URL: {
|
|
|
prototype: URL;
|
|
|
new(url: string | URL, base?: string | URL): URL;
|
|
|
createObjectURL(object: any): string;
|
|
|
revokeObjectURL(url: string): void;
|
|
|
};
|
|
|
|
|
|
interface URLSearchParams {
|
|
|
/**
|
|
|
* Appends a specified key/value pair as a new search parameter.
|
|
|
*/
|
|
|
append(name: string, value: string): void;
|
|
|
/**
|
|
|
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
|
|
|
*/
|
|
|
delete(name: string): void;
|
|
|
/**
|
|
|
* Returns the first value associated to the given search parameter.
|
|
|
*/
|
|
|
get(name: string): string | null;
|
|
|
/**
|
|
|
* Returns all the values association with a given search parameter.
|
|
|
*/
|
|
|
getAll(name: string): string[];
|
|
|
/**
|
|
|
* Returns a Boolean indicating if such a search parameter exists.
|
|
|
*/
|
|
|
has(name: string): boolean;
|
|
|
/**
|
|
|
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
|
|
*/
|
|
|
set(name: string, value: string): void;
|
|
|
sort(): void;
|
|
|
/**
|
|
|
* Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var URLSearchParams: {
|
|
|
prototype: URLSearchParams;
|
|
|
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
|
toString(): string;
|
|
|
};
|
|
|
|
|
|
interface WEBGL_color_buffer_float {
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
|
readonly RGBA32F_EXT: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_astc {
|
|
|
getSupportedProfiles(): string[];
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_etc {
|
|
|
readonly COMPRESSED_R11_EAC: GLenum;
|
|
|
readonly COMPRESSED_RG11_EAC: GLenum;
|
|
|
readonly COMPRESSED_RGB8_ETC2: GLenum;
|
|
|
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
|
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
|
|
|
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ETC2: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_etc1 {
|
|
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_pvrtc {
|
|
|
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
|
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
|
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
|
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
|
interface WEBGL_compressed_texture_s3tc {
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_s3tc_srgb {
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
|
|
|
interface WEBGL_debug_renderer_info {
|
|
|
readonly UNMASKED_RENDERER_WEBGL: GLenum;
|
|
|
readonly UNMASKED_VENDOR_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_debug_shaders {
|
|
|
getTranslatedShaderSource(shader: WebGLShader): string;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
|
|
|
interface WEBGL_depth_texture {
|
|
|
readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_draw_buffers {
|
|
|
drawBuffersWEBGL(buffers: GLenum[]): void;
|
|
|
readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER0_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER10_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER11_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER12_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER13_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER14_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER15_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER1_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER2_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER3_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER4_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER5_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER6_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER7_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER8_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER9_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_lose_context {
|
|
|
loseContext(): void;
|
|
|
restoreContext(): void;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
|
}
|
|
|
|
|
|
declare var WebGL2RenderingContext: {
|
|
|
prototype: WebGL2RenderingContext;
|
|
|
new(): WebGL2RenderingContext;
|
|
|
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly ALREADY_SIGNALED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
|
|
|
readonly COLOR: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9: GLenum;
|
|
|
readonly COMPARE_REF_TO_TEXTURE: GLenum;
|
|
|
readonly CONDITION_SATISFIED: GLenum;
|
|
|
readonly COPY_READ_BUFFER: GLenum;
|
|
|
readonly COPY_READ_BUFFER_BINDING: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
|
|
|
readonly CURRENT_QUERY: GLenum;
|
|
|
readonly DEPTH: GLenum;
|
|
|
readonly DEPTH24_STENCIL8: GLenum;
|
|
|
readonly DEPTH32F_STENCIL8: GLenum;
|
|
|
readonly DEPTH_COMPONENT24: GLenum;
|
|
|
readonly DEPTH_COMPONENT32F: GLenum;
|
|
|
readonly DRAW_BUFFER0: GLenum;
|
|
|
readonly DRAW_BUFFER1: GLenum;
|
|
|
readonly DRAW_BUFFER10: GLenum;
|
|
|
readonly DRAW_BUFFER11: GLenum;
|
|
|
readonly DRAW_BUFFER12: GLenum;
|
|
|
readonly DRAW_BUFFER13: GLenum;
|
|
|
readonly DRAW_BUFFER14: GLenum;
|
|
|
readonly DRAW_BUFFER15: GLenum;
|
|
|
readonly DRAW_BUFFER2: GLenum;
|
|
|
readonly DRAW_BUFFER3: GLenum;
|
|
|
readonly DRAW_BUFFER4: GLenum;
|
|
|
readonly DRAW_BUFFER5: GLenum;
|
|
|
readonly DRAW_BUFFER6: GLenum;
|
|
|
readonly DRAW_BUFFER7: GLenum;
|
|
|
readonly DRAW_BUFFER8: GLenum;
|
|
|
readonly DRAW_BUFFER9: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly DYNAMIC_COPY: GLenum;
|
|
|
readonly DYNAMIC_READ: GLenum;
|
|
|
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
|
|
|
readonly FLOAT_MAT2x3: GLenum;
|
|
|
readonly FLOAT_MAT2x4: GLenum;
|
|
|
readonly FLOAT_MAT3x2: GLenum;
|
|
|
readonly FLOAT_MAT3x4: GLenum;
|
|
|
readonly FLOAT_MAT4x2: GLenum;
|
|
|
readonly FLOAT_MAT4x3: GLenum;
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
|
|
|
readonly FRAMEBUFFER_DEFAULT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
|
|
|
readonly HALF_FLOAT: GLenum;
|
|
|
readonly INTERLEAVED_ATTRIBS: GLenum;
|
|
|
readonly INT_2_10_10_10_REV: GLenum;
|
|
|
readonly INT_SAMPLER_2D: GLenum;
|
|
|
readonly INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly INT_SAMPLER_3D: GLenum;
|
|
|
readonly INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly INVALID_INDEX: GLenum;
|
|
|
readonly MAX: GLenum;
|
|
|
readonly MAX_3D_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
|
|
|
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS: GLenum;
|
|
|
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS: GLenum;
|
|
|
readonly MAX_ELEMENTS_INDICES: GLenum;
|
|
|
readonly MAX_ELEMENTS_VERTICES: GLenum;
|
|
|
readonly MAX_ELEMENT_INDEX: GLenum;
|
|
|
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly MAX_SAMPLES: GLenum;
|
|
|
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
|
|
|
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
|
|
|
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
|
|
|
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
|
|
|
readonly MAX_VARYING_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MIN: GLenum;
|
|
|
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly OBJECT_TYPE: GLenum;
|
|
|
readonly PACK_ROW_LENGTH: GLenum;
|
|
|
readonly PACK_SKIP_PIXELS: GLenum;
|
|
|
readonly PACK_SKIP_ROWS: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
|
|
|
readonly QUERY_RESULT: GLenum;
|
|
|
readonly QUERY_RESULT_AVAILABLE: GLenum;
|
|
|
readonly R11F_G11F_B10F: GLenum;
|
|
|
readonly R16F: GLenum;
|
|
|
readonly R16I: GLenum;
|
|
|
readonly R16UI: GLenum;
|
|
|
readonly R32F: GLenum;
|
|
|
readonly R32I: GLenum;
|
|
|
readonly R32UI: GLenum;
|
|
|
readonly R8: GLenum;
|
|
|
readonly R8I: GLenum;
|
|
|
readonly R8UI: GLenum;
|
|
|
readonly R8_SNORM: GLenum;
|
|
|
readonly RASTERIZER_DISCARD: GLenum;
|
|
|
readonly READ_BUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly RED: GLenum;
|
|
|
readonly RED_INTEGER: GLenum;
|
|
|
readonly RENDERBUFFER_SAMPLES: GLenum;
|
|
|
readonly RG: GLenum;
|
|
|
readonly RG16F: GLenum;
|
|
|
readonly RG16I: GLenum;
|
|
|
readonly RG16UI: GLenum;
|
|
|
readonly RG32F: GLenum;
|
|
|
readonly RG32I: GLenum;
|
|
|
readonly RG32UI: GLenum;
|
|
|
readonly RG8: GLenum;
|
|
|
readonly RG8I: GLenum;
|
|
|
readonly RG8UI: GLenum;
|
|
|
readonly RG8_SNORM: GLenum;
|
|
|
readonly RGB10_A2: GLenum;
|
|
|
readonly RGB10_A2UI: GLenum;
|
|
|
readonly RGB16F: GLenum;
|
|
|
readonly RGB16I: GLenum;
|
|
|
readonly RGB16UI: GLenum;
|
|
|
readonly RGB32F: GLenum;
|
|
|
readonly RGB32I: GLenum;
|
|
|
readonly RGB32UI: GLenum;
|
|
|
readonly RGB8: GLenum;
|
|
|
readonly RGB8I: GLenum;
|
|
|
readonly RGB8UI: GLenum;
|
|
|
readonly RGB8_SNORM: GLenum;
|
|
|
readonly RGB9_E5: GLenum;
|
|
|
readonly RGBA16F: GLenum;
|
|
|
readonly RGBA16I: GLenum;
|
|
|
readonly RGBA16UI: GLenum;
|
|
|
readonly RGBA32F: GLenum;
|
|
|
readonly RGBA32I: GLenum;
|
|
|
readonly RGBA32UI: GLenum;
|
|
|
readonly RGBA8: GLenum;
|
|
|
readonly RGBA8I: GLenum;
|
|
|
readonly RGBA8UI: GLenum;
|
|
|
readonly RGBA8_SNORM: GLenum;
|
|
|
readonly RGBA_INTEGER: GLenum;
|
|
|
readonly RGB_INTEGER: GLenum;
|
|
|
readonly RG_INTEGER: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
|
|
|
readonly SAMPLER_2D_SHADOW: GLenum;
|
|
|
readonly SAMPLER_3D: GLenum;
|
|
|
readonly SAMPLER_BINDING: GLenum;
|
|
|
readonly SAMPLER_CUBE_SHADOW: GLenum;
|
|
|
readonly SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly SIGNALED: GLenum;
|
|
|
readonly SIGNED_NORMALIZED: GLenum;
|
|
|
readonly SRGB: GLenum;
|
|
|
readonly SRGB8: GLenum;
|
|
|
readonly SRGB8_ALPHA8: GLenum;
|
|
|
readonly STATIC_COPY: GLenum;
|
|
|
readonly STATIC_READ: GLenum;
|
|
|
readonly STENCIL: GLenum;
|
|
|
readonly STREAM_COPY: GLenum;
|
|
|
readonly STREAM_READ: GLenum;
|
|
|
readonly SYNC_CONDITION: GLenum;
|
|
|
readonly SYNC_FENCE: GLenum;
|
|
|
readonly SYNC_FLAGS: GLenum;
|
|
|
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
|
|
|
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
|
|
|
readonly SYNC_STATUS: GLenum;
|
|
|
readonly TEXTURE_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_3D: GLenum;
|
|
|
readonly TEXTURE_BASE_LEVEL: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_BINDING_3D: GLenum;
|
|
|
readonly TEXTURE_COMPARE_FUNC: GLenum;
|
|
|
readonly TEXTURE_COMPARE_MODE: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
|
|
|
readonly TEXTURE_MAX_LEVEL: GLenum;
|
|
|
readonly TEXTURE_MAX_LOD: GLenum;
|
|
|
readonly TEXTURE_MIN_LOD: GLenum;
|
|
|
readonly TEXTURE_WRAP_R: GLenum;
|
|
|
readonly TIMEOUT_EXPIRED: GLenum;
|
|
|
readonly TIMEOUT_IGNORED: GLint64;
|
|
|
readonly TRANSFORM_FEEDBACK: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
|
|
|
readonly UNIFORM_ARRAY_STRIDE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
|
|
|
readonly UNIFORM_BLOCK_BINDING: GLenum;
|
|
|
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_INDEX: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
|
|
|
readonly UNIFORM_BUFFER: GLenum;
|
|
|
readonly UNIFORM_BUFFER_BINDING: GLenum;
|
|
|
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
|
|
|
readonly UNIFORM_BUFFER_SIZE: GLenum;
|
|
|
readonly UNIFORM_BUFFER_START: GLenum;
|
|
|
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
|
|
|
readonly UNIFORM_MATRIX_STRIDE: GLenum;
|
|
|
readonly UNIFORM_OFFSET: GLenum;
|
|
|
readonly UNIFORM_SIZE: GLenum;
|
|
|
readonly UNIFORM_TYPE: GLenum;
|
|
|
readonly UNPACK_IMAGE_HEIGHT: GLenum;
|
|
|
readonly UNPACK_ROW_LENGTH: GLenum;
|
|
|
readonly UNPACK_SKIP_IMAGES: GLenum;
|
|
|
readonly UNPACK_SKIP_PIXELS: GLenum;
|
|
|
readonly UNPACK_SKIP_ROWS: GLenum;
|
|
|
readonly UNSIGNALED: GLenum;
|
|
|
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_24_8: GLenum;
|
|
|
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC2: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC3: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC4: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ARRAY_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
|
|
|
readonly WAIT_FAILED: GLenum;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
};
|
|
|
|
|
|
interface WebGL2RenderingContextBase {
|
|
|
beginQuery(target: GLenum, query: WebGLQuery): void;
|
|
|
beginTransformFeedback(primitiveMode: GLenum): void;
|
|
|
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
|
|
|
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
|
|
|
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
|
|
|
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
|
|
|
bindVertexArray(array: WebGLVertexArrayObject | null): void;
|
|
|
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
|
|
|
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
|
|
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
|
|
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
|
|
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
|
|
|
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
|
|
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
|
|
|
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
createQuery(): WebGLQuery | null;
|
|
|
createSampler(): WebGLSampler | null;
|
|
|
createTransformFeedback(): WebGLTransformFeedback | null;
|
|
|
createVertexArray(): WebGLVertexArrayObject | null;
|
|
|
deleteQuery(query: WebGLQuery | null): void;
|
|
|
deleteSampler(sampler: WebGLSampler | null): void;
|
|
|
deleteSync(sync: WebGLSync | null): void;
|
|
|
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
|
|
|
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
|
|
|
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
|
|
|
drawBuffers(buffers: GLenum[]): void;
|
|
|
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
|
|
|
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
|
|
|
endQuery(target: GLenum): void;
|
|
|
endTransformFeedback(): void;
|
|
|
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
|
|
|
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
|
|
|
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
|
|
|
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
|
|
|
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
|
|
|
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
|
|
|
getFragDataLocation(program: WebGLProgram, name: string): GLint;
|
|
|
getIndexedParameter(target: GLenum, index: GLuint): any;
|
|
|
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
|
|
|
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
|
|
|
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
|
|
|
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
|
|
|
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
|
|
|
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
|
|
|
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
|
|
|
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
|
|
|
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
isQuery(query: WebGLQuery | null): GLboolean;
|
|
|
isSampler(sampler: WebGLSampler | null): GLboolean;
|
|
|
isSync(sync: WebGLSync | null): GLboolean;
|
|
|
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
|
|
|
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
|
|
|
pauseTransformFeedback(): void;
|
|
|
readBuffer(src: GLenum): void;
|
|
|
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
resumeTransformFeedback(): void;
|
|
|
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
|
|
|
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
|
|
|
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
|
|
|
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
|
|
|
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
|
|
|
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
|
|
|
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
|
|
|
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
|
|
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
|
|
|
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
|
|
|
vertexAttribI4iv(index: GLuint, values: Int32List): void;
|
|
|
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
|
|
|
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
|
|
|
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
|
|
|
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
|
|
|
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly ALREADY_SIGNALED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
|
|
|
readonly COLOR: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9: GLenum;
|
|
|
readonly COMPARE_REF_TO_TEXTURE: GLenum;
|
|
|
readonly CONDITION_SATISFIED: GLenum;
|
|
|
readonly COPY_READ_BUFFER: GLenum;
|
|
|
readonly COPY_READ_BUFFER_BINDING: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
|
|
|
readonly CURRENT_QUERY: GLenum;
|
|
|
readonly DEPTH: GLenum;
|
|
|
readonly DEPTH24_STENCIL8: GLenum;
|
|
|
readonly DEPTH32F_STENCIL8: GLenum;
|
|
|
readonly DEPTH_COMPONENT24: GLenum;
|
|
|
readonly DEPTH_COMPONENT32F: GLenum;
|
|
|
readonly DRAW_BUFFER0: GLenum;
|
|
|
readonly DRAW_BUFFER1: GLenum;
|
|
|
readonly DRAW_BUFFER10: GLenum;
|
|
|
readonly DRAW_BUFFER11: GLenum;
|
|
|
readonly DRAW_BUFFER12: GLenum;
|
|
|
readonly DRAW_BUFFER13: GLenum;
|
|
|
readonly DRAW_BUFFER14: GLenum;
|
|
|
readonly DRAW_BUFFER15: GLenum;
|
|
|
readonly DRAW_BUFFER2: GLenum;
|
|
|
readonly DRAW_BUFFER3: GLenum;
|
|
|
readonly DRAW_BUFFER4: GLenum;
|
|
|
readonly DRAW_BUFFER5: GLenum;
|
|
|
readonly DRAW_BUFFER6: GLenum;
|
|
|
readonly DRAW_BUFFER7: GLenum;
|
|
|
readonly DRAW_BUFFER8: GLenum;
|
|
|
readonly DRAW_BUFFER9: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly DYNAMIC_COPY: GLenum;
|
|
|
readonly DYNAMIC_READ: GLenum;
|
|
|
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
|
|
|
readonly FLOAT_MAT2x3: GLenum;
|
|
|
readonly FLOAT_MAT2x4: GLenum;
|
|
|
readonly FLOAT_MAT3x2: GLenum;
|
|
|
readonly FLOAT_MAT3x4: GLenum;
|
|
|
readonly FLOAT_MAT4x2: GLenum;
|
|
|
readonly FLOAT_MAT4x3: GLenum;
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
|
|
|
readonly FRAMEBUFFER_DEFAULT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
|
|
|
readonly HALF_FLOAT: GLenum;
|
|
|
readonly INTERLEAVED_ATTRIBS: GLenum;
|
|
|
readonly INT_2_10_10_10_REV: GLenum;
|
|
|
readonly INT_SAMPLER_2D: GLenum;
|
|
|
readonly INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly INT_SAMPLER_3D: GLenum;
|
|
|
readonly INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly INVALID_INDEX: GLenum;
|
|
|
readonly MAX: GLenum;
|
|
|
readonly MAX_3D_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
|
|
|
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS: GLenum;
|
|
|
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS: GLenum;
|
|
|
readonly MAX_ELEMENTS_INDICES: GLenum;
|
|
|
readonly MAX_ELEMENTS_VERTICES: GLenum;
|
|
|
readonly MAX_ELEMENT_INDEX: GLenum;
|
|
|
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly MAX_SAMPLES: GLenum;
|
|
|
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
|
|
|
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
|
|
|
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
|
|
|
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
|
|
|
readonly MAX_VARYING_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MIN: GLenum;
|
|
|
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly OBJECT_TYPE: GLenum;
|
|
|
readonly PACK_ROW_LENGTH: GLenum;
|
|
|
readonly PACK_SKIP_PIXELS: GLenum;
|
|
|
readonly PACK_SKIP_ROWS: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
|
|
|
readonly QUERY_RESULT: GLenum;
|
|
|
readonly QUERY_RESULT_AVAILABLE: GLenum;
|
|
|
readonly R11F_G11F_B10F: GLenum;
|
|
|
readonly R16F: GLenum;
|
|
|
readonly R16I: GLenum;
|
|
|
readonly R16UI: GLenum;
|
|
|
readonly R32F: GLenum;
|
|
|
readonly R32I: GLenum;
|
|
|
readonly R32UI: GLenum;
|
|
|
readonly R8: GLenum;
|
|
|
readonly R8I: GLenum;
|
|
|
readonly R8UI: GLenum;
|
|
|
readonly R8_SNORM: GLenum;
|
|
|
readonly RASTERIZER_DISCARD: GLenum;
|
|
|
readonly READ_BUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly RED: GLenum;
|
|
|
readonly RED_INTEGER: GLenum;
|
|
|
readonly RENDERBUFFER_SAMPLES: GLenum;
|
|
|
readonly RG: GLenum;
|
|
|
readonly RG16F: GLenum;
|
|
|
readonly RG16I: GLenum;
|
|
|
readonly RG16UI: GLenum;
|
|
|
readonly RG32F: GLenum;
|
|
|
readonly RG32I: GLenum;
|
|
|
readonly RG32UI: GLenum;
|
|
|
readonly RG8: GLenum;
|
|
|
readonly RG8I: GLenum;
|
|
|
readonly RG8UI: GLenum;
|
|
|
readonly RG8_SNORM: GLenum;
|
|
|
readonly RGB10_A2: GLenum;
|
|
|
readonly RGB10_A2UI: GLenum;
|
|
|
readonly RGB16F: GLenum;
|
|
|
readonly RGB16I: GLenum;
|
|
|
readonly RGB16UI: GLenum;
|
|
|
readonly RGB32F: GLenum;
|
|
|
readonly RGB32I: GLenum;
|
|
|
readonly RGB32UI: GLenum;
|
|
|
readonly RGB8: GLenum;
|
|
|
readonly RGB8I: GLenum;
|
|
|
readonly RGB8UI: GLenum;
|
|
|
readonly RGB8_SNORM: GLenum;
|
|
|
readonly RGB9_E5: GLenum;
|
|
|
readonly RGBA16F: GLenum;
|
|
|
readonly RGBA16I: GLenum;
|
|
|
readonly RGBA16UI: GLenum;
|
|
|
readonly RGBA32F: GLenum;
|
|
|
readonly RGBA32I: GLenum;
|
|
|
readonly RGBA32UI: GLenum;
|
|
|
readonly RGBA8: GLenum;
|
|
|
readonly RGBA8I: GLenum;
|
|
|
readonly RGBA8UI: GLenum;
|
|
|
readonly RGBA8_SNORM: GLenum;
|
|
|
readonly RGBA_INTEGER: GLenum;
|
|
|
readonly RGB_INTEGER: GLenum;
|
|
|
readonly RG_INTEGER: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
|
|
|
readonly SAMPLER_2D_SHADOW: GLenum;
|
|
|
readonly SAMPLER_3D: GLenum;
|
|
|
readonly SAMPLER_BINDING: GLenum;
|
|
|
readonly SAMPLER_CUBE_SHADOW: GLenum;
|
|
|
readonly SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly SIGNALED: GLenum;
|
|
|
readonly SIGNED_NORMALIZED: GLenum;
|
|
|
readonly SRGB: GLenum;
|
|
|
readonly SRGB8: GLenum;
|
|
|
readonly SRGB8_ALPHA8: GLenum;
|
|
|
readonly STATIC_COPY: GLenum;
|
|
|
readonly STATIC_READ: GLenum;
|
|
|
readonly STENCIL: GLenum;
|
|
|
readonly STREAM_COPY: GLenum;
|
|
|
readonly STREAM_READ: GLenum;
|
|
|
readonly SYNC_CONDITION: GLenum;
|
|
|
readonly SYNC_FENCE: GLenum;
|
|
|
readonly SYNC_FLAGS: GLenum;
|
|
|
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
|
|
|
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
|
|
|
readonly SYNC_STATUS: GLenum;
|
|
|
readonly TEXTURE_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_3D: GLenum;
|
|
|
readonly TEXTURE_BASE_LEVEL: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_BINDING_3D: GLenum;
|
|
|
readonly TEXTURE_COMPARE_FUNC: GLenum;
|
|
|
readonly TEXTURE_COMPARE_MODE: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
|
|
|
readonly TEXTURE_MAX_LEVEL: GLenum;
|
|
|
readonly TEXTURE_MAX_LOD: GLenum;
|
|
|
readonly TEXTURE_MIN_LOD: GLenum;
|
|
|
readonly TEXTURE_WRAP_R: GLenum;
|
|
|
readonly TIMEOUT_EXPIRED: GLenum;
|
|
|
readonly TIMEOUT_IGNORED: GLint64;
|
|
|
readonly TRANSFORM_FEEDBACK: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
|
|
|
readonly UNIFORM_ARRAY_STRIDE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
|
|
|
readonly UNIFORM_BLOCK_BINDING: GLenum;
|
|
|
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_INDEX: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
|
|
|
readonly UNIFORM_BUFFER: GLenum;
|
|
|
readonly UNIFORM_BUFFER_BINDING: GLenum;
|
|
|
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
|
|
|
readonly UNIFORM_BUFFER_SIZE: GLenum;
|
|
|
readonly UNIFORM_BUFFER_START: GLenum;
|
|
|
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
|
|
|
readonly UNIFORM_MATRIX_STRIDE: GLenum;
|
|
|
readonly UNIFORM_OFFSET: GLenum;
|
|
|
readonly UNIFORM_SIZE: GLenum;
|
|
|
readonly UNIFORM_TYPE: GLenum;
|
|
|
readonly UNPACK_IMAGE_HEIGHT: GLenum;
|
|
|
readonly UNPACK_ROW_LENGTH: GLenum;
|
|
|
readonly UNPACK_SKIP_IMAGES: GLenum;
|
|
|
readonly UNPACK_SKIP_PIXELS: GLenum;
|
|
|
readonly UNPACK_SKIP_ROWS: GLenum;
|
|
|
readonly UNSIGNALED: GLenum;
|
|
|
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_24_8: GLenum;
|
|
|
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC2: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC3: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC4: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ARRAY_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
|
|
|
readonly WAIT_FAILED: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextOverloads {
|
|
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
|
|
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
|
|
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
}
|
|
|
|
|
|
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
|
|
|
interface WebGLActiveInfo {
|
|
|
readonly name: string;
|
|
|
readonly size: GLint;
|
|
|
readonly type: GLenum;
|
|
|
}
|
|
|
|
|
|
declare var WebGLActiveInfo: {
|
|
|
prototype: WebGLActiveInfo;
|
|
|
new(): WebGLActiveInfo;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
|
|
|
interface WebGLBuffer {
|
|
|
}
|
|
|
|
|
|
declare var WebGLBuffer: {
|
|
|
prototype: WebGLBuffer;
|
|
|
new(): WebGLBuffer;
|
|
|
};
|
|
|
|
|
|
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
|
|
|
interface WebGLContextEvent extends Event {
|
|
|
readonly statusMessage: string;
|
|
|
}
|
|
|
|
|
|
declare var WebGLContextEvent: {
|
|
|
prototype: WebGLContextEvent;
|
|
|
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
|
|
|
interface WebGLFramebuffer {
|
|
|
}
|
|
|
|
|
|
declare var WebGLFramebuffer: {
|
|
|
prototype: WebGLFramebuffer;
|
|
|
new(): WebGLFramebuffer;
|
|
|
};
|
|
|
|
|
|
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
|
|
|
interface WebGLProgram {
|
|
|
}
|
|
|
|
|
|
declare var WebGLProgram: {
|
|
|
prototype: WebGLProgram;
|
|
|
new(): WebGLProgram;
|
|
|
};
|
|
|
|
|
|
interface WebGLQuery {
|
|
|
}
|
|
|
|
|
|
declare var WebGLQuery: {
|
|
|
prototype: WebGLQuery;
|
|
|
new(): WebGLQuery;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
|
|
|
interface WebGLRenderbuffer {
|
|
|
}
|
|
|
|
|
|
declare var WebGLRenderbuffer: {
|
|
|
prototype: WebGLRenderbuffer;
|
|
|
new(): WebGLRenderbuffer;
|
|
|
};
|
|
|
|
|
|
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
|
|
|
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
|
|
|
}
|
|
|
|
|
|
declare var WebGLRenderingContext: {
|
|
|
prototype: WebGLRenderingContext;
|
|
|
new(): WebGLRenderingContext;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
};
|
|
|
|
|
|
interface WebGLRenderingContextBase {
|
|
|
readonly drawingBufferHeight: GLsizei;
|
|
|
readonly drawingBufferWidth: GLsizei;
|
|
|
activeTexture(texture: GLenum): void;
|
|
|
attachShader(program: WebGLProgram, shader: WebGLShader): void;
|
|
|
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
|
|
|
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
|
|
|
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
|
|
|
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
|
|
|
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
|
|
|
blendEquation(mode: GLenum): void;
|
|
|
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
|
|
|
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
|
|
|
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
|
|
|
checkFramebufferStatus(target: GLenum): GLenum;
|
|
|
clear(mask: GLbitfield): void;
|
|
|
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
|
|
|
clearDepth(depth: GLclampf): void;
|
|
|
clearStencil(s: GLint): void;
|
|
|
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
|
|
|
compileShader(shader: WebGLShader): void;
|
|
|
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
|
|
|
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
createBuffer(): WebGLBuffer | null;
|
|
|
createFramebuffer(): WebGLFramebuffer | null;
|
|
|
createProgram(): WebGLProgram | null;
|
|
|
createRenderbuffer(): WebGLRenderbuffer | null;
|
|
|
createShader(type: GLenum): WebGLShader | null;
|
|
|
createTexture(): WebGLTexture | null;
|
|
|
cullFace(mode: GLenum): void;
|
|
|
deleteBuffer(buffer: WebGLBuffer | null): void;
|
|
|
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
|
|
|
deleteProgram(program: WebGLProgram | null): void;
|
|
|
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
deleteShader(shader: WebGLShader | null): void;
|
|
|
deleteTexture(texture: WebGLTexture | null): void;
|
|
|
depthFunc(func: GLenum): void;
|
|
|
depthMask(flag: GLboolean): void;
|
|
|
depthRange(zNear: GLclampf, zFar: GLclampf): void;
|
|
|
detachShader(program: WebGLProgram, shader: WebGLShader): void;
|
|
|
disable(cap: GLenum): void;
|
|
|
disableVertexAttribArray(index: GLuint): void;
|
|
|
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
|
|
|
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
|
|
|
enable(cap: GLenum): void;
|
|
|
enableVertexAttribArray(index: GLuint): void;
|
|
|
finish(): void;
|
|
|
flush(): void;
|
|
|
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
|
|
|
frontFace(mode: GLenum): void;
|
|
|
generateMipmap(target: GLenum): void;
|
|
|
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
|
|
|
getAttribLocation(program: WebGLProgram, name: string): GLint;
|
|
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
|
getError(): GLenum;
|
|
|
getExtension(extensionName: "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_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
|
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | 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_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
|
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
|
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
|
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
|
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
|
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
|
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
|
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
|
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
|
getExtension(name: string): any;
|
|
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
|
getParameter(pname: GLenum): any;
|
|
|
getProgramInfoLog(program: WebGLProgram): string | null;
|
|
|
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
|
|
|
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
|
|
|
getShaderInfoLog(shader: WebGLShader): string | null;
|
|
|
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
|
|
|
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
|
|
|
getShaderSource(shader: WebGLShader): string | null;
|
|
|
getSupportedExtensions(): string[] | null;
|
|
|
getTexParameter(target: GLenum, pname: GLenum): any;
|
|
|
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
|
|
|
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
|
|
|
getVertexAttrib(index: GLuint, pname: GLenum): any;
|
|
|
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
|
|
|
hint(target: GLenum, mode: GLenum): void;
|
|
|
isBuffer(buffer: WebGLBuffer | null): GLboolean;
|
|
|
isContextLost(): boolean;
|
|
|
isEnabled(cap: GLenum): GLboolean;
|
|
|
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
|
|
|
isProgram(program: WebGLProgram | null): GLboolean;
|
|
|
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
|
|
|
isShader(shader: WebGLShader | null): GLboolean;
|
|
|
isTexture(texture: WebGLTexture | null): GLboolean;
|
|
|
lineWidth(width: GLfloat): void;
|
|
|
linkProgram(program: WebGLProgram): void;
|
|
|
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
|
|
|
polygonOffset(factor: GLfloat, units: GLfloat): void;
|
|
|
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
sampleCoverage(value: GLclampf, invert: GLboolean): void;
|
|
|
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
shaderSource(shader: WebGLShader, source: string): void;
|
|
|
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
|
|
|
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
|
|
|
stencilMask(mask: GLuint): void;
|
|
|
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
|
|
|
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
|
|
|
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
|
|
|
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
|
|
|
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
|
|
|
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
|
|
|
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
|
|
|
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
|
|
|
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
|
|
|
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
|
|
|
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
|
|
|
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
|
|
|
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
|
|
|
useProgram(program: WebGLProgram | null): void;
|
|
|
validateProgram(program: WebGLProgram): void;
|
|
|
vertexAttrib1f(index: GLuint, x: GLfloat): void;
|
|
|
vertexAttrib1fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
|
|
|
vertexAttrib2fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
|
|
|
vertexAttrib3fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
|
|
|
vertexAttrib4fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
|
|
|
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextOverloads {
|
|
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
|
|
|
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLSampler {
|
|
|
}
|
|
|
|
|
|
declare var WebGLSampler: {
|
|
|
prototype: WebGLSampler;
|
|
|
new(): WebGLSampler;
|
|
|
};
|
|
|
|
|
|
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
|
|
|
interface WebGLShader {
|
|
|
}
|
|
|
|
|
|
declare var WebGLShader: {
|
|
|
prototype: WebGLShader;
|
|
|
new(): WebGLShader;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
|
|
|
interface WebGLShaderPrecisionFormat {
|
|
|
readonly precision: GLint;
|
|
|
readonly rangeMax: GLint;
|
|
|
readonly rangeMin: GLint;
|
|
|
}
|
|
|
|
|
|
declare var WebGLShaderPrecisionFormat: {
|
|
|
prototype: WebGLShaderPrecisionFormat;
|
|
|
new(): WebGLShaderPrecisionFormat;
|
|
|
};
|
|
|
|
|
|
interface WebGLSync {
|
|
|
}
|
|
|
|
|
|
declare var WebGLSync: {
|
|
|
prototype: WebGLSync;
|
|
|
new(): WebGLSync;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
|
|
|
interface WebGLTexture {
|
|
|
}
|
|
|
|
|
|
declare var WebGLTexture: {
|
|
|
prototype: WebGLTexture;
|
|
|
new(): WebGLTexture;
|
|
|
};
|
|
|
|
|
|
interface WebGLTransformFeedback {
|
|
|
}
|
|
|
|
|
|
declare var WebGLTransformFeedback: {
|
|
|
prototype: WebGLTransformFeedback;
|
|
|
new(): WebGLTransformFeedback;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
|
|
|
interface WebGLUniformLocation {
|
|
|
}
|
|
|
|
|
|
declare var WebGLUniformLocation: {
|
|
|
prototype: WebGLUniformLocation;
|
|
|
new(): WebGLUniformLocation;
|
|
|
};
|
|
|
|
|
|
interface WebGLVertexArrayObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLVertexArrayObject: {
|
|
|
prototype: WebGLVertexArrayObject;
|
|
|
new(): WebGLVertexArrayObject;
|
|
|
};
|
|
|
|
|
|
interface WebGLVertexArrayObjectOES {
|
|
|
}
|
|
|
|
|
|
interface WebSocketEventMap {
|
|
|
"close": CloseEvent;
|
|
|
"error": Event;
|
|
|
"message": MessageEvent;
|
|
|
"open": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
|
|
|
interface WebSocket extends EventTarget {
|
|
|
/**
|
|
|
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
|
|
|
*
|
|
|
* Can be set, to change how binary data is returned. The default is "blob".
|
|
|
*/
|
|
|
binaryType: BinaryType;
|
|
|
/**
|
|
|
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
|
|
|
*
|
|
|
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
|
|
|
*/
|
|
|
readonly bufferedAmount: number;
|
|
|
/**
|
|
|
* Returns the extensions selected by the server, if any.
|
|
|
*/
|
|
|
readonly extensions: string;
|
|
|
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
|
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
|
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
|
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
|
|
|
*/
|
|
|
readonly protocol: string;
|
|
|
/**
|
|
|
* Returns the state of the WebSocket object's connection. It can have the values described below.
|
|
|
*/
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns the URL that was used to establish the WebSocket connection.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
/**
|
|
|
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
|
|
|
*/
|
|
|
close(code?: number, reason?: string): void;
|
|
|
/**
|
|
|
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
|
|
|
*/
|
|
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CLOSING: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
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 CLOSED: number;
|
|
|
readonly CLOSING: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
};
|
|
|
|
|
|
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
|
|
|
interface WindowClient extends Client {
|
|
|
readonly focused: boolean;
|
|
|
readonly visibilityState: VisibilityState;
|
|
|
focus(): Promise<WindowClient>;
|
|
|
navigate(url: string | URL): Promise<WindowClient | null>;
|
|
|
}
|
|
|
|
|
|
declare var WindowClient: {
|
|
|
prototype: WindowClient;
|
|
|
new(): WindowClient;
|
|
|
};
|
|
|
|
|
|
interface WindowOrWorkerGlobalScope {
|
|
|
readonly caches: CacheStorage;
|
|
|
readonly crossOriginIsolated: boolean;
|
|
|
readonly crypto: Crypto;
|
|
|
readonly indexedDB: IDBFactory;
|
|
|
readonly isSecureContext: boolean;
|
|
|
readonly origin: string;
|
|
|
readonly performance: Performance;
|
|
|
atob(data: string): string;
|
|
|
btoa(data: string): string;
|
|
|
clearInterval(handle?: number): void;
|
|
|
clearTimeout(handle?: number): void;
|
|
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
|
queueMicrotask(callback: VoidFunction): void;
|
|
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
}
|
|
|
|
|
|
interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
|
|
|
interface Worker extends EventTarget, AbstractWorker {
|
|
|
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
|
*/
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
/**
|
|
|
* Aborts worker's associated global environment.
|
|
|
*/
|
|
|
terminate(): void;
|
|
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Worker: {
|
|
|
prototype: Worker;
|
|
|
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
|
|
|
};
|
|
|
|
|
|
interface WorkerGlobalScopeEventMap {
|
|
|
"error": ErrorEvent;
|
|
|
"languagechange": Event;
|
|
|
"offline": Event;
|
|
|
"online": Event;
|
|
|
"rejectionhandled": PromiseRejectionEvent;
|
|
|
"unhandledrejection": PromiseRejectionEvent;
|
|
|
}
|
|
|
|
|
|
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
|
|
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
|
/**
|
|
|
* Returns workerGlobal's WorkerLocation object.
|
|
|
*/
|
|
|
readonly location: WorkerLocation;
|
|
|
/**
|
|
|
* Returns workerGlobal's WorkerNavigator object.
|
|
|
*/
|
|
|
readonly navigator: WorkerNavigator;
|
|
|
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
|
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
|
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
|
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
|
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
|
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
|
/**
|
|
|
* Returns workerGlobal.
|
|
|
*/
|
|
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
|
/**
|
|
|
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
|
|
|
*/
|
|
|
importScripts(...urls: (string | URL)[]): void;
|
|
|
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var WorkerGlobalScope: {
|
|
|
prototype: WorkerGlobalScope;
|
|
|
new(): WorkerGlobalScope;
|
|
|
};
|
|
|
|
|
|
/** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */
|
|
|
interface WorkerLocation {
|
|
|
readonly hash: string;
|
|
|
readonly host: string;
|
|
|
readonly hostname: string;
|
|
|
readonly href: string;
|
|
|
toString(): string;
|
|
|
readonly origin: string;
|
|
|
readonly pathname: string;
|
|
|
readonly port: string;
|
|
|
readonly protocol: string;
|
|
|
readonly search: string;
|
|
|
}
|
|
|
|
|
|
declare var WorkerLocation: {
|
|
|
prototype: WorkerLocation;
|
|
|
new(): WorkerLocation;
|
|
|
};
|
|
|
|
|
|
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
|
|
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
|
|
readonly mediaCapabilities: MediaCapabilities;
|
|
|
}
|
|
|
|
|
|
declare var WorkerNavigator: {
|
|
|
prototype: WorkerNavigator;
|
|
|
new(): WorkerNavigator;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
|
|
|
interface WritableStream<W = any> {
|
|
|
readonly locked: boolean;
|
|
|
abort(reason?: any): Promise<void>;
|
|
|
close(): Promise<void>;
|
|
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
|
}
|
|
|
|
|
|
declare var WritableStream: {
|
|
|
prototype: WritableStream;
|
|
|
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
|
interface WritableStreamDefaultController {
|
|
|
error(e?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var WritableStreamDefaultController: {
|
|
|
prototype: WritableStreamDefaultController;
|
|
|
new(): WritableStreamDefaultController;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
|
|
|
interface WritableStreamDefaultWriter<W = any> {
|
|
|
readonly closed: Promise<undefined>;
|
|
|
readonly desiredSize: number | null;
|
|
|
readonly ready: Promise<undefined>;
|
|
|
abort(reason?: any): Promise<void>;
|
|
|
close(): Promise<void>;
|
|
|
releaseLock(): void;
|
|
|
write(chunk?: W): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var WritableStreamDefaultWriter: {
|
|
|
prototype: WritableStreamDefaultWriter;
|
|
|
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
|
|
|
"readystatechange": Event;
|
|
|
}
|
|
|
|
|
|
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
|
|
|
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns client's state.
|
|
|
*/
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns the response body.
|
|
|
*/
|
|
|
readonly response: any;
|
|
|
/**
|
|
|
* Returns response as text.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
|
|
|
*/
|
|
|
readonly responseText: string;
|
|
|
/**
|
|
|
* Returns the response type.
|
|
|
*
|
|
|
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
|
|
|
*
|
|
|
* When set: setting to "document" is ignored if current global object is not a Window object.
|
|
|
*
|
|
|
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
|
|
|
*
|
|
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
|
*/
|
|
|
responseType: XMLHttpRequestResponseType;
|
|
|
readonly responseURL: string;
|
|
|
readonly status: number;
|
|
|
readonly statusText: string;
|
|
|
/**
|
|
|
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
|
|
|
*
|
|
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
|
*/
|
|
|
timeout: number;
|
|
|
/**
|
|
|
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
|
|
|
*/
|
|
|
readonly upload: XMLHttpRequestUpload;
|
|
|
/**
|
|
|
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
|
|
|
*
|
|
|
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
|
|
|
*/
|
|
|
withCredentials: boolean;
|
|
|
/**
|
|
|
* Cancels any network activity.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
getAllResponseHeaders(): string;
|
|
|
getResponseHeader(name: string): string | null;
|
|
|
/**
|
|
|
* Sets the request method, request URL, and synchronous flag.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
|
|
|
*
|
|
|
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
|
|
|
*
|
|
|
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
|
|
|
*/
|
|
|
open(method: string, url: string | URL): void;
|
|
|
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
|
|
|
/**
|
|
|
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if state is loading or done.
|
|
|
*/
|
|
|
overrideMimeType(mime: string): void;
|
|
|
/**
|
|
|
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
|
|
|
*/
|
|
|
send(body?: XMLHttpRequestBodyInit | null): void;
|
|
|
/**
|
|
|
* Combines a header in author request headers.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
|
|
|
*/
|
|
|
setRequestHeader(name: string, value: string): void;
|
|
|
readonly DONE: number;
|
|
|
readonly HEADERS_RECEIVED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly OPENED: number;
|
|
|
readonly UNSENT: number;
|
|
|
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 DONE: number;
|
|
|
readonly HEADERS_RECEIVED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly OPENED: number;
|
|
|
readonly UNSENT: number;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestEventTargetEventMap {
|
|
|
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"error": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"load": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
}
|
|
|
|
|
|
interface XMLHttpRequestEventTarget extends EventTarget {
|
|
|
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLHttpRequestEventTarget: {
|
|
|
prototype: XMLHttpRequestEventTarget;
|
|
|
new(): XMLHttpRequestEventTarget;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
|
|
|
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLHttpRequestUpload: {
|
|
|
prototype: XMLHttpRequestUpload;
|
|
|
new(): XMLHttpRequestUpload;
|
|
|
};
|
|
|
|
|
|
interface Console {
|
|
|
assert(condition?: boolean, ...data: any[]): void;
|
|
|
clear(): void;
|
|
|
count(label?: string): void;
|
|
|
countReset(label?: string): void;
|
|
|
debug(...data: any[]): void;
|
|
|
dir(item?: any, options?: any): void;
|
|
|
dirxml(...data: any[]): void;
|
|
|
error(...data: any[]): void;
|
|
|
group(...data: any[]): void;
|
|
|
groupCollapsed(...data: any[]): void;
|
|
|
groupEnd(): void;
|
|
|
info(...data: any[]): void;
|
|
|
log(...data: any[]): void;
|
|
|
table(tabularData?: any, properties?: string[]): void;
|
|
|
time(label?: string): void;
|
|
|
timeEnd(label?: string): void;
|
|
|
timeLog(label?: string, ...data: any[]): void;
|
|
|
timeStamp(label?: string): void;
|
|
|
trace(...data: any[]): void;
|
|
|
warn(...data: any[]): void;
|
|
|
}
|
|
|
|
|
|
declare var console: Console;
|
|
|
|
|
|
declare namespace WebAssembly {
|
|
|
interface CompileError extends Error {
|
|
|
}
|
|
|
|
|
|
var CompileError: {
|
|
|
prototype: CompileError;
|
|
|
new(): CompileError;
|
|
|
};
|
|
|
|
|
|
interface Global {
|
|
|
value: any;
|
|
|
valueOf(): any;
|
|
|
}
|
|
|
|
|
|
var Global: {
|
|
|
prototype: Global;
|
|
|
new(descriptor: GlobalDescriptor, v?: any): Global;
|
|
|
};
|
|
|
|
|
|
interface Instance {
|
|
|
readonly exports: Exports;
|
|
|
}
|
|
|
|
|
|
var Instance: {
|
|
|
prototype: Instance;
|
|
|
new(module: Module, importObject?: Imports): Instance;
|
|
|
};
|
|
|
|
|
|
interface LinkError extends Error {
|
|
|
}
|
|
|
|
|
|
var LinkError: {
|
|
|
prototype: LinkError;
|
|
|
new(): LinkError;
|
|
|
};
|
|
|
|
|
|
interface Memory {
|
|
|
readonly buffer: ArrayBuffer;
|
|
|
grow(delta: number): number;
|
|
|
}
|
|
|
|
|
|
var Memory: {
|
|
|
prototype: Memory;
|
|
|
new(descriptor: MemoryDescriptor): Memory;
|
|
|
};
|
|
|
|
|
|
interface Module {
|
|
|
}
|
|
|
|
|
|
var Module: {
|
|
|
prototype: Module;
|
|
|
new(bytes: BufferSource): Module;
|
|
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
|
};
|
|
|
|
|
|
interface RuntimeError extends Error {
|
|
|
}
|
|
|
|
|
|
var RuntimeError: {
|
|
|
prototype: RuntimeError;
|
|
|
new(): RuntimeError;
|
|
|
};
|
|
|
|
|
|
interface Table {
|
|
|
readonly length: number;
|
|
|
get(index: number): any;
|
|
|
grow(delta: number, value?: any): number;
|
|
|
set(index: number, value?: any): void;
|
|
|
}
|
|
|
|
|
|
var Table: {
|
|
|
prototype: Table;
|
|
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
|
};
|
|
|
|
|
|
interface GlobalDescriptor {
|
|
|
mutable?: boolean;
|
|
|
value: ValueType;
|
|
|
}
|
|
|
|
|
|
interface MemoryDescriptor {
|
|
|
initial: number;
|
|
|
maximum?: number;
|
|
|
shared?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ModuleExportDescriptor {
|
|
|
kind: ImportExportKind;
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface ModuleImportDescriptor {
|
|
|
kind: ImportExportKind;
|
|
|
module: string;
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface TableDescriptor {
|
|
|
element: TableKind;
|
|
|
initial: number;
|
|
|
maximum?: number;
|
|
|
}
|
|
|
|
|
|
interface WebAssemblyInstantiatedSource {
|
|
|
instance: Instance;
|
|
|
module: Module;
|
|
|
}
|
|
|
|
|
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
|
type TableKind = "anyfunc" | "externref";
|
|
|
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
|
type ExportValue = Function | Global | Memory | Table;
|
|
|
type Exports = Record<string, ExportValue>;
|
|
|
type ImportValue = ExportValue | number;
|
|
|
type Imports = Record<string, ModuleImports>;
|
|
|
type ModuleImports = Record<string, ImportValue>;
|
|
|
function compile(bytes: BufferSource): Promise<Module>;
|
|
|
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
|
|
|
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
|
function validate(bytes: BufferSource): boolean;
|
|
|
}
|
|
|
|
|
|
interface FrameRequestCallback {
|
|
|
(time: DOMHighResTimeStamp): void;
|
|
|
}
|
|
|
|
|
|
interface OnErrorEventHandlerNonNull {
|
|
|
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
|
|
|
}
|
|
|
|
|
|
interface PerformanceObserverCallback {
|
|
|
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
|
|
|
}
|
|
|
|
|
|
interface QueuingStrategySize<T = any> {
|
|
|
(chunk?: T): number;
|
|
|
}
|
|
|
|
|
|
interface TransformerFlushCallback<O> {
|
|
|
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface TransformerStartCallback<O> {
|
|
|
(controller: TransformStreamDefaultController<O>): any;
|
|
|
}
|
|
|
|
|
|
interface TransformerTransformCallback<I, O> {
|
|
|
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkAbortCallback {
|
|
|
(reason?: any): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkCloseCallback {
|
|
|
(): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkStartCallback {
|
|
|
(controller: WritableStreamDefaultController): any;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSinkWriteCallback<W> {
|
|
|
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSourceCancelCallback {
|
|
|
(reason?: any): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSourcePullCallback<R> {
|
|
|
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSourceStartCallback<R> {
|
|
|
(controller: ReadableStreamController<R>): any;
|
|
|
}
|
|
|
|
|
|
interface VoidFunction {
|
|
|
(): void;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
|
|
*/
|
|
|
declare var name: string;
|
|
|
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
|
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Aborts dedicatedWorkerGlobal.
|
|
|
*/
|
|
|
declare function close(): void;
|
|
|
/**
|
|
|
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
|
*/
|
|
|
declare function postMessage(message: any, transfer: Transferable[]): void;
|
|
|
declare function postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
/**
|
|
|
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
|
*/
|
|
|
declare function dispatchEvent(event: Event): boolean;
|
|
|
/**
|
|
|
* Returns workerGlobal's WorkerLocation object.
|
|
|
*/
|
|
|
declare var location: WorkerLocation;
|
|
|
/**
|
|
|
* Returns workerGlobal's WorkerNavigator object.
|
|
|
*/
|
|
|
declare var navigator: WorkerNavigator;
|
|
|
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
|
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
|
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
|
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
|
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
|
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
|
/**
|
|
|
* Returns workerGlobal.
|
|
|
*/
|
|
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
|
/**
|
|
|
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
|
|
|
*/
|
|
|
declare function importScripts(...urls: (string | URL)[]): void;
|
|
|
/**
|
|
|
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
|
*/
|
|
|
declare function dispatchEvent(event: Event): boolean;
|
|
|
declare var fonts: FontFaceSet;
|
|
|
declare var caches: CacheStorage;
|
|
|
declare var crossOriginIsolated: boolean;
|
|
|
declare var crypto: Crypto;
|
|
|
declare var indexedDB: IDBFactory;
|
|
|
declare var isSecureContext: boolean;
|
|
|
declare var origin: string;
|
|
|
declare var performance: Performance;
|
|
|
declare function atob(data: string): string;
|
|
|
declare function btoa(data: string): string;
|
|
|
declare function clearInterval(handle?: number): void;
|
|
|
declare function clearTimeout(handle?: number): void;
|
|
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
declare function cancelAnimationFrame(handle: number): void;
|
|
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
type AlgorithmIdentifier = Algorithm | string;
|
|
|
type BigInteger = Uint8Array;
|
|
|
type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
|
type BlobPart = BufferSource | Blob | string;
|
|
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
|
|
|
type DOMHighResTimeStamp = number;
|
|
|
type DOMTimeStamp = number;
|
|
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
|
type Float32List = Float32Array | GLfloat[];
|
|
|
type FormDataEntryValue = File | string;
|
|
|
type GLbitfield = number;
|
|
|
type GLboolean = boolean;
|
|
|
type GLclampf = number;
|
|
|
type GLenum = number;
|
|
|
type GLfloat = number;
|
|
|
type GLint = number;
|
|
|
type GLint64 = number;
|
|
|
type GLintptr = number;
|
|
|
type GLsizei = number;
|
|
|
type GLsizeiptr = number;
|
|
|
type GLuint = number;
|
|
|
type GLuint64 = number;
|
|
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
|
type HeadersInit = string[][] | 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 OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
type PerformanceEntryList = PerformanceEntry[];
|
|
|
type PushMessageDataInit = BufferSource | string;
|
|
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
|
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
|
|
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
|
type RequestInfo = Request | string;
|
|
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
|
type TimerHandler = string | Function;
|
|
|
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
|
|
|
type Uint32List = Uint32Array | GLuint[];
|
|
|
type VibratePattern = number | number[];
|
|
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
|
type BinaryType = "arraybuffer" | "blob";
|
|
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
|
type ColorSpaceConversion = "default" | "none";
|
|
|
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
|
type EndingType = "native" | "transparent";
|
|
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
|
type IDBRequestReadyState = "done" | "pending";
|
|
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
|
type ImageOrientation = "flipY" | "none";
|
|
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
|
type KeyType = "private" | "public" | "secret";
|
|
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
|
type MediaEncodingType = "record" | "webrtc";
|
|
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
|
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
|
|
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
|
type PushPermissionState = "denied" | "granted" | "prompt";
|
|
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
|
|
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
|
type VisibilityState = "hidden" | "visible";
|
|
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
|
type WorkerType = "classic" | "module";
|
|
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
|
|
`,yi["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;
|
|
|
`,yi["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// Worker Iterable APIs
|
|
|
/////////////////////////////
|
|
|
|
|
|
interface Cache {
|
|
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
|
}
|
|
|
|
|
|
interface DOMStringList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface FileList {
|
|
|
[Symbol.iterator](): IterableIterator<File>;
|
|
|
}
|
|
|
|
|
|
interface FontFaceSet extends Set<FontFace> {
|
|
|
}
|
|
|
|
|
|
interface FormData {
|
|
|
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
|
|
/**
|
|
|
* Returns a list of keys in the list.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns a list of values in the list.
|
|
|
*/
|
|
|
values(): IterableIterator<FormDataEntryValue>;
|
|
|
}
|
|
|
|
|
|
interface Headers {
|
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all key/value pairs contained in this object.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
|
|
|
*/
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface IDBDatabase {
|
|
|
/**
|
|
|
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
|
*/
|
|
|
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
|
|
|
}
|
|
|
|
|
|
interface IDBObjectStore {
|
|
|
/**
|
|
|
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
|
}
|
|
|
|
|
|
interface MessageEvent<T = any> {
|
|
|
/** @deprecated */
|
|
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
|
}
|
|
|
|
|
|
interface ReadableStream<R = any> {
|
|
|
[Symbol.iterator](): IterableIterator<any>;
|
|
|
entries(): IterableIterator<[number, any]>;
|
|
|
keys(): IterableIterator<number>;
|
|
|
values(): IterableIterator<any>;
|
|
|
}
|
|
|
|
|
|
interface SubtleCrypto {
|
|
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
|
|
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
|
}
|
|
|
|
|
|
interface URLSearchParams {
|
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the search params.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns a list of keys in the search params.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns a list of values in the search params.
|
|
|
*/
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_draw_buffers {
|
|
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextBase {
|
|
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
|
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
|
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
|
|
|
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
|
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
|
|
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
|
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
|
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
|
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextOverloads {
|
|
|
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextBase {
|
|
|
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextOverloads {
|
|
|
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
}
|
|
|
`;var pc=function(){return pc=Object.assign||function(a){for(var H,Ae=1,nn=arguments.length;Ae<nn;Ae++){H=arguments[Ae];for(var In in H)Object.prototype.hasOwnProperty.call(H,In)&&(a[In]=H[In])}return a},pc.apply(this,arguments)},rl=function(a,H,Ae,nn){function In(Gn){return Gn instanceof Ae?Gn:new Ae(function(bt){bt(Gn)})}return new(Ae||(Ae=Promise))(function(Gn,bt){function pt(er){try{Pt(nn.next(er))}catch(jr){bt(jr)}}function It(er){try{Pt(nn.throw(er))}catch(jr){bt(jr)}}function Pt(er){er.done?Gn(er.value):In(er.value).then(pt,It)}Pt((nn=nn.apply(a,H||[])).next())})},Zi=function(a,H){var Ae={label:0,sent:function(){if(Gn[0]&1)throw Gn[1];return Gn[1]},trys:[],ops:[]},nn,In,Gn,bt;return bt={next:pt(0),throw:pt(1),return:pt(2)},typeof Symbol=="function"&&(bt[Symbol.iterator]=function(){return this}),bt;function pt(Pt){return function(er){return It([Pt,er])}}function It(Pt){if(nn)throw new TypeError("Generator is already executing.");for(;Ae;)try{if(nn=1,In&&(Gn=Pt[0]&2?In.return:Pt[0]?In.throw||((Gn=In.return)&&Gn.call(In),0):In.next)&&!(Gn=Gn.call(In,Pt[1])).done)return Gn;(In=0,Gn)&&(Pt=[Pt[0]&2,Gn.value]);switch(Pt[0]){case 0:case 1:Gn=Pt;break;case 4:return Ae.label++,{value:Pt[1],done:!1};case 5:Ae.label++,In=Pt[1],Pt=[0];continue;case 7:Pt=Ae.ops.pop(),Ae.trys.pop();continue;default:if(!(Gn=Ae.trys,Gn=Gn.length>0&&Gn[Gn.length-1])&&(Pt[0]===6||Pt[0]===2)){Ae=0;continue}if(Pt[0]===3&&(!Gn||Pt[1]>Gn[0]&&Pt[1]<Gn[3])){Ae.label=Pt[1];break}if(Pt[0]===6&&Ae.label<Gn[1]){Ae.label=Gn[1],Gn=Pt;break}if(Gn&&Ae.label<Gn[2]){Ae.label=Gn[2],Ae.ops.push(Pt);break}Gn[2]&&Ae.ops.pop(),Ae.trys.pop();continue}Pt=H.call(a,Ae)}catch(er){Pt=[6,er],In=0}finally{nn=Gn=0}if(Pt[0]&5)throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}};function vl(a){return typeof a=="string"?/^file:\/\/\//.test(a)?!!yi[a.substr(8)]:!1:a.path.indexOf("/lib.")===0?!!yi[a.path.slice(1)]:!1}var al=function(){function a(H,Ae){this._extraLibs=Object.create(null),this._languageService=Vo.createLanguageService(this),this._ctx=H,this._compilerOptions=Ae.compilerOptions,this._extraLibs=Ae.extraLibs,this._inlayHintsOptions=Ae.inlayHintsOptions}return a.prototype.getCompilationSettings=function(){return this._compilerOptions},a.prototype.getLanguageService=function(){return this._languageService},a.prototype.getExtraLibs=function(){return this._extraLibs},a.prototype.getScriptFileNames=function(){var H=this._ctx.getMirrorModels().map(function(nn){return nn.uri}),Ae=H.filter(function(nn){return!vl(nn)}).map(function(nn){return nn.toString()});return Ae.concat(Object.keys(this._extraLibs))},a.prototype._getModel=function(H){for(var Ae=this._ctx.getMirrorModels(),nn=0;nn<Ae.length;nn++)if(Ae[nn].uri.toString()===H)return Ae[nn];return null},a.prototype.getScriptVersion=function(H){var Ae=this._getModel(H);return Ae?Ae.version.toString():this.isDefaultLibFileName(H)?"1":H in this._extraLibs?String(this._extraLibs[H].version):""},a.prototype.getScriptText=function(H){return rl(this,void 0,void 0,function(){return Zi(this,function(Ae){return[2,this._getScriptText(H)]})})},a.prototype._getScriptText=function(H){var Ae,nn=this._getModel(H),In="lib."+H+".d.ts";if(nn)Ae=nn.getValue();else if(H in yi)Ae=yi[H];else if(In in yi)Ae=yi[In];else if(H in this._extraLibs)Ae=this._extraLibs[H].content;else return;return Ae},a.prototype.getScriptSnapshot=function(H){var Ae=this._getScriptText(H);return Ae===void 0?void 0:{getText:function(nn,In){return Ae.substring(nn,In)},getLength:function(){return Ae.length},getChangeRange:function(){return}}},a.prototype.getScriptKind=function(H){var Ae=H.substr(H.lastIndexOf(".")+1);switch(Ae){case"ts":return Vo.ScriptKind.TS;case"tsx":return Vo.ScriptKind.TSX;case"js":return Vo.ScriptKind.JS;case"jsx":return Vo.ScriptKind.JSX;default:return this.getCompilationSettings().allowJs?Vo.ScriptKind.JS:Vo.ScriptKind.TS}},a.prototype.getCurrentDirectory=function(){return""},a.prototype.getDefaultLibFileName=function(H){switch(H.target){case 99:var Ae="lib.esnext.full.d.ts";if(Ae in yi||Ae in this._extraLibs)return Ae;case 7:case 6:case 5:case 4:case 3:case 2:default:var nn="lib.es"+(2013+(H.target||99))+".full.d.ts";return nn in yi||nn in this._extraLibs?nn:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}},a.prototype.isDefaultLibFileName=function(H){return H===this.getDefaultLibFileName(this._compilerOptions)},a.prototype.getLibFiles=function(){return rl(this,void 0,void 0,function(){return Zi(this,function(H){return[2,yi]})})},a.clearFiles=function(H){for(var Ae=[],nn=0,In=H;nn<In.length;nn++){var Gn=In[nn],bt=pc({},Gn);if(bt.file=bt.file?{fileName:bt.file.fileName}:void 0,Gn.relatedInformation){bt.relatedInformation=[];for(var pt=0,It=Gn.relatedInformation;pt<It.length;pt++){var Pt=It[pt],er=pc({},Pt);er.file=er.file?{fileName:er.file.fileName}:void 0,bt.relatedInformation.push(er)}}Ae.push(bt)}return Ae},a.prototype.getSyntacticDiagnostics=function(H){return rl(this,void 0,void 0,function(){var Ae;return Zi(this,function(nn){return vl(H)?[2,[]]:(Ae=this._languageService.getSyntacticDiagnostics(H),[2,a.clearFiles(Ae)])})})},a.prototype.getSemanticDiagnostics=function(H){return rl(this,void 0,void 0,function(){var Ae;return Zi(this,function(nn){return vl(H)?[2,[]]:(Ae=this._languageService.getSemanticDiagnostics(H),[2,a.clearFiles(Ae)])})})},a.prototype.getSuggestionDiagnostics=function(H){return rl(this,void 0,void 0,function(){var Ae;return Zi(this,function(nn){return vl(H)?[2,[]]:(Ae=this._languageService.getSuggestionDiagnostics(H),[2,a.clearFiles(Ae)])})})},a.prototype.getCompilerOptionsDiagnostics=function(H){return rl(this,void 0,void 0,function(){var Ae;return Zi(this,function(nn){return vl(H)?[2,[]]:(Ae=this._languageService.getCompilerOptionsDiagnostics(),[2,a.clearFiles(Ae)])})})},a.prototype.getCompletionsAtPosition=function(H,Ae){return rl(this,void 0,void 0,function(){return Zi(this,function(nn){return vl(H)?[2,void 0]:[2,this._languageService.getCompletionsAtPosition(H,Ae,void 0)]})})},a.prototype.getCompletionEntryDetails=function(H,Ae,nn){return rl(this,void 0,void 0,function(){return Zi(this,function(In){return[2,this._languageService.getCompletionEntryDetails(H,Ae,nn,void 0,void 0,void 0,void 0)]})})},a.prototype.getSignatureHelpItems=function(H,Ae,nn){return rl(this,void 0,void 0,function(){return Zi(this,function(In){return vl(H)?[2,void 0]:[2,this._languageService.getSignatureHelpItems(H,Ae,nn)]})})},a.prototype.getQuickInfoAtPosition=function(H,Ae){return rl(this,void 0,void 0,function(){return Zi(this,function(nn){return vl(H)?[2,void 0]:[2,this._languageService.getQuickInfoAtPosition(H,Ae)]})})},a.prototype.getOccurrencesAtPosition=function(H,Ae){return rl(this,void 0,void 0,function(){return Zi(this,function(nn){return vl(H)?[2,void 0]:[2,this._languageService.getOccurrencesAtPosition(H,Ae)]})})},a.prototype.getDefinitionAtPosition=function(H,Ae){return rl(this,void 0,void 0,function(){return Zi(this,function(nn){return vl(H)?[2,void 0]:[2,this._languageService.getDefinitionAtPosition(H,Ae)]})})},a.prototype.getReferencesAtPosition=function(H,Ae){return rl(this,void 0,void 0,function(){return Zi(this,function(nn){return vl(H)?[2,void 0]:[2,this._languageService.getReferencesAtPosition(H,Ae)]})})},a.prototype.getNavigationBarItems=function(H){return rl(this,void 0,void 0,function(){return Zi(this,function(Ae){return vl(H)?[2,[]]:[2,this._languageService.getNavigationBarItems(H)]})})},a.prototype.getFormattingEditsForDocument=function(H,Ae){return rl(this,void 0,void 0,function(){return Zi(this,function(nn){return vl(H)?[2,[]]:[2,this._languageService.getFormattingEditsForDocument(H,Ae)]})})},a.prototype.getFormattingEditsForRange=function(H,Ae,nn,In){return rl(this,void 0,void 0,function(){return Zi(this,function(Gn){return vl(H)?[2,[]]:[2,this._languageService.getFormattingEditsForRange(H,Ae,nn,In)]})})},a.prototype.getFormattingEditsAfterKeystroke=function(H,Ae,nn,In){return rl(this,void 0,void 0,function(){return Zi(this,function(Gn){return vl(H)?[2,[]]:[2,this._languageService.getFormattingEditsAfterKeystroke(H,Ae,nn,In)]})})},a.prototype.findRenameLocations=function(H,Ae,nn,In,Gn){return rl(this,void 0,void 0,function(){return Zi(this,function(bt){return vl(H)?[2,void 0]:[2,this._languageService.findRenameLocations(H,Ae,nn,In,Gn)]})})},a.prototype.getRenameInfo=function(H,Ae,nn){return rl(this,void 0,void 0,function(){return Zi(this,function(In){return vl(H)?[2,{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}]:[2,this._languageService.getRenameInfo(H,Ae,nn)]})})},a.prototype.getEmitOutput=function(H){return rl(this,void 0,void 0,function(){return Zi(this,function(Ae){return vl(H)?[2,{outputFiles:[],emitSkipped:!0}]:[2,this._languageService.getEmitOutput(H)]})})},a.prototype.getCodeFixesAtPosition=function(H,Ae,nn,In,Gn){return rl(this,void 0,void 0,function(){var bt;return Zi(this,function(pt){if(vl(H))return[2,[]];bt={};try{return[2,this._languageService.getCodeFixesAtPosition(H,Ae,nn,In,Gn,bt)]}catch(It){return[2,[]]}return[2]})})},a.prototype.updateExtraLibs=function(H){return rl(this,void 0,void 0,function(){return Zi(this,function(Ae){return this._extraLibs=H,[2]})})},a.prototype.provideInlayHints=function(H,Ae,nn){var In;return rl(this,void 0,void 0,function(){var Gn,bt;return Zi(this,function(pt){if(vl(H))return[2,[]];Gn=(In=this._inlayHintsOptions)!==null&&In!==void 0?In:{},bt={start:Ae,length:nn-Ae};try{return[2,this._languageService.provideInlayHints(H,bt,Gn)]}catch(It){return[2,[]]}return[2]})})},a}();function Cu(a,H){var Ae=al;if(H.customWorkerPath)if(typeof importScripts=="undefined")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{importScripts(H.customWorkerPath);var nn=self.customTSWorkerFactory;if(!nn)throw new Error("The script at "+H.customWorkerPath+" does not add customTSWorkerFactory to self");Ae=nn(al,Vo,yi)}return new Ae(a,H)}self.onmessage=function(){Tc(function(a,H){return new al(a,H)})}},"33yf":function(lf,to,Do){(function(io){function Ro(Ma,Bi){for(var Yo=0,Qo=Ma.length-1;Qo>=0;Qo--){var mn=Ma[Qo];mn==="."?Ma.splice(Qo,1):mn===".."?(Ma.splice(Qo,1),Yo++):Yo&&(Ma.splice(Qo,1),Yo--)}if(Bi)for(;Yo--;Yo)Ma.unshift("..");return Ma}to.resolve=function(){for(var Ma="",Bi=!1,Yo=arguments.length-1;Yo>=-1&&!Bi;Yo--){var Qo=Yo>=0?arguments[Yo]:io.cwd();if(typeof Qo!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!Qo)continue;Ma=Qo+"/"+Ma,Bi=Qo.charAt(0)==="/"}return Ma=Ro(Mt(Ma.split("/"),function(mn){return!!mn}),!Bi).join("/"),(Bi?"/":"")+Ma||"."},to.normalize=function(Ma){var Bi=to.isAbsolute(Ma),Yo=pr(Ma,-1)==="/";return Ma=Ro(Mt(Ma.split("/"),function(Qo){return!!Qo}),!Bi).join("/"),!Ma&&!Bi&&(Ma="."),Ma&&Yo&&(Ma+="/"),(Bi?"/":"")+Ma},to.isAbsolute=function(Ma){return Ma.charAt(0)==="/"},to.join=function(){var Ma=Array.prototype.slice.call(arguments,0);return to.normalize(Mt(Ma,function(Bi,Yo){if(typeof Bi!="string")throw new TypeError("Arguments to path.join must be strings");return Bi}).join("/"))},to.relative=function(Ma,Bi){Ma=to.resolve(Ma).substr(1),Bi=to.resolve(Bi).substr(1);function Yo(fl){for(var Oc=0;Oc<fl.length&&!(fl[Oc]!=="");Oc++);for(var hl=fl.length-1;hl>=0&&!(fl[hl]!=="");hl--);return Oc>hl?[]:fl.slice(Oc,hl-Oc+1)}for(var Qo=Yo(Ma.split("/")),mn=Yo(Bi.split("/")),Nc=Math.min(Qo.length,mn.length),ru=Nc,Gc=0;Gc<Nc;Gc++)if(Qo[Gc]!==mn[Gc]){ru=Gc;break}for(var Pp=[],Gc=ru;Gc<Qo.length;Gc++)Pp.push("..");return Pp=Pp.concat(mn.slice(ru)),Pp.join("/")},to.sep="/",to.delimiter=":",to.dirname=function(Ma){if(typeof Ma!="string"&&(Ma=Ma+""),Ma.length===0)return".";for(var Bi=Ma.charCodeAt(0),Yo=Bi===47,Qo=-1,mn=!0,Nc=Ma.length-1;Nc>=1;--Nc)if(Bi=Ma.charCodeAt(Nc),Bi===47){if(!mn){Qo=Nc;break}}else mn=!1;return Qo===-1?Yo?"/":".":Yo&&Qo===1?"/":Ma.slice(0,Qo)};function Ps(Ma){typeof Ma!="string"&&(Ma=Ma+"");var Bi=0,Yo=-1,Qo=!0,mn;for(mn=Ma.length-1;mn>=0;--mn)if(Ma.charCodeAt(mn)===47){if(!Qo){Bi=mn+1;break}}else Yo===-1&&(Qo=!1,Yo=mn+1);return Yo===-1?"":Ma.slice(Bi,Yo)}to.basename=function(Ma,Bi){var Yo=Ps(Ma);return Bi&&Yo.substr(-1*Bi.length)===Bi&&(Yo=Yo.substr(0,Yo.length-Bi.length)),Yo},to.extname=function(Ma){typeof Ma!="string"&&(Ma=Ma+"");for(var Bi=-1,Yo=0,Qo=-1,mn=!0,Nc=0,ru=Ma.length-1;ru>=0;--ru){var Gc=Ma.charCodeAt(ru);if(Gc===47){if(!mn){Yo=ru+1;break}continue}Qo===-1&&(mn=!1,Qo=ru+1),Gc===46?Bi===-1?Bi=ru:Nc!==1&&(Nc=1):Bi!==-1&&(Nc=-1)}return Bi===-1||Qo===-1||Nc===0||Nc===1&&Bi===Qo-1&&Bi===Yo+1?"":Ma.slice(Bi,Qo)};function Mt(Ma,Bi){if(Ma.filter)return Ma.filter(Bi);for(var Yo=[],Qo=0;Qo<Ma.length;Qo++)Bi(Ma[Qo],Qo,Ma)&&Yo.push(Ma[Qo]);return Yo}var pr="ab".substr(-1)==="b"?function(Ma,Bi,Yo){return Ma.substr(Bi,Yo)}:function(Ma,Bi,Yo){return Bi<0&&(Bi=Ma.length+Bi),Ma.substr(Bi,Yo)}}).call(this,Do("Q2Ig"))},IyRk:function(lf,to){(function(Do){lf.exports=function(){var io={873:function(Mt){var pr;pr=function(){return this}();try{pr=pr||new Function("return this")()}catch(Ma){typeof window=="object"&&(pr=window)}Mt.exports=pr}},Ro={};function Ps(Mt){if(Ro[Mt])return Ro[Mt].exports;var pr=Ro[Mt]={exports:{}},Ma=!0;try{io[Mt](pr,pr.exports,Ps),Ma=!1}finally{Ma&&delete Ro[Mt]}return pr.exports}return Ps.ab=Do+"/",Ps(873)}()}).call(this,"/")},MNsG:function(lf,to,Do){"use strict";(function(io,Ro){Do.d(to,"a",function(){return Oc}),Do.d(to,"d",function(){return Ug}),Do.d(to,"b",function(){return e}),Do.d(to,"c",function(){return ee}),Do.d(to,"e",function(){return ne});var Ps;const Mt="en";let pr=!1,Ma=!1,Bi=!1,Yo=!1,Qo=!1,mn=!1,Nc=!1,ru,Gc=Mt,Pp,fl;const Oc=typeof self=="object"?self:typeof io=="object"?io:{};let hl;typeof Oc.vscode!="undefined"&&typeof Oc.vscode.process!="undefined"?hl=Oc.vscode.process:typeof Ro!="undefined"&&(hl=Ro);const km=typeof((Ps=hl==null?void 0:hl.versions)===null||Ps===void 0?void 0:Ps.electron)=="string"&&hl.type==="renderer";if(typeof navigator=="object"&&!km)fl=navigator.userAgent,pr=fl.indexOf("Windows")>=0,Ma=fl.indexOf("Macintosh")>=0,Nc=(fl.indexOf("Macintosh")>=0||fl.indexOf("iPad")>=0||fl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Bi=fl.indexOf("Linux")>=0,mn=!0,ru=navigator.language,Gc=ru;else if(typeof hl=="object"){pr=hl.platform==="win32",Ma=hl.platform==="darwin",Bi=hl.platform==="linux",Yo=Bi&&!!hl.env.SNAP&&!!hl.env.SNAP_REVISION,ru=Mt,Gc=Mt;const de=hl.env.VSCODE_NLS_CONFIG;if(de)try{const fe=JSON.parse(de),_=fe.availableLanguages["*"];ru=fe.locale,Gc=_||Mt,Pp=fe._translationsConfigFile}catch(fe){}Qo=!0}else console.error("Unable to resolve platform.");let Rp=0;Ma?Rp=1:pr?Rp=3:Bi&&(Rp=2);const Ug=pr,e=Ma,s=Bi,ue=Qo,ee=mn,Y=Nc,V=fl,ne=function(){if(Oc.setImmediate)return Oc.setImmediate.bind(Oc);if(typeof Oc.postMessage=="function"&&!Oc.importScripts){let _=[];Oc.addEventListener("message",Z=>{if(Z.data&&Z.data.vscodeSetImmediateId)for(let v=0,W=_.length;v<W;v++){const x=_[v];if(x.id===Z.data.vscodeSetImmediateId){_.splice(v,1),x.callback();return}}});let U=0;return Z=>{const v=++U;_.push({id:v,callback:Z}),Oc.postMessage({vscodeSetImmediateId:v},"*")}}if(typeof(hl==null?void 0:hl.nextTick)=="function")return hl.nextTick.bind(hl);const fe=Promise.resolve();return _=>fe.then(_)}(),_e=Ma||Nc?2:pr?1:3;let O=!0,w=!1;function b(){if(!w){w=!0;const de=new Uint8Array(2);de[0]=1,de[1]=2;const fe=new Uint16Array(de.buffer);O=fe[0]===(2<<8)+1}return O}}).call(this,Do("IyRk"),Do("Q2Ig"))},Q2Ig:function(lf,to,Do){to.nextTick=function(Ro){var Ps=Array.prototype.slice.call(arguments);Ps.shift(),setTimeout(function(){Ro.apply(null,Ps)},0)},to.platform=to.arch=to.execPath=to.title="browser",to.pid=1,to.browser=!0,to.env={},to.argv=[],to.binding=function(io){throw new Error("No such module. (Possibly not yet loaded)")},function(){var io="/",Ro;to.cwd=function(){return io},to.chdir=function(Ps){Ro||(Ro=Do("33yf")),io=Ro.resolve(Ps,io)}}(),to.exit=to.kill=to.umask=to.dlopen=to.uptime=to.memoryUsage=to.uvCounters=function(){},to.features={}},"Vg/k":function(lf,to){(function(Do){lf.exports=function(){var io={46:function(Mt){Mt.exports=function(pr){if(!pr.webpackPolyfill){var Ma=Object.create(pr);Ma.children||(Ma.children=[]),Object.defineProperty(Ma,"loaded",{enumerable:!0,get:function(){return Ma.l}}),Object.defineProperty(Ma,"id",{enumerable:!0,get:function(){return Ma.i}}),Object.defineProperty(Ma,"exports",{enumerable:!0}),Ma.webpackPolyfill=1}return Ma}}},Ro={};function Ps(Mt){if(Ro[Mt])return Ro[Mt].exports;var pr=Ro[Mt]={exports:{}},Ma=!0;try{io[Mt](pr,pr.exports,Ps),Ma=!1}finally{Ma&&delete Ro[Mt]}return pr.exports}return Ps.ab=Do+"/",Ps(46)}()}).call(this,"/")},lz1K:function(lf,to,Do){"use strict";Do.r(to),function(io,Ro,Ps){Do.d(to,"createClassifier",function(){return ru}),Do.d(to,"createLanguageService",function(){return Gc}),Do.d(to,"displayPartsToString",function(){return Pp}),Do.d(to,"EndOfLineState",function(){return fl}),Do.d(to,"flattenDiagnosticMessageText",function(){return Oc}),Do.d(to,"IndentStyle",function(){return hl}),Do.d(to,"ScriptKind",function(){return km}),Do.d(to,"ScriptTarget",function(){return Rp}),Do.d(to,"TokenClass",function(){return Ug});/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */var Mt=function(e,s,ue){if(ue||arguments.length===2)for(var ee=0,Y=s.length,V;ee<Y;ee++)(V||!(ee in s))&&(V||(V=Array.prototype.slice.call(s,0,ee)),V[ee]=s[ee]);return e.concat(V||Array.prototype.slice.call(s))},pr=function(){return pr=Object.assign||function(e){for(var s,ue=1,ee=arguments.length;ue<ee;ue++){s=arguments[ue];for(var Y in s)Object.prototype.hasOwnProperty.call(s,Y)&&(e[Y]=s[Y])}return e},pr.apply(this,arguments)},Ma=function(e,s){return Object.defineProperty?Object.defineProperty(e,"raw",{value:s}):e.raw=s,e},Bi=function(e,s){var ue={label:0,sent:function(){if(V[0]&1)throw V[1];return V[1]},trys:[],ops:[]},ee,Y,V,ne;return ne={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function _e(w){return function(b){return O([w,b])}}function O(w){if(ee)throw new TypeError("Generator is already executing.");for(;ue;)try{if(ee=1,Y&&(V=w[0]&2?Y.return:w[0]?Y.throw||((V=Y.return)&&V.call(Y),0):Y.next)&&!(V=V.call(Y,w[1])).done)return V;(Y=0,V)&&(w=[w[0]&2,V.value]);switch(w[0]){case 0:case 1:V=w;break;case 4:return ue.label++,{value:w[1],done:!1};case 5:ue.label++,Y=w[1],w=[0];continue;case 7:w=ue.ops.pop(),ue.trys.pop();continue;default:if(!(V=ue.trys,V=V.length>0&&V[V.length-1])&&(w[0]===6||w[0]===2)){ue=0;continue}if(w[0]===3&&(!V||w[1]>V[0]&&w[1]<V[3])){ue.label=w[1];break}if(w[0]===6&&ue.label<V[1]){ue.label=V[1],V=w;break}if(V&&ue.label<V[2]){ue.label=V[2],ue.ops.push(w);break}V[2]&&ue.ops.pop(),ue.trys.pop();continue}w=s.call(e,ue)}catch(b){w=[6,b],Y=0}finally{ee=V=0}if(w[0]&5)throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}},Yo=function(e,s){var ue={};for(var ee in e)Object.prototype.hasOwnProperty.call(e,ee)&&s.indexOf(ee)<0&&(ue[ee]=e[ee]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,ee=Object.getOwnPropertySymbols(e);Y<ee.length;Y++)s.indexOf(ee[Y])<0&&Object.prototype.propertyIsEnumerable.call(e,ee[Y])&&(ue[ee[Y]]=e[ee[Y]]);return ue},Qo=function(){var e=function(s,ue){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,Y){ee.__proto__=Y}||function(ee,Y){for(var V in Y)Object.prototype.hasOwnProperty.call(Y,V)&&(ee[V]=Y[V])},e(s,ue)};return function(s,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Class extends value "+String(ue)+" is not a constructor or null");e(s,ue);function ee(){this.constructor=s}s.prototype=ue===null?Object.create(ue):(ee.prototype=ue.prototype,new ee)}}(),mn;(function(e){function s(){var Z={};return Z.prev=Z,{head:Z,tail:Z,size:0}}function ue(Z,v){return{key:Z,value:v,next:void 0,prev:void 0}}function ee(Z,v){return Z===v||Z!==Z&&v!==v}function Y(Z){var v=Z.prev;if(!v||v===Z)throw new Error("Illegal state");return v}function V(Z){for(;Z;){var v=!Z.prev;if(Z=Z.next,v)continue;return Z}}function ne(Z,v){for(var W=Z.tail;W!==Z.head;W=Y(W))if(ee(W.key,v))return W}function _e(Z,v,W){var x=ne(Z,v);if(x){x.value=W;return}var $=ue(v,W);return $.prev=Z.tail,Z.tail.next=$,Z.tail=$,Z.size++,$}function O(Z,v){for(var W=Z.tail;W!==Z.head;W=Y(W)){if(W.prev===void 0)throw new Error("Illegal state");if(ee(W.key,v)){if(W.next)W.next.prev=W.prev;else{if(Z.tail!==W)throw new Error("Illegal state");Z.tail=W.prev}return W.prev.next=W.next,W.next=W.prev,W.prev=void 0,Z.size--,W}}}function w(Z){for(var v=Z.tail;v!==Z.head;){var W=Y(v);v.next=Z.head,v.prev=void 0,v=W}Z.head.next=void 0,Z.tail=Z.head,Z.size=0}function b(Z,v){for(var W=Z.head;W;)W=V(W),W&&v(W.value,W.key)}function de(Z,v){if(Z)for(var W=Z.next();!W.done;W=Z.next())v(W.value)}function fe(Z,v){return{current:Z.head,selector:v}}function _(Z){return Z.current=V(Z.current),Z.current?{value:Z.selector(Z.current.key,Z.current.value),done:!1}:{value:void 0,done:!0}}var U;(function(Z){function v(x){var $=function(){function L(E,ae){this._data=fe(E,ae)}return L.prototype.next=function(){return _(this._data)},L}();return function(){function L(E){var ae=this;this._mapData=s(),de(x(E),function(X){var ie=X[0],le=X[1];return ae.set(ie,le)})}return Object.defineProperty(L.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),L.prototype.get=function(E){var ae;return(ae=ne(this._mapData,E))===null||ae===void 0?void 0:ae.value},L.prototype.set=function(E,ae){return _e(this._mapData,E,ae),this},L.prototype.has=function(E){return!!ne(this._mapData,E)},L.prototype.delete=function(E){return!!O(this._mapData,E)},L.prototype.clear=function(){w(this._mapData)},L.prototype.keys=function(){return new $(this._mapData,function(E,ae){return E})},L.prototype.values=function(){return new $(this._mapData,function(E,ae){return ae})},L.prototype.entries=function(){return new $(this._mapData,function(E,ae){return[E,ae]})},L.prototype.forEach=function(E){b(this._mapData,E)},L}()}Z.createMapShim=v;function W(x){var $=function(){function L(E,ae){this._data=fe(E,ae)}return L.prototype.next=function(){return _(this._data)},L}();return function(){function L(E){var ae=this;this._mapData=s(),de(x(E),function(X){return ae.add(X)})}return Object.defineProperty(L.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),L.prototype.add=function(E){return _e(this._mapData,E,E),this},L.prototype.has=function(E){return!!ne(this._mapData,E)},L.prototype.delete=function(E){return!!O(this._mapData,E)},L.prototype.clear=function(){w(this._mapData)},L.prototype.keys=function(){return new $(this._mapData,function(E,ae){return E})},L.prototype.values=function(){return new $(this._mapData,function(E,ae){return ae})},L.prototype.entries=function(){return new $(this._mapData,function(E,ae){return[E,ae]})},L.prototype.forEach=function(E){b(this._mapData,E)},L}()}Z.createSetShim=W})(U=e.ShimCollections||(e.ShimCollections={}))})(mn||(mn={}));var mn;(function(e){e.versionMajorMinor="4.4",e.version="4.4.4";var s;(function(ee){ee[ee.LessThan=-1]="LessThan",ee[ee.EqualTo=0]="EqualTo",ee[ee.GreaterThan=1]="GreaterThan"})(s=e.Comparison||(e.Comparison={}));var ue;(function(ee){function Y(){return typeof Map!="undefined"&&"entries"in Map.prototype&&new Map([[0,0]]).size===1?Map:void 0}ee.tryGetNativeMap=Y;function V(){return typeof Set!="undefined"&&"entries"in Set.prototype&&new Set([0]).size===1?Set:void 0}ee.tryGetNativeSet=V})(ue=e.NativeCollections||(e.NativeCollections={}))})(mn||(mn={}));var mn;(function(e){function s(j,De,Ve){var un,jn=(un=e.NativeCollections[De]())!==null&&un!==void 0?un:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[Ve](ue);if(jn)return jn;throw new Error("TypeScript requires an environment that provides a compatible native "+j+" implementation.")}e.Map=s("Map","tryGetNativeMap","createMapShim"),e.Set=s("Set","tryGetNativeSet","createSetShim");function ue(j){if(j){if(Dn(j))return z(j);if(j instanceof e.Map)return j.entries();if(j instanceof e.Set)return j.values();throw new Error("Iteration not supported.")}}e.getIterator=ue,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function ee(){return new e.Map}e.createMap=ee;function Y(j){var De=new e.Map;for(var Ve in j)Je.call(j,Ve)&&De.set(Ve,j[Ve]);return De}e.createMapFromTemplate=Y;function V(j){return j?j.length:0}e.length=V;function ne(j,De){if(j)for(var Ve=0;Ve<j.length;Ve++){var un=De(j[Ve],Ve);if(un)return un}return}e.forEach=ne;function _e(j,De){if(j)for(var Ve=j.length-1;Ve>=0;Ve--){var un=De(j[Ve],Ve);if(un)return un}return}e.forEachRight=_e;function O(j,De){if(j===void 0)return;for(var Ve=0;Ve<j.length;Ve++){var un=De(j[Ve],Ve);if(un!==void 0)return un}return}e.firstDefined=O;function w(j,De){for(;;){var Ve=j.next();if(Ve.done)return;var un=De(Ve.value);if(un!==void 0)return un}}e.firstDefinedIterator=w;function b(j,De,Ve){var un=Ve;if(j)for(var jn=j.next(),mt=0;!jn.done;jn=j.next(),mt++)un=De(un,jn.value,mt);return un}e.reduceLeftIterator=b;function de(j,De,Ve){var un=[];e.Debug.assertEqual(j.length,De.length);for(var jn=0;jn<j.length;jn++)un.push(Ve(j[jn],De[jn],jn));return un}e.zipWith=de;function fe(j,De){e.Debug.assertEqual(j.length,De.length);var Ve=0;return{next:function(){return Ve===j.length?{value:void 0,done:!0}:(Ve++,{value:[j[Ve-1],De[Ve-1]],done:!1})}}}e.zipToIterator=fe;function _(j,De){e.Debug.assert(j.length===De.length);for(var Ve=new e.Map,un=0;un<j.length;++un)Ve.set(j[un],De[un]);return Ve}e.zipToMap=_;function U(j,De){if(j.length<=1)return j;for(var Ve=[],un=0,jn=j.length;un<jn;un++)un&&Ve.push(De),Ve.push(j[un]);return Ve}e.intersperse=U;function Z(j,De){if(j){for(var Ve=0;Ve<j.length;Ve++)if(!De(j[Ve],Ve))return!1}return!0}e.every=Z;function v(j,De){for(var Ve=0;Ve<j.length;Ve++){var un=j[Ve];if(De(un,Ve))return un}return}e.find=v;function W(j,De){for(var Ve=j.length-1;Ve>=0;Ve--){var un=j[Ve];if(De(un,Ve))return un}return}e.findLast=W;function x(j,De,Ve){for(var un=Ve||0;un<j.length;un++)if(De(j[un],un))return un;return-1}e.findIndex=x;function $(j,De,Ve){for(var un=Ve===void 0?j.length-1:Ve;un>=0;un--)if(De(j[un],un))return un;return-1}e.findLastIndex=$;function L(j,De){for(var Ve=0;Ve<j.length;Ve++){var un=De(j[Ve],Ve);if(un)return un}return e.Debug.fail()}e.findMap=L;function E(j,De,Ve){if(Ve===void 0&&(Ve=Va),j)for(var un=0,jn=j;un<jn.length;un++){var mt=jn[un];if(Ve(mt,De))return!0}return!1}e.contains=E;function ae(j,De,Ve){return Ve===void 0&&(Ve=Va),j.length===De.length&&j.every(function(un,jn){return Ve(un,De[jn])})}e.arraysEqual=ae;function X(j,De,Ve){for(var un=Ve||0;un<j.length;un++)if(E(De,j.charCodeAt(un)))return un;return-1}e.indexOfAnyCharCode=X;function ie(j,De){var Ve=0;if(j)for(var un=0;un<j.length;un++){var jn=j[un];De(jn,un)&&Ve++}return Ve}e.countWhere=ie;function le(j,De){if(j){for(var Ve=j.length,un=0;un<Ve&&De(j[un]);)un++;if(un<Ve){var jn=j.slice(0,un);for(un++;un<Ve;){var mt=j[un];De(mt)&&jn.push(mt),un++}return jn}}return j}e.filter=le;function P(j,De){for(var Ve=0,un=0;un<j.length;un++)De(j[un],un,j)&&(j[Ve]=j[un],Ve++);j.length=Ve}e.filterMutate=P;function I(j){j.length=0}e.clear=I;function re(j,De){var Ve;if(j){Ve=[];for(var un=0;un<j.length;un++)Ve.push(De(j[un],un))}return Ve}e.map=re;function B(j,De){return{next:function(){var Ve=j.next();return Ve.done?Ve:{value:De(Ve.value),done:!1}}}}e.mapIterator=B;function A(j,De){if(j)for(var Ve=0;Ve<j.length;Ve++){var un=j[Ve],jn=De(un,Ve);if(un!==jn){var mt=j.slice(0,Ve);for(mt.push(jn),Ve++;Ve<j.length;Ve++)mt.push(De(j[Ve],Ve));return mt}}return j}e.sameMap=A;function f(j){for(var De=[],Ve=0,un=j;Ve<un.length;Ve++){var jn=un[Ve];jn&&(Dn(jn)?Wn(De,jn):De.push(jn))}return De}e.flatten=f;function F(j,De){var Ve;if(j)for(var un=0;un<j.length;un++){var jn=De(j[un],un);jn&&(Dn(jn)?Ve=Wn(Ve,jn):Ve=Ne(Ve,jn))}return Ve||e.emptyArray}e.flatMap=F;function g(j,De){var Ve=[];if(j)for(var un=0;un<j.length;un++){var jn=De(j[un],un);jn&&(Dn(jn)?Wn(Ve,jn):Ve.push(jn))}return Ve}e.flatMapToMutable=g;function p(j,De){var Ve=j.next();if(Ve.done)return e.emptyIterator;var un=jn(Ve.value);return{next:function(){for(;;){var mt=un.next();if(!mt.done)return mt;var St=j.next();if(St.done)return St;un=jn(St.value)}}};function jn(mt){var St=De(mt);return St===void 0?e.emptyIterator:Dn(St)?z(St):St}}e.flatMapIterator=p;function d(j,De){var Ve;if(j)for(var un=0;un<j.length;un++){var jn=j[un],mt=De(jn,un);(Ve||jn!==mt||Dn(mt))&&(Ve||(Ve=j.slice(0,un)),Dn(mt)?Wn(Ve,mt):Ve.push(mt))}return Ve||j}e.sameFlatMap=d;function T(j,De){for(var Ve=[],un=0;un<j.length;un++){var jn=De(j[un],un);if(jn===void 0)return;Ve.push(jn)}return Ve}e.mapAllOrFail=T;function m(j,De){var Ve=[];if(j)for(var un=0;un<j.length;un++){var jn=De(j[un],un);jn!==void 0&&Ve.push(jn)}return Ve}e.mapDefined=m;function k(j,De){return{next:function(){for(;;){var Ve=j.next();if(Ve.done)return Ve;var un=De(Ve.value);if(un!==void 0)return{value:un,done:!1}}}}}e.mapDefinedIterator=k;function N(j,De){if(!j)return;var Ve=new e.Map;return j.forEach(function(un,jn){var mt=De(jn,un);if(mt!==void 0){var St=mt[0],ir=mt[1];St!==void 0&&ir!==void 0&&Ve.set(St,ir)}}),Ve}e.mapDefinedEntries=N;function D(j,De){if(j){var Ve=new e.Set;return j.forEach(function(un){var jn=De(un);jn!==void 0&&Ve.add(jn)}),Ve}}e.mapDefinedValues=D;function R(j,De,Ve){if(j.has(De))return j.get(De);var un=Ve();return j.set(De,un),un}e.getOrUpdate=R;function me(j,De){return j.has(De)?!1:(j.add(De),!0)}e.tryAddToSet=me,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function q(j){var De=!1;return{next:function(){var Ve=De;return De=!0,Ve?{value:void 0,done:!0}:{value:j,done:!1}}}}e.singleIterator=q;function J(j,De,Ve){var un;if(j){un=[];for(var jn=j.length,mt=void 0,St=void 0,ir=0,_r=0;ir<jn;){for(;_r<jn;){var na=j[_r];if(St=De(na,_r),_r===0)mt=St;else if(St!==mt)break;_r++}if(ir<_r){var wa=Ve(j.slice(ir,_r),mt,ir,_r);wa&&un.push(wa),ir=_r}mt=St,_r++}}return un}e.spanMap=J;function C(j,De){if(!j)return;var Ve=new e.Map;return j.forEach(function(un,jn){var mt=De(jn,un),St=mt[0],ir=mt[1];Ve.set(St,ir)}),Ve}e.mapEntries=C;function we(j,De){if(j)if(De)for(var Ve=0,un=j;Ve<un.length;Ve++){var jn=un[Ve];if(De(jn))return!0}else return j.length>0;return!1}e.some=we;function Oe(j,De,Ve){for(var un,jn=0;jn<j.length;jn++)De(j[jn])?un=un===void 0?jn:un:un!==void 0&&(Ve(un,jn),un=void 0);un!==void 0&&Ve(un,j.length)}e.getRangesWhere=Oe;function te(j,De){return we(De)?we(j)?Mt(Mt([],j,!0),De,!0):De:j}e.concatenate=te;function Te(j,De){return De}function be(j){return j.map(Te)}e.indicesOf=be;function Ce(j,De,Ve){var un=be(j);o(j,un,Ve);for(var jn=j[un[0]],mt=[un[0]],St=1;St<un.length;St++){var ir=un[St],_r=j[ir];De(jn,_r)||(mt.push(ir),jn=_r)}return mt.sort(),mt.map(function(na){return j[na]})}function Ue(j,De){for(var Ve=[],un=0,jn=j;un<jn.length;un++){var mt=jn[un];dn(Ve,mt,De)}return Ve}function Se(j,De,Ve){return j.length===0?[]:j.length===1?j.slice():Ve?Ce(j,De,Ve):Ue(j,De)}e.deduplicate=Se;function $e(j,De){if(j.length===0)return e.emptyArray;for(var Ve=j[0],un=[Ve],jn=1;jn<j.length;jn++){var mt=j[jn];switch(De(mt,Ve)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}un.push(Ve=mt)}return un}function ce(j,De,Ve){if(j.length===0){j.push(De);return}var un=Be(j,De,mr,Ve);un<0&&j.splice(~un,0,De)}e.insertSorted=ce;function Le(j,De,Ve){return $e(Cn(j,De),Ve||De||xt)}e.sortAndDeduplicate=Le;function qe(j,De){if(j.length<2)return!0;for(var Ve=j[0],un=0,jn=j.slice(1);un<jn.length;un++){var mt=jn[un];if(De(Ve,mt)===1)return!1;Ve=mt}return!0}e.arrayIsSorted=qe;function pe(j,De,Ve){if(Ve===void 0&&(Ve=Va),!j||!De)return j===De;if(j.length!==De.length)return!1;for(var un=0;un<j.length;un++)if(!Ve(j[un],De[un],un))return!1;return!0}e.arrayIsEqualTo=pe;function Me(j){var De;if(j)for(var Ve=0;Ve<j.length;Ve++){var un=j[Ve];(De||!un)&&(De||(De=j.slice(0,Ve)),un&&De.push(un))}return De||j}e.compact=Me;function fn(j,De,Ve){if(!De||!j||De.length===0||j.length===0)return De;var un=[];e:for(var jn=0,mt=0;mt<De.length;mt++){mt>0&&e.Debug.assertGreaterThanOrEqual(Ve(De[mt],De[mt-1]),0);n:for(var St=jn;jn<j.length;jn++){jn>St&&e.Debug.assertGreaterThanOrEqual(Ve(j[jn],j[jn-1]),0);switch(Ve(De[mt],j[jn])){case-1:un.push(De[mt]);continue e;case 0:continue e;case 1:continue n}}}return un}e.relativeComplement=fn;function Ye(j,De){for(var Ve=0,un=0,jn=j;un<jn.length;un++){var mt=jn[un];Ve+=mt[De]}return Ve}e.sum=Ye;function Ne(j,De){return De===void 0?j:j===void 0?[De]:(j.push(De),j)}e.append=Ne;function je(j,De){return j===void 0?De:De===void 0?j:Dn(j)?Dn(De)?te(j,De):Ne(j,De):Dn(De)?Ne(De,j):[j,De]}e.combine=je;function xn(j,De){return De<0?j.length+De:De}function Wn(j,De,Ve,un){if(De===void 0||De.length===0)return j;if(j===void 0)return De.slice(Ve,un);Ve=Ve===void 0?0:xn(De,Ve),un=un===void 0?De.length:xn(De,un);for(var jn=Ve;jn<un&&jn<De.length;jn++)De[jn]!==void 0&&j.push(De[jn]);return j}e.addRange=Wn;function dn(j,De,Ve){return E(j,De,Ve)?!1:(j.push(De),!0)}e.pushIfUnique=dn;function vn(j,De,Ve){return j?(dn(j,De,Ve),j):[De]}e.appendIfUnique=vn;function o(j,De,Ve){De.sort(function(un,jn){return Ve(j[un],j[jn])||Wt(un,jn)})}function Cn(j,De){return j.length===0?j:j.slice().sort(De)}e.sort=Cn;function z(j){var De=0;return{next:function(){return De===j.length?{value:void 0,done:!0}:(De++,{value:j[De-1],done:!1})}}}e.arrayIterator=z;function tn(j){var De=j.length;return{next:function(){return De===0?{value:void 0,done:!0}:(De--,{value:j[De],done:!1})}}}e.arrayReverseIterator=tn;function $n(j,De){var Ve=be(j);return o(j,Ve,De),Ve.map(function(un){return j[un]})}e.stableSort=$n;function Un(j,De,Ve,un){for(;Ve<un;){if(j[Ve]!==De[Ve])return!1;Ve++}return!0}e.rangeEquals=Un;function oe(j,De){return j&&(De=xn(j,De),De<j.length)?j[De]:void 0}e.elementAt=oe;function Pe(j){return j.length===0?void 0:j[0]}e.firstOrUndefined=Pe;function ke(j){return e.Debug.assert(j.length!==0),j[0]}e.first=ke;function Qe(j){return j.length===0?void 0:j[j.length-1]}e.lastOrUndefined=Qe;function gn(j){return e.Debug.assert(j.length!==0),j[j.length-1]}e.last=gn;function xe(j){return j&&j.length===1?j[0]:void 0}e.singleOrUndefined=xe;function Ze(j){return j&&j.length===1?j[0]:j}e.singleOrMany=Ze;function wn(j,De,Ve){var un=j.slice(0);return un[De]=Ve,un}e.replaceElement=wn;function Be(j,De,Ve,un,jn){return hn(j,Ve(De),Ve,un,jn)}e.binarySearch=Be;function hn(j,De,Ve,un,jn){if(!we(j))return-1;for(var mt=jn||0,St=j.length-1;mt<=St;){var ir=mt+(St-mt>>1),_r=Ve(j[ir],ir);switch(un(_r,De)){case-1:mt=ir+1;break;case 0:return ir;case 1:St=ir-1;break}}return~mt}e.binarySearchKey=hn;function Kn(j,De,Ve,un,jn){if(j&&j.length>0){var mt=j.length;if(mt>0){var St=un===void 0||un<0?0:un,ir=jn===void 0||St+jn>mt-1?mt-1:St+jn,_r=void 0;for(arguments.length<=2?(_r=j[St],St++):_r=Ve;St<=ir;)_r=De(_r,j[St],St),St++;return _r}}return Ve}e.reduceLeft=Kn;var Je=Object.prototype.hasOwnProperty;function En(j,De){return Je.call(j,De)}e.hasProperty=En;function Nn(j,De){return Je.call(j,De)?j[De]:void 0}e.getProperty=Nn;function ct(j){var De=[];for(var Ve in j)Je.call(j,Ve)&&De.push(Ve);return De}e.getOwnKeys=ct;function yt(j){var De=[];do for(var Ve=Object.getOwnPropertyNames(j),un=0,jn=Ve;un<jn.length;un++){var mt=jn[un];dn(De,mt)}while(j=Object.getPrototypeOf(j));return De}e.getAllKeys=yt;function Gt(j){var De=[];for(var Ve in j)Je.call(j,Ve)&&De.push(j[Ve]);return De}e.getOwnValues=Gt;var $t=Object.entries||function(j){for(var De=ct(j),Ve=Array(De.length),un=0;un<De.length;un++)Ve[un]=[De[un],j[De[un]]];return Ve};function Ke(j){return j?$t(j):[]}e.getEntries=Ke;function Vn(j,De){for(var Ve=new Array(j),un=0;un<j;un++)Ve[un]=De(un);return Ve}e.arrayOf=Vn;function Zn(j,De){for(var Ve=[],un=j.next();!un.done;un=j.next())Ve.push(De?De(un.value):un.value);return Ve}e.arrayFrom=Zn;function Re(j){for(var De=[],Ve=1;Ve<arguments.length;Ve++)De[Ve-1]=arguments[Ve];for(var un=0,jn=De;un<jn.length;un++){var mt=jn[un];if(mt===void 0)continue;for(var St in mt)En(mt,St)&&(j[St]=mt[St])}return j}e.assign=Re;function Pn(j,De,Ve){if(Ve===void 0&&(Ve=Va),j===De)return!0;if(!j||!De)return!1;for(var un in j)if(Je.call(j,un)){if(!Je.call(De,un))return!1;if(!Ve(j[un],De[un]))return!1}for(var un in De)if(Je.call(De,un)&&!Je.call(j,un))return!1;return!0}e.equalOwnProperties=Pn;function rt(j,De,Ve){Ve===void 0&&(Ve=mr);for(var un=new e.Map,jn=0,mt=j;jn<mt.length;jn++){var St=mt[jn],ir=De(St);ir!==void 0&&un.set(ir,Ve(St))}return un}e.arrayToMap=rt;function Yn(j,De,Ve){Ve===void 0&&(Ve=mr);for(var un=[],jn=0,mt=j;jn<mt.length;jn++){var St=mt[jn];un[De(St)]=Ve(St)}return un}e.arrayToNumericMap=Yn;function gt(j,De,Ve){Ve===void 0&&(Ve=mr);for(var un=Fn(),jn=0,mt=j;jn<mt.length;jn++){var St=mt[jn];un.add(De(St),Ve(St))}return un}e.arrayToMultiMap=gt;function lt(j,De,Ve){return Ve===void 0&&(Ve=mr),Zn(gt(j,De).values(),Ve)}e.group=lt;function Fe(j){var De={};for(var Ve in j)Je.call(j,Ve)&&(De[Ve]=j[Ve]);return De}e.clone=Fe;function Bn(j,De){var Ve={};for(var un in De)Je.call(De,un)&&(Ve[un]=De[un]);for(var un in j)Je.call(j,un)&&(Ve[un]=j[un]);return Ve}e.extend=Bn;function K(j,De){for(var Ve in De)Je.call(De,Ve)&&(j[Ve]=De[Ve])}e.copyProperties=K;function An(j,De){return De?De.bind(j):void 0}e.maybeBind=An;function Fn(){var j=new e.Map;return j.add=ln,j.remove=Ln,j}e.createMultiMap=Fn;function ln(j,De){var Ve=this.get(j);return Ve?Ve.push(De):this.set(j,Ve=[De]),Ve}function Ln(j,De){var Ve=this.get(j);Ve&&(mo(Ve,De),Ve.length||this.delete(j))}function Xe(){return Fn()}e.createUnderscoreEscapedMultiMap=Xe;function Dn(j){return Array.isArray?Array.isArray(j):j instanceof Array}e.isArray=Dn;function rn(j){return Dn(j)?j:[j]}e.toArray=rn;function qn(j){return typeof j=="string"}e.isString=qn;function it(j){return typeof j=="number"}e.isNumber=it;function ht(j,De){return j!==void 0&&De(j)?j:void 0}e.tryCast=ht;function Et(j,De){return j!==void 0&&De(j)?j:e.Debug.fail("Invalid cast. The supplied value "+j+" did not pass the test '"+e.Debug.getFunctionName(De)+"'.")}e.cast=Et;function zt(j){}e.noop=zt;function fr(){return!1}e.returnFalse=fr;function br(){return!0}e.returnTrue=br;function Jt(){return}e.returnUndefined=Jt;function mr(j){return j}e.identity=mr;function Ht(j){return j.toLowerCase()}e.toLowerCase=Ht;var Xr=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function At(j){return Xr.test(j)?j.replace(Xr,Ht):j}e.toFileNameLowerCase=At;function Wr(){throw new Error("Not implemented")}e.notImplemented=Wr;function Or(j){var De;return function(){return j&&(De=j(),j=void 0),De}}e.memoize=Or;function Ja(j){var De=new e.Map;return function(Ve){var un=typeof Ve+":"+Ve,jn=De.get(un);return jn===void 0&&!De.has(un)&&(jn=j(Ve),De.set(un,jn)),jn}}e.memoizeOne=Ja;function qa(j,De,Ve,un,jn){if(jn){for(var mt=[],St=0;St<arguments.length;St++)mt[St]=arguments[St];return function(ir){return Kn(mt,function(_r,na){return na(_r)},ir)}}else return un?function(ir){return un(Ve(De(j(ir))))}:Ve?function(ir){return Ve(De(j(ir)))}:De?function(ir){return De(j(ir))}:j?function(ir){return j(ir)}:function(ir){return ir}}e.compose=qa;var eo;(function(j){j[j.None=0]="None",j[j.Normal=1]="Normal",j[j.Aggressive=2]="Aggressive",j[j.VeryAggressive=3]="VeryAggressive"})(eo=e.AssertionLevel||(e.AssertionLevel={}));function Va(j,De){return j===De}e.equateValues=Va;function la(j,De){return j===De||j!==void 0&&De!==void 0&&j.toUpperCase()===De.toUpperCase()}e.equateStringsCaseInsensitive=la;function wt(j,De){return Va(j,De)}e.equateStringsCaseSensitive=wt;function rr(j,De){return j===De?0:j===void 0?-1:De===void 0?1:j<De?-1:1}function Wt(j,De){return rr(j,De)}e.compareValues=Wt;function Pr(j,De){return Wt(j==null?void 0:j.start,De==null?void 0:De.start)||Wt(j==null?void 0:j.length,De==null?void 0:De.length)}e.compareTextSpans=Pr;function ra(j,De,Ve){return Ve(j,De)===-1?j:De}e.min=ra;function Lt(j,De){return j===De?0:j===void 0?-1:De===void 0?1:(j=j.toUpperCase(),De=De.toUpperCase(),j<De?-1:j>De?1:0)}e.compareStringsCaseInsensitive=Lt;function xt(j,De){return rr(j,De)}e.compareStringsCaseSensitive=xt;function Yt(j){return j?Lt:xt}e.getStringComparer=Yt;var Qt=function(){var j,De,Ve=ir();return _r;function un(na,wa,za){if(na===wa)return 0;if(na===void 0)return-1;if(wa===void 0)return 1;var bi=za(na,wa);return bi<0?-1:bi>0?1:0}function jn(na){var wa=new Intl.Collator(na,{usage:"sort",sensitivity:"variant"}).compare;return function(za,bi){return un(za,bi,wa)}}function mt(na){if(na!==void 0)return St();return function(za,bi){return un(za,bi,wa)};function wa(za,bi){return za.localeCompare(bi)}}function St(){return function(za,bi){return un(za,bi,na)};function na(za,bi){return wa(za.toUpperCase(),bi.toUpperCase())||wa(za,bi)}function wa(za,bi){return za<bi?-1:za>bi?1:0}}function ir(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?jn:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?mt:St}function _r(na){return na===void 0?j||(j=Ve(na)):na==="en-US"?De||(De=Ve(na)):Ve(na)}}(),sr,at;function ea(){return at}e.getUILocale=ea;function Fa(j){at!==j&&(at=j,sr=void 0)}e.setUILocale=Fa;function li(j,De){var Ve=sr||(sr=Qt(at));return Ve(j,De)}e.compareStringsCaseSensitiveUI=li;function Si(j,De,Ve,un){return j===De?0:j===void 0?-1:De===void 0?1:un(j[Ve],De[Ve])}e.compareProperties=Si;function Qr(j,De){return Wt(j?1:0,De?1:0)}e.compareBooleans=Qr;function ci(j,De,Ve){for(var un=Math.min(2,Math.floor(j.length*.34)),jn=Math.floor(j.length*.4)+1,mt,St=0,ir=De;St<ir.length;St++){var _r=ir[St],na=Ve(_r);if(na!==void 0&&Math.abs(na.length-j.length)<=un){if(na===j)continue;if(na.length<3&&na.toLowerCase()!==j.toLowerCase())continue;var wa=Mi(j,na,jn-.1);if(wa===void 0)continue;e.Debug.assert(wa<jn),jn=wa,mt=_r}}return mt}e.getSpellingSuggestion=ci;function Mi(j,De,Ve){for(var un=new Array(De.length+1),jn=new Array(De.length+1),mt=Ve+.01,St=0;St<=De.length;St++)un[St]=St;for(var St=1;St<=j.length;St++){var ir=j.charCodeAt(St-1),_r=Math.ceil(St>Ve?St-Ve:1),na=Math.floor(De.length>Ve+St?Ve+St:De.length);jn[0]=St;for(var wa=St,za=1;za<_r;za++)jn[za]=mt;for(var za=_r;za<=na;za++){var bi=j[St-1].toLowerCase()===De[za-1].toLowerCase()?un[za-1]+.1:un[za-1]+2,Xi=ir===De.charCodeAt(za-1)?un[za-1]:Math.min(un[za]+1,jn[za-1]+1,bi);jn[za]=Xi,wa=Math.min(wa,Xi)}for(var za=na+1;za<=De.length;za++)jn[za]=mt;if(wa>Ve)return;var co=un;un=jn,jn=co}var Ss=un[De.length];return Ss>Ve?void 0:Ss}function ro(j,De){var Ve=j.length-De.length;return Ve>=0&&j.indexOf(De,Ve)===Ve}e.endsWith=ro;function xi(j,De){return ro(j,De)?j.slice(0,j.length-De.length):j}e.removeSuffix=xi;function ui(j,De){return ro(j,De)?j.slice(0,j.length-De.length):void 0}e.tryRemoveSuffix=ui;function lo(j,De){return j.indexOf(De)!==-1}e.stringContains=lo;function xo(j){for(var De=j.length,Ve=De-1;Ve>0;Ve--){var un=j.charCodeAt(Ve);if(un>=48&&un<=57)do--Ve,un=j.charCodeAt(Ve);while(Ve>0&&un>=48&&un<=57);else if(Ve>4&&(un===110||un===78)){if(--Ve,un=j.charCodeAt(Ve),un!==105&&un!==73)break;if(--Ve,un=j.charCodeAt(Ve),un!==109&&un!==77)break;--Ve,un=j.charCodeAt(Ve)}else break;if(un!==45&&un!==46)break;De=Ve}return De===j.length?j:j.slice(0,De)}e.removeMinAndVersionNumbers=xo;function Vi(j,De){for(var Ve=0;Ve<j.length;Ve++)if(j[Ve]===De)return os(j,Ve),!0;return!1}e.orderedRemoveItem=Vi;function os(j,De){for(var Ve=De;Ve<j.length-1;Ve++)j[Ve]=j[Ve+1];j.pop()}e.orderedRemoveItemAt=os;function Qi(j,De){j[De]=j[j.length-1],j.pop()}e.unorderedRemoveItemAt=Qi;function mo(j,De){return Rs(j,function(Ve){return Ve===De})}e.unorderedRemoveItem=mo;function Rs(j,De){for(var Ve=0;Ve<j.length;Ve++)if(De(j[Ve]))return Qi(j,Ve),!0;return!1}function Ls(j){return j?mr:At}e.createGetCanonicalFileName=Ls;function Ca(j){var De=j.prefix,Ve=j.suffix;return De+"*"+Ve}e.patternText=Ca;function ai(j,De){return e.Debug.assert(Oi(j,De)),De.substring(j.prefix.length,De.length-j.suffix.length)}e.matchedText=ai;function Pi(j,De,Ve){for(var un,jn=-1,mt=0,St=j;mt<St.length;mt++){var ir=St[mt],_r=De(ir);Oi(_r,Ve)&&_r.prefix.length>jn&&(jn=_r.prefix.length,un=ir)}return un}e.findBestPatternMatch=Pi;function wo(j,De){return j.lastIndexOf(De,0)===0}e.startsWith=wo;function Lo(j,De){return wo(j,De)?j.substr(De.length):j}e.removePrefix=Lo;function _s(j,De,Ve){return Ve===void 0&&(Ve=mr),wo(Ve(j),Ve(De))?j.substring(De.length):void 0}e.tryRemovePrefix=_s;function Oi(j,De){var Ve=j.prefix,un=j.suffix;return De.length>=Ve.length+un.length&&wo(De,Ve)&&ro(De,un)}function Io(j,De){return function(Ve){return j(Ve)&&De(Ve)}}e.and=Io;function fs(){for(var j=[],De=0;De<arguments.length;De++)j[De]=arguments[De];return function(){for(var Ve=[],un=0;un<arguments.length;un++)Ve[un]=arguments[un];for(var jn=0,mt=j;jn<mt.length;jn++){var St=mt[jn];if(St.apply(void 0,Ve))return!0}return!1}}e.or=fs;function Mo(j){return function(){for(var De=[],Ve=0;Ve<arguments.length;Ve++)De[Ve]=arguments[Ve];return!j.apply(void 0,De)}}e.not=Mo;function Ms(j){}e.assertType=Ms;function yn(j){return j===void 0?void 0:[j]}e.singleElementArray=yn;function _t(j,De,Ve,un,jn,mt){mt=mt||zt;for(var St=0,ir=0,_r=j.length,na=De.length,wa=!1;St<_r&&ir<na;){var za=j[St],bi=De[ir],Xi=Ve(za,bi);Xi===-1?(un(za),St++,wa=!0):Xi===1?(jn(bi),ir++,wa=!0):(mt(bi,za),St++,ir++)}for(;St<_r;)un(j[St++]),wa=!0;for(;ir<na;)jn(De[ir++]),wa=!0;return wa}e.enumerateInsertsAndDeletes=_t;function tr(j,De){for(var Ve=Array(j),un=0;un<j;un++)Ve[un]=De(un);return Ve}e.fill=tr;function oa(j){var De=[];return Za(j,De,void 0,0),De}e.cartesianProduct=oa;function Za(j,De,Ve,un){for(var jn=0,mt=j[un];jn<mt.length;jn++){var St=mt[jn],ir=void 0;Ve?(ir=Ve.slice(),ir.push(St)):ir=[St],un===j.length-1?De.push(ir):Za(j,De,ir,un+1)}}function Ga(j,De,Ve){return Ve===void 0&&(Ve=" "),De<=j.length?j:Ve.repeat(De-j.length)+j}e.padLeft=Ga;function He(j,De,Ve){return Ve===void 0&&(Ve=" "),De<=j.length?j:j+Ve.repeat(De-j.length)}e.padRight=He;function se(j,De){for(var Ve=j.length,un=0;un<Ve&&De(j[un]);)un++;return j.slice(0,un)}e.takeWhile=se,e.trimString=String.prototype.trim?function(j){return j.trim()}:function(j){return e.trimStringEnd(e.trimStringStart(j))},e.trimStringEnd=String.prototype.trimEnd?function(j){return j.trimEnd()}:pn,e.trimStringStart=String.prototype.trimStart?function(j){return j.trimStart()}:function(j){return j.replace(/^\s+/g,"")};function pn(j){for(var De=j.length-1;De>=0&&e.isWhiteSpaceLike(j.charCodeAt(De));)De--;return j.slice(0,De+1)}})(mn||(mn={}));var mn;(function(e){var s;(function(ee){ee[ee.Off=0]="Off",ee[ee.Error=1]="Error",ee[ee.Warning=2]="Warning",ee[ee.Info=3]="Info",ee[ee.Verbose=4]="Verbose"})(s=e.LogLevel||(e.LogLevel={}));var ue;(function(ee){var Y,V=0;ee.currentLogLevel=s.Warning,ee.isDebugging=!1;function ne(){return Y!=null?Y:Y=new e.Version(e.version)}ee.getTypeScriptVersion=ne;function _e(dn){return ee.currentLogLevel<=dn}ee.shouldLog=_e;function O(dn,vn){ee.loggingHost&&_e(dn)&&ee.loggingHost.log(dn,vn)}function w(dn){O(s.Info,dn)}ee.log=w,function(dn){function vn(tn){O(s.Error,tn)}dn.error=vn;function o(tn){O(s.Warning,tn)}dn.warn=o;function Cn(tn){O(s.Info,tn)}dn.log=Cn;function z(tn){O(s.Verbose,tn)}dn.trace=z}(w=ee.log||(ee.log={}));var b={};function de(){return V}ee.getAssertionLevel=de;function fe(dn){var vn=V;if(V=dn,dn>vn)for(var o=0,Cn=e.getOwnKeys(b);o<Cn.length;o++){var z=Cn[o],tn=b[z];tn!==void 0&&ee[z]!==tn.assertion&&dn>=tn.level&&(ee[z]=tn,b[z]=void 0)}}ee.setAssertionLevel=fe;function _(dn){return V>=dn}ee.shouldAssert=_;function U(dn,vn){return _(dn)?!0:(b[vn]={level:dn,assertion:ee[vn]},ee[vn]=e.noop,!1)}function Z(dn,vn){var o=new Error(dn?"Debug Failure. "+dn:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(o,vn||Z),o}ee.fail=Z;function v(dn,vn,o){return Z((vn||"Unexpected node.")+`\r
|
|
|
Node `+k(dn.kind)+" was unexpected.",o||v)}ee.failBadSyntaxKind=v;function W(dn,vn,o,Cn){dn||(vn=vn?"False expression: "+vn:"False expression.",o&&(vn+=`\r
|
|
|
Verbose Debug Information: `+(typeof o=="string"?o:o())),Z(vn,Cn||W))}ee.assert=W;function x(dn,vn,o,Cn,z){if(dn!==vn){var tn=o?Cn?o+" "+Cn:o:"";Z("Expected "+dn+" === "+vn+". "+tn,z||x)}}ee.assertEqual=x;function $(dn,vn,o,Cn){dn>=vn&&Z("Expected "+dn+" < "+vn+". "+(o||""),Cn||$)}ee.assertLessThan=$;function L(dn,vn,o){dn>vn&&Z("Expected "+dn+" <= "+vn,o||L)}ee.assertLessThanOrEqual=L;function E(dn,vn,o){dn<vn&&Z("Expected "+dn+" >= "+vn,o||E)}ee.assertGreaterThanOrEqual=E;function ae(dn,vn,o){dn==null&&Z(vn,o||ae)}ee.assertIsDefined=ae;function X(dn,vn,o){return ae(dn,vn,o||X),dn}ee.checkDefined=X,ee.assertDefined=X;function ie(dn,vn,o){for(var Cn=0,z=dn;Cn<z.length;Cn++){var tn=z[Cn];ae(tn,vn,o||ie)}}ee.assertEachIsDefined=ie;function le(dn,vn,o){return ie(dn,vn,o||le),dn}ee.checkEachDefined=le,ee.assertEachDefined=le;function P(dn,vn,o){vn===void 0&&(vn="Illegal value:");var Cn=typeof dn=="object"&&e.hasProperty(dn,"kind")&&e.hasProperty(dn,"pos")&&k?"SyntaxKind: "+k(dn.kind):JSON.stringify(dn);return Z(vn+" "+Cn,o||P)}ee.assertNever=P;function I(dn,vn,o,Cn){U(1,"assertEachNode")&&W(vn===void 0||e.every(dn,vn),o||"Unexpected node.",function(){return"Node array did not pass test '"+p(vn)+"'."},Cn||I)}ee.assertEachNode=I;function re(dn,vn,o,Cn){U(1,"assertNode")&&W(dn!==void 0&&(vn===void 0||vn(dn)),o||"Unexpected node.",function(){return"Node "+k(dn==null?void 0:dn.kind)+" did not pass test '"+p(vn)+"'."},Cn||re)}ee.assertNode=re;function B(dn,vn,o,Cn){U(1,"assertNotNode")&&W(dn===void 0||vn===void 0||!vn(dn),o||"Unexpected node.",function(){return"Node "+k(dn.kind)+" should not have passed test '"+p(vn)+"'."},Cn||B)}ee.assertNotNode=B;function A(dn,vn,o,Cn){U(1,"assertOptionalNode")&&W(vn===void 0||dn===void 0||vn(dn),o||"Unexpected node.",function(){return"Node "+k(dn==null?void 0:dn.kind)+" did not pass test '"+p(vn)+"'."},Cn||A)}ee.assertOptionalNode=A;function f(dn,vn,o,Cn){U(1,"assertOptionalToken")&&W(vn===void 0||dn===void 0||dn.kind===vn,o||"Unexpected node.",function(){return"Node "+k(dn==null?void 0:dn.kind)+" was not a '"+k(vn)+"' token."},Cn||f)}ee.assertOptionalToken=f;function F(dn,vn,o){U(1,"assertMissingNode")&&W(dn===void 0,vn||"Unexpected node.",function(){return"Node "+k(dn.kind)+" was unexpected'."},o||F)}ee.assertMissingNode=F;function g(dn){}ee.type=g;function p(dn){if(typeof dn!="function")return"";if(dn.hasOwnProperty("name"))return dn.name;var vn=Function.prototype.toString.call(dn),o=/^function\s+([\w\$]+)\s*\(/.exec(vn);return o?o[1]:""}ee.getFunctionName=p;function d(dn){return"{ name: "+e.unescapeLeadingUnderscores(dn.escapedName)+"; flags: "+q(dn.flags)+"; declarations: "+e.map(dn.declarations,function(vn){return k(vn.kind)})+" }"}ee.formatSymbol=d;function T(dn,vn,o){dn===void 0&&(dn=0);var Cn=m(vn);if(dn===0)return Cn.length>0&&Cn[0][0]===0?Cn[0][1]:"0";if(o){for(var z="",tn=dn,$n=0,Un=Cn;$n<Un.length;$n++){var oe=Un[$n],Pe=oe[0],ke=oe[1];if(Pe>dn)break;Pe!==0&&Pe&dn&&(z=""+z+(z?"|":"")+ke,tn&=~Pe)}if(tn===0)return z}else for(var Qe=0,gn=Cn;Qe<gn.length;Qe++){var xe=gn[Qe],Pe=xe[0],ke=xe[1];if(Pe===dn)return ke}return dn.toString()}ee.formatEnum=T;function m(dn){var vn=[];for(var o in dn){var Cn=dn[o];typeof Cn=="number"&&vn.push([Cn,o])}return e.stableSort(vn,function(z,tn){return e.compareValues(z[0],tn[0])})}function k(dn){return T(dn,e.SyntaxKind,!1)}ee.formatSyntaxKind=k;function N(dn){return T(dn,e.NodeFlags,!0)}ee.formatNodeFlags=N;function D(dn){return T(dn,e.ModifierFlags,!0)}ee.formatModifierFlags=D;function R(dn){return T(dn,e.TransformFlags,!0)}ee.formatTransformFlags=R;function me(dn){return T(dn,e.EmitFlags,!0)}ee.formatEmitFlags=me;function q(dn){return T(dn,e.SymbolFlags,!0)}ee.formatSymbolFlags=q;function J(dn){return T(dn,e.TypeFlags,!0)}ee.formatTypeFlags=J;function C(dn){return T(dn,e.SignatureFlags,!0)}ee.formatSignatureFlags=C;function we(dn){return T(dn,e.ObjectFlags,!0)}ee.formatObjectFlags=we;function Oe(dn){return T(dn,e.FlowFlags,!0)}ee.formatFlowFlags=Oe;var te=!1,Te;function be(){if(Me(),!Te)throw new Error("Debugging helpers could not be loaded.");return Te}function Ce(dn){return console.log(Ue(dn))}ee.printControlFlowGraph=Ce;function Ue(dn){return be().formatControlFlowGraph(dn)}ee.formatControlFlowGraph=Ue;var Se;function $e(dn){"__debugFlowFlags"in dn||Object.defineProperties(dn,{__tsDebuggerDisplay:{value:function(){var vn=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",o=this.flags&~(2048-1);return""+vn+(o?" ("+Oe(o)+")":"")}},__debugFlowFlags:{get:function(){return T(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return Ue(this)}}})}function ce(dn){te&&(typeof Object.setPrototypeOf=="function"?(Se||(Se=Object.create(Object.prototype),$e(Se)),Object.setPrototypeOf(dn,Se)):$e(dn))}ee.attachFlowNodeDebugInfo=ce;var Le;function qe(dn){"__tsDebuggerDisplay"in dn||Object.defineProperties(dn,{__tsDebuggerDisplay:{value:function(vn){return vn=String(vn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray "+vn}}})}function pe(dn){te&&(typeof Object.setPrototypeOf=="function"?(Le||(Le=Object.create(Array.prototype),qe(Le)),Object.setPrototypeOf(dn,Le)):qe(dn))}ee.attachNodeArrayDebugInfo=pe;function Me(){if(te)return;var dn,vn;function o(){return dn===void 0&&(typeof WeakMap=="function"&&(dn=new WeakMap)),dn}function Cn(){return vn===void 0&&(typeof WeakMap=="function"&&(vn=new WeakMap)),vn}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var ke=this.flags&33554432?"TransientSymbol":"Symbol",Qe=this.flags&~33554432;return ke+" '"+e.symbolName(this)+"'"+(Qe?" ("+q(Qe)+")":"")}},__debugFlags:{get:function(){return q(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var ke=this.flags&98304?"NullableType":this.flags&384?"LiteralType "+JSON.stringify(this.value):this.flags&2048?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType "+this.intrinsicName:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Qe=this.flags&524288?this.objectFlags&~1343:0;return""+ke+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(Qe?" ("+we(Qe)+")":"")}},__debugFlags:{get:function(){return J(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?we(this.objectFlags):""}},__debugTypeToString:{value:function(){var ke=o(),Qe=ke==null?void 0:ke.get(this);return Qe===void 0&&(Qe=this.checker.typeToString(this),ke==null||ke.set(this,Qe)),Qe}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return C(this.flags)}},__debugSignatureToString:{value:function(){var ke;return(ke=this.checker)===null||ke===void 0?void 0:ke.signatureToString(this)}}});for(var z=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],tn=0,$n=z;tn<$n.length;tn++){var Un=$n[tn];Un.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(Un.prototype,{__tsDebuggerDisplay:{value:function(){var ke=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '"+e.idText(this)+"'":e.isPrivateIdentifier(this)?"PrivateIdentifier '"+e.idText(this)+"'":e.isStringLiteral(this)?"StringLiteral "+JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"..."):e.isNumericLiteral(this)?"NumericLiteral "+this.text:e.isBigIntLiteral(this)?"BigIntLiteral "+this.text+"n":e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":k(this.kind);return""+ke+(this.flags?" ("+N(this.flags)+")":"")}},__debugKind:{get:function(){return k(this.kind)}},__debugNodeFlags:{get:function(){return N(this.flags)}},__debugModifierFlags:{get:function(){return D(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return R(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return me(e.getEmitFlags(this))}},__debugGetText:{value:function(ke){if(e.nodeIsSynthesized(this))return"";var Qe=Cn(),gn=Qe==null?void 0:Qe.get(this);if(gn===void 0){var xe=e.getParseTreeNode(this),Ze=xe&&e.getSourceFileOfNode(xe);gn=Ze?e.getSourceTextOfNodeFromSourceFile(Ze,xe,ke):"",Qe==null||Qe.set(this,gn)}return gn}}})}try{if(e.sys&&e.sys.require){var oe=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),Pe=void 0;Pe.error||(Pe.module.init(e),Te=Pe.module)}}catch(ke){}te=!0}ee.enableDebugInfo=Me;function fn(dn,vn,o,Cn,z){var tn=vn?"DeprecationError: ":"DeprecationWarning: ";return tn+="'"+dn+"' ",tn+=Cn?"has been deprecated since v"+Cn:"is deprecated",tn+=vn?" and can no longer be used.":o?" and will no longer be usable after v"+o+".":".",tn+=z?" "+e.formatStringFromArgs(z,[dn],0):"",tn}function Ye(dn,vn,o,Cn){var z=fn(dn,!0,vn,o,Cn);return function(){throw new TypeError(z)}}function Ne(dn,vn,o,Cn){var z=!1;return function(){z||(w.warn(fn(dn,!1,vn,o,Cn)),z=!0)}}function je(dn,vn){var o,Cn;vn===void 0&&(vn={});var z=typeof vn.typeScriptVersion=="string"?new e.Version(vn.typeScriptVersion):(o=vn.typeScriptVersion)!==null&&o!==void 0?o:ne(),tn=typeof vn.errorAfter=="string"?new e.Version(vn.errorAfter):vn.errorAfter,$n=typeof vn.warnAfter=="string"?new e.Version(vn.warnAfter):vn.warnAfter,Un=typeof vn.since=="string"?new e.Version(vn.since):(Cn=vn.since)!==null&&Cn!==void 0?Cn:$n,oe=vn.error||tn&&z.compareTo(tn)<=0,Pe=!$n||z.compareTo($n)>=0;return oe?Ye(dn,tn,Un,vn.message):Pe?Ne(dn,tn,Un,vn.message):e.noop}function xn(dn,vn){return function(){return dn(),vn.apply(this,arguments)}}function Wn(dn,vn){var o=je(p(dn),vn);return xn(o,dn)}ee.deprecate=Wn})(ue=e.Debug||(e.Debug={}))})(mn||(mn={}));var mn;(function(e){var s=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ue=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,ee=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Y=/^(0|[1-9]\d*)$/,V=function(){function P(I,re,B,A,f){if(re===void 0&&(re=0),B===void 0&&(B=0),A===void 0&&(A=""),f===void 0&&(f=""),typeof I=="string"){var F=e.Debug.checkDefined(ne(I),"Invalid version");I=F.major,re=F.minor,B=F.patch,A=F.prerelease,f=F.build}e.Debug.assert(I>=0,"Invalid argument: major"),e.Debug.assert(re>=0,"Invalid argument: minor"),e.Debug.assert(B>=0,"Invalid argument: patch"),e.Debug.assert(!A||ue.test(A),"Invalid argument: prerelease"),e.Debug.assert(!f||ee.test(f),"Invalid argument: build"),this.major=I,this.minor=re,this.patch=B,this.prerelease=A?A.split("."):e.emptyArray,this.build=f?f.split("."):e.emptyArray}return P.tryParse=function(I){var re=ne(I);if(!re)return;var B=re.major,A=re.minor,f=re.patch,F=re.prerelease,g=re.build;return new P(B,A,f,F,g)},P.prototype.compareTo=function(I){return this===I?0:I===void 0?1:e.compareValues(this.major,I.major)||e.compareValues(this.minor,I.minor)||e.compareValues(this.patch,I.patch)||_e(this.prerelease,I.prerelease)},P.prototype.increment=function(I){switch(I){case"major":return new P(this.major+1,0,0);case"minor":return new P(this.major,this.minor+1,0);case"patch":return new P(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(I)}},P.prototype.toString=function(){var I=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(I+="-"+this.prerelease.join(".")),e.some(this.build)&&(I+="+"+this.build.join(".")),I},P.zero=new P(0,0,0),P}();e.Version=V;function ne(P){var I=s.exec(P);if(!I)return;var re=I[1],B=I[2],A=B===void 0?"0":B,f=I[3],F=f===void 0?"0":f,g=I[4],p=g===void 0?"":g,d=I[5],T=d===void 0?"":d;return p&&!ue.test(p)||T&&!ee.test(T)?void 0:{major:parseInt(re,10),minor:parseInt(A,10),patch:parseInt(F,10),prerelease:p,build:T}}function _e(P,I){if(P===I)return 0;if(P.length===0)return I.length===0?0:1;if(I.length===0)return-1;for(var re=Math.min(P.length,I.length),B=0;B<re;B++){var A=P[B],f=I[B];if(A===f)continue;var F=Y.test(A),g=Y.test(f);if(F||g){if(F!==g)return F?-1:1;var p=e.compareValues(+A,+f);if(p)return p}else{var p=e.compareStringsCaseSensitive(A,f);if(p)return p}}return e.compareValues(P.length,I.length)}var O=function(){function P(I){this._alternatives=I?e.Debug.checkDefined(U(I),"Invalid range spec."):e.emptyArray}return P.tryParse=function(I){var re=U(I);if(re){var B=new P("");return B._alternatives=re,B}return},P.prototype.test=function(I){return typeof I=="string"&&(I=new V(I)),L(I,this._alternatives)},P.prototype.toString=function(){return X(this._alternatives)},P}();e.VersionRange=O;var w=/\|\|/g,b=/\s+/g,de=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,fe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,_=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function U(P){for(var I=[],re=0,B=e.trimString(P).split(w);re<B.length;re++){var A=B[re];if(!A)continue;var f=[];A=e.trimString(A);var F=fe.exec(A);if(F){if(!v(F[1],F[2],f))return}else for(var g=0,p=A.split(b);g<p.length;g++){var d=p[g],T=_.exec(e.trimString(d));if(!T||!W(T[1],T[2],f))return}I.push(f)}return I}function Z(P){var I=de.exec(P);if(!I)return;var re=I[1],B=I[2],A=B===void 0?"*":B,f=I[3],F=f===void 0?"*":f,g=I[4],p=I[5],d=new V(x(re)?0:parseInt(re,10),x(re)||x(A)?0:parseInt(A,10),x(re)||x(A)||x(F)?0:parseInt(F,10),g,p);return{version:d,major:re,minor:A,patch:F}}function v(P,I,re){var B=Z(P);if(!B)return!1;var A=Z(I);return A?(x(B.major)||re.push($(">=",B.version)),x(A.major)||re.push(x(A.minor)?$("<",A.version.increment("major")):x(A.patch)?$("<",A.version.increment("minor")):$("<=",A.version)),!0):!1}function W(P,I,re){var B=Z(I);if(!B)return!1;var A=B.version,f=B.major,F=B.minor,g=B.patch;if(x(f))(P==="<"||P===">")&&re.push($("<",V.zero));else switch(P){case"~":re.push($(">=",A)),re.push($("<",A.increment(x(F)?"major":"minor")));break;case"^":re.push($(">=",A)),re.push($("<",A.increment(A.major>0||x(F)?"major":A.minor>0||x(g)?"minor":"patch")));break;case"<":case">=":re.push($(P,A));break;case"<=":case">":re.push(x(F)?$(P==="<="?"<":">=",A.increment("major")):x(g)?$(P==="<="?"<":">=",A.increment("minor")):$(P,A));break;case"=":case void 0:x(F)||x(g)?(re.push($(">=",A)),re.push($("<",A.increment(x(F)?"major":"minor")))):re.push($("=",A));break;default:return!1}return!0}function x(P){return P==="*"||P==="x"||P==="X"}function $(P,I){return{operator:P,operand:I}}function L(P,I){if(I.length===0)return!0;for(var re=0,B=I;re<B.length;re++){var A=B[re];if(E(P,A))return!0}return!1}function E(P,I){for(var re=0,B=I;re<B.length;re++){var A=B[re];if(!ae(P,A.operator,A.operand))return!1}return!0}function ae(P,I,re){var B=P.compareTo(re);switch(I){case"<":return B<0;case"<=":return B<=0;case">":return B>0;case">=":return B>=0;case"=":return B===0;default:return e.Debug.assertNever(I)}}function X(P){return e.map(P,ie).join(" || ")||"*"}function ie(P){return e.map(P,le).join(" ")}function le(P){return""+P.operator+P.operand}})(mn||(mn={}));var mn;(function(e){function s(_e,O){return typeof _e=="object"&&typeof _e.timeOrigin=="number"&&typeof _e.mark=="function"&&typeof _e.measure=="function"&&typeof _e.now=="function"&&typeof O=="function"}function ue(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&s(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function ee(){if(typeof io!="undefined"&&io.nextTick&&!io.browser&&typeof Ps=="object"&&!0)try{var _e,O={},w=O.performance,b=O.PerformanceObserver;if(s(w,b)){_e=w;var de=new e.Version(io.versions.node),fe=new e.VersionRange("<12.16.3 || 13 <13.13");return fe.test(de)&&(_e={get timeOrigin(){return w.timeOrigin},now:function(){return w.now()},mark:function(_){return w.mark(_)},measure:function(_,U,Z){U===void 0&&(U="nodeStart"),Z===void 0&&(Z="__performance.measure-fix__",w.mark(Z)),w.measure(_,U,Z),Z==="__performance.measure-fix__"&&w.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:_e,PerformanceObserver:b}}}catch(_){}}var Y=ue()||ee(),V=Y==null?void 0:Y.performance;function ne(){return Y}e.tryGetNativePerformanceHooks=ne,e.timestamp=V?function(){return V.now()}:Date.now?Date.now:function(){return+new Date}})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee,Y;function V(L,E,ae,X){return L?ne(E,ae,X):ue.nullTimer}ue.createTimerIf=V;function ne(L,E,ae){var X=0;return{enter:ie,exit:le};function ie(){++X===1&&fe(E)}function le(){--X===0?(fe(ae),_(L,E,ae)):X<0&&e.Debug.fail("enter/exit count does not match.")}}ue.createTimer=ne,ue.nullTimer={enter:e.noop,exit:e.noop};var _e=!1,O=e.timestamp(),w=new e.Map,b=new e.Map,de=new e.Map;function fe(L){var E;if(_e){var ae=(E=b.get(L))!==null&&E!==void 0?E:0;b.set(L,ae+1),w.set(L,e.timestamp()),Y==null||Y.mark(L)}}ue.mark=fe;function _(L,E,ae){var X,ie;if(_e){var le=(X=ae!==void 0?w.get(ae):void 0)!==null&&X!==void 0?X:e.timestamp(),P=(ie=E!==void 0?w.get(E):void 0)!==null&&ie!==void 0?ie:O,I=de.get(L)||0;de.set(L,I+(le-P)),Y==null||Y.measure(L,E,ae)}}ue.measure=_;function U(L){return b.get(L)||0}ue.getCount=U;function Z(L){return de.get(L)||0}ue.getDuration=Z;function v(L){de.forEach(function(E,ae){return L(ae,E)})}ue.forEachMeasure=v;function W(){return _e}ue.isEnabled=W;function x(L){var E;return L===void 0&&(L=e.sys),_e||(_e=!0,ee||(ee=e.tryGetNativePerformanceHooks()),ee&&(O=ee.performance.timeOrigin,(ee.shouldWriteNativeEvents||((E=L==null?void 0:L.cpuProfilingEnabled)===null||E===void 0?void 0:E.call(L))||(L==null?void 0:L.debugMode))&&(Y=ee.performance))),!0}ue.enable=x;function $(){_e&&(w.clear(),b.clear(),de.clear(),Y=void 0,_e=!1)}ue.disable=$})(s=e.performance||(e.performance={}))})(mn||(mn={}));var mn;(function(e){var s,ue={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop},ee;try{var Y=(s=Object({NODE_ENV:"production"}).TS_ETW_MODULE_PATH)!==null&&s!==void 0?s:"./node_modules/@microsoft/typescript-etw";ee=void 0}catch(V){ee=void 0}e.perfLogger=ee&&ee.logEvent?ee:ue})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee,Y=0,V=0,ne,_e=[],O,w=[];function b(le,P,I){if(e.Debug.assert(!e.tracing,"Tracing already started"),ee===void 0)try{ee=void 0}catch(F){throw new Error(`tracing requires having fs
|
|
|
(original error: `+(F.message||F)+")")}ne=le,_e.length=0,O===void 0&&(O=e.combinePaths(P,"legend.json")),ee.existsSync(P)||ee.mkdirSync(P,{recursive:!0});var re=ne==="build"?"."+io.pid+"-"+ ++Y:ne==="server"?"."+io.pid:"",B=e.combinePaths(P,"trace"+re+".json"),A=e.combinePaths(P,"types"+re+".json");w.push({configFilePath:I,tracePath:B,typesPath:A}),V=ee.openSync(B,"w"),e.tracing=ue;var f={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};ee.writeSync(V,`[
|
|
|
`+[pr({name:"process_name",args:{name:"tsc"}},f),pr({name:"thread_name",args:{name:"Main"}},f),pr(pr({name:"TracingStartedInBrowser"},f),{cat:"disabled-by-default-devtools.timeline"})].map(function(F){return JSON.stringify(F)}).join(`,
|
|
|
`))}ue.startTracing=b;function de(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!_e.length===(ne!=="server")),ee.writeSync(V,`
|
|
|
]
|
|
|
`),ee.closeSync(V),e.tracing=void 0,_e.length?X(_e):w[w.length-1].typesPath=void 0}ue.stopTracing=de;function fe(le){ne!=="server"&&_e.push(le)}ue.recordType=fe;var _;(function(le){le.Parse="parse",le.Program="program",le.Bind="bind",le.Check="check",le.CheckTypes="checkTypes",le.Emit="emit",le.Session="session"})(_=ue.Phase||(ue.Phase={}));function U(le,P,I){E("I",le,P,I,'"s":"g"')}ue.instant=U;var Z=[];function v(le,P,I,re){re===void 0&&(re=!1),re&&E("B",le,P,I),Z.push({phase:le,name:P,args:I,time:1e3*e.timestamp(),separateBeginAndEnd:re})}ue.push=v;function W(){e.Debug.assert(Z.length>0),L(Z.length-1,1e3*e.timestamp()),Z.length--}ue.pop=W;function x(){for(var le=1e3*e.timestamp(),P=Z.length-1;P>=0;P--)L(P,le);Z.length=0}ue.popAll=x;var $=1e3*10;function L(le,P){var I=Z[le],re=I.phase,B=I.name,A=I.args,f=I.time,F=I.separateBeginAndEnd;F?E("E",re,B,A,void 0,P):$-f%$<=P-f&&E("X",re,B,A,'"dur":'+(P-f),f)}function E(le,P,I,re,B,A){if(A===void 0&&(A=1e3*e.timestamp()),ne==="server"&&P==="checkTypes")return;e.performance.mark("beginTracing"),ee.writeSync(V,`,
|
|
|
{"pid":1,"tid":1,"ph":"`+le+'","cat":"'+P+'","ts":'+A+',"name":"'+I+'"'),B&&ee.writeSync(V,","+B),re&&ee.writeSync(V,',"args":'+JSON.stringify(re)),ee.writeSync(V,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing")}function ae(le){var P=e.getSourceFileOfNode(le);return P?{path:P.path,start:I(e.getLineAndCharacterOfPosition(P,le.pos)),end:I(e.getLineAndCharacterOfPosition(P,le.end))}:void 0;function I(re){return{line:re.line+1,character:re.character+1}}}function X(le){var P,I,re,B,A,f,F,g,p,d,T,m,k,N,D,R,me,q,J,C,we,Oe;e.performance.mark("beginDumpTypes");var te=w[w.length-1].typesPath,Te=ee.openSync(te,"w"),be=new e.Map;ee.writeSync(Te,"[");for(var Ce=le.length,Ue=0;Ue<Ce;Ue++){var Se=le[Ue],$e=Se.objectFlags,ce=(P=Se.aliasSymbol)!==null&&P!==void 0?P:Se.symbol,Le=void 0;if($e&16|Se.flags&2944)try{Le=(I=Se.checker)===null||I===void 0?void 0:I.typeToString(Se)}catch($n){Le=void 0}var qe={};if(Se.flags&8388608){var pe=Se;qe={indexedAccessObjectType:(re=pe.objectType)===null||re===void 0?void 0:re.id,indexedAccessIndexType:(B=pe.indexType)===null||B===void 0?void 0:B.id}}var Me={};if($e&4){var fn=Se;Me={instantiatedType:(A=fn.target)===null||A===void 0?void 0:A.id,typeArguments:(f=fn.resolvedTypeArguments)===null||f===void 0?void 0:f.map(function($n){return $n.id}),referenceLocation:ae(fn.node)}}var Ye={};if(Se.flags&16777216){var Ne=Se;Ye={conditionalCheckType:(F=Ne.checkType)===null||F===void 0?void 0:F.id,conditionalExtendsType:(g=Ne.extendsType)===null||g===void 0?void 0:g.id,conditionalTrueType:(d=(p=Ne.resolvedTrueType)===null||p===void 0?void 0:p.id)!==null&&d!==void 0?d:-1,conditionalFalseType:(m=(T=Ne.resolvedFalseType)===null||T===void 0?void 0:T.id)!==null&&m!==void 0?m:-1}}var je={};if(Se.flags&33554432){var xn=Se;je={substitutionBaseType:(k=xn.baseType)===null||k===void 0?void 0:k.id,substituteType:(N=xn.substitute)===null||N===void 0?void 0:N.id}}var Wn={};if($e&1024){var dn=Se;Wn={reverseMappedSourceType:(D=dn.source)===null||D===void 0?void 0:D.id,reverseMappedMappedType:(R=dn.mappedType)===null||R===void 0?void 0:R.id,reverseMappedConstraintType:(me=dn.constraintType)===null||me===void 0?void 0:me.id}}var vn={};if($e&256){var o=Se;vn={evolvingArrayElementType:o.elementType.id,evolvingArrayFinalType:(q=o.finalArrayType)===null||q===void 0?void 0:q.id}}var Cn=void 0,z=Se.checker.getRecursionIdentity(Se);z&&(Cn=be.get(z),Cn||(Cn=be.size,be.set(z,Cn)));var tn=pr(pr(pr(pr(pr(pr(pr({id:Se.id,intrinsicName:Se.intrinsicName,symbolName:(ce==null?void 0:ce.escapedName)&&e.unescapeLeadingUnderscores(ce.escapedName),recursionId:Cn,isTuple:$e&8?!0:void 0,unionTypes:Se.flags&1048576?(J=Se.types)===null||J===void 0?void 0:J.map(function($n){return $n.id}):void 0,intersectionTypes:Se.flags&2097152?Se.types.map(function($n){return $n.id}):void 0,aliasTypeArguments:(C=Se.aliasTypeArguments)===null||C===void 0?void 0:C.map(function($n){return $n.id}),keyofType:Se.flags&4194304?(we=Se.type)===null||we===void 0?void 0:we.id:void 0},qe),Me),Ye),je),Wn),vn),{destructuringPattern:ae(Se.pattern),firstDeclaration:ae((Oe=ce==null?void 0:ce.declarations)===null||Oe===void 0?void 0:Oe[0]),flags:e.Debug.formatTypeFlags(Se.flags).split("|"),display:Le});ee.writeSync(Te,JSON.stringify(tn)),Ue<Ce-1&&ee.writeSync(Te,`,
|
|
|
`)}ee.writeSync(Te,`]
|
|
|
`),ee.closeSync(Te),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function ie(){if(!O)return;ee.writeFileSync(O,JSON.stringify(w))}ue.dumpLegend=ie})(s||(s={})),e.startTracing=s.startTracing,e.dumpTracingLegend=s.dumpLegend})(mn||(mn={}));var mn;(function(e){var s;(function(o){o[o.Unknown=0]="Unknown",o[o.EndOfFileToken=1]="EndOfFileToken",o[o.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",o[o.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",o[o.NewLineTrivia=4]="NewLineTrivia",o[o.WhitespaceTrivia=5]="WhitespaceTrivia",o[o.ShebangTrivia=6]="ShebangTrivia",o[o.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",o[o.NumericLiteral=8]="NumericLiteral",o[o.BigIntLiteral=9]="BigIntLiteral",o[o.StringLiteral=10]="StringLiteral",o[o.JsxText=11]="JsxText",o[o.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",o[o.RegularExpressionLiteral=13]="RegularExpressionLiteral",o[o.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",o[o.TemplateHead=15]="TemplateHead",o[o.TemplateMiddle=16]="TemplateMiddle",o[o.TemplateTail=17]="TemplateTail",o[o.OpenBraceToken=18]="OpenBraceToken",o[o.CloseBraceToken=19]="CloseBraceToken",o[o.OpenParenToken=20]="OpenParenToken",o[o.CloseParenToken=21]="CloseParenToken",o[o.OpenBracketToken=22]="OpenBracketToken",o[o.CloseBracketToken=23]="CloseBracketToken",o[o.DotToken=24]="DotToken",o[o.DotDotDotToken=25]="DotDotDotToken",o[o.SemicolonToken=26]="SemicolonToken",o[o.CommaToken=27]="CommaToken",o[o.QuestionDotToken=28]="QuestionDotToken",o[o.LessThanToken=29]="LessThanToken",o[o.LessThanSlashToken=30]="LessThanSlashToken",o[o.GreaterThanToken=31]="GreaterThanToken",o[o.LessThanEqualsToken=32]="LessThanEqualsToken",o[o.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",o[o.EqualsEqualsToken=34]="EqualsEqualsToken",o[o.ExclamationEqualsToken=35]="ExclamationEqualsToken",o[o.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",o[o.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",o[o.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",o[o.PlusToken=39]="PlusToken",o[o.MinusToken=40]="MinusToken",o[o.AsteriskToken=41]="AsteriskToken",o[o.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",o[o.SlashToken=43]="SlashToken",o[o.PercentToken=44]="PercentToken",o[o.PlusPlusToken=45]="PlusPlusToken",o[o.MinusMinusToken=46]="MinusMinusToken",o[o.LessThanLessThanToken=47]="LessThanLessThanToken",o[o.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",o[o.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",o[o.AmpersandToken=50]="AmpersandToken",o[o.BarToken=51]="BarToken",o[o.CaretToken=52]="CaretToken",o[o.ExclamationToken=53]="ExclamationToken",o[o.TildeToken=54]="TildeToken",o[o.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",o[o.BarBarToken=56]="BarBarToken",o[o.QuestionToken=57]="QuestionToken",o[o.ColonToken=58]="ColonToken",o[o.AtToken=59]="AtToken",o[o.QuestionQuestionToken=60]="QuestionQuestionToken",o[o.BacktickToken=61]="BacktickToken",o[o.HashToken=62]="HashToken",o[o.EqualsToken=63]="EqualsToken",o[o.PlusEqualsToken=64]="PlusEqualsToken",o[o.MinusEqualsToken=65]="MinusEqualsToken",o[o.AsteriskEqualsToken=66]="AsteriskEqualsToken",o[o.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",o[o.SlashEqualsToken=68]="SlashEqualsToken",o[o.PercentEqualsToken=69]="PercentEqualsToken",o[o.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",o[o.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",o[o.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",o[o.AmpersandEqualsToken=73]="AmpersandEqualsToken",o[o.BarEqualsToken=74]="BarEqualsToken",o[o.BarBarEqualsToken=75]="BarBarEqualsToken",o[o.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",o[o.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",o[o.CaretEqualsToken=78]="CaretEqualsToken",o[o.Identifier=79]="Identifier",o[o.PrivateIdentifier=80]="PrivateIdentifier",o[o.BreakKeyword=81]="BreakKeyword",o[o.CaseKeyword=82]="CaseKeyword",o[o.CatchKeyword=83]="CatchKeyword",o[o.ClassKeyword=84]="ClassKeyword",o[o.ConstKeyword=85]="ConstKeyword",o[o.ContinueKeyword=86]="ContinueKeyword",o[o.DebuggerKeyword=87]="DebuggerKeyword",o[o.DefaultKeyword=88]="DefaultKeyword",o[o.DeleteKeyword=89]="DeleteKeyword",o[o.DoKeyword=90]="DoKeyword",o[o.ElseKeyword=91]="ElseKeyword",o[o.EnumKeyword=92]="EnumKeyword",o[o.ExportKeyword=93]="ExportKeyword",o[o.ExtendsKeyword=94]="ExtendsKeyword",o[o.FalseKeyword=95]="FalseKeyword",o[o.FinallyKeyword=96]="FinallyKeyword",o[o.ForKeyword=97]="ForKeyword",o[o.FunctionKeyword=98]="FunctionKeyword",o[o.IfKeyword=99]="IfKeyword",o[o.ImportKeyword=100]="ImportKeyword",o[o.InKeyword=101]="InKeyword",o[o.InstanceOfKeyword=102]="InstanceOfKeyword",o[o.NewKeyword=103]="NewKeyword",o[o.NullKeyword=104]="NullKeyword",o[o.ReturnKeyword=105]="ReturnKeyword",o[o.SuperKeyword=106]="SuperKeyword",o[o.SwitchKeyword=107]="SwitchKeyword",o[o.ThisKeyword=108]="ThisKeyword",o[o.ThrowKeyword=109]="ThrowKeyword",o[o.TrueKeyword=110]="TrueKeyword",o[o.TryKeyword=111]="TryKeyword",o[o.TypeOfKeyword=112]="TypeOfKeyword",o[o.VarKeyword=113]="VarKeyword",o[o.VoidKeyword=114]="VoidKeyword",o[o.WhileKeyword=115]="WhileKeyword",o[o.WithKeyword=116]="WithKeyword",o[o.ImplementsKeyword=117]="ImplementsKeyword",o[o.InterfaceKeyword=118]="InterfaceKeyword",o[o.LetKeyword=119]="LetKeyword",o[o.PackageKeyword=120]="PackageKeyword",o[o.PrivateKeyword=121]="PrivateKeyword",o[o.ProtectedKeyword=122]="ProtectedKeyword",o[o.PublicKeyword=123]="PublicKeyword",o[o.StaticKeyword=124]="StaticKeyword",o[o.YieldKeyword=125]="YieldKeyword",o[o.AbstractKeyword=126]="AbstractKeyword",o[o.AsKeyword=127]="AsKeyword",o[o.AssertsKeyword=128]="AssertsKeyword",o[o.AnyKeyword=129]="AnyKeyword",o[o.AsyncKeyword=130]="AsyncKeyword",o[o.AwaitKeyword=131]="AwaitKeyword",o[o.BooleanKeyword=132]="BooleanKeyword",o[o.ConstructorKeyword=133]="ConstructorKeyword",o[o.DeclareKeyword=134]="DeclareKeyword",o[o.GetKeyword=135]="GetKeyword",o[o.InferKeyword=136]="InferKeyword",o[o.IntrinsicKeyword=137]="IntrinsicKeyword",o[o.IsKeyword=138]="IsKeyword",o[o.KeyOfKeyword=139]="KeyOfKeyword",o[o.ModuleKeyword=140]="ModuleKeyword",o[o.NamespaceKeyword=141]="NamespaceKeyword",o[o.NeverKeyword=142]="NeverKeyword",o[o.ReadonlyKeyword=143]="ReadonlyKeyword",o[o.RequireKeyword=144]="RequireKeyword",o[o.NumberKeyword=145]="NumberKeyword",o[o.ObjectKeyword=146]="ObjectKeyword",o[o.SetKeyword=147]="SetKeyword",o[o.StringKeyword=148]="StringKeyword",o[o.SymbolKeyword=149]="SymbolKeyword",o[o.TypeKeyword=150]="TypeKeyword",o[o.UndefinedKeyword=151]="UndefinedKeyword",o[o.UniqueKeyword=152]="UniqueKeyword",o[o.UnknownKeyword=153]="UnknownKeyword",o[o.FromKeyword=154]="FromKeyword",o[o.GlobalKeyword=155]="GlobalKeyword",o[o.BigIntKeyword=156]="BigIntKeyword",o[o.OverrideKeyword=157]="OverrideKeyword",o[o.OfKeyword=158]="OfKeyword",o[o.QualifiedName=159]="QualifiedName",o[o.ComputedPropertyName=160]="ComputedPropertyName",o[o.TypeParameter=161]="TypeParameter",o[o.Parameter=162]="Parameter",o[o.Decorator=163]="Decorator",o[o.PropertySignature=164]="PropertySignature",o[o.PropertyDeclaration=165]="PropertyDeclaration",o[o.MethodSignature=166]="MethodSignature",o[o.MethodDeclaration=167]="MethodDeclaration",o[o.ClassStaticBlockDeclaration=168]="ClassStaticBlockDeclaration",o[o.Constructor=169]="Constructor",o[o.GetAccessor=170]="GetAccessor",o[o.SetAccessor=171]="SetAccessor",o[o.CallSignature=172]="CallSignature",o[o.ConstructSignature=173]="ConstructSignature",o[o.IndexSignature=174]="IndexSignature",o[o.TypePredicate=175]="TypePredicate",o[o.TypeReference=176]="TypeReference",o[o.FunctionType=177]="FunctionType",o[o.ConstructorType=178]="ConstructorType",o[o.TypeQuery=179]="TypeQuery",o[o.TypeLiteral=180]="TypeLiteral",o[o.ArrayType=181]="ArrayType",o[o.TupleType=182]="TupleType",o[o.OptionalType=183]="OptionalType",o[o.RestType=184]="RestType",o[o.UnionType=185]="UnionType",o[o.IntersectionType=186]="IntersectionType",o[o.ConditionalType=187]="ConditionalType",o[o.InferType=188]="InferType",o[o.ParenthesizedType=189]="ParenthesizedType",o[o.ThisType=190]="ThisType",o[o.TypeOperator=191]="TypeOperator",o[o.IndexedAccessType=192]="IndexedAccessType",o[o.MappedType=193]="MappedType",o[o.LiteralType=194]="LiteralType",o[o.NamedTupleMember=195]="NamedTupleMember",o[o.TemplateLiteralType=196]="TemplateLiteralType",o[o.TemplateLiteralTypeSpan=197]="TemplateLiteralTypeSpan",o[o.ImportType=198]="ImportType",o[o.ObjectBindingPattern=199]="ObjectBindingPattern",o[o.ArrayBindingPattern=200]="ArrayBindingPattern",o[o.BindingElement=201]="BindingElement",o[o.ArrayLiteralExpression=202]="ArrayLiteralExpression",o[o.ObjectLiteralExpression=203]="ObjectLiteralExpression",o[o.PropertyAccessExpression=204]="PropertyAccessExpression",o[o.ElementAccessExpression=205]="ElementAccessExpression",o[o.CallExpression=206]="CallExpression",o[o.NewExpression=207]="NewExpression",o[o.TaggedTemplateExpression=208]="TaggedTemplateExpression",o[o.TypeAssertionExpression=209]="TypeAssertionExpression",o[o.ParenthesizedExpression=210]="ParenthesizedExpression",o[o.FunctionExpression=211]="FunctionExpression",o[o.ArrowFunction=212]="ArrowFunction",o[o.DeleteExpression=213]="DeleteExpression",o[o.TypeOfExpression=214]="TypeOfExpression",o[o.VoidExpression=215]="VoidExpression",o[o.AwaitExpression=216]="AwaitExpression",o[o.PrefixUnaryExpression=217]="PrefixUnaryExpression",o[o.PostfixUnaryExpression=218]="PostfixUnaryExpression",o[o.BinaryExpression=219]="BinaryExpression",o[o.ConditionalExpression=220]="ConditionalExpression",o[o.TemplateExpression=221]="TemplateExpression",o[o.YieldExpression=222]="YieldExpression",o[o.SpreadElement=223]="SpreadElement",o[o.ClassExpression=224]="ClassExpression",o[o.OmittedExpression=225]="OmittedExpression",o[o.ExpressionWithTypeArguments=226]="ExpressionWithTypeArguments",o[o.AsExpression=227]="AsExpression",o[o.NonNullExpression=228]="NonNullExpression",o[o.MetaProperty=229]="MetaProperty",o[o.SyntheticExpression=230]="SyntheticExpression",o[o.TemplateSpan=231]="TemplateSpan",o[o.SemicolonClassElement=232]="SemicolonClassElement",o[o.Block=233]="Block",o[o.EmptyStatement=234]="EmptyStatement",o[o.VariableStatement=235]="VariableStatement",o[o.ExpressionStatement=236]="ExpressionStatement",o[o.IfStatement=237]="IfStatement",o[o.DoStatement=238]="DoStatement",o[o.WhileStatement=239]="WhileStatement",o[o.ForStatement=240]="ForStatement",o[o.ForInStatement=241]="ForInStatement",o[o.ForOfStatement=242]="ForOfStatement",o[o.ContinueStatement=243]="ContinueStatement",o[o.BreakStatement=244]="BreakStatement",o[o.ReturnStatement=245]="ReturnStatement",o[o.WithStatement=246]="WithStatement",o[o.SwitchStatement=247]="SwitchStatement",o[o.LabeledStatement=248]="LabeledStatement",o[o.ThrowStatement=249]="ThrowStatement",o[o.TryStatement=250]="TryStatement",o[o.DebuggerStatement=251]="DebuggerStatement",o[o.VariableDeclaration=252]="VariableDeclaration",o[o.VariableDeclarationList=253]="VariableDeclarationList",o[o.FunctionDeclaration=254]="FunctionDeclaration",o[o.ClassDeclaration=255]="ClassDeclaration",o[o.InterfaceDeclaration=256]="InterfaceDeclaration",o[o.TypeAliasDeclaration=257]="TypeAliasDeclaration",o[o.EnumDeclaration=258]="EnumDeclaration",o[o.ModuleDeclaration=259]="ModuleDeclaration",o[o.ModuleBlock=260]="ModuleBlock",o[o.CaseBlock=261]="CaseBlock",o[o.NamespaceExportDeclaration=262]="NamespaceExportDeclaration",o[o.ImportEqualsDeclaration=263]="ImportEqualsDeclaration",o[o.ImportDeclaration=264]="ImportDeclaration",o[o.ImportClause=265]="ImportClause",o[o.NamespaceImport=266]="NamespaceImport",o[o.NamedImports=267]="NamedImports",o[o.ImportSpecifier=268]="ImportSpecifier",o[o.ExportAssignment=269]="ExportAssignment",o[o.ExportDeclaration=270]="ExportDeclaration",o[o.NamedExports=271]="NamedExports",o[o.NamespaceExport=272]="NamespaceExport",o[o.ExportSpecifier=273]="ExportSpecifier",o[o.MissingDeclaration=274]="MissingDeclaration",o[o.ExternalModuleReference=275]="ExternalModuleReference",o[o.JsxElement=276]="JsxElement",o[o.JsxSelfClosingElement=277]="JsxSelfClosingElement",o[o.JsxOpeningElement=278]="JsxOpeningElement",o[o.JsxClosingElement=279]="JsxClosingElement",o[o.JsxFragment=280]="JsxFragment",o[o.JsxOpeningFragment=281]="JsxOpeningFragment",o[o.JsxClosingFragment=282]="JsxClosingFragment",o[o.JsxAttribute=283]="JsxAttribute",o[o.JsxAttributes=284]="JsxAttributes",o[o.JsxSpreadAttribute=285]="JsxSpreadAttribute",o[o.JsxExpression=286]="JsxExpression",o[o.CaseClause=287]="CaseClause",o[o.DefaultClause=288]="DefaultClause",o[o.HeritageClause=289]="HeritageClause",o[o.CatchClause=290]="CatchClause",o[o.PropertyAssignment=291]="PropertyAssignment",o[o.ShorthandPropertyAssignment=292]="ShorthandPropertyAssignment",o[o.SpreadAssignment=293]="SpreadAssignment",o[o.EnumMember=294]="EnumMember",o[o.UnparsedPrologue=295]="UnparsedPrologue",o[o.UnparsedPrepend=296]="UnparsedPrepend",o[o.UnparsedText=297]="UnparsedText",o[o.UnparsedInternalText=298]="UnparsedInternalText",o[o.UnparsedSyntheticReference=299]="UnparsedSyntheticReference",o[o.SourceFile=300]="SourceFile",o[o.Bundle=301]="Bundle",o[o.UnparsedSource=302]="UnparsedSource",o[o.InputFiles=303]="InputFiles",o[o.JSDocTypeExpression=304]="JSDocTypeExpression",o[o.JSDocNameReference=305]="JSDocNameReference",o[o.JSDocMemberName=306]="JSDocMemberName",o[o.JSDocAllType=307]="JSDocAllType",o[o.JSDocUnknownType=308]="JSDocUnknownType",o[o.JSDocNullableType=309]="JSDocNullableType",o[o.JSDocNonNullableType=310]="JSDocNonNullableType",o[o.JSDocOptionalType=311]="JSDocOptionalType",o[o.JSDocFunctionType=312]="JSDocFunctionType",o[o.JSDocVariadicType=313]="JSDocVariadicType",o[o.JSDocNamepathType=314]="JSDocNamepathType",o[o.JSDocComment=315]="JSDocComment",o[o.JSDocText=316]="JSDocText",o[o.JSDocTypeLiteral=317]="JSDocTypeLiteral",o[o.JSDocSignature=318]="JSDocSignature",o[o.JSDocLink=319]="JSDocLink",o[o.JSDocLinkCode=320]="JSDocLinkCode",o[o.JSDocLinkPlain=321]="JSDocLinkPlain",o[o.JSDocTag=322]="JSDocTag",o[o.JSDocAugmentsTag=323]="JSDocAugmentsTag",o[o.JSDocImplementsTag=324]="JSDocImplementsTag",o[o.JSDocAuthorTag=325]="JSDocAuthorTag",o[o.JSDocDeprecatedTag=326]="JSDocDeprecatedTag",o[o.JSDocClassTag=327]="JSDocClassTag",o[o.JSDocPublicTag=328]="JSDocPublicTag",o[o.JSDocPrivateTag=329]="JSDocPrivateTag",o[o.JSDocProtectedTag=330]="JSDocProtectedTag",o[o.JSDocReadonlyTag=331]="JSDocReadonlyTag",o[o.JSDocOverrideTag=332]="JSDocOverrideTag",o[o.JSDocCallbackTag=333]="JSDocCallbackTag",o[o.JSDocEnumTag=334]="JSDocEnumTag",o[o.JSDocParameterTag=335]="JSDocParameterTag",o[o.JSDocReturnTag=336]="JSDocReturnTag",o[o.JSDocThisTag=337]="JSDocThisTag",o[o.JSDocTypeTag=338]="JSDocTypeTag",o[o.JSDocTemplateTag=339]="JSDocTemplateTag",o[o.JSDocTypedefTag=340]="JSDocTypedefTag",o[o.JSDocSeeTag=341]="JSDocSeeTag",o[o.JSDocPropertyTag=342]="JSDocPropertyTag",o[o.SyntaxList=343]="SyntaxList",o[o.NotEmittedStatement=344]="NotEmittedStatement",o[o.PartiallyEmittedExpression=345]="PartiallyEmittedExpression",o[o.CommaListExpression=346]="CommaListExpression",o[o.MergeDeclarationMarker=347]="MergeDeclarationMarker",o[o.EndOfDeclarationMarker=348]="EndOfDeclarationMarker",o[o.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",o[o.Count=350]="Count",o[o.FirstAssignment=63]="FirstAssignment",o[o.LastAssignment=78]="LastAssignment",o[o.FirstCompoundAssignment=64]="FirstCompoundAssignment",o[o.LastCompoundAssignment=78]="LastCompoundAssignment",o[o.FirstReservedWord=81]="FirstReservedWord",o[o.LastReservedWord=116]="LastReservedWord",o[o.FirstKeyword=81]="FirstKeyword",o[o.LastKeyword=158]="LastKeyword",o[o.FirstFutureReservedWord=117]="FirstFutureReservedWord",o[o.LastFutureReservedWord=125]="LastFutureReservedWord",o[o.FirstTypeNode=175]="FirstTypeNode",o[o.LastTypeNode=198]="LastTypeNode",o[o.FirstPunctuation=18]="FirstPunctuation",o[o.LastPunctuation=78]="LastPunctuation",o[o.FirstToken=0]="FirstToken",o[o.LastToken=158]="LastToken",o[o.FirstTriviaToken=2]="FirstTriviaToken",o[o.LastTriviaToken=7]="LastTriviaToken",o[o.FirstLiteralToken=8]="FirstLiteralToken",o[o.LastLiteralToken=14]="LastLiteralToken",o[o.FirstTemplateToken=14]="FirstTemplateToken",o[o.LastTemplateToken=17]="LastTemplateToken",o[o.FirstBinaryOperator=29]="FirstBinaryOperator",o[o.LastBinaryOperator=78]="LastBinaryOperator",o[o.FirstStatement=235]="FirstStatement",o[o.LastStatement=251]="LastStatement",o[o.FirstNode=159]="FirstNode",o[o.FirstJSDocNode=304]="FirstJSDocNode",o[o.LastJSDocNode=342]="LastJSDocNode",o[o.FirstJSDocTagNode=322]="FirstJSDocTagNode",o[o.LastJSDocTagNode=342]="LastJSDocTagNode",o[o.FirstContextualKeyword=126]="FirstContextualKeyword",o[o.LastContextualKeyword=158]="LastContextualKeyword"})(s=e.SyntaxKind||(e.SyntaxKind={}));var ue;(function(o){o[o.None=0]="None",o[o.Let=1]="Let",o[o.Const=2]="Const",o[o.NestedNamespace=4]="NestedNamespace",o[o.Synthesized=8]="Synthesized",o[o.Namespace=16]="Namespace",o[o.OptionalChain=32]="OptionalChain",o[o.ExportContext=64]="ExportContext",o[o.ContainsThis=128]="ContainsThis",o[o.HasImplicitReturn=256]="HasImplicitReturn",o[o.HasExplicitReturn=512]="HasExplicitReturn",o[o.GlobalAugmentation=1024]="GlobalAugmentation",o[o.HasAsyncFunctions=2048]="HasAsyncFunctions",o[o.DisallowInContext=4096]="DisallowInContext",o[o.YieldContext=8192]="YieldContext",o[o.DecoratorContext=16384]="DecoratorContext",o[o.AwaitContext=32768]="AwaitContext",o[o.ThisNodeHasError=65536]="ThisNodeHasError",o[o.JavaScriptFile=131072]="JavaScriptFile",o[o.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",o[o.HasAggregatedChildData=524288]="HasAggregatedChildData",o[o.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",o[o.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",o[o.JSDoc=4194304]="JSDoc",o[o.Ambient=8388608]="Ambient",o[o.InWithStatement=16777216]="InWithStatement",o[o.JsonFile=33554432]="JsonFile",o[o.TypeCached=67108864]="TypeCached",o[o.Deprecated=134217728]="Deprecated",o[o.BlockScoped=3]="BlockScoped",o[o.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",o[o.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",o[o.ContextFlags=25358336]="ContextFlags",o[o.TypeExcludesFlags=40960]="TypeExcludesFlags",o[o.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"})(ue=e.NodeFlags||(e.NodeFlags={}));var ee;(function(o){o[o.None=0]="None",o[o.Export=1]="Export",o[o.Ambient=2]="Ambient",o[o.Public=4]="Public",o[o.Private=8]="Private",o[o.Protected=16]="Protected",o[o.Static=32]="Static",o[o.Readonly=64]="Readonly",o[o.Abstract=128]="Abstract",o[o.Async=256]="Async",o[o.Default=512]="Default",o[o.Const=2048]="Const",o[o.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",o[o.Deprecated=8192]="Deprecated",o[o.Override=16384]="Override",o[o.HasComputedFlags=536870912]="HasComputedFlags",o[o.AccessibilityModifier=28]="AccessibilityModifier",o[o.ParameterPropertyModifier=16476]="ParameterPropertyModifier",o[o.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",o[o.TypeScriptModifier=18654]="TypeScriptModifier",o[o.ExportDefault=513]="ExportDefault",o[o.All=27647]="All"})(ee=e.ModifierFlags||(e.ModifierFlags={}));var Y;(function(o){o[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement"})(Y=e.JsxFlags||(e.JsxFlags={}));var V;(function(o){o[o.Succeeded=1]="Succeeded",o[o.Failed=2]="Failed",o[o.Reported=4]="Reported",o[o.ReportsUnmeasurable=8]="ReportsUnmeasurable",o[o.ReportsUnreliable=16]="ReportsUnreliable",o[o.ReportsMask=24]="ReportsMask"})(V=e.RelationComparisonResult||(e.RelationComparisonResult={}));var ne;(function(o){o[o.None=0]="None",o[o.Auto=1]="Auto",o[o.Loop=2]="Loop",o[o.Unique=3]="Unique",o[o.Node=4]="Node",o[o.KindMask=7]="KindMask",o[o.ReservedInNestedScopes=8]="ReservedInNestedScopes",o[o.Optimistic=16]="Optimistic",o[o.FileLevel=32]="FileLevel",o[o.AllowNameSubstitution=64]="AllowNameSubstitution"})(ne=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var _e;(function(o){o[o.None=0]="None",o[o.PrecedingLineBreak=1]="PrecedingLineBreak",o[o.PrecedingJSDocComment=2]="PrecedingJSDocComment",o[o.Unterminated=4]="Unterminated",o[o.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",o[o.Scientific=16]="Scientific",o[o.Octal=32]="Octal",o[o.HexSpecifier=64]="HexSpecifier",o[o.BinarySpecifier=128]="BinarySpecifier",o[o.OctalSpecifier=256]="OctalSpecifier",o[o.ContainsSeparator=512]="ContainsSeparator",o[o.UnicodeEscape=1024]="UnicodeEscape",o[o.ContainsInvalidEscape=2048]="ContainsInvalidEscape",o[o.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",o[o.NumericLiteralFlags=1008]="NumericLiteralFlags",o[o.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"})(_e=e.TokenFlags||(e.TokenFlags={}));var O;(function(o){o[o.Unreachable=1]="Unreachable",o[o.Start=2]="Start",o[o.BranchLabel=4]="BranchLabel",o[o.LoopLabel=8]="LoopLabel",o[o.Assignment=16]="Assignment",o[o.TrueCondition=32]="TrueCondition",o[o.FalseCondition=64]="FalseCondition",o[o.SwitchClause=128]="SwitchClause",o[o.ArrayMutation=256]="ArrayMutation",o[o.Call=512]="Call",o[o.ReduceLabel=1024]="ReduceLabel",o[o.Referenced=2048]="Referenced",o[o.Shared=4096]="Shared",o[o.Label=12]="Label",o[o.Condition=96]="Condition"})(O=e.FlowFlags||(e.FlowFlags={}));var w;(function(o){o[o.ExpectError=0]="ExpectError",o[o.Ignore=1]="Ignore"})(w=e.CommentDirectiveType||(e.CommentDirectiveType={}));var b=function(){function o(){}return o}();e.OperationCanceledException=b;var de;(function(o){o[o.RootFile=0]="RootFile",o[o.SourceFromProjectReference=1]="SourceFromProjectReference",o[o.OutputFromProjectReference=2]="OutputFromProjectReference",o[o.Import=3]="Import",o[o.ReferenceFile=4]="ReferenceFile",o[o.TypeReferenceDirective=5]="TypeReferenceDirective",o[o.LibFile=6]="LibFile",o[o.LibReferenceDirective=7]="LibReferenceDirective",o[o.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"})(de=e.FileIncludeKind||(e.FileIncludeKind={}));var fe;(function(o){o[o.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",o[o.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"})(fe=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}));var _;(function(o){o[o.Not=0]="Not",o[o.SafeModules=1]="SafeModules",o[o.Completely=2]="Completely"})(_=e.StructureIsReused||(e.StructureIsReused={}));var U;(function(o){o[o.Success=0]="Success",o[o.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",o[o.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",o[o.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",o[o.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",o[o.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"})(U=e.ExitStatus||(e.ExitStatus={}));var Z;(function(o){o[o.None=0]="None",o[o.Literal=1]="Literal",o[o.Subtype=2]="Subtype"})(Z=e.UnionReduction||(e.UnionReduction={}));var v;(function(o){o[o.None=0]="None",o[o.Signature=1]="Signature",o[o.NoConstraints=2]="NoConstraints",o[o.Completions=4]="Completions",o[o.SkipBindingPatterns=8]="SkipBindingPatterns"})(v=e.ContextFlags||(e.ContextFlags={}));var W;(function(o){o[o.None=0]="None",o[o.NoTruncation=1]="NoTruncation",o[o.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",o[o.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",o[o.UseStructuralFallback=8]="UseStructuralFallback",o[o.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",o[o.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",o[o.UseFullyQualifiedType=64]="UseFullyQualifiedType",o[o.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",o[o.SuppressAnyReturnType=256]="SuppressAnyReturnType",o[o.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",o[o.MultilineObjectLiterals=1024]="MultilineObjectLiterals",o[o.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",o[o.UseTypeOfFunction=4096]="UseTypeOfFunction",o[o.OmitParameterModifiers=8192]="OmitParameterModifiers",o[o.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",o[o.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",o[o.NoTypeReduction=536870912]="NoTypeReduction",o[o.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",o[o.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",o[o.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",o[o.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",o[o.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",o[o.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",o[o.AllowEmptyTuple=524288]="AllowEmptyTuple",o[o.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",o[o.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",o[o.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",o[o.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",o[o.IgnoreErrors=70221824]="IgnoreErrors",o[o.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",o[o.InTypeAlias=8388608]="InTypeAlias",o[o.InInitialEntityName=16777216]="InInitialEntityName"})(W=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var x;(function(o){o[o.None=0]="None",o[o.NoTruncation=1]="NoTruncation",o[o.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",o[o.UseStructuralFallback=8]="UseStructuralFallback",o[o.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",o[o.UseFullyQualifiedType=64]="UseFullyQualifiedType",o[o.SuppressAnyReturnType=256]="SuppressAnyReturnType",o[o.MultilineObjectLiterals=1024]="MultilineObjectLiterals",o[o.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",o[o.UseTypeOfFunction=4096]="UseTypeOfFunction",o[o.OmitParameterModifiers=8192]="OmitParameterModifiers",o[o.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",o[o.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",o[o.NoTypeReduction=536870912]="NoTypeReduction",o[o.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",o[o.AddUndefined=131072]="AddUndefined",o[o.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",o[o.InArrayType=524288]="InArrayType",o[o.InElementType=2097152]="InElementType",o[o.InFirstTypeArgument=4194304]="InFirstTypeArgument",o[o.InTypeAlias=8388608]="InTypeAlias",o[o.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",o[o.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"})(x=e.TypeFormatFlags||(e.TypeFormatFlags={}));var $;(function(o){o[o.None=0]="None",o[o.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",o[o.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",o[o.AllowAnyNodeKind=4]="AllowAnyNodeKind",o[o.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",o[o.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"})($=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var L;(function(o){o[o.Accessible=0]="Accessible",o[o.NotAccessible=1]="NotAccessible",o[o.CannotBeNamed=2]="CannotBeNamed"})(L=e.SymbolAccessibility||(e.SymbolAccessibility={}));var E;(function(o){o[o.UnionOrIntersection=0]="UnionOrIntersection",o[o.Spread=1]="Spread"})(E=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var ae;(function(o){o[o.This=0]="This",o[o.Identifier=1]="Identifier",o[o.AssertsThis=2]="AssertsThis",o[o.AssertsIdentifier=3]="AssertsIdentifier"})(ae=e.TypePredicateKind||(e.TypePredicateKind={}));var X;(function(o){o[o.Unknown=0]="Unknown",o[o.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",o[o.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",o[o.NumberLikeType=3]="NumberLikeType",o[o.BigIntLikeType=4]="BigIntLikeType",o[o.StringLikeType=5]="StringLikeType",o[o.BooleanType=6]="BooleanType",o[o.ArrayLikeType=7]="ArrayLikeType",o[o.ESSymbolType=8]="ESSymbolType",o[o.Promise=9]="Promise",o[o.TypeWithCallSignature=10]="TypeWithCallSignature",o[o.ObjectType=11]="ObjectType"})(X=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var ie;(function(o){o[o.None=0]="None",o[o.FunctionScopedVariable=1]="FunctionScopedVariable",o[o.BlockScopedVariable=2]="BlockScopedVariable",o[o.Property=4]="Property",o[o.EnumMember=8]="EnumMember",o[o.Function=16]="Function",o[o.Class=32]="Class",o[o.Interface=64]="Interface",o[o.ConstEnum=128]="ConstEnum",o[o.RegularEnum=256]="RegularEnum",o[o.ValueModule=512]="ValueModule",o[o.NamespaceModule=1024]="NamespaceModule",o[o.TypeLiteral=2048]="TypeLiteral",o[o.ObjectLiteral=4096]="ObjectLiteral",o[o.Method=8192]="Method",o[o.Constructor=16384]="Constructor",o[o.GetAccessor=32768]="GetAccessor",o[o.SetAccessor=65536]="SetAccessor",o[o.Signature=131072]="Signature",o[o.TypeParameter=262144]="TypeParameter",o[o.TypeAlias=524288]="TypeAlias",o[o.ExportValue=1048576]="ExportValue",o[o.Alias=2097152]="Alias",o[o.Prototype=4194304]="Prototype",o[o.ExportStar=8388608]="ExportStar",o[o.Optional=16777216]="Optional",o[o.Transient=33554432]="Transient",o[o.Assignment=67108864]="Assignment",o[o.ModuleExports=134217728]="ModuleExports",o[o.All=67108863]="All",o[o.Enum=384]="Enum",o[o.Variable=3]="Variable",o[o.Value=111551]="Value",o[o.Type=788968]="Type",o[o.Namespace=1920]="Namespace",o[o.Module=1536]="Module",o[o.Accessor=98304]="Accessor",o[o.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",o[o.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",o[o.ParameterExcludes=111551]="ParameterExcludes",o[o.PropertyExcludes=0]="PropertyExcludes",o[o.EnumMemberExcludes=900095]="EnumMemberExcludes",o[o.FunctionExcludes=110991]="FunctionExcludes",o[o.ClassExcludes=899503]="ClassExcludes",o[o.InterfaceExcludes=788872]="InterfaceExcludes",o[o.RegularEnumExcludes=899327]="RegularEnumExcludes",o[o.ConstEnumExcludes=899967]="ConstEnumExcludes",o[o.ValueModuleExcludes=110735]="ValueModuleExcludes",o[o.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",o[o.MethodExcludes=103359]="MethodExcludes",o[o.GetAccessorExcludes=46015]="GetAccessorExcludes",o[o.SetAccessorExcludes=78783]="SetAccessorExcludes",o[o.TypeParameterExcludes=526824]="TypeParameterExcludes",o[o.TypeAliasExcludes=788968]="TypeAliasExcludes",o[o.AliasExcludes=2097152]="AliasExcludes",o[o.ModuleMember=2623475]="ModuleMember",o[o.ExportHasLocal=944]="ExportHasLocal",o[o.BlockScoped=418]="BlockScoped",o[o.PropertyOrAccessor=98308]="PropertyOrAccessor",o[o.ClassMember=106500]="ClassMember",o[o.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",o[o.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",o[o.Classifiable=2885600]="Classifiable",o[o.LateBindingContainer=6256]="LateBindingContainer"})(ie=e.SymbolFlags||(e.SymbolFlags={}));var le;(function(o){o[o.Numeric=0]="Numeric",o[o.Literal=1]="Literal"})(le=e.EnumKind||(e.EnumKind={}));var P;(function(o){o[o.Instantiated=1]="Instantiated",o[o.SyntheticProperty=2]="SyntheticProperty",o[o.SyntheticMethod=4]="SyntheticMethod",o[o.Readonly=8]="Readonly",o[o.ReadPartial=16]="ReadPartial",o[o.WritePartial=32]="WritePartial",o[o.HasNonUniformType=64]="HasNonUniformType",o[o.HasLiteralType=128]="HasLiteralType",o[o.ContainsPublic=256]="ContainsPublic",o[o.ContainsProtected=512]="ContainsProtected",o[o.ContainsPrivate=1024]="ContainsPrivate",o[o.ContainsStatic=2048]="ContainsStatic",o[o.Late=4096]="Late",o[o.ReverseMapped=8192]="ReverseMapped",o[o.OptionalParameter=16384]="OptionalParameter",o[o.RestParameter=32768]="RestParameter",o[o.DeferredType=65536]="DeferredType",o[o.HasNeverType=131072]="HasNeverType",o[o.Mapped=262144]="Mapped",o[o.StripOptional=524288]="StripOptional",o[o.Synthetic=6]="Synthetic",o[o.Discriminant=192]="Discriminant",o[o.Partial=48]="Partial"})(P=e.CheckFlags||(e.CheckFlags={}));var I;(function(o){o.Call="__call",o.Constructor="__constructor",o.New="__new",o.Index="__index",o.ExportStar="__export",o.Global="__global",o.Missing="__missing",o.Type="__type",o.Object="__object",o.JSXAttributes="__jsxAttributes",o.Class="__class",o.Function="__function",o.Computed="__computed",o.Resolving="__resolving__",o.ExportEquals="export=",o.Default="default",o.This="this"})(I=e.InternalSymbolName||(e.InternalSymbolName={}));var re;(function(o){o[o.TypeChecked=1]="TypeChecked",o[o.LexicalThis=2]="LexicalThis",o[o.CaptureThis=4]="CaptureThis",o[o.CaptureNewTarget=8]="CaptureNewTarget",o[o.SuperInstance=256]="SuperInstance",o[o.SuperStatic=512]="SuperStatic",o[o.ContextChecked=1024]="ContextChecked",o[o.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",o[o.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",o[o.CaptureArguments=8192]="CaptureArguments",o[o.EnumValuesComputed=16384]="EnumValuesComputed",o[o.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",o[o.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",o[o.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",o[o.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",o[o.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",o[o.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",o[o.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",o[o.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",o[o.AssignmentsMarked=8388608]="AssignmentsMarked",o[o.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",o[o.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",o[o.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",o[o.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer"})(re=e.NodeCheckFlags||(e.NodeCheckFlags={}));var B;(function(o){o[o.Any=1]="Any",o[o.Unknown=2]="Unknown",o[o.String=4]="String",o[o.Number=8]="Number",o[o.Boolean=16]="Boolean",o[o.Enum=32]="Enum",o[o.BigInt=64]="BigInt",o[o.StringLiteral=128]="StringLiteral",o[o.NumberLiteral=256]="NumberLiteral",o[o.BooleanLiteral=512]="BooleanLiteral",o[o.EnumLiteral=1024]="EnumLiteral",o[o.BigIntLiteral=2048]="BigIntLiteral",o[o.ESSymbol=4096]="ESSymbol",o[o.UniqueESSymbol=8192]="UniqueESSymbol",o[o.Void=16384]="Void",o[o.Undefined=32768]="Undefined",o[o.Null=65536]="Null",o[o.Never=131072]="Never",o[o.TypeParameter=262144]="TypeParameter",o[o.Object=524288]="Object",o[o.Union=1048576]="Union",o[o.Intersection=2097152]="Intersection",o[o.Index=4194304]="Index",o[o.IndexedAccess=8388608]="IndexedAccess",o[o.Conditional=16777216]="Conditional",o[o.Substitution=33554432]="Substitution",o[o.NonPrimitive=67108864]="NonPrimitive",o[o.TemplateLiteral=134217728]="TemplateLiteral",o[o.StringMapping=268435456]="StringMapping",o[o.AnyOrUnknown=3]="AnyOrUnknown",o[o.Nullable=98304]="Nullable",o[o.Literal=2944]="Literal",o[o.Unit=109440]="Unit",o[o.StringOrNumberLiteral=384]="StringOrNumberLiteral",o[o.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",o[o.DefinitelyFalsy=117632]="DefinitelyFalsy",o[o.PossiblyFalsy=117724]="PossiblyFalsy",o[o.Intrinsic=67359327]="Intrinsic",o[o.Primitive=131068]="Primitive",o[o.StringLike=402653316]="StringLike",o[o.NumberLike=296]="NumberLike",o[o.BigIntLike=2112]="BigIntLike",o[o.BooleanLike=528]="BooleanLike",o[o.EnumLike=1056]="EnumLike",o[o.ESSymbolLike=12288]="ESSymbolLike",o[o.VoidLike=49152]="VoidLike",o[o.DisjointDomains=469892092]="DisjointDomains",o[o.UnionOrIntersection=3145728]="UnionOrIntersection",o[o.StructuredType=3670016]="StructuredType",o[o.TypeVariable=8650752]="TypeVariable",o[o.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",o[o.InstantiablePrimitive=406847488]="InstantiablePrimitive",o[o.Instantiable=465829888]="Instantiable",o[o.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",o[o.ObjectFlagsType=3899393]="ObjectFlagsType",o[o.Simplifiable=25165824]="Simplifiable",o[o.Singleton=67358815]="Singleton",o[o.Narrowable=536624127]="Narrowable",o[o.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",o[o.IncludesMask=205258751]="IncludesMask",o[o.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",o[o.IncludesNonWideningType=4194304]="IncludesNonWideningType",o[o.IncludesWildcard=8388608]="IncludesWildcard",o[o.IncludesEmptyObject=16777216]="IncludesEmptyObject"})(B=e.TypeFlags||(e.TypeFlags={}));var A;(function(o){o[o.Class=1]="Class",o[o.Interface=2]="Interface",o[o.Reference=4]="Reference",o[o.Tuple=8]="Tuple",o[o.Anonymous=16]="Anonymous",o[o.Mapped=32]="Mapped",o[o.Instantiated=64]="Instantiated",o[o.ObjectLiteral=128]="ObjectLiteral",o[o.EvolvingArray=256]="EvolvingArray",o[o.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",o[o.ReverseMapped=1024]="ReverseMapped",o[o.JsxAttributes=2048]="JsxAttributes",o[o.MarkerType=4096]="MarkerType",o[o.JSLiteral=8192]="JSLiteral",o[o.FreshLiteral=16384]="FreshLiteral",o[o.ArrayLiteral=32768]="ArrayLiteral",o[o.PrimitiveUnion=65536]="PrimitiveUnion",o[o.ContainsWideningType=131072]="ContainsWideningType",o[o.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",o[o.NonInferrableType=524288]="NonInferrableType",o[o.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",o[o.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",o[o.ClassOrInterface=3]="ClassOrInterface",o[o.RequiresWidening=393216]="RequiresWidening",o[o.PropagatingFlags=917504]="PropagatingFlags",o[o.ObjectTypeKindMask=1343]="ObjectTypeKindMask",o[o.ContainsSpread=4194304]="ContainsSpread",o[o.ObjectRestType=8388608]="ObjectRestType",o[o.IsClassInstanceClone=16777216]="IsClassInstanceClone",o[o.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",o[o.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",o[o.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",o[o.IsGenericObjectType=8388608]="IsGenericObjectType",o[o.IsGenericIndexType=16777216]="IsGenericIndexType",o[o.IsGenericType=25165824]="IsGenericType",o[o.ContainsIntersections=33554432]="ContainsIntersections",o[o.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",o[o.IsNeverIntersection=67108864]="IsNeverIntersection"})(A=e.ObjectFlags||(e.ObjectFlags={}));var f;(function(o){o[o.Invariant=0]="Invariant",o[o.Covariant=1]="Covariant",o[o.Contravariant=2]="Contravariant",o[o.Bivariant=3]="Bivariant",o[o.Independent=4]="Independent",o[o.VarianceMask=7]="VarianceMask",o[o.Unmeasurable=8]="Unmeasurable",o[o.Unreliable=16]="Unreliable",o[o.AllowsStructuralFallback=24]="AllowsStructuralFallback"})(f=e.VarianceFlags||(e.VarianceFlags={}));var F;(function(o){o[o.Required=1]="Required",o[o.Optional=2]="Optional",o[o.Rest=4]="Rest",o[o.Variadic=8]="Variadic",o[o.Fixed=3]="Fixed",o[o.Variable=12]="Variable",o[o.NonRequired=14]="NonRequired",o[o.NonRest=11]="NonRest"})(F=e.ElementFlags||(e.ElementFlags={}));var g;(function(o){o[o.None=0]="None",o[o.IncludeUndefined=1]="IncludeUndefined",o[o.NoIndexSignatures=2]="NoIndexSignatures",o[o.Writing=4]="Writing",o[o.CacheSymbol=8]="CacheSymbol",o[o.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",o[o.ExpressionPosition=32]="ExpressionPosition",o[o.ReportDeprecated=64]="ReportDeprecated",o[o.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",o[o.Contextual=256]="Contextual",o[o.Persistent=1]="Persistent"})(g=e.AccessFlags||(e.AccessFlags={}));var p;(function(o){o[o.Component=0]="Component",o[o.Function=1]="Function",o[o.Mixed=2]="Mixed"})(p=e.JsxReferenceKind||(e.JsxReferenceKind={}));var d;(function(o){o[o.Call=0]="Call",o[o.Construct=1]="Construct"})(d=e.SignatureKind||(e.SignatureKind={}));var T;(function(o){o[o.None=0]="None",o[o.HasRestParameter=1]="HasRestParameter",o[o.HasLiteralTypes=2]="HasLiteralTypes",o[o.Abstract=4]="Abstract",o[o.IsInnerCallChain=8]="IsInnerCallChain",o[o.IsOuterCallChain=16]="IsOuterCallChain",o[o.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",o[o.PropagatingFlags=39]="PropagatingFlags",o[o.CallChainFlags=24]="CallChainFlags"})(T=e.SignatureFlags||(e.SignatureFlags={}));var m;(function(o){o[o.String=0]="String",o[o.Number=1]="Number"})(m=e.IndexKind||(e.IndexKind={}));var k;(function(o){o[o.Simple=0]="Simple",o[o.Array=1]="Array",o[o.Function=2]="Function",o[o.Composite=3]="Composite",o[o.Merged=4]="Merged"})(k=e.TypeMapKind||(e.TypeMapKind={}));var N;(function(o){o[o.NakedTypeVariable=1]="NakedTypeVariable",o[o.SpeculativeTuple=2]="SpeculativeTuple",o[o.SubstituteSource=4]="SubstituteSource",o[o.HomomorphicMappedType=8]="HomomorphicMappedType",o[o.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",o[o.MappedTypeConstraint=32]="MappedTypeConstraint",o[o.ContravariantConditional=64]="ContravariantConditional",o[o.ReturnType=128]="ReturnType",o[o.LiteralKeyof=256]="LiteralKeyof",o[o.NoConstraints=512]="NoConstraints",o[o.AlwaysStrict=1024]="AlwaysStrict",o[o.MaxValue=2048]="MaxValue",o[o.PriorityImpliesCombination=416]="PriorityImpliesCombination",o[o.Circularity=-1]="Circularity"})(N=e.InferencePriority||(e.InferencePriority={}));var D;(function(o){o[o.None=0]="None",o[o.NoDefault=1]="NoDefault",o[o.AnyDefault=2]="AnyDefault",o[o.SkippedGenericFunction=4]="SkippedGenericFunction"})(D=e.InferenceFlags||(e.InferenceFlags={}));var R;(function(o){o[o.False=0]="False",o[o.Unknown=1]="Unknown",o[o.Maybe=3]="Maybe",o[o.True=-1]="True"})(R=e.Ternary||(e.Ternary={}));var me;(function(o){o[o.None=0]="None",o[o.ExportsProperty=1]="ExportsProperty",o[o.ModuleExports=2]="ModuleExports",o[o.PrototypeProperty=3]="PrototypeProperty",o[o.ThisProperty=4]="ThisProperty",o[o.Property=5]="Property",o[o.Prototype=6]="Prototype",o[o.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",o[o.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",o[o.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"})(me=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var q;(function(o){o[o.Warning=0]="Warning",o[o.Error=1]="Error",o[o.Suggestion=2]="Suggestion",o[o.Message=3]="Message"})(q=e.DiagnosticCategory||(e.DiagnosticCategory={}));function J(o,Cn){Cn===void 0&&(Cn=!0);var z=q[o.category];return Cn?z.toLowerCase():z}e.diagnosticCategoryName=J;var C;(function(o){o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs"})(C=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var we;(function(o){o[o.FixedPollingInterval=0]="FixedPollingInterval",o[o.PriorityPollingInterval=1]="PriorityPollingInterval",o[o.DynamicPriorityPolling=2]="DynamicPriorityPolling",o[o.FixedChunkSizePolling=3]="FixedChunkSizePolling",o[o.UseFsEvents=4]="UseFsEvents",o[o.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"})(we=e.WatchFileKind||(e.WatchFileKind={}));var Oe;(function(o){o[o.UseFsEvents=0]="UseFsEvents",o[o.FixedPollingInterval=1]="FixedPollingInterval",o[o.DynamicPriorityPolling=2]="DynamicPriorityPolling",o[o.FixedChunkSizePolling=3]="FixedChunkSizePolling"})(Oe=e.WatchDirectoryKind||(e.WatchDirectoryKind={}));var te;(function(o){o[o.FixedInterval=0]="FixedInterval",o[o.PriorityInterval=1]="PriorityInterval",o[o.DynamicPriority=2]="DynamicPriority",o[o.FixedChunkSize=3]="FixedChunkSize"})(te=e.PollingWatchKind||(e.PollingWatchKind={}));var Te;(function(o){o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ES2020=6]="ES2020",o[o.ESNext=99]="ESNext"})(Te=e.ModuleKind||(e.ModuleKind={}));var be;(function(o){o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev"})(be=e.JsxEmit||(e.JsxEmit={}));var Ce;(function(o){o[o.Remove=0]="Remove",o[o.Preserve=1]="Preserve",o[o.Error=2]="Error"})(Ce=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}));var Ue;(function(o){o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed"})(Ue=e.NewLineKind||(e.NewLineKind={}));var Se;(function(o){o[o.Unknown=0]="Unknown",o[o.JS=1]="JS",o[o.JSX=2]="JSX",o[o.TS=3]="TS",o[o.TSX=4]="TSX",o[o.External=5]="External",o[o.JSON=6]="JSON",o[o.Deferred=7]="Deferred"})(Se=e.ScriptKind||(e.ScriptKind={}));var $e;(function(o){o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ES2021=8]="ES2021",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest"})($e=e.ScriptTarget||(e.ScriptTarget={}));var ce;(function(o){o[o.Standard=0]="Standard",o[o.JSX=1]="JSX"})(ce=e.LanguageVariant||(e.LanguageVariant={}));var Le;(function(o){o[o.None=0]="None",o[o.Recursive=1]="Recursive"})(Le=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var qe;(function(o){o[o.nullCharacter=0]="nullCharacter",o[o.maxAsciiCharacter=127]="maxAsciiCharacter",o[o.lineFeed=10]="lineFeed",o[o.carriageReturn=13]="carriageReturn",o[o.lineSeparator=8232]="lineSeparator",o[o.paragraphSeparator=8233]="paragraphSeparator",o[o.nextLine=133]="nextLine",o[o.space=32]="space",o[o.nonBreakingSpace=160]="nonBreakingSpace",o[o.enQuad=8192]="enQuad",o[o.emQuad=8193]="emQuad",o[o.enSpace=8194]="enSpace",o[o.emSpace=8195]="emSpace",o[o.threePerEmSpace=8196]="threePerEmSpace",o[o.fourPerEmSpace=8197]="fourPerEmSpace",o[o.sixPerEmSpace=8198]="sixPerEmSpace",o[o.figureSpace=8199]="figureSpace",o[o.punctuationSpace=8200]="punctuationSpace",o[o.thinSpace=8201]="thinSpace",o[o.hairSpace=8202]="hairSpace",o[o.zeroWidthSpace=8203]="zeroWidthSpace",o[o.narrowNoBreakSpace=8239]="narrowNoBreakSpace",o[o.ideographicSpace=12288]="ideographicSpace",o[o.mathematicalSpace=8287]="mathematicalSpace",o[o.ogham=5760]="ogham",o[o._=95]="_",o[o.$=36]="$",o[o._0=48]="_0",o[o._1=49]="_1",o[o._2=50]="_2",o[o._3=51]="_3",o[o._4=52]="_4",o[o._5=53]="_5",o[o._6=54]="_6",o[o._7=55]="_7",o[o._8=56]="_8",o[o._9=57]="_9",o[o.a=97]="a",o[o.b=98]="b",o[o.c=99]="c",o[o.d=100]="d",o[o.e=101]="e",o[o.f=102]="f",o[o.g=103]="g",o[o.h=104]="h",o[o.i=105]="i",o[o.j=106]="j",o[o.k=107]="k",o[o.l=108]="l",o[o.m=109]="m",o[o.n=110]="n",o[o.o=111]="o",o[o.p=112]="p",o[o.q=113]="q",o[o.r=114]="r",o[o.s=115]="s",o[o.t=116]="t",o[o.u=117]="u",o[o.v=118]="v",o[o.w=119]="w",o[o.x=120]="x",o[o.y=121]="y",o[o.z=122]="z",o[o.A=65]="A",o[o.B=66]="B",o[o.C=67]="C",o[o.D=68]="D",o[o.E=69]="E",o[o.F=70]="F",o[o.G=71]="G",o[o.H=72]="H",o[o.I=73]="I",o[o.J=74]="J",o[o.K=75]="K",o[o.L=76]="L",o[o.M=77]="M",o[o.N=78]="N",o[o.O=79]="O",o[o.P=80]="P",o[o.Q=81]="Q",o[o.R=82]="R",o[o.S=83]="S",o[o.T=84]="T",o[o.U=85]="U",o[o.V=86]="V",o[o.W=87]="W",o[o.X=88]="X",o[o.Y=89]="Y",o[o.Z=90]="Z",o[o.ampersand=38]="ampersand",o[o.asterisk=42]="asterisk",o[o.at=64]="at",o[o.backslash=92]="backslash",o[o.backtick=96]="backtick",o[o.bar=124]="bar",o[o.caret=94]="caret",o[o.closeBrace=125]="closeBrace",o[o.closeBracket=93]="closeBracket",o[o.closeParen=41]="closeParen",o[o.colon=58]="colon",o[o.comma=44]="comma",o[o.dot=46]="dot",o[o.doubleQuote=34]="doubleQuote",o[o.equals=61]="equals",o[o.exclamation=33]="exclamation",o[o.greaterThan=62]="greaterThan",o[o.hash=35]="hash",o[o.lessThan=60]="lessThan",o[o.minus=45]="minus",o[o.openBrace=123]="openBrace",o[o.openBracket=91]="openBracket",o[o.openParen=40]="openParen",o[o.percent=37]="percent",o[o.plus=43]="plus",o[o.question=63]="question",o[o.semicolon=59]="semicolon",o[o.singleQuote=39]="singleQuote",o[o.slash=47]="slash",o[o.tilde=126]="tilde",o[o.backspace=8]="backspace",o[o.formFeed=12]="formFeed",o[o.byteOrderMark=65279]="byteOrderMark",o[o.tab=9]="tab",o[o.verticalTab=11]="verticalTab"})(qe=e.CharacterCodes||(e.CharacterCodes={}));var pe;(function(o){o.Ts=".ts",o.Tsx=".tsx",o.Dts=".d.ts",o.Js=".js",o.Jsx=".jsx",o.Json=".json",o.TsBuildInfo=".tsbuildinfo"})(pe=e.Extension||(e.Extension={}));var Me;(function(o){o[o.None=0]="None",o[o.ContainsTypeScript=1]="ContainsTypeScript",o[o.ContainsJsx=2]="ContainsJsx",o[o.ContainsESNext=4]="ContainsESNext",o[o.ContainsES2021=8]="ContainsES2021",o[o.ContainsES2020=16]="ContainsES2020",o[o.ContainsES2019=32]="ContainsES2019",o[o.ContainsES2018=64]="ContainsES2018",o[o.ContainsES2017=128]="ContainsES2017",o[o.ContainsES2016=256]="ContainsES2016",o[o.ContainsES2015=512]="ContainsES2015",o[o.ContainsGenerator=1024]="ContainsGenerator",o[o.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",o[o.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",o[o.ContainsLexicalThis=8192]="ContainsLexicalThis",o[o.ContainsRestOrSpread=16384]="ContainsRestOrSpread",o[o.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",o[o.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",o[o.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",o[o.ContainsBindingPattern=262144]="ContainsBindingPattern",o[o.ContainsYield=524288]="ContainsYield",o[o.ContainsAwait=1048576]="ContainsAwait",o[o.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",o[o.ContainsDynamicImport=4194304]="ContainsDynamicImport",o[o.ContainsClassFields=8388608]="ContainsClassFields",o[o.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",o[o.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",o[o.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",o[o.HasComputedFlags=536870912]="HasComputedFlags",o[o.AssertTypeScript=1]="AssertTypeScript",o[o.AssertJsx=2]="AssertJsx",o[o.AssertESNext=4]="AssertESNext",o[o.AssertES2021=8]="AssertES2021",o[o.AssertES2020=16]="AssertES2020",o[o.AssertES2019=32]="AssertES2019",o[o.AssertES2018=64]="AssertES2018",o[o.AssertES2017=128]="AssertES2017",o[o.AssertES2016=256]="AssertES2016",o[o.AssertES2015=512]="AssertES2015",o[o.AssertGenerator=1024]="AssertGenerator",o[o.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",o[o.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",o[o.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",o[o.NodeExcludes=536870912]="NodeExcludes",o[o.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",o[o.FunctionExcludes=591310848]="FunctionExcludes",o[o.ConstructorExcludes=591306752]="ConstructorExcludes",o[o.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",o[o.PropertyExcludes=570433536]="PropertyExcludes",o[o.ClassExcludes=536940544]="ClassExcludes",o[o.ModuleExcludes=589443072]="ModuleExcludes",o[o.TypeExcludes=-2]="TypeExcludes",o[o.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",o[o.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",o[o.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",o[o.ParameterExcludes=536870912]="ParameterExcludes",o[o.CatchClauseExcludes=536903680]="CatchClauseExcludes",o[o.BindingPatternExcludes=536887296]="BindingPatternExcludes",o[o.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",o[o.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags"})(Me=e.TransformFlags||(e.TransformFlags={}));var fn;(function(o){o[o.None=0]="None",o[o.SingleLine=1]="SingleLine",o[o.AdviseOnEmitNode=2]="AdviseOnEmitNode",o[o.NoSubstitution=4]="NoSubstitution",o[o.CapturesThis=8]="CapturesThis",o[o.NoLeadingSourceMap=16]="NoLeadingSourceMap",o[o.NoTrailingSourceMap=32]="NoTrailingSourceMap",o[o.NoSourceMap=48]="NoSourceMap",o[o.NoNestedSourceMaps=64]="NoNestedSourceMaps",o[o.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",o[o.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",o[o.NoTokenSourceMaps=384]="NoTokenSourceMaps",o[o.NoLeadingComments=512]="NoLeadingComments",o[o.NoTrailingComments=1024]="NoTrailingComments",o[o.NoComments=1536]="NoComments",o[o.NoNestedComments=2048]="NoNestedComments",o[o.HelperName=4096]="HelperName",o[o.ExportName=8192]="ExportName",o[o.LocalName=16384]="LocalName",o[o.InternalName=32768]="InternalName",o[o.Indented=65536]="Indented",o[o.NoIndentation=131072]="NoIndentation",o[o.AsyncFunctionBody=262144]="AsyncFunctionBody",o[o.ReuseTempVariableScope=524288]="ReuseTempVariableScope",o[o.CustomPrologue=1048576]="CustomPrologue",o[o.NoHoisting=2097152]="NoHoisting",o[o.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",o[o.Iterator=8388608]="Iterator",o[o.NoAsciiEscaping=16777216]="NoAsciiEscaping",o[o.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",o[o.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",o[o.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",o[o.Immutable=268435456]="Immutable",o[o.IndirectCall=536870912]="IndirectCall"})(fn=e.EmitFlags||(e.EmitFlags={}));var Ye;(function(o){o[o.Extends=1]="Extends",o[o.Assign=2]="Assign",o[o.Rest=4]="Rest",o[o.Decorate=8]="Decorate",o[o.Metadata=16]="Metadata",o[o.Param=32]="Param",o[o.Awaiter=64]="Awaiter",o[o.Generator=128]="Generator",o[o.Values=256]="Values",o[o.Read=512]="Read",o[o.SpreadArray=1024]="SpreadArray",o[o.Await=2048]="Await",o[o.AsyncGenerator=4096]="AsyncGenerator",o[o.AsyncDelegator=8192]="AsyncDelegator",o[o.AsyncValues=16384]="AsyncValues",o[o.ExportStar=32768]="ExportStar",o[o.ImportStar=65536]="ImportStar",o[o.ImportDefault=131072]="ImportDefault",o[o.MakeTemplateObject=262144]="MakeTemplateObject",o[o.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",o[o.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",o[o.CreateBinding=2097152]="CreateBinding",o[o.FirstEmitHelper=1]="FirstEmitHelper",o[o.LastEmitHelper=2097152]="LastEmitHelper",o[o.ForOfIncludes=256]="ForOfIncludes",o[o.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",o[o.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",o[o.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",o[o.SpreadIncludes=1536]="SpreadIncludes"})(Ye=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var Ne;(function(o){o[o.SourceFile=0]="SourceFile",o[o.Expression=1]="Expression",o[o.IdentifierName=2]="IdentifierName",o[o.MappedTypeParameter=3]="MappedTypeParameter",o[o.Unspecified=4]="Unspecified",o[o.EmbeddedStatement=5]="EmbeddedStatement",o[o.JsxAttributeValue=6]="JsxAttributeValue"})(Ne=e.EmitHint||(e.EmitHint={}));var je;(function(o){o[o.Parentheses=1]="Parentheses",o[o.TypeAssertions=2]="TypeAssertions",o[o.NonNullAssertions=4]="NonNullAssertions",o[o.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",o[o.Assertions=6]="Assertions",o[o.All=15]="All"})(je=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));var xn;(function(o){o[o.None=0]="None",o[o.InParameters=1]="InParameters",o[o.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"})(xn=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}));var Wn;(function(o){o.Prologue="prologue",o.EmitHelpers="emitHelpers",o.NoDefaultLib="no-default-lib",o.Reference="reference",o.Type="type",o.Lib="lib",o.Prepend="prepend",o.Text="text",o.Internal="internal"})(Wn=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var dn;(function(o){o[o.None=0]="None",o[o.SingleLine=0]="SingleLine",o[o.MultiLine=1]="MultiLine",o[o.PreserveLines=2]="PreserveLines",o[o.LinesMask=3]="LinesMask",o[o.NotDelimited=0]="NotDelimited",o[o.BarDelimited=4]="BarDelimited",o[o.AmpersandDelimited=8]="AmpersandDelimited",o[o.CommaDelimited=16]="CommaDelimited",o[o.AsteriskDelimited=32]="AsteriskDelimited",o[o.DelimitersMask=60]="DelimitersMask",o[o.AllowTrailingComma=64]="AllowTrailingComma",o[o.Indented=128]="Indented",o[o.SpaceBetweenBraces=256]="SpaceBetweenBraces",o[o.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",o[o.Braces=1024]="Braces",o[o.Parenthesis=2048]="Parenthesis",o[o.AngleBrackets=4096]="AngleBrackets",o[o.SquareBrackets=8192]="SquareBrackets",o[o.BracketsMask=15360]="BracketsMask",o[o.OptionalIfUndefined=16384]="OptionalIfUndefined",o[o.OptionalIfEmpty=32768]="OptionalIfEmpty",o[o.Optional=49152]="Optional",o[o.PreferNewLine=65536]="PreferNewLine",o[o.NoTrailingNewLine=131072]="NoTrailingNewLine",o[o.NoInterveningComments=262144]="NoInterveningComments",o[o.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",o[o.SingleElement=1048576]="SingleElement",o[o.SpaceAfterList=2097152]="SpaceAfterList",o[o.Modifiers=262656]="Modifiers",o[o.HeritageClauses=512]="HeritageClauses",o[o.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",o[o.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",o[o.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",o[o.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",o[o.UnionTypeConstituents=516]="UnionTypeConstituents",o[o.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",o[o.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",o[o.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",o[o.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",o[o.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",o[o.CommaListElements=528]="CommaListElements",o[o.CallExpressionArguments=2576]="CallExpressionArguments",o[o.NewExpressionArguments=18960]="NewExpressionArguments",o[o.TemplateExpressionSpans=262144]="TemplateExpressionSpans",o[o.SingleLineBlockStatements=768]="SingleLineBlockStatements",o[o.MultiLineBlockStatements=129]="MultiLineBlockStatements",o[o.VariableDeclarationList=528]="VariableDeclarationList",o[o.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",o[o.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",o[o.ClassHeritageClauses=0]="ClassHeritageClauses",o[o.ClassMembers=129]="ClassMembers",o[o.InterfaceMembers=129]="InterfaceMembers",o[o.EnumMembers=145]="EnumMembers",o[o.CaseBlockClauses=129]="CaseBlockClauses",o[o.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",o[o.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",o[o.JsxElementAttributes=262656]="JsxElementAttributes",o[o.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",o[o.HeritageClauseTypes=528]="HeritageClauseTypes",o[o.SourceFileStatements=131073]="SourceFileStatements",o[o.Decorators=2146305]="Decorators",o[o.TypeArguments=53776]="TypeArguments",o[o.TypeParameters=53776]="TypeParameters",o[o.Parameters=2576]="Parameters",o[o.IndexSignatureParameters=8848]="IndexSignatureParameters",o[o.JSDocComment=33]="JSDocComment"})(dn=e.ListFormat||(e.ListFormat={}));var vn;(function(o){o[o.None=0]="None",o[o.TripleSlashXML=1]="TripleSlashXML",o[o.SingleLine=2]="SingleLine",o[o.MultiLine=4]="MultiLine",o[o.All=7]="All",o[o.Default=7]="Default"})(vn=e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={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}],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}}})(mn||(mn={}));var mn;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var s="://",ue=/\\/g;function ee(ce){return ce===47||ce===92}e.isAnyDirectorySeparator=ee;function Y(ce){return v(ce)<0}e.isUrl=Y;function V(ce){return v(ce)>0}e.isRootedDiskPath=V;function ne(ce){var Le=v(ce);return Le>0&&Le===ce.length}e.isDiskPathRoot=ne;function _e(ce){return v(ce)!==0}e.pathIsAbsolute=_e;function O(ce){return/^\.\.?($|[\\/])/.test(ce)}e.pathIsRelative=O;function w(ce){return!_e(ce)&&!O(ce)}e.pathIsBareSpecifier=w;function b(ce){return e.stringContains($(ce),".")}e.hasExtension=b;function de(ce,Le){return ce.length>Le.length&&e.endsWith(ce,Le)}e.fileExtensionIs=de;function fe(ce,Le){for(var qe=0,pe=Le;qe<pe.length;qe++){var Me=pe[qe];if(de(ce,Me))return!0}return!1}e.fileExtensionIsOneOf=fe;function _(ce){return ce.length>0&&ee(ce.charCodeAt(ce.length-1))}e.hasTrailingDirectorySeparator=_;function U(ce){return ce>=97&&ce<=122||ce>=65&&ce<=90}function Z(ce,Le){var qe=ce.charCodeAt(Le);if(qe===58)return Le+1;if(qe===37&&ce.charCodeAt(Le+1)===51){var pe=ce.charCodeAt(Le+2);if(pe===97||pe===65)return Le+3}return-1}function v(ce){if(!ce)return 0;var Le=ce.charCodeAt(0);if(Le===47||Le===92){if(ce.charCodeAt(1)!==Le)return 1;var qe=ce.indexOf(Le===47?e.directorySeparator:e.altDirectorySeparator,2);return qe<0?ce.length:qe+1}if(U(Le)&&ce.charCodeAt(1)===58){var pe=ce.charCodeAt(2);if(pe===47||pe===92)return 3;if(ce.length===2)return 2}var Me=ce.indexOf(s);if(Me!==-1){var fn=Me+s.length,Ye=ce.indexOf(e.directorySeparator,fn);if(Ye!==-1){var Ne=ce.slice(0,Me),je=ce.slice(fn,Ye);if(Ne==="file"&&(je===""||je==="localhost")&&U(ce.charCodeAt(Ye+1))){var xn=Z(ce,Ye+2);if(xn!==-1){if(ce.charCodeAt(xn)===47)return~(xn+1);if(xn===ce.length)return~xn}}return~(Ye+1)}return~ce.length}return 0}function W(ce){var Le=v(ce);return Le<0?~Le:Le}e.getRootLength=W;function x(ce){ce=P(ce);var Le=W(ce);return Le===ce.length?ce:(ce=m(ce),ce.slice(0,Math.max(Le,ce.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=x;function $(ce,Le,qe){ce=P(ce);var pe=W(ce);if(pe===ce.length)return"";ce=m(ce);var Me=ce.slice(Math.max(W(ce),ce.lastIndexOf(e.directorySeparator)+1)),fn=Le!==void 0&&qe!==void 0?ae(Me,Le,qe):void 0;return fn?Me.slice(0,Me.length-fn.length):Me}e.getBaseFileName=$;function L(ce,Le,qe){if(e.startsWith(Le,".")||(Le="."+Le),ce.length>=Le.length&&ce.charCodeAt(ce.length-Le.length)===46){var pe=ce.slice(ce.length-Le.length);if(qe(pe,Le))return pe}}function E(ce,Le,qe){if(typeof Le=="string")return L(ce,Le,qe)||"";for(var pe=0,Me=Le;pe<Me.length;pe++){var fn=Me[pe],Ye=L(ce,fn,qe);if(Ye)return Ye}return""}function ae(ce,Le,qe){if(Le)return E(m(ce),Le,qe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var pe=$(ce),Me=pe.lastIndexOf(".");return Me>=0?pe.substring(Me):""}e.getAnyExtensionFromPath=ae;function X(ce,Le){var qe=ce.substring(0,Le),pe=ce.substring(Le).split(e.directorySeparator);return pe.length&&!e.lastOrUndefined(pe)&&pe.pop(),Mt([qe],pe,!0)}function ie(ce,Le){return Le===void 0&&(Le=""),ce=re(Le,ce),X(ce,W(ce))}e.getPathComponents=ie;function le(ce){if(ce.length===0)return"";var Le=ce[0]&&k(ce[0]);return Le+ce.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=le;function P(ce){var Le=ce.indexOf("\\");return Le===-1?ce:(ue.lastIndex=Le,ce.replace(ue,e.directorySeparator))}e.normalizeSlashes=P;function I(ce){if(!e.some(ce))return[];for(var Le=[ce[0]],qe=1;qe<ce.length;qe++){var pe=ce[qe];if(!pe)continue;if(pe===".")continue;if(pe===".."){if(Le.length>1){if(Le[Le.length-1]!==".."){Le.pop();continue}}else if(Le[0])continue}Le.push(pe)}return Le}e.reducePathComponents=I;function re(ce){for(var Le=[],qe=1;qe<arguments.length;qe++)Le[qe-1]=arguments[qe];ce&&(ce=P(ce));for(var pe=0,Me=Le;pe<Me.length;pe++){var fn=Me[pe];if(!fn)continue;fn=P(fn),!ce||W(fn)!==0?ce=fn:ce=k(ce)+fn}return ce}e.combinePaths=re;function B(ce){for(var Le=[],qe=1;qe<arguments.length;qe++)Le[qe-1]=arguments[qe];return F(e.some(Le)?re.apply(void 0,Mt([ce],Le,!1)):P(ce))}e.resolvePath=B;function A(ce,Le){return I(ie(ce,Le))}e.getNormalizedPathComponents=A;function f(ce,Le){return le(A(ce,Le))}e.getNormalizedAbsolutePath=f;function F(ce){if(ce=P(ce),!R.test(ce))return ce;var Le=ce.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(Le!==ce&&(ce=Le,!R.test(ce)))return ce;var qe=le(I(ie(ce)));return qe&&_(ce)?k(qe):qe}e.normalizePath=F;function g(ce){return ce.length===0?"":ce.slice(1).join(e.directorySeparator)}function p(ce,Le){return g(A(ce,Le))}e.getNormalizedAbsolutePathWithoutRoot=p;function d(ce,Le,qe){var pe=V(ce)?F(ce):f(ce,Le);return qe(pe)}e.toPath=d;function T(ce){ce=P(ce);var Le=I(ie(ce)),qe=Le[0],pe=Le.slice(1);if(pe.length){var Me=qe+pe.join(e.directorySeparator);return{path:_(ce)?k(Me):Me,parts:pe}}else return{path:qe,parts:pe}}e.normalizePathAndParts=T;function m(ce){return _(ce)?ce.substr(0,ce.length-1):ce}e.removeTrailingDirectorySeparator=m;function k(ce){return _(ce)?ce:ce+e.directorySeparator}e.ensureTrailingDirectorySeparator=k;function N(ce){return!_e(ce)&&!O(ce)?"./"+ce:ce}e.ensurePathIsNonModuleName=N;function D(ce,Le,qe,pe){var Me=qe!==void 0&&pe!==void 0?ae(ce,qe,pe):ae(ce);return Me?ce.slice(0,ce.length-Me.length)+(e.startsWith(Le,".")?Le:"."+Le):ce}e.changeAnyExtension=D;var R=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function me(ce,Le,qe){if(ce===Le)return 0;if(ce===void 0)return-1;if(Le===void 0)return 1;var pe=ce.substring(0,W(ce)),Me=Le.substring(0,W(Le)),fn=e.compareStringsCaseInsensitive(pe,Me);if(fn!==0)return fn;var Ye=ce.substring(pe.length),Ne=Le.substring(Me.length);if(!R.test(Ye)&&!R.test(Ne))return qe(Ye,Ne);for(var je=I(ie(ce)),xn=I(ie(Le)),Wn=Math.min(je.length,xn.length),dn=1;dn<Wn;dn++){var vn=qe(je[dn],xn[dn]);if(vn!==0)return vn}return e.compareValues(je.length,xn.length)}function q(ce,Le){return me(ce,Le,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=q;function J(ce,Le){return me(ce,Le,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=J;function C(ce,Le,qe,pe){return typeof qe=="string"?(ce=re(qe,ce),Le=re(qe,Le)):typeof qe=="boolean"&&(pe=qe),me(ce,Le,e.getStringComparer(pe))}e.comparePaths=C;function we(ce,Le,qe,pe){if(typeof qe=="string"?(ce=re(qe,ce),Le=re(qe,Le)):typeof qe=="boolean"&&(pe=qe),ce===void 0||Le===void 0)return!1;if(ce===Le)return!0;var Me=I(ie(ce)),fn=I(ie(Le));if(fn.length<Me.length)return!1;for(var Ye=pe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Ne=0;Ne<Me.length;Ne++){var je=Ne===0?e.equateStringsCaseInsensitive:Ye;if(!je(Me[Ne],fn[Ne]))return!1}return!0}e.containsPath=we;function Oe(ce,Le,qe){var pe=qe(ce),Me=qe(Le);return e.startsWith(pe,Me+"/")||e.startsWith(pe,Me+"\\")}e.startsWithDirectory=Oe;function te(ce,Le,qe,pe){var Me=I(ie(ce)),fn=I(ie(Le)),Ye;for(Ye=0;Ye<Me.length&&Ye<fn.length;Ye++){var Ne=pe(Me[Ye]),je=pe(fn[Ye]),xn=Ye===0?e.equateStringsCaseInsensitive:qe;if(!xn(Ne,je))break}if(Ye===0)return fn;for(var Wn=fn.slice(Ye),dn=[];Ye<Me.length;Ye++)dn.push("..");return Mt(Mt([""],dn,!0),Wn,!0)}e.getPathComponentsRelativeTo=te;function Te(ce,Le,qe){e.Debug.assert(W(ce)>0===W(Le)>0,"Paths must either both be absolute or both be relative");var pe=typeof qe=="function"?qe:e.identity,Me=typeof qe=="boolean"?qe:!1,fn=te(ce,Le,Me?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,pe);return le(fn)}e.getRelativePathFromDirectory=Te;function be(ce,Le,qe){return V(ce)?Ue(Le,ce,Le,qe,!1):ce}e.convertToRelativePath=be;function Ce(ce,Le,qe){return N(Te(x(ce),Le,qe))}e.getRelativePathFromFile=Ce;function Ue(ce,Le,qe,pe,Me){var fn=te(B(qe,ce),B(qe,Le),e.equateStringsCaseSensitive,pe),Ye=fn[0];if(Me&&V(Ye)){var Ne=Ye.charAt(0)===e.directorySeparator?"file://":"file:///";fn[0]=Ne+Ye}return le(fn)}e.getRelativePathToDirectoryOrUrl=Ue;function Se(ce,Le){for(;;){var qe=Le(ce);if(qe!==void 0)return qe;var pe=x(ce);if(pe===ce)return;ce=pe}}e.forEachAncestorDirectory=Se;function $e(ce){return e.endsWith(ce,"/node_modules")}e.isNodeModulesDirectory=$e})(mn||(mn={}));var mn;(function(e){function s(I){for(var re=5381,B=0;B<I.length;B++)re=(re<<5)+re+I.charCodeAt(B);return re.toString()}e.generateDjb2Hash=s;function ue(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=ue;var ee;(function(I){I[I.Created=0]="Created",I[I.Changed=1]="Changed",I[I.Deleted=2]="Deleted"})(ee=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var Y;(function(I){I[I.High=2e3]="High",I[I.Medium=500]="Medium",I[I.Low=250]="Low"})(Y=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function V(I,re){return I.getModifiedTime(re)||e.missingFileModifiedTime}e.getModifiedTime=V;function ne(I){var re;return re={},re[Y.Low]=I.Low,re[Y.Medium]=I.Medium,re[Y.High]=I.High,re}var _e={Low:32,Medium:64,High:256},O=ne(_e);e.unchangedPollThresholds=ne(_e);function w(I){if(!I.getEnvironmentVariable)return;var re=f("TSC_WATCH_POLLINGINTERVAL",Y);O=F("TSC_WATCH_POLLINGCHUNKSIZE",_e)||O,e.unchangedPollThresholds=F("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",_e)||e.unchangedPollThresholds;function B(g,p){return I.getEnvironmentVariable(g+"_"+p.toUpperCase())}function A(g){var p;return d("Low"),d("Medium"),d("High"),p;function d(T){var m=B(g,T);m&&((p||(p={}))[T]=Number(m))}}function f(g,p){var d=A(g);if(d)return T("Low"),T("Medium"),T("High"),!0;return!1;function T(m){p[m]=d[m]||p[m]}}function F(g,p){var d=A(g);return(re||d)&&ne(d?pr(pr({},p),d):p)}}e.setCustomPollingValues=w;function b(I,re,B,A,f){for(var F=B,g=re.length;A&&g;T(),g--){var p=re[B];if(p){if(p.isClosed){re[B]=void 0;continue}}else continue;A--;var d=Z(p,V(I,p.fileName));if(p.isClosed){re[B]=void 0;continue}f==null||f(p,B,d),re[B]&&(F<B&&(re[F]=p,re[B]=void 0),F++)}return B;function T(){B++,B===re.length&&(F<B&&(re.length=F),B=0,F=0)}}function de(I){var re=[],B=[],A=p(Y.Low),f=p(Y.Medium),F=p(Y.High);return g;function g(q,J,C){var we={fileName:q,callback:J,unchangedPolls:0,mtime:V(I,q)};return re.push(we),N(we,C),{close:function(){we.isClosed=!0,e.unorderedRemoveItem(re,we)}}}function p(q){var J=[];return J.pollingInterval=q,J.pollIndex=0,J.pollScheduled=!1,J}function d(q){q.pollIndex=m(q,q.pollingInterval,q.pollIndex,O[q.pollingInterval]),q.length?me(q.pollingInterval):(e.Debug.assert(q.pollIndex===0),q.pollScheduled=!1)}function T(q){m(B,Y.Low,0,B.length),d(q),!q.pollScheduled&&B.length&&me(Y.Low)}function m(q,J,C,we){return b(I,q,C,we,Oe);function Oe(te,Te,be){be?(te.unchangedPolls=0,q!==B&&(q[Te]=void 0,D(te))):te.unchangedPolls!==e.unchangedPollThresholds[J]?te.unchangedPolls++:q===B?(te.unchangedPolls=1,q[Te]=void 0,N(te,Y.Low)):J!==Y.High&&(te.unchangedPolls++,q[Te]=void 0,N(te,J===Y.Low?Y.Medium:Y.High))}}function k(q){switch(q){case Y.Low:return A;case Y.Medium:return f;case Y.High:return F}}function N(q,J){k(J).push(q),R(J)}function D(q){B.push(q),R(Y.Low)}function R(q){k(q).pollScheduled||me(q)}function me(q){k(q).pollScheduled=I.setTimeout(q===Y.Low?T:d,q,k(q))}}e.createDynamicPriorityPollingWatchFile=de;function fe(I,re){var B=e.createMultiMap(),A=new e.Map,f=e.createGetCanonicalFileName(re);return F;function F(p,d,T,m){var k=f(p);B.add(k,d);var N=e.getDirectoryPath(k)||".",D=A.get(N)||g(e.getDirectoryPath(p)||".",N,m);return D.referenceCount++,{close:function(){D.referenceCount===1?(D.close(),A.delete(N)):D.referenceCount--,B.remove(k,d)}}}function g(p,d,T){var m=I(p,1,function(k,N){if(!e.isString(N))return;var D=e.getNormalizedAbsolutePath(N,p),R=D&&B.get(f(D));if(R)for(var me=0,q=R;me<q.length;me++){var J=q[me];J(D,ee.Changed)}},!1,Y.Medium,T);return m.referenceCount=0,A.set(d,m),m}}function _(I){var re=[],B=0,A;return f;function f(p,d){var T={fileName:p,callback:d,mtime:V(I,p)};return re.push(T),g(),{close:function(){T.isClosed=!0,e.unorderedRemoveItem(re,T)}}}function F(){A=void 0,B=b(I,re,B,O[Y.Low]),g()}function g(){if(!re.length||A)return;A=I.setTimeout(F,Y.High)}}function U(I,re){var B=new e.Map,A=e.createMultiMap(),f=e.createGetCanonicalFileName(re);return function(F,g,p,d){var T=f(F),m=B.get(T);return m?m.refCount++:B.set(T,{watcher:I(F,function(k,N){return e.forEach(A.get(T),function(D){return D(k,N)})},p,d),refCount:1}),A.add(T,g),{close:function(){var k=e.Debug.checkDefined(B.get(T));if(A.remove(T,g),k.refCount--,k.refCount)return;B.delete(T),e.closeFileWatcherOf(k)}}}}e.createSingleFileWatcherPerName=U;function Z(I,re){var B=I.mtime.getTime(),A=re.getTime();return B!==A?(I.mtime=re,I.callback(I.fileName,v(B,A)),!0):!1}e.onWatchedFileStat=Z;function v(I,re){return I===0?ee.Created:re===0?ee.Deleted:ee.Changed}e.getFileWatcherEventKind=v,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop;function W(I){e.sysLog=I}e.setSysLog=W;function x(I){var re=I.watchDirectory,B=I.useCaseSensitiveFileNames,A=I.getCurrentDirectory,f=I.getAccessibleSortedChildDirectories,F=I.directoryExists,g=I.realpath,p=I.setTimeout,d=I.clearTimeout,T=new e.Map,m=e.createMultiMap(),k=new e.Map,N,D=e.getStringComparer(!B),R=e.createGetCanonicalFileName(B);return function(Ce,Ue,Se,$e){return Se?me(Ce,$e,Ue):re(Ce,Ue,Se,$e)};function me(Ce,Ue,Se){var $e=R(Ce),ce=T.get($e);ce?ce.refCount++:(ce={watcher:re(Ce,function(qe){if(Te(qe,Ue))return;(Ue==null?void 0:Ue.synchronousWatchDirectory)?(q($e,qe),te(Ce,$e,Ue)):J(Ce,$e,qe,Ue)},!1,Ue),refCount:1,childWatches:e.emptyArray},T.set($e,ce),te(Ce,$e,Ue));var Le=Se&&{dirName:Ce,callback:Se};return Le&&m.add($e,Le),{dirName:Ce,close:function(){var qe=e.Debug.checkDefined(T.get($e));if(Le&&m.remove($e,Le),qe.refCount--,qe.refCount)return;T.delete($e),e.closeFileWatcherOf(qe),qe.childWatches.forEach(e.closeFileWatcher)}}}function q(Ce,Ue,Se){var $e,ce;e.isString(Ue)?$e=Ue:ce=Ue,m.forEach(function(Le,qe){var pe;if(ce&&ce.get(qe)===!0)return;if(qe===Ce||e.startsWith(Ce,qe)&&Ce[qe.length]===e.directorySeparator)if(ce)if(Se){var Me=ce.get(qe);Me?(pe=Me).push.apply(pe,Se):ce.set(qe,Se.slice())}else ce.set(qe,!0);else Le.forEach(function(fn){var Ye=fn.callback;return Ye($e)})})}function J(Ce,Ue,Se,$e){var ce=T.get(Ue);if(ce&&F(Ce)){C(Ce,Ue,Se,$e);return}q(Ue,Se),Oe(ce)}function C(Ce,Ue,Se,$e){var ce=k.get(Ue);ce?ce.fileNames.push(Se):k.set(Ue,{dirName:Ce,options:$e,fileNames:[Se]}),N&&(d(N),N=void 0),N=p(we,1e3)}function we(){N=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+k.size);for(var Ce=e.timestamp(),Ue=new e.Map;!N&&k.size;){var Se=k.entries().next();e.Debug.assert(!Se.done);var $e=Se.value,ce=$e[0],Le=$e[1],qe=Le.dirName,pe=Le.options,Me=Le.fileNames;k.delete(ce);var fn=te(qe,ce,pe);q(ce,Ue,fn?void 0:Me)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: "+(e.timestamp()-Ce)+"ms:: "+k.size),m.forEach(function(Ne,je){var xn=Ue.get(je);xn&&Ne.forEach(function(Wn){var dn=Wn.callback,vn=Wn.dirName;e.isArray(xn)?xn.forEach(dn):dn(vn)})});var Ye=e.timestamp()-Ce;e.sysLog("sysLog:: Elapsed:: "+Ye+"ms:: onTimerToUpdateChildWatches:: "+k.size+" "+N)}function Oe(Ce){if(!Ce)return;var Ue=Ce.childWatches;Ce.childWatches=e.emptyArray;for(var Se=0,$e=Ue;Se<$e.length;Se++){var ce=$e[Se];ce.close(),Oe(T.get(R(ce.dirName)))}}function te(Ce,Ue,Se){var $e=T.get(Ue);if(!$e)return!1;var ce,Le=e.enumerateInsertsAndDeletes(F(Ce)?e.mapDefined(f(Ce),function(Me){var fn=e.getNormalizedAbsolutePath(Me,Ce);return!Te(fn,Se)&&D(fn,e.normalizePath(g(fn)))===0?fn:void 0}):e.emptyArray,$e.childWatches,function(Me,fn){return D(Me,fn.dirName)},qe,e.closeFileWatcher,pe);return $e.childWatches=ce||e.emptyArray,Le;function qe(Me){var fn=me(Me,Se);pe(fn)}function pe(Me){(ce||(ce=[])).push(Me)}}function Te(Ce,Ue){return e.some(e.ignoredPaths,function(Se){return be(Ce,Se)})||ae(Ce,Ue,B,A)}function be(Ce,Ue){return e.stringContains(Ce,Ue)?!0:B?!1:e.stringContains(R(Ce),Ue)}}e.createDirectoryWatcherSupportingRecursive=x;var $;(function(I){I[I.File=0]="File",I[I.Directory=1]="Directory"})($=e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function L(I){return function(re,B){return I(B===ee.Changed?"change":"rename","")}}e.createFileWatcherCallback=L;function E(I,re,B){return function(A){A==="rename"?re(I,B(I)?ee.Created:ee.Deleted):re(I,ee.Changed)}}function ae(I,re,B,A){return((re==null?void 0:re.excludeDirectories)||(re==null?void 0:re.excludeFiles))&&(e.matchesExclude(I,re==null?void 0:re.excludeFiles,B,A())||e.matchesExclude(I,re==null?void 0:re.excludeDirectories,B,A()))}function X(I,re,B,A,f){return function(F,g){if(F==="rename"){var p=g?e.normalizePath(e.combinePaths(I,g)):I;(!g||!ae(p,B,A,f))&&re(p)}}}function ie(I){var re=I.pollingWatchFile,B=I.getModifiedTime,A=I.setTimeout,f=I.clearTimeout,F=I.fsWatch,g=I.fileExists,p=I.useCaseSensitiveFileNames,d=I.getCurrentDirectory,T=I.fsSupportsRecursiveFsWatch,m=I.directoryExists,k=I.getAccessibleSortedChildDirectories,N=I.realpath,D=I.tscWatchFile,R=I.useNonPollingWatchers,me=I.tscWatchDirectory,q=I.defaultWatchFileKind,J,C,we,Oe;return{watchFile:te,watchDirectory:Se};function te(Le,qe,pe,Me){Me=Ce(Me,R);var fn=e.Debug.checkDefined(Me.watchFile);switch(fn){case e.WatchFileKind.FixedPollingInterval:return re(Le,qe,Y.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return re(Le,qe,pe,void 0);case e.WatchFileKind.DynamicPriorityPolling:return Te()(Le,qe,pe,void 0);case e.WatchFileKind.FixedChunkSizePolling:return be()(Le,qe,void 0,void 0);case e.WatchFileKind.UseFsEvents:return F(Le,0,E(Le,qe,g),!1,pe,e.getFallbackOptions(Me));case e.WatchFileKind.UseFsEventsOnParentDirectory:return we||(we=fe(F,p)),we(Le,qe,pe,e.getFallbackOptions(Me));default:e.Debug.assertNever(fn)}}function Te(){return J||(J=de({getModifiedTime:B,setTimeout:A}))}function be(){return C||(C=_({getModifiedTime:B,setTimeout:A}))}function Ce(Le,qe){if(Le&&Le.watchFile!==void 0)return Le;switch(D){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return Ue(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,Le);case"UseFsEventsWithFallbackDynamicPolling":return Ue(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,Le);case"UseFsEventsOnParentDirectory":qe=!0;default:return qe?Ue(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,Le):{watchFile:(q==null?void 0:q())||e.WatchFileKind.FixedPollingInterval}}}function Ue(Le,qe,pe){var Me=pe==null?void 0:pe.fallbackPolling;return{watchFile:Le,fallbackPolling:Me===void 0?qe:Me}}function Se(Le,qe,pe,Me){return T?F(Le,1,X(Le,qe,Me,p,d),pe,Y.Medium,e.getFallbackOptions(Me)):(Oe||(Oe=x({useCaseSensitiveFileNames:p,getCurrentDirectory:d,directoryExists:m,getAccessibleSortedChildDirectories:k,watchDirectory:$e,realpath:N,setTimeout:A,clearTimeout:f})),Oe(Le,qe,pe,Me))}function $e(Le,qe,pe,Me){e.Debug.assert(!pe);var fn=ce(Me),Ye=e.Debug.checkDefined(fn.watchDirectory);switch(Ye){case e.WatchDirectoryKind.FixedPollingInterval:return re(Le,function(){return qe(Le)},Y.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return Te()(Le,function(){return qe(Le)},Y.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return be()(Le,function(){return qe(Le)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return F(Le,1,X(Le,qe,Me,p,d),pe,Y.Medium,e.getFallbackOptions(fn));default:e.Debug.assertNever(Ye)}}function ce(Le){if(Le&&Le.watchDirectory!==void 0)return Le;switch(me){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var qe=Le==null?void 0:Le.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:qe!==void 0?qe:void 0}}}}e.createSystemWatchFunctions=ie;function le(I){var re=I.writeFile;I.writeFile=function(B,A,f){return e.writeFileEnsuringDirectories(B,A,!!f,function(F,g,p){return re.call(I,F,g,p)},function(F){return I.createDirectory(F)},function(F){return I.directoryExists(F)})}}e.patchWriteFileEnsuringDirectory=le;function P(){if(typeof io=="undefined")return;var I=io.version;if(!I)return;var re=I.indexOf(".");return re===-1?void 0:parseInt(I.substring(1,re))}e.getNodeMajorVersion=P,e.sys=void 0,e.sys&&e.sys.getEnvironmentVariable&&(w(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(mn||(mn={}));var mn;(function(e){function s(ue,ee,Y,V,ne,_e,O){return{code:ue,category:ee,key:Y,message:V,reportsUnnecessary:ne,elidedInCompatabilityPyramid:_e,reportsDeprecated:O}}e.Diagnostics={Unterminated_string_literal:s(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:s(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:s(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:s(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:s(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:s(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:s(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:s(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:s(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:s(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:s(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:s(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:s(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:s(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:s(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:s(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:s(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:s(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:s(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:s(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:s(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:s(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:s(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:s(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:s(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:s(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:s(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:s(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:s(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:s(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:s(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:s(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:s(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:s(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:s(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:s(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:s(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:s(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:s(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:s(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:s(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:s(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:s(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:s(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:s(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:s(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:s(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:s(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:s(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:s(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:s(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:s(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:s(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:s(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:s(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:s(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:s(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:s(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:s(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:s(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:s(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:s(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:s(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:s(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:s(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:s(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:s(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:s(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:s(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:s(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:s(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:s(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:s(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:s(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:s(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:s(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:s(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:s(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:s(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:s(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:s(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:s(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:s(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:s(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:s(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:s(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:s(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:s(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:s(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:s(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:s(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:s(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:s(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:s(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:s(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:s(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:s(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:s(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:s(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:s(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:s(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:s(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:s(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:s(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:s(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:s(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:s(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:s(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:s(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:s(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:s(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:s(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:s(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:s(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:s(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:s(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:s(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:s(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:s(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:s(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:s(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:s(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:s(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:s(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:s(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:s(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:s(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:s(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:s(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:s(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:s(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:s(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:s(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:s(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:s(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:s(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:s(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:s(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:s(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:s(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:s(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:s(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:s(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:s(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:s(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:s(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:s(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:s(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:s(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:s(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:s(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:s(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:s(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:s(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:s(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:s(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:s(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:s(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:s(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:s(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:s(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:s(1203,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided_requires_using_export_type:s(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:s(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:s(1207,e.DiagnosticCategory.Error,"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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:s(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:s(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:s(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:s(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:s(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:s(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:s(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:s(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:s(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:s(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:s(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:s(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:s(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:s(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:s(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:s(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:s(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:s(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:s(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:s(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:s(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:s(1231,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:s(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:s(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:s(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:s(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:s(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:s(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:s(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:s(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:s(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:s(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:s(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:s(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:s(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:s(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:s(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:s(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:s(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:s(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:s(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:s(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:s(1252,e.DiagnosticCategory.Error,"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."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:s(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:s(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:s(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:s(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:s(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:s(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:s(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:s(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:s(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:s(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:s(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:s(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:s(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:s(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:s(1268,e.DiagnosticCategory.Error,"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."),with_statements_are_not_allowed_in_an_async_function_block:s(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:s(1308,e.DiagnosticCategory.Error,"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."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:s(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:s(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:s(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:s(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:s(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:s(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:s(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:s(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:s(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:s(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:s(1322,e.DiagnosticCategory.Error,"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_esnext_commonjs_amd_system_or_umd:s(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:s(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:s(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:s(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:s(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:s(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:s(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:s(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:s(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:s(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:s(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:s(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:s(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:s(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:s(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:s(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:s(1340,e.DiagnosticCategory.Error,"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}')'?"),Type_arguments_cannot_be_used_here:s(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system:s(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:s(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:s(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:s(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:s(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:s(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:s(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:s(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:s(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:s(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:s(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:s(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:s(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:s(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:s(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:s(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:s(1359,e.DiagnosticCategory.Error,"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."),Did_you_mean_to_parenthesize_this_function_type:s(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:s(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:s(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:s(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:s(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:s(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:s(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:s(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:s(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:s(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:s(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:s(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:s(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:s(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:s(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:s(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:s(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:s(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:s(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:s(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:s(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:s(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:s(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:s(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:s(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:s(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:s(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:s(1390,e.DiagnosticCategory.Message,"Provides_a_root_package_name_when_using_outFile_with_declarations_1390","Provides a root package name when using outFile with declarations."),The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit:s(1391,e.DiagnosticCategory.Error,"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391","The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit."),An_import_alias_cannot_use_import_type:s(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:s(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:s(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:s(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:s(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:s(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:s(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:s(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:s(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:s(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:s(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:s(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:s(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:s(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:s(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:s(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:s(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:s(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:s(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:s(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:s(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:s(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:s(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:s(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:s(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:s(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:s(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:s(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:s(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:s(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:s(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:s(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:s(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:s(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:s(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:s(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:s(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:s(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:s(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:s(1431,e.DiagnosticCategory.Error,"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_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:s(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:s(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:s(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:s(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:s(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:s(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:s(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:s(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:s(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:s(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:s(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:s(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),The_types_of_0_are_incompatible_between_these_types:s(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:s(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:s(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:s(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:s(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:s(2205,e.DiagnosticCategory.Error,"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),Duplicate_identifier_0:s(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:s(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:s(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:s(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:s(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:s(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:s(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:s(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:s(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:s(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:s(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:s(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:s(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:s(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:s(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:s(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:s(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:s(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:s(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:s(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:s(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:s(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:s(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:s(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:s(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:s(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:s(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:s(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:s(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:s(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:s(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:s(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:s(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:s(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:s(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:s(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:s(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:s(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:s(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:s(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:s(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:s(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:s(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:s(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:s(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:s(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:s(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:s(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:s(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:s(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:s(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:s(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:s(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:s(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:s(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:s(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:s(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:s(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:s(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:s(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:s(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:s(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:s(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:s(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:s(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:s(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:s(2366,e.DiagnosticCategory.Error,"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_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:s(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:s(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:s(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:s(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:s(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:s(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:s(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:s(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:s(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:s(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:s(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:s(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),A_signature_with_an_implementation_cannot_use_a_string_literal_type:s(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:s(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:s(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:s(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:s(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:s(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:s(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:s(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:s(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:s(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:s(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:s(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:s(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:s(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:s(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:s(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:s(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:s(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:s(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:s(2400,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:s(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:s(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:s(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:s(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:s(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:s(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:s(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:s(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:s(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:s(2410,e.DiagnosticCategory.Error,"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'."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:s(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:s(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:s(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:s(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:s(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:s(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:s(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:s(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:s(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:s(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:s(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:s(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:s(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:s(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:s(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:s(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:s(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:s(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:s(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:s(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:s(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:s(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:s(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:s(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:s(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:s(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:s(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:s(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:s(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:s(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:s(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:s(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:s(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:s(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:s(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:s(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:s(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:s(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:s(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:s(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:s(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:s(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:s(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:s(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:s(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:s(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:s(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:s(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:s(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:s(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:s(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:s(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:s(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:s(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:s(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:s(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:s(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:s(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:s(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:s(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:s(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:s(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:s(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:s(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:s(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:s(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:s(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:s(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:s(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:s(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:s(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:s(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:s(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:s(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:s(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:s(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:s(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:s(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:s(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:s(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:s(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:s(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:s(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:s(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:s(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:s(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:s(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:s(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:s(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:s(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:s(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:s(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:s(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:s(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:s(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:s(2513,e.DiagnosticCategory.Error,"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."),Classes_containing_abstract_methods_must_be_marked_abstract:s(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:s(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:s(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:s(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:s(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:s(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:s(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:s(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:s(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:s(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:s(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:s(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:s(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:s(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:s(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:s(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:s(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:s(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:s(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:s(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:s(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:s(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:s(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:s(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:s(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:s(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:s(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:s(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:s(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:s(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:s(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:s(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:s(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:s(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:s(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:s(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:s(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:s(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:s(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:s(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:s(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:s(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:s(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:s(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:s(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:s(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:s(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:s(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:s(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:s(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:s(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:s(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:s(2568,e.DiagnosticCategory.Error,"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}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:s(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:s(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:s(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:s(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:s(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:s(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:s(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:s(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:s(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:s(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:s(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:s(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:s(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:s(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:s(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:s(2585,e.DiagnosticCategory.Error,"_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."),Enum_type_0_circularly_references_itself:s(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:s(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:s(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:s(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:s(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:s(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:s(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:s(2593,e.DiagnosticCategory.Error,"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_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:s(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:s(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:s(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:s(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:s(2598,e.DiagnosticCategory.Error,"_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_attributes_type_0_may_not_be_a_union_type:s(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:s(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:s(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:s(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:s(2604,e.DiagnosticCategory.Error,"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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:s(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:s(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:s(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:s(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:s(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:s(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:s(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:s(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:s(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:s(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:s(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:s(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:s(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:s(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:s(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:s(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:s(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:s(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:s(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:s(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:s(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:s(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:s(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:s(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:s(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:s(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:s(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:s(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:s(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:s(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:s(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:s(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:s(2653,e.DiagnosticCategory.Error,"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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:s(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:s(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:s(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:s(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:s(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:s(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:s(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:s(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:s(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:s(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:s(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:s(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:s(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:s(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:s(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:s(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:s(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:s(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:s(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:s(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:s(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:s(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:s(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:s(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:s(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:s(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:s(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:s(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:s(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:s(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:s(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:s(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:s(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:s(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:s(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:s(2690,e.DiagnosticCategory.Error,"_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}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:s(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:s(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:s(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:s(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:s(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:s(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:s(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:s(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:s(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:s(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:s(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:s(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:s(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:s(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:s(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:s(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:s(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:s(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:s(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:s(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:s(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:s(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:s(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:s(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:s(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:s(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:s(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:s(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:s(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:s(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:s(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:s(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:s(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:s(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:s(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:s(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:s(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:s(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:s(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:s(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:s(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:s(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:s(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:s(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:s(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:s(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:s(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:s(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:s(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:s(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:s(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:s(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:s(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:s(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:s(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:s(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:s(2747,e.DiagnosticCategory.Error,"_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_the_isolatedModules_flag_is_provided:s(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:s(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:s(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:s(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:s(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:s(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:s(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:s(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:s(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:s(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:s(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:s(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:s(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:s(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:s(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:s(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:s(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:s(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:s(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:s(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:s(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:s(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:s(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:s(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:s(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:s(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:s(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:s(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:s(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:s(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:s(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:s(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:s(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:s(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:s(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:s(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:s(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:s(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:s(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:s(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:s(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:s(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:s(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:s(2791,e.DiagnosticCategory.Error,"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_node_or_to_add_aliases_to_the_paths_option:s(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:s(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:s(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:s(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:s(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:s(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:s(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:s(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:s(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:s(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:s(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:s(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:s(2804,e.DiagnosticCategory.Error,"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."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:s(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:s(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:s(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:s(2808,e.DiagnosticCategory.Error,"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_the_whole_assignment_in_parentheses:s(2809,e.DiagnosticCategory.Error,"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 the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:s(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:s(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:s(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:s(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:s(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:s(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:s(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:s(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:s(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:s(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Import_declaration_0_is_using_private_name_1:s(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:s(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:s(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:s(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:s(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:s(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:s(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:s(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:s(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:s(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:s(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:s(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:s(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:s(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:s(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:s(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:s(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:s(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:s(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:s(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:s(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:s(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:s(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:s(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:s(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:s(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:s(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:s(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:s(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:s(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:s(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:s(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:s(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:s(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:s(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:s(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:s(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:s(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:s(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:s(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:s(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:s(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:s(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:s(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:s(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:s(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:s(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:s(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:s(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:s(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:s(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:s(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:s(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:s(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:s(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:s(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:s(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:s(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:s(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:s(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:s(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:s(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:s(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:s(4084,e.DiagnosticCategory.Error,"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}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:s(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:s(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:s(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:s(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:s(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:s(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:s(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:s(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:s(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:s(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:s(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:s(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:s(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:s(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:s(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:s(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:s(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:s(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:s(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:s(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:s(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:s(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:s(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:s(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:s(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:s(4118,e.DiagnosticCategory.Error,"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."),The_current_host_does_not_support_the_0_option:s(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:s(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:s(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:s(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:s(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:s(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:s(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:s(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:s(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:s(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:s(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:s(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:s(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:s(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:s(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:s(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:s(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:s(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:s(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:s(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:s(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:s(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:s(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:s(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:s(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:s(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:s(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:s(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:s(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:s(5069,e.DiagnosticCategory.Error,"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_without_node_module_resolution_strategy:s(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:s(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:s(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:s(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:s(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:s(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:s(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:s(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:s(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:s(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:s(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:s(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:s(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:s(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:s(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:s(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:s(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:s(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:s(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:s(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:s(5090,e.DiagnosticCategory.Error,"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_isolatedModules_is_enabled:s(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:s(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:s(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:s(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:s(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:s(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:s(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:s(6655,e.DiagnosticCategory.Message,"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_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:s(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:s(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:s(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:s(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:s(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:s(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:s(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:s(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:s(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:s(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:s(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:s(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:s(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:s(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:s(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:s(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:s(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:s(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:s(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:s(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:s(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:s(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:s(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:s(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:s(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:s(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:s(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:s(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:s(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:s(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:s(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:s(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:s(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:s(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:s(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:s(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:s(6048,e.DiagnosticCategory.Error,"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}'."),Unsupported_locale_0:s(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:s(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:s(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:s(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:s(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:s(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:s(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:s(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:s(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:s(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:s(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:s(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:s(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:s(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:s(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:s(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:s(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:s(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:s(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:s(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:s(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:s(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:s(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:s(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:s(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:s(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:s(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:s(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:s(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:s(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:s(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:s(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:s(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:s(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:s(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:s(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:s(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:s(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:s(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:s(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:s(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:s(6094,e.DiagnosticCategory.Message,"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_type_1:s(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:s(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:s(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:s(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:s(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:s(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:s(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:s(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:s(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:s(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:s(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:s(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:s(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:s(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:s(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:s(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:s(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:s(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:s(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:s(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:s(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:s(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:s(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:s(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:s(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:s(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:s(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:s(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:s(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:s(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:s(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:s(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:s(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:s(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:s(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:s(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:s(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:s(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:s(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:s(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:s(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:s(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:s(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:s(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:s(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:s(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:s(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:s(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:s(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:s(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:s(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:s(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:s(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:s(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:s(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:s(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:s(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:s(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:s(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:s(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:s(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:s(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:s(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:s(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:s(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:s(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:s(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:s(6622,e.DiagnosticCategory.Message,"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."),Do_not_truncate_error_messages:s(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:s(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:s(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:s(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:s(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:s(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:s(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:s(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:s(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:s(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:s(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:s(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:s(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:s(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:s(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:s(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:s(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:s(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:s(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:s(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:s(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:s(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:s(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:s(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:s(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:s(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:s(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:s(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:s(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:s(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:s(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:s(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:s(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:s(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:s(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:s(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:s(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:s(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:s(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:s(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:s(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:s(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:s(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:s(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:s(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:s(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:s(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:s(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:s(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:s(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:s(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:s(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:s(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:s(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:s(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:s(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:s(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:s(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:s(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:s(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:s(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:s(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:s(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:s(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:s(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:s(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:s(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:s(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:s(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:s(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:s(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:s(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:s(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:s(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:s(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:s(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:s(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:s(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:s(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:s(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:s(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:s(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:s(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),Projects_to_reference:s(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:s(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:s(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:s(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:s(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:s(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:s(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:s(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:s(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:s(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:s(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:s(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:s(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:s(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:s(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:s(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:s(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:s(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:s(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:s(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:s(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:s(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:s(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:s(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:s(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:s(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:s(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:s(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:s(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:s(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:s(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:s(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:s(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:s(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:s(6377,e.DiagnosticCategory.Error,"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}'"),Enable_incremental_compilation:s(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:s(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:s(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:s(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:s(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:s(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:s(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:s(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:s(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:s(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:s(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:s(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:s(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:s(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:s(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:s(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:s(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:s(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:s(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:s(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:s(6398,e.DiagnosticCategory.Message,"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."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:s(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:s(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:s(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:s(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:s(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:s(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:s(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:s(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:s(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:s(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:s(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:s(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:s(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:s(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:s(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:s(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:s(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:s(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:s(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:s(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:s(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:s(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:s(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:s(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:s(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:s(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:s(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:s(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Only_output_d_ts_files_and_not_JavaScript_files:s(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:s(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:s(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:s(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:s(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:s(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:s(6629,e.DiagnosticCategory.Message,"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_TC39_stage_2_draft_decorators:s(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:s(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:s(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:s(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:s(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:s(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:s(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:s(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:s(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:s(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:s(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:s(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:s(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:s(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:s(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:s(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:s(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:s(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:s(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:s(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:s(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:s(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:s(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:s(6654,e.DiagnosticCategory.Message,"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_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:s(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:s(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:s(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:s(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:s(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:s(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:s(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:s(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:s(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:s(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:s(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:s(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:s(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:s(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:s(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:s(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:s(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:s(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:s(6674,e.DiagnosticCategory.Message,"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_a_local_variables_aren_t_read:s(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:s(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:s(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:s(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:s(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:s(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:s(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:s(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:s(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:s(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:s(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:s(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:s(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:s(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:s(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:s(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:s(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:s(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:s(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:s(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:s(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:s(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:s(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:s(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:s(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:s(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:s(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:s(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:s(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:s(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:s(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:s(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:s(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:s(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:s(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:s(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:s(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:s(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:s(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:s(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:s(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:s(6718,e.DiagnosticCategory.Message,"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"),Type_catch_clause_variables_as_unknown_instead_of_any:s(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:s(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:s(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:s(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:s(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:s(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:s(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:s(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:s(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:s(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:s(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:s(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:s(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:s(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:s(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:s(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:s(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:s(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:s(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:s(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:s(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:s(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:s(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:s(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:s(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:s(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:s(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:s(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:s(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:s(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:s(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),Variable_0_implicitly_has_an_1_type:s(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:s(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:s(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:s(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:s(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:s(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:s(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:s(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:s(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:s(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:s(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:s(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:s(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:s(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:s(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:s(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:s(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:s(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:s(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:s(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:s(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:s(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:s(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:s(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:s(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:s(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:s(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:s(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:s(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:s(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:s(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:s(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:s(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:s(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:s(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:s(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:s(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:s(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:s(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:s(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:s(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:s(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:s(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:s(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:s(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:s(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:s(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:s(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:s(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:s(7057,e.DiagnosticCategory.Error,"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."),You_cannot_rename_this_element:s(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:s(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:s(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:s(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:s(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:s(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:s(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:s(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:s(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:s(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:s(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:s(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:s(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:s(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:s(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:s(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:s(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:s(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:s(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:s(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:s(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:s(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:s(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:s(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:s(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:s(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:s(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:s(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:s(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:s(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:s(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:s(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:s(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:s(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:s(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:s(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:s(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:s(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:s(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:s(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:s(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:s(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:s(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:s(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:s(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:s(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:s(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:s(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:s(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:s(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:s(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:s(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:s(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:s(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:s(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:s(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:s(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:s(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:s(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:s(18003,e.DiagnosticCategory.Error,"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_ES6_module:s(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:s(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:s(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:s(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:s(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:s(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:s(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:s(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:s(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:s(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:s(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:s(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:s(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:s(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:s(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:s(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:s(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:s(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:s(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:s(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013",`Import '{0}' from module "{1}"`),Change_0_to_1:s(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:s(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015",`Add '{0}' to existing import declaration from "{1}"`),Declare_property_0:s(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:s(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:s(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:s(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:s(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:s(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:s(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:s(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:s(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:s(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:s(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:s(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:s(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:s(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:s(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:s(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:s(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032",`Import default '{0}' from module "{1}"`),Add_default_import_0_to_existing_import_declaration_from_1:s(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033",`Add default import '{0}' to existing import declaration from "{1}"`),Add_parameter_name:s(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:s(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:s(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:s(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:s(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:s(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:s(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:s(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:s(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:s(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:s(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:s(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:s(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:s(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:s(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:s(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:s(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:s(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:s(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:s(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:s(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:s(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:s(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:s(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:s(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:s(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:s(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:s(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:s(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:s(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:s(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:s(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:s(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:s(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:s(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:s(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:s(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:s(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:s(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:s(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:s(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:s(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:s(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:s(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:s(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:s(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:s(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:s(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:s(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:s(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:s(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:s(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:s(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:s(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:s(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:s(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:s(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:s(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:s(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:s(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:s(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:s(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:s(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:s(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:s(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:s(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:s(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:s(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:s(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:s(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:s(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:s(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:s(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:s(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:s(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:s(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:s(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:s(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:s(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:s(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:s(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:s(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:s(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:s(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:s(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:s(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:s(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:s(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:s(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:s(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:s(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:s(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:s(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:s(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:s(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:s(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:s(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:s(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:s(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:s(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:s(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:s(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:s(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:s(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:s(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:s(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:s(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:s(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:s(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:s(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:s(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:s(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:s(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:s(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:s(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:s(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:s(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:s(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:s(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:s(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:s(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:s(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:s(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:s(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:s(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:s(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:s(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:s(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:s(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:s(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:s(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:s(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:s(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:s(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:s(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:s(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:s(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:s(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:s(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:s(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:s(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:s(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:s(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:s(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:s(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:s(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:s(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:s(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:s(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:s(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:s(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:s(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:s(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:s(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:s(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:s(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:s(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:s(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:s(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:s(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:s(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:s(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:s(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:s(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:s(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:s(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:s(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:s(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:s(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:s(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:s(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:s(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:s(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:s(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:s(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:s(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:s(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:s(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:s(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:s(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:s(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:s(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:s(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:s(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:s(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:s(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:s(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:s(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:s(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:s(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:s(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:s(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:s(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:s(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:s(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:s(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:s(18032,e.DiagnosticCategory.Error,"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."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:s(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:s(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:s(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:s(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:s(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:s(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:s(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:s(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(mn||(mn={}));var mn;(function(e){var s;function ue(Ne){return Ne>=79}e.tokenIsIdentifierOrKeyword=ue;function ee(Ne){return Ne===31||ue(Ne)}e.tokenIsIdentifierOrKeywordOrGreaterThan=ee,e.textToKeywordObj=(s={abstract:126,any:129,as:127,asserts:128,bigint:156,boolean:132,break:81,case:82,catch:83,class:84,continue:86,const:85},s["constructor"]=133,s.debugger=87,s.declare=134,s.default=88,s.delete=89,s.do=90,s.else=91,s.enum=92,s.export=93,s.extends=94,s.false=95,s.finally=96,s.for=97,s.from=154,s.function=98,s.get=135,s.if=99,s.implements=117,s.import=100,s.in=101,s.infer=136,s.instanceof=102,s.interface=118,s.intrinsic=137,s.is=138,s.keyof=139,s.let=119,s.module=140,s.namespace=141,s.never=142,s.new=103,s.null=104,s.number=145,s.object=146,s.package=120,s.private=121,s.protected=122,s.public=123,s.override=157,s.readonly=143,s.require=144,s.global=155,s.return=105,s.set=147,s.static=124,s.string=148,s.super=106,s.switch=107,s.symbol=149,s.this=108,s.throw=109,s.true=110,s.try=111,s.type=150,s.typeof=112,s.undefined=151,s.unique=152,s.unknown=153,s.var=113,s.void=114,s.while=115,s.with=116,s.yield=125,s.async=130,s.await=131,s.of=158,s);var Y=new e.Map(e.getEntries(e.textToKeywordObj)),V=new e.Map(e.getEntries(pr(pr({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),ne=[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],_e=[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],O=[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],w=[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],b=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],de=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],fe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,_=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function U(Ne,je){if(Ne<je[0])return!1;for(var xn=0,Wn=je.length,dn;xn+1<Wn;){if(dn=xn+(Wn-xn)/2,dn-=dn%2,je[dn]<=Ne&&Ne<=je[dn+1])return!0;Ne<je[dn]?Wn=dn:xn=dn+2}return!1}function Z(Ne,je){return je>=2?U(Ne,b):je===1?U(Ne,O):U(Ne,ne)}e.isUnicodeIdentifierStart=Z;function v(Ne,je){return je>=2?U(Ne,de):je===1?U(Ne,w):U(Ne,_e)}function W(Ne){var je=[];return Ne.forEach(function(xn,Wn){je[xn]=Wn}),je}var x=W(V);function $(Ne){return x[Ne]}e.tokenToString=$;function L(Ne){return V.get(Ne)}e.stringToToken=L;function E(Ne){for(var je=new Array,xn=0,Wn=0;xn<Ne.length;){var dn=Ne.charCodeAt(xn);xn++;switch(dn){case 13:Ne.charCodeAt(xn)===10&&xn++;case 10:je.push(Wn),Wn=xn;break;default:dn>127&&f(dn)&&(je.push(Wn),Wn=xn);break}}return je.push(Wn),je}e.computeLineStarts=E;function ae(Ne,je,xn,Wn){return Ne.getPositionOfLineAndCharacter?Ne.getPositionOfLineAndCharacter(je,xn,Wn):X(ie(Ne),je,xn,Ne.text,Wn)}e.getPositionOfLineAndCharacter=ae;function X(Ne,je,xn,Wn,dn){(je<0||je>=Ne.length)&&(dn?je=je<0?0:je>=Ne.length?Ne.length-1:je:e.Debug.fail("Bad line number. Line: "+je+", lineStarts.length: "+Ne.length+" , line map is correct? "+(Wn!==void 0?e.arraysEqual(Ne,E(Wn)):"unknown")));var vn=Ne[je]+xn;return dn?vn>Ne[je+1]?Ne[je+1]:typeof Wn=="string"&&vn>Wn.length?Wn.length:vn:(je<Ne.length-1?e.Debug.assert(vn<Ne[je+1]):Wn!==void 0&&e.Debug.assert(vn<=Wn.length),vn)}e.computePositionOfLineAndCharacter=X;function ie(Ne){return Ne.lineMap||(Ne.lineMap=E(Ne.text))}e.getLineStarts=ie;function le(Ne,je){var xn=P(Ne,je);return{line:xn,character:je-Ne[xn]}}e.computeLineAndCharacterOfPosition=le;function P(Ne,je,xn){var Wn=e.binarySearch(Ne,je,e.identity,e.compareValues,xn);return Wn<0&&(Wn=~Wn-1,e.Debug.assert(Wn!==-1,"position cannot precede the beginning of the file")),Wn}e.computeLineOfPosition=P;function I(Ne,je,xn){if(je===xn)return 0;var Wn=ie(Ne),dn=Math.min(je,xn),vn=dn===xn,o=vn?je:xn,Cn=P(Wn,dn),z=P(Wn,o,Cn);return vn?Cn-z:z-Cn}e.getLinesBetweenPositions=I;function re(Ne,je){return le(ie(Ne),je)}e.getLineAndCharacterOfPosition=re;function B(Ne){return A(Ne)||f(Ne)}e.isWhiteSpaceLike=B;function A(Ne){return Ne===32||Ne===9||Ne===11||Ne===12||Ne===160||Ne===133||Ne===5760||Ne>=8192&&Ne<=8203||Ne===8239||Ne===8287||Ne===12288||Ne===65279}e.isWhiteSpaceSingleLine=A;function f(Ne){return Ne===10||Ne===13||Ne===8232||Ne===8233}e.isLineBreak=f;function F(Ne){return Ne>=48&&Ne<=57}function g(Ne){return F(Ne)||Ne>=65&&Ne<=70||Ne>=97&&Ne<=102}function p(Ne){return Ne<=1114111}function d(Ne){return Ne>=48&&Ne<=55}e.isOctalDigit=d;function T(Ne,je){var xn=Ne.charCodeAt(je);switch(xn){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 je===0;default:return xn>127}}e.couldStartTrivia=T;function m(Ne,je,xn,Wn,dn){if(e.positionIsSynthesized(je))return je;for(var vn=!1;;){var o=Ne.charCodeAt(je);switch(o){case 13:Ne.charCodeAt(je+1)===10&&je++;case 10:if(je++,xn)return je;vn=!!dn;continue;case 9:case 11:case 12:case 32:je++;continue;case 47:if(Wn)break;if(Ne.charCodeAt(je+1)===47){for(je+=2;je<Ne.length&&!f(Ne.charCodeAt(je));)je++;vn=!1;continue}if(Ne.charCodeAt(je+1)===42){for(je+=2;je<Ne.length;){if(Ne.charCodeAt(je)===42&&Ne.charCodeAt(je+1)===47){je+=2;break}je++}vn=!1;continue}break;case 60:case 124:case 61:case 62:if(N(Ne,je)){je=D(Ne,je),vn=!1;continue}break;case 35:if(je===0&&me(Ne,je)){je=q(Ne,je),vn=!1;continue}break;case 42:if(vn){je++,vn=!1;continue}break;default:if(o>127&&B(o)){je++;continue}break}return je}}e.skipTrivia=m;var k="<<<<<<<".length;function N(Ne,je){if(e.Debug.assert(je>=0),je===0||f(Ne.charCodeAt(je-1))){var xn=Ne.charCodeAt(je);if(je+k<Ne.length){for(var Wn=0;Wn<k;Wn++)if(Ne.charCodeAt(je+Wn)!==xn)return!1;return xn===61||Ne.charCodeAt(je+k)===32}}return!1}function D(Ne,je,xn){xn&&xn(e.Diagnostics.Merge_conflict_marker_encountered,je,k);var Wn=Ne.charCodeAt(je),dn=Ne.length;if(Wn===60||Wn===62)for(;je<dn&&!f(Ne.charCodeAt(je));)je++;else for(e.Debug.assert(Wn===124||Wn===61);je<dn;){var vn=Ne.charCodeAt(je);if((vn===61||vn===62)&&vn!==Wn&&N(Ne,je))break;je++}return je}var R=/^#!.*/;function me(Ne,je){return e.Debug.assert(je===0),R.test(Ne)}e.isShebangTrivia=me;function q(Ne,je){var xn=R.exec(Ne)[0];return je=je+xn.length,je}e.scanShebangTrivia=q;function J(Ne,je,xn,Wn,dn,vn,o){var Cn,z,tn,$n,Un=!1,oe=Wn,Pe=o;if(xn===0){oe=!0;var ke=Ue(je);ke&&(xn=ke.length)}e:for(;xn>=0&&xn<je.length;){var Qe=je.charCodeAt(xn);switch(Qe){case 13:je.charCodeAt(xn+1)===10&&xn++;case 10:if(xn++,Wn)break e;oe=!0,Un&&($n=!0);continue;case 9:case 11:case 12:case 32:xn++;continue;case 47:var gn=je.charCodeAt(xn+1),xe=!1;if(gn===47||gn===42){var Ze=gn===47?2:3,wn=xn;if(xn+=2,gn===47)for(;xn<je.length;){if(f(je.charCodeAt(xn))){xe=!0;break}xn++}else for(;xn<je.length;){if(je.charCodeAt(xn)===42&&je.charCodeAt(xn+1)===47){xn+=2;break}xn++}if(oe){if(Un&&(Pe=dn(Cn,z,tn,$n,vn,Pe),!Ne&&Pe))return Pe;Cn=wn,z=xn,tn=Ze,$n=xe,Un=!0}continue}break e;default:if(Qe>127&&B(Qe)){Un&&f(Qe)&&($n=!0),xn++;continue}break e}}return Un&&(Pe=dn(Cn,z,tn,$n,vn,Pe)),Pe}function C(Ne,je,xn,Wn){return J(!1,Ne,je,!1,xn,Wn)}e.forEachLeadingCommentRange=C;function we(Ne,je,xn,Wn){return J(!1,Ne,je,!0,xn,Wn)}e.forEachTrailingCommentRange=we;function Oe(Ne,je,xn,Wn,dn){return J(!0,Ne,je,!1,xn,Wn,dn)}e.reduceEachLeadingCommentRange=Oe;function te(Ne,je,xn,Wn,dn){return J(!0,Ne,je,!0,xn,Wn,dn)}e.reduceEachTrailingCommentRange=te;function Te(Ne,je,xn,Wn,dn,vn){return vn||(vn=[]),vn.push({kind:xn,pos:Ne,end:je,hasTrailingNewLine:Wn}),vn}function be(Ne,je){return Oe(Ne,je,Te,void 0,void 0)}e.getLeadingCommentRanges=be;function Ce(Ne,je){return te(Ne,je,Te,void 0,void 0)}e.getTrailingCommentRanges=Ce;function Ue(Ne){var je=R.exec(Ne);if(je)return je[0]}e.getShebang=Ue;function Se(Ne,je){return Ne>=65&&Ne<=90||Ne>=97&&Ne<=122||Ne===36||Ne===95||Ne>127&&Z(Ne,je)}e.isIdentifierStart=Se;function $e(Ne,je,xn){return Ne>=65&&Ne<=90||Ne>=97&&Ne<=122||Ne>=48&&Ne<=57||Ne===36||Ne===95||(xn===1?Ne===45||Ne===58:!1)||Ne>127&&v(Ne,je)}e.isIdentifierPart=$e;function ce(Ne,je,xn){var Wn=qe(Ne,0);if(!Se(Wn,je))return!1;for(var dn=pe(Wn);dn<Ne.length;dn+=pe(Wn))if(!$e(Wn=qe(Ne,dn),je,xn))return!1;return!0}e.isIdentifierText=ce;function Le(Ne,je,xn,Wn,dn,vn,o){xn===void 0&&(xn=0);var Cn=Wn,z,tn,$n,Un,oe,Pe,ke,Qe,gn=0;Or(Cn,vn,o);var xe={getStartPos:function(){return $n},getTextPos:function(){return z},getToken:function(){return oe},getTokenPos:function(){return Un},getTokenText:function(){return Cn.substring(Un,z)},getTokenValue:function(){return Pe},hasUnicodeEscape:function(){return(ke&1024)!==0},hasExtendedUnicodeEscape:function(){return(ke&8)!==0},hasPrecedingLineBreak:function(){return(ke&1)!==0},hasPrecedingJSDocComment:function(){return(ke&2)!==0},isIdentifier:function(){return oe===79||oe>116},isReservedWord:function(){return oe>=81&&oe<=116},isUnterminated:function(){return(ke&4)!==0},getCommentDirectives:function(){return Qe},getNumericLiteralFlags:function(){return ke&1008},getTokenFlags:function(){return ke},reScanGreaterToken:Bn,reScanAsteriskEqualsToken:K,reScanSlashToken:An,reScanTemplateToken:Ln,reScanTemplateHeadOrNoSubstitutionTemplate:Xe,scanJsxIdentifier:Et,scanJsxAttributeValue:zt,reScanJsxAttributeValue:fr,reScanJsxToken:Dn,reScanLessThanToken:rn,reScanHashToken:qn,reScanQuestionToken:it,reScanInvalidIdentifier:lt,scanJsxToken:ht,scanJsDocToken:br,scan:gt,getText:At,clearCommentDirectives:Wr,setText:Or,setScriptTarget:qa,setLanguageVariant:eo,setOnError:Ja,setTextPos:Va,setInJSDocType:la,tryScan:Xr,lookAhead:Ht,scanRange:mr};return e.Debug.isDebugging&&Object.defineProperty(xe,"__debugShowCurrentPositionInText",{get:function(){var wt=xe.getText();return wt.slice(0,xe.getStartPos())+"\u2551"+wt.slice(xe.getStartPos())}}),xe;function Ze(wt,rr,Wt){if(rr===void 0&&(rr=z),dn){var Pr=z;z=rr,dn(wt,Wt||0),z=Pr}}function wn(){for(var wt=z,rr=!1,Wt=!1,Pr="";;){var ra=Cn.charCodeAt(z);if(ra===95){ke|=512,rr?(rr=!1,Wt=!0,Pr+=Cn.substring(wt,z)):Ze(Wt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,z,1),z++,wt=z;continue}if(F(ra)){rr=!0,Wt=!1,z++;continue}break}return Cn.charCodeAt(z-1)===95&&Ze(e.Diagnostics.Numeric_separators_are_not_allowed_here,z-1,1),Pr+Cn.substring(wt,z)}function Be(){var wt=z,rr=wn(),Wt,Pr;Cn.charCodeAt(z)===46&&(z++,Wt=wn());var ra=z;if(Cn.charCodeAt(z)===69||Cn.charCodeAt(z)===101){z++,ke|=16,(Cn.charCodeAt(z)===43||Cn.charCodeAt(z)===45)&&z++;var Lt=z,xt=wn();xt?(Pr=Cn.substring(ra,Lt)+xt,ra=z):Ze(e.Diagnostics.Digit_expected)}var Yt;if(ke&512?(Yt=rr,Wt&&(Yt+="."+Wt),Pr&&(Yt+=Pr)):Yt=Cn.substring(wt,ra),Wt!==void 0||ke&16)return hn(wt,Wt===void 0&&!!(ke&16)),{type:8,value:""+ +Yt};Pe=Yt;var Qt=Yn();return hn(wt),{type:Qt,value:Pe}}function hn(wt,rr){if(!Se(qe(Cn,z),Ne))return;var Wt=z,Pr=Re().length;Pr===1&&Cn[Wt]==="n"?Ze(rr?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,wt,Wt-wt+1):(Ze(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Wt,Pr),z=Wt)}function Kn(){for(var wt=z;d(Cn.charCodeAt(z));)z++;return+Cn.substring(wt,z)}function Je(wt,rr){var Wt=Nn(wt,!1,rr);return Wt?parseInt(Wt,16):-1}function En(wt,rr){return Nn(wt,!0,rr)}function Nn(wt,rr,Wt){for(var Pr=[],ra=!1,Lt=!1;Pr.length<wt||rr;){var xt=Cn.charCodeAt(z);if(Wt&&xt===95){ke|=512,ra?(ra=!1,Lt=!0):Ze(Lt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,z,1),z++;continue}if(ra=Wt,xt>=65&&xt<=70)xt+=97-65;else if(!(xt>=48&&xt<=57||xt>=97&&xt<=102))break;Pr.push(xt),z++,Lt=!1}return Pr.length<wt&&(Pr=[]),Cn.charCodeAt(z-1)===95&&Ze(e.Diagnostics.Numeric_separators_are_not_allowed_here,z-1,1),String.fromCharCode.apply(String,Pr)}function ct(wt){wt===void 0&&(wt=!1);var rr=Cn.charCodeAt(z);z++;for(var Wt="",Pr=z;;){if(z>=tn){Wt+=Cn.substring(Pr,z),ke|=4,Ze(e.Diagnostics.Unterminated_string_literal);break}var ra=Cn.charCodeAt(z);if(ra===rr){Wt+=Cn.substring(Pr,z),z++;break}if(ra===92&&!wt){Wt+=Cn.substring(Pr,z),Wt+=Gt(),Pr=z;continue}if(f(ra)&&!wt){Wt+=Cn.substring(Pr,z),ke|=4,Ze(e.Diagnostics.Unterminated_string_literal);break}z++}return Wt}function yt(wt){var rr=Cn.charCodeAt(z)===96;z++;for(var Wt=z,Pr="",ra;;){if(z>=tn){Pr+=Cn.substring(Wt,z),ke|=4,Ze(e.Diagnostics.Unterminated_template_literal),ra=rr?14:17;break}var Lt=Cn.charCodeAt(z);if(Lt===96){Pr+=Cn.substring(Wt,z),z++,ra=rr?14:17;break}if(Lt===36&&z+1<tn&&Cn.charCodeAt(z+1)===123){Pr+=Cn.substring(Wt,z),z+=2,ra=rr?15:16;break}if(Lt===92){Pr+=Cn.substring(Wt,z),Pr+=Gt(wt),Wt=z;continue}if(Lt===13){Pr+=Cn.substring(Wt,z),z++,z<tn&&Cn.charCodeAt(z)===10&&z++,Pr+=`
|
|
|
`,Wt=z;continue}z++}return e.Debug.assert(ra!==void 0),Pe=Pr,ra}function Gt(wt){var rr=z;if(z++,z>=tn)return Ze(e.Diagnostics.Unexpected_end_of_text),"";var Wt=Cn.charCodeAt(z);z++;switch(Wt){case 48:return wt&&z<tn&&F(Cn.charCodeAt(z))?(z++,ke|=2048,Cn.substring(rr,z)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
|
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(wt){for(var Pr=z;Pr<z+4;Pr++)if(Pr<tn&&!g(Cn.charCodeAt(Pr))&&Cn.charCodeAt(Pr)!==123)return z=Pr,ke|=2048,Cn.substring(rr,z)}if(z<tn&&Cn.charCodeAt(z)===123){if(z++,wt&&!g(Cn.charCodeAt(z)))return ke|=2048,Cn.substring(rr,z);if(wt){var ra=z,Lt=En(1,!1),xt=Lt?parseInt(Lt,16):-1;if(!p(xt)||Cn.charCodeAt(z)!==125)return ke|=2048,Cn.substring(rr,z);z=ra}return ke|=8,Ke()}return ke|=1024,$t(4);case 120:if(wt)if(g(Cn.charCodeAt(z))){if(!g(Cn.charCodeAt(z+1)))return z++,ke|=2048,Cn.substring(rr,z)}else return ke|=2048,Cn.substring(rr,z);return $t(2);case 13:z<tn&&Cn.charCodeAt(z)===10&&z++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Wt)}}function $t(wt){var rr=Je(wt,!1);return rr>=0?String.fromCharCode(rr):(Ze(e.Diagnostics.Hexadecimal_digit_expected),"")}function Ke(){var wt=En(1,!1),rr=wt?parseInt(wt,16):-1,Wt=!1;return rr<0?(Ze(e.Diagnostics.Hexadecimal_digit_expected),Wt=!0):rr>1114111&&(Ze(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Wt=!0),z>=tn?(Ze(e.Diagnostics.Unexpected_end_of_text),Wt=!0):Cn.charCodeAt(z)===125?z++:(Ze(e.Diagnostics.Unterminated_Unicode_escape_sequence),Wt=!0),Wt?"":Ye(rr)}function Vn(){if(z+5<tn&&Cn.charCodeAt(z+1)===117){var wt=z;z+=2;var rr=Je(4,!1);return z=wt,rr}return-1}function Zn(){if(Ne>=2&&qe(Cn,z+1)===117&&qe(Cn,z+2)===123){var wt=z;z+=3;var rr=En(1,!1),Wt=rr?parseInt(rr,16):-1;return z=wt,Wt}return-1}function Re(){for(var wt="",rr=z;z<tn;){var Wt=qe(Cn,z);if($e(Wt,Ne))z+=pe(Wt);else if(Wt===92){if(Wt=Zn(),Wt>=0&&$e(Wt,Ne)){z+=3,ke|=8,wt+=Ke(),rr=z;continue}if(Wt=Vn(),!(Wt>=0&&$e(Wt,Ne)))break;ke|=1024,wt+=Cn.substring(rr,z),wt+=Ye(Wt),z+=6,rr=z}else break}return wt+=Cn.substring(rr,z),wt}function Pn(){var wt=Pe.length;if(wt>=2&&wt<=12){var rr=Pe.charCodeAt(0);if(rr>=97&&rr<=122){var Wt=Y.get(Pe);if(Wt!==void 0)return oe=Wt}}return oe=79}function rt(wt){for(var rr="",Wt=!1,Pr=!1;;){var ra=Cn.charCodeAt(z);if(ra===95){ke|=512,Wt?(Wt=!1,Pr=!0):Ze(Pr?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,z,1),z++;continue}if(Wt=!0,!F(ra)||ra-48>=wt)break;rr+=Cn[z],z++,Pr=!1}return Cn.charCodeAt(z-1)===95&&Ze(e.Diagnostics.Numeric_separators_are_not_allowed_here,z-1,1),rr}function Yn(){if(Cn.charCodeAt(z)===110)return Pe+="n",ke&384&&(Pe=e.parsePseudoBigInt(Pe)+"n"),z++,9;var wt=ke&128?parseInt(Pe.slice(2),2):ke&256?parseInt(Pe.slice(2),8):+Pe;return Pe=""+wt,8}function gt(){var wt;$n=z,ke=0;for(var rr=!1;;){if(Un=z,z>=tn)return oe=1;var Wt=qe(Cn,z);if(Wt===35&&z===0&&me(Cn,z)){if(z=q(Cn,z),je)continue;return oe=6}switch(Wt){case 10:case 13:if(ke|=1,je){z++;continue}else return Wt===13&&z+1<tn&&Cn.charCodeAt(z+1)===10?z+=2:z++,oe=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(je){z++;continue}else{for(;z<tn&&A(Cn.charCodeAt(z));)z++;return oe=5}case 33:return Cn.charCodeAt(z+1)===61?Cn.charCodeAt(z+2)===61?(z+=3,oe=37):(z+=2,oe=35):(z++,oe=53);case 34:case 39:return Pe=ct(),oe=10;case 96:return oe=yt(!1);case 37:return Cn.charCodeAt(z+1)===61?(z+=2,oe=69):(z++,oe=44);case 38:return Cn.charCodeAt(z+1)===38?Cn.charCodeAt(z+2)===61?(z+=3,oe=76):(z+=2,oe=55):Cn.charCodeAt(z+1)===61?(z+=2,oe=73):(z++,oe=50);case 40:return z++,oe=20;case 41:return z++,oe=21;case 42:if(Cn.charCodeAt(z+1)===61)return z+=2,oe=66;if(Cn.charCodeAt(z+1)===42)return Cn.charCodeAt(z+2)===61?(z+=3,oe=67):(z+=2,oe=42);if(z++,gn&&!rr&&ke&1){rr=!0;continue}return oe=41;case 43:return Cn.charCodeAt(z+1)===43?(z+=2,oe=45):Cn.charCodeAt(z+1)===61?(z+=2,oe=64):(z++,oe=39);case 44:return z++,oe=27;case 45:return Cn.charCodeAt(z+1)===45?(z+=2,oe=46):Cn.charCodeAt(z+1)===61?(z+=2,oe=65):(z++,oe=40);case 46:return F(Cn.charCodeAt(z+1))?(Pe=Be().value,oe=8):Cn.charCodeAt(z+1)===46&&Cn.charCodeAt(z+2)===46?(z+=3,oe=25):(z++,oe=24);case 47:if(Cn.charCodeAt(z+1)===47){for(z+=2;z<tn&&!f(Cn.charCodeAt(z));)z++;if(Qe=Fn(Qe,Cn.slice(Un,z),fe,Un),je)continue;return oe=2}if(Cn.charCodeAt(z+1)===42){z+=2,Cn.charCodeAt(z)===42&&Cn.charCodeAt(z+1)!==47&&(ke|=2);for(var Pr=!1,ra=Un;z<tn;){var Lt=Cn.charCodeAt(z);if(Lt===42&&Cn.charCodeAt(z+1)===47){z+=2,Pr=!0;break}z++,f(Lt)&&(ra=z,ke|=1)}if(Qe=Fn(Qe,Cn.slice(ra,z),_,ra),Pr||Ze(e.Diagnostics.Asterisk_Slash_expected),je)continue;return Pr||(ke|=4),oe=3}return Cn.charCodeAt(z+1)===61?(z+=2,oe=68):(z++,oe=43);case 48:if(z+2<tn&&(Cn.charCodeAt(z+1)===88||Cn.charCodeAt(z+1)===120))return z+=2,Pe=En(1,!0),Pe||(Ze(e.Diagnostics.Hexadecimal_digit_expected),Pe="0"),Pe="0x"+Pe,ke|=64,oe=Yn();if(z+2<tn&&(Cn.charCodeAt(z+1)===66||Cn.charCodeAt(z+1)===98))return z+=2,Pe=rt(2),Pe||(Ze(e.Diagnostics.Binary_digit_expected),Pe="0"),Pe="0b"+Pe,ke|=128,oe=Yn();if(z+2<tn&&(Cn.charCodeAt(z+1)===79||Cn.charCodeAt(z+1)===111))return z+=2,Pe=rt(8),Pe||(Ze(e.Diagnostics.Octal_digit_expected),Pe="0"),Pe="0o"+Pe,ke|=256,oe=Yn();if(z+1<tn&&d(Cn.charCodeAt(z+1)))return Pe=""+Kn(),ke|=32,oe=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return wt=Be(),oe=wt.type,Pe=wt.value,oe;case 58:return z++,oe=58;case 59:return z++,oe=26;case 60:if(N(Cn,z)){if(z=D(Cn,z,Ze),je)continue;return oe=7}return Cn.charCodeAt(z+1)===60?Cn.charCodeAt(z+2)===61?(z+=3,oe=70):(z+=2,oe=47):Cn.charCodeAt(z+1)===61?(z+=2,oe=32):xn===1&&Cn.charCodeAt(z+1)===47&&Cn.charCodeAt(z+2)!==42?(z+=2,oe=30):(z++,oe=29);case 61:if(N(Cn,z)){if(z=D(Cn,z,Ze),je)continue;return oe=7}return Cn.charCodeAt(z+1)===61?Cn.charCodeAt(z+2)===61?(z+=3,oe=36):(z+=2,oe=34):Cn.charCodeAt(z+1)===62?(z+=2,oe=38):(z++,oe=63);case 62:if(N(Cn,z)){if(z=D(Cn,z,Ze),je)continue;return oe=7}return z++,oe=31;case 63:return Cn.charCodeAt(z+1)===46&&!F(Cn.charCodeAt(z+2))?(z+=2,oe=28):Cn.charCodeAt(z+1)===63?Cn.charCodeAt(z+2)===61?(z+=3,oe=77):(z+=2,oe=60):(z++,oe=57);case 91:return z++,oe=22;case 93:return z++,oe=23;case 94:return Cn.charCodeAt(z+1)===61?(z+=2,oe=78):(z++,oe=52);case 123:return z++,oe=18;case 124:if(N(Cn,z)){if(z=D(Cn,z,Ze),je)continue;return oe=7}return Cn.charCodeAt(z+1)===124?Cn.charCodeAt(z+2)===61?(z+=3,oe=75):(z+=2,oe=56):Cn.charCodeAt(z+1)===61?(z+=2,oe=74):(z++,oe=51);case 125:return z++,oe=19;case 126:return z++,oe=54;case 64:return z++,oe=59;case 92:var xt=Zn();if(xt>=0&&Se(xt,Ne))return z+=3,ke|=8,Pe=Ke()+Re(),oe=Pn();var Yt=Vn();return Yt>=0&&Se(Yt,Ne)?(z+=6,ke|=1024,Pe=String.fromCharCode(Yt)+Re(),oe=Pn()):(Ze(e.Diagnostics.Invalid_character),z++,oe=0);case 35:return z!==0&&Cn[z+1]==="!"?(Ze(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),z++,oe=0):(Se(qe(Cn,z+1),Ne)?(z++,Fe(qe(Cn,z),Ne)):(Pe=String.fromCharCode(qe(Cn,z)),Ze(e.Diagnostics.Invalid_character,z++,pe(Wt))),oe=80);default:var Qt=Fe(Wt,Ne);if(Qt)return oe=Qt;if(A(Wt)){z+=pe(Wt);continue}else if(f(Wt)){ke|=1,z+=pe(Wt);continue}var sr=pe(Wt);return Ze(e.Diagnostics.Invalid_character,z,sr),z+=sr,oe=0}}}function lt(){e.Debug.assert(oe===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),z=Un=$n,ke=0;var wt=qe(Cn,z),rr=Fe(wt,99);return rr?oe=rr:(z+=pe(wt),oe)}function Fe(wt,rr){var Wt=wt;if(Se(Wt,rr)){for(z+=pe(Wt);z<tn&&$e(Wt=qe(Cn,z),rr);)z+=pe(Wt);return Pe=Cn.substring(Un,z),Wt===92&&(Pe+=Re()),Pn()}}function Bn(){if(oe===31){if(Cn.charCodeAt(z)===62)return Cn.charCodeAt(z+1)===62?Cn.charCodeAt(z+2)===61?(z+=3,oe=72):(z+=2,oe=49):Cn.charCodeAt(z+1)===61?(z+=2,oe=71):(z++,oe=48);if(Cn.charCodeAt(z)===61)return z++,oe=33}return oe}function K(){return e.Debug.assert(oe===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),z=Un+1,oe=63}function An(){if(oe===43||oe===68){for(var wt=Un+1,rr=!1,Wt=!1;;){if(wt>=tn){ke|=4,Ze(e.Diagnostics.Unterminated_regular_expression_literal);break}var Pr=Cn.charCodeAt(wt);if(f(Pr)){ke|=4,Ze(e.Diagnostics.Unterminated_regular_expression_literal);break}if(rr)rr=!1;else if(Pr===47&&!Wt){wt++;break}else Pr===91?Wt=!0:Pr===92?rr=!0:Pr===93&&(Wt=!1);wt++}for(;wt<tn&&$e(Cn.charCodeAt(wt),Ne);)wt++;z=wt,Pe=Cn.substring(Un,z),oe=13}return oe}function Fn(wt,rr,Wt,Pr){var ra=ln(e.trimStringStart(rr),Wt);return ra===void 0?wt:e.append(wt,{range:{pos:Pr,end:z},type:ra})}function ln(wt,rr){var Wt=rr.exec(wt);if(!Wt)return;switch(Wt[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}function Ln(wt){return e.Debug.assert(oe===19,"'reScanTemplateToken' should only be called on a '}'"),z=Un,oe=yt(wt)}function Xe(){return z=Un,oe=yt(!0)}function Dn(wt){return wt===void 0&&(wt=!0),z=Un=$n,oe=ht(wt)}function rn(){return oe===47?(z=Un+1,oe=29):oe}function qn(){return oe===80?(z=Un+1,oe=62):oe}function it(){return e.Debug.assert(oe===60,"'reScanQuestionToken' should only be called on a '??'"),z=Un+1,oe=57}function ht(wt){if(wt===void 0&&(wt=!0),$n=Un=z,z>=tn)return oe=1;var rr=Cn.charCodeAt(z);if(rr===60)return Cn.charCodeAt(z+1)===47?(z+=2,oe=30):(z++,oe=29);if(rr===123)return z++,oe=18;for(var Wt=0;z<tn&&!(rr=Cn.charCodeAt(z),rr===123);){if(rr===60){if(N(Cn,z))return z=D(Cn,z,Ze),oe=7;break}if(rr===62&&Ze(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,z,1),rr===125&&Ze(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,z,1),f(rr)&&Wt===0)Wt=-1;else{if(!wt&&f(rr)&&Wt>0)break;B(rr)||(Wt=z)}z++}return Pe=Cn.substring($n,z),Wt===-1?12:11}function Et(){if(ue(oe)){for(var wt=!1;z<tn;){var rr=Cn.charCodeAt(z);if(rr===45){Pe+="-",z++;continue}else if(rr===58&&!wt){Pe+=":",z++,wt=!0,oe=79;continue}var Wt=z;if(Pe+=Re(),z===Wt)break}Pe.slice(-1)===":"&&(Pe=Pe.slice(0,-1),z--)}return oe}function zt(){$n=z;switch(Cn.charCodeAt(z)){case 34:case 39:return Pe=ct(!0),oe=10;default:return gt()}}function fr(){return z=Un=$n,zt()}function br(){if($n=Un=z,ke=0,z>=tn)return oe=1;var wt=qe(Cn,z);z+=pe(wt);switch(wt){case 9:case 11:case 12:case 32:for(;z<tn&&A(Cn.charCodeAt(z));)z++;return oe=5;case 64:return oe=59;case 13:Cn.charCodeAt(z)===10&&z++;case 10:return ke|=1,oe=4;case 42:return oe=41;case 123:return oe=18;case 125:return oe=19;case 91:return oe=22;case 93:return oe=23;case 60:return oe=29;case 62:return oe=31;case 61:return oe=63;case 44:return oe=27;case 46:return oe=24;case 96:return oe=61;case 35:return oe=62;case 92:z--;var rr=Zn();if(rr>=0&&Se(rr,Ne))return z+=3,ke|=8,Pe=Ke()+Re(),oe=Pn();var Wt=Vn();return Wt>=0&&Se(Wt,Ne)?(z+=6,ke|=1024,Pe=String.fromCharCode(Wt)+Re(),oe=Pn()):(z++,oe=0)}if(Se(wt,Ne)){for(var Pr=wt;z<tn&&$e(Pr=qe(Cn,z),Ne)||Cn.charCodeAt(z)===45;)z+=pe(Pr);return Pe=Cn.substring(Un,z),Pr===92&&(Pe+=Re()),oe=Pn()}else return oe=0}function Jt(wt,rr){var Wt=z,Pr=$n,ra=Un,Lt=oe,xt=Pe,Yt=ke,Qt=wt();return(!Qt||rr)&&(z=Wt,$n=Pr,Un=ra,oe=Lt,Pe=xt,ke=Yt),Qt}function mr(wt,rr,Wt){var Pr=tn,ra=z,Lt=$n,xt=Un,Yt=oe,Qt=Pe,sr=ke,at=Qe;Or(Cn,wt,rr);var ea=Wt();return tn=Pr,z=ra,$n=Lt,Un=xt,oe=Yt,Pe=Qt,ke=sr,Qe=at,ea}function Ht(wt){return Jt(wt,!0)}function Xr(wt){return Jt(wt,!1)}function At(){return Cn}function Wr(){Qe=void 0}function Or(wt,rr,Wt){Cn=wt||"",tn=Wt===void 0?Cn.length:rr+Wt,Va(rr||0)}function Ja(wt){dn=wt}function qa(wt){Ne=wt}function eo(wt){xn=wt}function Va(wt){e.Debug.assert(wt>=0),z=wt,$n=wt,Un=wt,oe=0,Pe=void 0,ke=0}function la(wt){gn+=wt?1:-1}}e.createScanner=Le;var qe=String.prototype.codePointAt?function(Ne,je){return Ne.codePointAt(je)}:function(je,xn){var Wn=je.length;if(xn<0||xn>=Wn)return;var dn=je.charCodeAt(xn);if(dn>=55296&&dn<=56319&&Wn>xn+1){var vn=je.charCodeAt(xn+1);if(vn>=56320&&vn<=57343)return(dn-55296)*1024+vn-56320+65536}return dn};function pe(Ne){return Ne>=65536?2:1}function Me(Ne){if(e.Debug.assert(0<=Ne&&Ne<=1114111),Ne<=65535)return String.fromCharCode(Ne);var je=Math.floor((Ne-65536)/1024)+55296,xn=(Ne-65536)%1024+56320;return String.fromCharCode(je,xn)}var fn=String.fromCodePoint?function(Ne){return String.fromCodePoint(Ne)}:Me;function Ye(Ne){return fn(Ne)}e.utf16EncodeAsString=Ye})(mn||(mn={}));var mn;(function(e){function s(Ee){return e.pathIsRelative(Ee)||e.isRootedDiskPath(Ee)}e.isExternalModuleNameRelative=s;function ue(Ee){return e.sortAndDeduplicate(Ee,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=ue;function ee(Ee){switch(Ee.target){case 99:return"lib.esnext.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"}}e.getDefaultLibFileName=ee;function Y(Ee){return Ee.start+Ee.length}e.textSpanEnd=Y;function V(Ee){return Ee.length===0}e.textSpanIsEmpty=V;function ne(Ee,Mn){return Mn>=Ee.start&&Mn<Y(Ee)}e.textSpanContainsPosition=ne;function _e(Ee,Mn){return Mn>=Ee.pos&&Mn<=Ee.end}e.textRangeContainsPositionInclusive=_e;function O(Ee,Mn){return Mn.start>=Ee.start&&Y(Mn)<=Y(Ee)}e.textSpanContainsTextSpan=O;function w(Ee,Mn){return b(Ee,Mn)!==void 0}e.textSpanOverlapsWith=w;function b(Ee,Mn){var dr=Z(Ee,Mn);return dr&&dr.length===0?void 0:dr}e.textSpanOverlap=b;function de(Ee,Mn){return _(Ee.start,Ee.length,Mn.start,Mn.length)}e.textSpanIntersectsWithTextSpan=de;function fe(Ee,Mn,dr){return _(Ee.start,Ee.length,Mn,dr)}e.textSpanIntersectsWith=fe;function _(Ee,Mn,dr,Yr){var da=Ee+Mn,ya=dr+Yr;return dr<=da&&ya>=Ee}e.decodedTextSpanIntersectsWith=_;function U(Ee,Mn){return Mn<=Y(Ee)&&Mn>=Ee.start}e.textSpanIntersectsWithPosition=U;function Z(Ee,Mn){var dr=Math.max(Ee.start,Mn.start),Yr=Math.min(Y(Ee),Y(Mn));return dr<=Yr?W(dr,Yr):void 0}e.textSpanIntersection=Z;function v(Ee,Mn){if(Ee<0)throw new Error("start < 0");if(Mn<0)throw new Error("length < 0");return{start:Ee,length:Mn}}e.createTextSpan=v;function W(Ee,Mn){return v(Ee,Mn-Ee)}e.createTextSpanFromBounds=W;function x(Ee){return v(Ee.span.start,Ee.newLength)}e.textChangeRangeNewSpan=x;function $(Ee){return V(Ee.span)&&Ee.newLength===0}e.textChangeRangeIsUnchanged=$;function L(Ee,Mn){if(Mn<0)throw new Error("newLength < 0");return{span:Ee,newLength:Mn}}e.createTextChangeRange=L,e.unchangedTextChangeRange=L(v(0,0),0);function E(Ee){if(Ee.length===0)return e.unchangedTextChangeRange;if(Ee.length===1)return Ee[0];for(var Mn=Ee[0],dr=Mn.span.start,Yr=Y(Mn.span),da=dr+Mn.newLength,ya=1;ya<Ee.length;ya++){var bo=Ee[ya],On=dr,Bo=Yr,ps=da,ms=bo.span.start,_l=Y(bo.span),Gi=ms+bo.newLength;dr=Math.min(On,ms),Yr=Math.max(Bo,Bo+(_l-ps)),da=Math.max(Gi,Gi+(ps-_l))}return L(W(dr,Yr),da-dr)}e.collapseTextChangeRangesAcrossMultipleVersions=E;function ae(Ee){if(Ee&&Ee.kind===161){for(var Mn=Ee;Mn;Mn=Mn.parent)if(qa(Mn)||ra(Mn)||Mn.kind===256)return Mn}}e.getTypeParameterOwner=ae;function X(Ee,Mn){return e.hasSyntacticModifier(Ee,16476)&&Mn.kind===169}e.isParameterPropertyDeclaration=X;function ie(Ee){return Fa(Ee)?e.every(Ee.elements,le):!1}e.isEmptyBindingPattern=ie;function le(Ee){return e.isOmittedExpression(Ee)?!0:ie(Ee.name)}e.isEmptyBindingElement=le;function P(Ee){for(var Mn=Ee.parent;e.isBindingElement(Mn.parent);)Mn=Mn.parent.parent;return Mn.parent}e.walkUpBindingElementsAndPatterns=P;function I(Ee,Mn){e.isBindingElement(Ee)&&(Ee=P(Ee));var dr=Mn(Ee);return Ee.kind===252&&(Ee=Ee.parent),Ee&&Ee.kind===253&&(dr|=Mn(Ee),Ee=Ee.parent),Ee&&Ee.kind===235&&(dr|=Mn(Ee)),dr}function re(Ee){return I(Ee,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=re;function B(Ee){return I(Ee,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=B;function A(Ee){return I(Ee,function(Mn){return Mn.flags})}e.getCombinedNodeFlags=A,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function f(Ee,Mn,dr){var Yr=Ee.toLowerCase(),da=/^([a-z]+)([_\-]([a-z]+))?$/.exec(Yr);if(!da){dr&&dr.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var ya=da[1],bo=da[3];e.contains(e.supportedLocaleDirectories,Yr)&&!On(ya,bo,dr)&&On(ya,void 0,dr),e.setUILocale(Ee);function On(Bo,ps,ms){var _l=e.normalizePath(Mn.getExecutingFilePath()),Gi=e.getDirectoryPath(_l),qs=e.combinePaths(Gi,Bo);if(ps&&(qs=qs+"-"+ps),qs=Mn.resolvePath(e.combinePaths(qs,"diagnosticMessages.generated.json")),!Mn.fileExists(qs))return!1;var pl="";try{pl=Mn.readFile(qs)}catch(Ec){return ms&&ms.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,qs)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(pl))}catch(Ec){return ms&&ms.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,qs)),!1}return!0}}e.validateLocaleAndSetLanguage=f;function F(Ee,Mn){if(Ee)for(;Ee.original!==void 0;)Ee=Ee.original;return!Mn||Mn(Ee)?Ee:void 0}e.getOriginalNode=F;function g(Ee,Mn){for(;Ee;){var dr=Mn(Ee);if(dr==="quit")return;if(dr)return Ee;Ee=Ee.parent}return}e.findAncestor=g;function p(Ee){return(Ee.flags&8)===0}e.isParseTreeNode=p;function d(Ee,Mn){if(Ee===void 0||p(Ee))return Ee;for(Ee=Ee.original;Ee;){if(p(Ee))return!Mn||Mn(Ee)?Ee:void 0;Ee=Ee.original}}e.getParseTreeNode=d;function T(Ee){return Ee.length>=2&&Ee.charCodeAt(0)===95&&Ee.charCodeAt(1)===95?"_"+Ee:Ee}e.escapeLeadingUnderscores=T;function m(Ee){var Mn=Ee;return Mn.length>=3&&Mn.charCodeAt(0)===95&&Mn.charCodeAt(1)===95&&Mn.charCodeAt(2)===95?Mn.substr(1):Mn}e.unescapeLeadingUnderscores=m;function k(Ee){return m(Ee.escapedText)}e.idText=k;function N(Ee){return Ee.valueDeclaration&&br(Ee.valueDeclaration)?k(Ee.valueDeclaration.name):m(Ee.escapedName)}e.symbolName=N;function D(Ee){var Mn=Ee.parent.parent;if(!Mn)return;if(Ve(Mn))return R(Mn);switch(Mn.kind){case 235:if(Mn.declarationList&&Mn.declarationList.declarations[0])return R(Mn.declarationList.declarations[0]);break;case 236:var dr=Mn.expression;dr.kind===219&&dr.operatorToken.kind===63&&(dr=dr.left);switch(dr.kind){case 204:return dr.name;case 205:var Yr=dr.argumentExpression;if(e.isIdentifier(Yr))return Yr}break;case 210:return R(Mn.expression);case 248:{if(Ve(Mn.statement)||ai(Mn.statement))return R(Mn.statement);break}}}function R(Ee){var Mn=we(Ee);return Mn&&e.isIdentifier(Mn)?Mn:void 0}function me(Ee,Mn){return J(Ee)&&e.isIdentifier(Ee.name)&&k(Ee.name)===k(Mn)?!0:!!(e.isVariableStatement(Ee)&&e.some(Ee.declarationList.declarations,function(dr){return me(dr,Mn)}))}e.nodeHasName=me;function q(Ee){return Ee.name||D(Ee)}e.getNameOfJSDocTypedef=q;function J(Ee){return!!Ee.name}e.isNamedDeclaration=J;function C(Ee){switch(Ee.kind){case 79:return Ee;case 342:case 335:{var Mn=Ee.name;if(Mn.kind===159)return Mn.right;break}case 206:case 219:{var dr=Ee;switch(e.getAssignmentDeclarationKind(dr)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(dr.left);case 7:case 8:case 9:return dr.arguments[1];default:return}}case 340:return q(Ee);case 334:return D(Ee);case 269:{var Yr=Ee.expression;return e.isIdentifier(Yr)?Yr:void 0}case 205:var da=Ee;if(e.isBindableStaticElementAccessExpression(da))return da.argumentExpression}return Ee.name}e.getNonAssignedNameOfDeclaration=C;function we(Ee){return Ee===void 0?void 0:C(Ee)||(e.isFunctionExpression(Ee)||e.isArrowFunction(Ee)||e.isClassExpression(Ee)?Oe(Ee):void 0)}e.getNameOfDeclaration=we;function Oe(Ee){if(Ee.parent){if(e.isPropertyAssignment(Ee.parent)||e.isBindingElement(Ee.parent))return Ee.parent.name;if(e.isBinaryExpression(Ee.parent)&&Ee===Ee.parent.right){if(e.isIdentifier(Ee.parent.left))return Ee.parent.left;if(e.isAccessExpression(Ee.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(Ee.parent.left)}else if(e.isVariableDeclaration(Ee.parent)&&e.isIdentifier(Ee.parent.name))return Ee.parent.name}else return}e.getAssignedName=Oe;function te(Ee,Mn){if(Ee.name)if(e.isIdentifier(Ee.name)){var dr=Ee.name.escapedText;return ke(Ee.parent,Mn).filter(function(ya){return e.isJSDocParameterTag(ya)&&e.isIdentifier(ya.name)&&ya.name.escapedText===dr})}else{var Yr=Ee.parent.parameters.indexOf(Ee);e.Debug.assert(Yr>-1,"Parameters should always be in their parents' parameter list");var da=ke(Ee.parent,Mn).filter(e.isJSDocParameterTag);if(Yr<da.length)return[da[Yr]]}return e.emptyArray}function Te(Ee){return te(Ee,!1)}e.getJSDocParameterTags=Te;function be(Ee){return te(Ee,!0)}e.getJSDocParameterTagsNoCache=be;function Ce(Ee,Mn){var dr=Ee.name.escapedText;return ke(Ee.parent,Mn).filter(function(Yr){return e.isJSDocTemplateTag(Yr)&&Yr.typeParameters.some(function(da){return da.name.escapedText===dr})})}function Ue(Ee){return Ce(Ee,!1)}e.getJSDocTypeParameterTags=Ue;function Se(Ee){return Ce(Ee,!0)}e.getJSDocTypeParameterTagsNoCache=Se;function $e(Ee){return!!xe(Ee,e.isJSDocParameterTag)}e.hasJSDocParameterTags=$e;function ce(Ee){return xe(Ee,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=ce;function Le(Ee){return Ze(Ee,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Le;function qe(Ee){return xe(Ee,e.isJSDocClassTag)}e.getJSDocClassTag=qe;function pe(Ee){return xe(Ee,e.isJSDocPublicTag)}e.getJSDocPublicTag=pe;function Me(Ee){return xe(Ee,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=Me;function fn(Ee){return xe(Ee,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=fn;function Ye(Ee){return xe(Ee,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=Ye;function Ne(Ee){return xe(Ee,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=Ne;function je(Ee){return xe(Ee,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=je;function xn(Ee){return xe(Ee,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=xn;function Wn(Ee){return xe(Ee,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=Wn;function dn(Ee){return xe(Ee,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=dn;function vn(Ee){return xe(Ee,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=vn;function o(Ee){return xe(Ee,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=o;function Cn(Ee){return xe(Ee,e.isJSDocEnumTag)}e.getJSDocEnumTag=Cn;function z(Ee){return xe(Ee,e.isJSDocThisTag)}e.getJSDocThisTag=z;function tn(Ee){return xe(Ee,e.isJSDocReturnTag)}e.getJSDocReturnTag=tn;function $n(Ee){return xe(Ee,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=$n;function Un(Ee){var Mn=xe(Ee,e.isJSDocTypeTag);return Mn&&Mn.typeExpression&&Mn.typeExpression.type?Mn:void 0}e.getJSDocTypeTag=Un;function oe(Ee){var Mn=xe(Ee,e.isJSDocTypeTag);return!Mn&&e.isParameter(Ee)&&(Mn=e.find(Te(Ee),function(dr){return!!dr.typeExpression})),Mn&&Mn.typeExpression&&Mn.typeExpression.type}e.getJSDocType=oe;function Pe(Ee){var Mn=tn(Ee);if(Mn&&Mn.typeExpression)return Mn.typeExpression.type;var dr=Un(Ee);if(dr&&dr.typeExpression){var Yr=dr.typeExpression.type;if(e.isTypeLiteralNode(Yr)){var da=e.find(Yr.members,e.isCallSignatureDeclaration);return da&&da.type}if(e.isFunctionTypeNode(Yr)||e.isJSDocFunctionType(Yr))return Yr.type}}e.getJSDocReturnType=Pe;function ke(Ee,Mn){var dr=Ee.jsDocCache;if(dr===void 0||Mn){var Yr=e.getJSDocCommentsAndTags(Ee,Mn);e.Debug.assert(Yr.length<2||Yr[0]!==Yr[1]),dr=e.flatMap(Yr,function(da){return e.isJSDoc(da)?da.tags:da}),Mn||(Ee.jsDocCache=dr)}return dr}function Qe(Ee){return ke(Ee,!1)}e.getJSDocTags=Qe;function gn(Ee){return ke(Ee,!0)}e.getJSDocTagsNoCache=gn;function xe(Ee,Mn,dr){return e.find(ke(Ee,dr),Mn)}function Ze(Ee,Mn){return Qe(Ee).filter(Mn)}e.getAllJSDocTags=Ze;function wn(Ee,Mn){return Qe(Ee).filter(function(dr){return dr.kind===Mn})}e.getAllJSDocTagsOfKind=wn;function Be(Ee){return typeof Ee=="string"?Ee:Ee==null?void 0:Ee.map(function(Mn){return Mn.kind===316?Mn.text:"{@link "+(Mn.name?e.entityNameToString(Mn.name)+" ":"")+Mn.text+"}"}).join("")}e.getTextOfJSDocComment=Be;function hn(Ee){if(e.isJSDocSignature(Ee))return e.emptyArray;if(e.isJSDocTypeAlias(Ee))return e.Debug.assert(Ee.parent.kind===315),e.flatMap(Ee.parent.tags,function(Yr){return e.isJSDocTemplateTag(Yr)?Yr.typeParameters:void 0});if(Ee.typeParameters)return Ee.typeParameters;if(e.isInJSFile(Ee)){var Mn=e.getJSDocTypeParameterDeclarations(Ee);if(Mn.length)return Mn;var dr=oe(Ee);if(dr&&e.isFunctionTypeNode(dr)&&dr.typeParameters)return dr.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=hn;function Kn(Ee){return Ee.constraint?Ee.constraint:e.isJSDocTemplateTag(Ee.parent)&&Ee===Ee.parent.typeParameters[0]?Ee.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=Kn;function Je(Ee){return Ee.kind===79||Ee.kind===80}e.isMemberName=Je;function En(Ee){return Ee.kind===171||Ee.kind===170}e.isGetOrSetAccessorDeclaration=En;function Nn(Ee){return e.isPropertyAccessExpression(Ee)&&!!(Ee.flags&32)}e.isPropertyAccessChain=Nn;function ct(Ee){return e.isElementAccessExpression(Ee)&&!!(Ee.flags&32)}e.isElementAccessChain=ct;function yt(Ee){return e.isCallExpression(Ee)&&!!(Ee.flags&32)}e.isCallChain=yt;function Gt(Ee){var Mn=Ee.kind;return!!(Ee.flags&32)&&(Mn===204||Mn===205||Mn===206||Mn===228)}e.isOptionalChain=Gt;function $t(Ee){return Gt(Ee)&&!e.isNonNullExpression(Ee)&&!!Ee.questionDotToken}e.isOptionalChainRoot=$t;function Ke(Ee){return $t(Ee.parent)&&Ee.parent.expression===Ee}e.isExpressionOfOptionalChainRoot=Ke;function Vn(Ee){return!Gt(Ee.parent)||$t(Ee.parent)||Ee!==Ee.parent.expression}e.isOutermostOptionalChain=Vn;function Zn(Ee){return Ee.kind===219&&Ee.operatorToken.kind===60}e.isNullishCoalesce=Zn;function Re(Ee){return e.isTypeReferenceNode(Ee)&&e.isIdentifier(Ee.typeName)&&Ee.typeName.escapedText==="const"&&!Ee.typeArguments}e.isConstTypeReference=Re;function Pn(Ee){return e.skipOuterExpressions(Ee,8)}e.skipPartiallyEmittedExpressions=Pn;function rt(Ee){return e.isNonNullExpression(Ee)&&!!(Ee.flags&32)}e.isNonNullChain=rt;function Yn(Ee){return Ee.kind===244||Ee.kind===243}e.isBreakOrContinueStatement=Yn;function gt(Ee){return Ee.kind===272||Ee.kind===271}e.isNamedExportBindings=gt;function lt(Ee){switch(Ee.kind){case 297:case 298:return!0;default:return!1}}e.isUnparsedTextLike=lt;function Fe(Ee){return lt(Ee)||Ee.kind===295||Ee.kind===299}e.isUnparsedNode=Fe;function Bn(Ee){return Ee.kind===342||Ee.kind===335}e.isJSDocPropertyLikeTag=Bn;function K(Ee){return An(Ee.kind)}e.isNode=K;function An(Ee){return Ee>=159}e.isNodeKind=An;function Fn(Ee){return Ee>=0&&Ee<=158}e.isTokenKind=Fn;function ln(Ee){return Fn(Ee.kind)}e.isToken=ln;function Ln(Ee){return Ee.hasOwnProperty("pos")&&Ee.hasOwnProperty("end")}e.isNodeArray=Ln;function Xe(Ee){return 8<=Ee&&Ee<=14}e.isLiteralKind=Xe;function Dn(Ee){return Xe(Ee.kind)}e.isLiteralExpression=Dn;function rn(Ee){return 14<=Ee&&Ee<=17}e.isTemplateLiteralKind=rn;function qn(Ee){return rn(Ee.kind)}e.isTemplateLiteralToken=qn;function it(Ee){var Mn=Ee.kind;return Mn===16||Mn===17}e.isTemplateMiddleOrTemplateTail=it;function ht(Ee){return e.isImportSpecifier(Ee)||e.isExportSpecifier(Ee)}e.isImportOrExportSpecifier=ht;function Et(Ee){switch(Ee.kind){case 268:case 273:return Ee.parent.parent.isTypeOnly;case 266:return Ee.parent.isTypeOnly;case 265:case 263:return Ee.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=Et;function zt(Ee){return Ee.kind===10||rn(Ee.kind)}e.isStringTextContainingNode=zt;function fr(Ee){return e.isIdentifier(Ee)&&(Ee.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=fr;function br(Ee){return(e.isPropertyDeclaration(Ee)||xt(Ee))&&e.isPrivateIdentifier(Ee.name)}e.isPrivateIdentifierClassElementDeclaration=br;function Jt(Ee){return e.isPropertyAccessExpression(Ee)&&e.isPrivateIdentifier(Ee.name)}e.isPrivateIdentifierPropertyAccessExpression=Jt;function mr(Ee){switch(Ee){case 126:case 130:case 85:case 134:case 88:case 93:case 123:case 121:case 122:case 143:case 124:case 157:return!0}return!1}e.isModifierKind=mr;function Ht(Ee){return!!(e.modifierToFlag(Ee)&16476)}e.isParameterPropertyModifier=Ht;function Xr(Ee){return Ht(Ee)||Ee===124||Ee===157}e.isClassMemberModifier=Xr;function At(Ee){return mr(Ee.kind)}e.isModifier=At;function Wr(Ee){var Mn=Ee.kind;return Mn===159||Mn===79}e.isEntityName=Wr;function Or(Ee){var Mn=Ee.kind;return Mn===79||Mn===80||Mn===10||Mn===8||Mn===160}e.isPropertyName=Or;function Ja(Ee){var Mn=Ee.kind;return Mn===79||Mn===199||Mn===200}e.isBindingName=Ja;function qa(Ee){return!!Ee&&rr(Ee.kind)}e.isFunctionLike=qa;function eo(Ee){return!!Ee&&(rr(Ee.kind)||e.isClassStaticBlockDeclaration(Ee))}e.isFunctionLikeOrClassStaticBlockDeclaration=eo;function Va(Ee){return Ee&&wt(Ee.kind)}e.isFunctionLikeDeclaration=Va;function la(Ee){return Ee.kind===110||Ee.kind===95}e.isBooleanLiteral=la;function wt(Ee){switch(Ee){case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return!1}}function rr(Ee){switch(Ee){case 166:case 172:case 318:case 173:case 174:case 177:case 312:case 178:return!0;default:return wt(Ee)}}e.isFunctionLikeKind=rr;function Wt(Ee){return e.isSourceFile(Ee)||e.isModuleBlock(Ee)||e.isBlock(Ee)&&qa(Ee.parent)}e.isFunctionOrModuleBlock=Wt;function Pr(Ee){var Mn=Ee.kind;return Mn===169||Mn===165||Mn===167||Mn===170||Mn===171||Mn===174||Mn===168||Mn===232}e.isClassElement=Pr;function ra(Ee){return Ee&&(Ee.kind===255||Ee.kind===224)}e.isClassLike=ra;function Lt(Ee){return Ee&&(Ee.kind===170||Ee.kind===171)}e.isAccessor=Lt;function xt(Ee){switch(Ee.kind){case 167:case 170:case 171:return!0;default:return!1}}e.isMethodOrAccessor=xt;function Yt(Ee){var Mn=Ee.kind;return Mn===173||Mn===172||Mn===164||Mn===166||Mn===174}e.isTypeElement=Yt;function Qt(Ee){return Yt(Ee)||Pr(Ee)}e.isClassOrTypeElement=Qt;function sr(Ee){var Mn=Ee.kind;return Mn===291||Mn===292||Mn===293||Mn===167||Mn===170||Mn===171}e.isObjectLiteralElementLike=sr;function at(Ee){return e.isTypeNodeKind(Ee.kind)}e.isTypeNode=at;function ea(Ee){switch(Ee.kind){case 177:case 178:return!0}return!1}e.isFunctionOrConstructorTypeNode=ea;function Fa(Ee){if(Ee){var Mn=Ee.kind;return Mn===200||Mn===199}return!1}e.isBindingPattern=Fa;function li(Ee){var Mn=Ee.kind;return Mn===202||Mn===203}e.isAssignmentPattern=li;function Si(Ee){var Mn=Ee.kind;return Mn===201||Mn===225}e.isArrayBindingElement=Si;function Qr(Ee){switch(Ee.kind){case 252:case 162:case 201:return!0}return!1}e.isDeclarationBindingElement=Qr;function ci(Ee){return Mi(Ee)||xi(Ee)}e.isBindingOrAssignmentPattern=ci;function Mi(Ee){switch(Ee.kind){case 199:case 203:return!0}return!1}e.isObjectBindingOrAssignmentPattern=Mi;function ro(Ee){switch(Ee.kind){case 201:case 291:case 292:case 293:return!0}return!1}e.isObjectBindingOrAssignmentElement=ro;function xi(Ee){switch(Ee.kind){case 200:case 202:return!0}return!1}e.isArrayBindingOrAssignmentPattern=xi;function ui(Ee){var Mn=Ee.kind;return Mn===204||Mn===159||Mn===198}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=ui;function lo(Ee){var Mn=Ee.kind;return Mn===204||Mn===159}e.isPropertyAccessOrQualifiedName=lo;function xo(Ee){switch(Ee.kind){case 278:case 277:case 206:case 207:case 208:case 163:return!0;default:return!1}}e.isCallLikeExpression=xo;function Vi(Ee){return Ee.kind===206||Ee.kind===207}e.isCallOrNewExpression=Vi;function os(Ee){var Mn=Ee.kind;return Mn===221||Mn===14}e.isTemplateLiteral=os;function Qi(Ee){return mo(Pn(Ee).kind)}e.isLeftHandSideExpression=Qi;function mo(Ee){switch(Ee){case 204:case 205:case 207:case 206:case 276:case 277:case 280:case 208:case 202:case 210:case 203:case 224:case 211:case 79:case 13:case 8:case 9:case 10:case 14:case 221:case 95:case 104:case 108:case 110:case 106:case 228:case 229:case 100:return!0;default:return!1}}function Rs(Ee){return Ls(Pn(Ee).kind)}e.isUnaryExpression=Rs;function Ls(Ee){switch(Ee){case 217:case 218:case 213:case 214:case 215:case 216:case 209:return!0;default:return mo(Ee)}}function Ca(Ee){switch(Ee.kind){case 218:return!0;case 217:return Ee.operator===45||Ee.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=Ca;function ai(Ee){return Pi(Pn(Ee).kind)}e.isExpression=ai;function Pi(Ee){switch(Ee){case 220:case 222:case 212:case 219:case 223:case 227:case 225:case 346:case 345:return!0;default:return Ls(Ee)}}function wo(Ee){var Mn=Ee.kind;return Mn===209||Mn===227}e.isAssertionExpression=wo;function Lo(Ee){return e.isNotEmittedStatement(Ee)||e.isPartiallyEmittedExpression(Ee)}e.isNotEmittedOrPartiallyEmittedNode=Lo;function _s(Ee,Mn){switch(Ee.kind){case 240:case 241:case 242:case 238:case 239:return!0;case 248:return Mn&&_s(Ee.statement,Mn)}return!1}e.isIterationStatement=_s;function Oi(Ee){return e.isExportAssignment(Ee)||e.isExportDeclaration(Ee)}e.isScopeMarker=Oi;function Io(Ee){return e.some(Ee,Oi)}e.hasScopeMarker=Io;function fs(Ee){return!e.isAnyImportOrReExport(Ee)&&!e.isExportAssignment(Ee)&&!e.hasSyntacticModifier(Ee,1)&&!e.isAmbientModule(Ee)}e.needsScopeMarker=fs;function Mo(Ee){return e.isAnyImportOrReExport(Ee)||e.isExportAssignment(Ee)||e.hasSyntacticModifier(Ee,1)}e.isExternalModuleIndicator=Mo;function Ms(Ee){return Ee.kind===241||Ee.kind===242}e.isForInOrOfStatement=Ms;function yn(Ee){return e.isBlock(Ee)||ai(Ee)}e.isConciseBody=yn;function _t(Ee){return e.isBlock(Ee)}e.isFunctionBody=_t;function tr(Ee){return e.isVariableDeclarationList(Ee)||ai(Ee)}e.isForInitializer=tr;function oa(Ee){var Mn=Ee.kind;return Mn===260||Mn===259||Mn===79}e.isModuleBody=oa;function Za(Ee){var Mn=Ee.kind;return Mn===260||Mn===259}e.isNamespaceBody=Za;function Ga(Ee){var Mn=Ee.kind;return Mn===79||Mn===259}e.isJSDocNamespaceBody=Ga;function He(Ee){var Mn=Ee.kind;return Mn===267||Mn===266}e.isNamedImportBindings=He;function se(Ee){return Ee.kind===259||Ee.kind===258}e.isModuleOrEnumDeclaration=se;function pn(Ee){return Ee===212||Ee===201||Ee===255||Ee===224||Ee===168||Ee===169||Ee===258||Ee===294||Ee===273||Ee===254||Ee===211||Ee===170||Ee===265||Ee===263||Ee===268||Ee===256||Ee===283||Ee===167||Ee===166||Ee===259||Ee===262||Ee===266||Ee===272||Ee===162||Ee===291||Ee===165||Ee===164||Ee===171||Ee===292||Ee===257||Ee===161||Ee===252||Ee===340||Ee===333||Ee===342}function j(Ee){return Ee===254||Ee===274||Ee===255||Ee===256||Ee===257||Ee===258||Ee===259||Ee===264||Ee===263||Ee===270||Ee===269||Ee===262}function De(Ee){return Ee===244||Ee===243||Ee===251||Ee===238||Ee===236||Ee===234||Ee===241||Ee===242||Ee===240||Ee===237||Ee===248||Ee===245||Ee===247||Ee===249||Ee===250||Ee===235||Ee===239||Ee===246||Ee===344||Ee===348||Ee===347}function Ve(Ee){return Ee.kind===161?Ee.parent&&Ee.parent.kind!==339||e.isInJSFile(Ee):pn(Ee.kind)}e.isDeclaration=Ve;function un(Ee){return j(Ee.kind)}e.isDeclarationStatement=un;function jn(Ee){return De(Ee.kind)}e.isStatementButNotDeclaration=jn;function mt(Ee){var Mn=Ee.kind;return De(Mn)||j(Mn)||St(Ee)}e.isStatement=mt;function St(Ee){return Ee.kind!==233||Ee.parent!==void 0&&(Ee.parent.kind===250||Ee.parent.kind===290)?!1:!e.isFunctionBlock(Ee)}function ir(Ee){var Mn=Ee.kind;return De(Mn)||j(Mn)||Mn===233}e.isStatementOrBlock=ir;function _r(Ee){var Mn=Ee.kind;return Mn===275||Mn===159||Mn===79}e.isModuleReference=_r;function na(Ee){var Mn=Ee.kind;return Mn===108||Mn===79||Mn===204}e.isJsxTagNameExpression=na;function wa(Ee){var Mn=Ee.kind;return Mn===276||Mn===286||Mn===277||Mn===11||Mn===280}e.isJsxChild=wa;function za(Ee){var Mn=Ee.kind;return Mn===283||Mn===285}e.isJsxAttributeLike=za;function bi(Ee){var Mn=Ee.kind;return Mn===10||Mn===286}e.isStringLiteralOrJsxExpression=bi;function Xi(Ee){var Mn=Ee.kind;return Mn===278||Mn===277}e.isJsxOpeningLikeElement=Xi;function co(Ee){var Mn=Ee.kind;return Mn===287||Mn===288}e.isCaseOrDefaultClause=co;function Ss(Ee){return Ee.kind>=304&&Ee.kind<=342}e.isJSDocNode=Ss;function No(Ee){return Ee.kind===315||Ee.kind===314||Ee.kind===316||Jn(Ee)||Ks(Ee)||e.isJSDocTypeLiteral(Ee)||e.isJSDocSignature(Ee)}e.isJSDocCommentContainingNode=No;function Ks(Ee){return Ee.kind>=322&&Ee.kind<=342}e.isJSDocTag=Ks;function Js(Ee){return Ee.kind===171}e.isSetAccessor=Js;function gl(Ee){return Ee.kind===170}e.isGetAccessor=gl;function yl(Ee){var Mn=Ee.jsDoc;return!!Mn&&Mn.length>0}e.hasJSDocNodes=yl;function Ol(Ee){return!!Ee.type}e.hasType=Ol;function ac(Ee){return!!Ee.initializer}e.hasInitializer=ac;function vs(Ee){switch(Ee.kind){case 252:case 162:case 201:case 164:case 165:case 291:case 294:return!0;default:return!1}}e.hasOnlyExpressionInitializer=vs;function ic(Ee){return Ee.kind===283||Ee.kind===285||sr(Ee)}e.isObjectLiteralElement=ic;function Pl(Ee){return Ee.kind===176||Ee.kind===226}e.isTypeReferenceType=Pl;var cl=1073741823;function nl(Ee){for(var Mn=cl,dr=0,Yr=Ee;dr<Yr.length;dr++){var da=Yr[dr];if(!da.length)continue;for(var ya=0;ya<da.length&&ya<Mn&&e.isWhiteSpaceLike(da.charCodeAt(ya));ya++);if(ya<Mn&&(Mn=ya),Mn===0)return 0}return Mn===cl?void 0:Mn}e.guessIndentation=nl;function he(Ee){return Ee.kind===10||Ee.kind===14}e.isStringLiteralLike=he;function Jn(Ee){return Ee.kind===319||Ee.kind===320||Ee.kind===321}e.isJSDocLinkLike=Jn})(mn||(mn={}));var mn;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function s(c,Q){var sn=c.declarations;if(sn)for(var Rn=0,Ft=sn;Rn<Ft.length;Rn++){var qt=Ft[Rn];if(qt.kind===Q)return qt}return}e.getDeclarationOfKind=s;function ue(){return new e.Map}e.createUnderscoreEscapedMap=ue;function ee(c){return!!c&&!!c.size}e.hasEntries=ee;function Y(c){var Q=new e.Map;if(c)for(var sn=0,Rn=c;sn<Rn.length;sn++){var Ft=Rn[sn];Q.set(Ft.escapedName,Ft)}return Q}e.createSymbolTable=Y;function V(c){return(c.flags&33554432)!==0}e.isTransientSymbol=V;var ne=_e();function _e(){var c="",Q=function(sn){return c+=sn};return{getText:function(){return c},write:Q,rawWrite:Q,writeKeyword:Q,writeOperator:Q,writePunctuation:Q,writeSpace:Q,writeStringLiteral:Q,writeLiteral:Q,writeParameter:Q,writeProperty:Q,writeSymbol:function(sn,Rn){return Q(sn)},writeTrailingSemicolon:Q,writeComment:Q,getTextPos:function(){return c.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!c.length&&e.isWhiteSpaceLike(c.charCodeAt(c.length-1))},writeLine:function(){return c+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return c=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function O(c,Q){return c.configFilePath!==Q.configFilePath||w(c,Q)}e.changesAffectModuleResolution=O;function w(c,Q){return de(c,Q,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=w;function b(c,Q){return de(c,Q,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=b;function de(c,Q,sn){return c!==Q&&sn.some(function(Rn){return!Zg(ys(c,Rn),ys(Q,Rn))})}e.optionsHaveChanges=de;function fe(c,Q){for(;;){var sn=Q(c);if(sn==="quit")return;if(sn!==void 0)return sn;if(e.isSourceFile(c))return;c=c.parent}}e.forEachAncestor=fe;function _(c,Q){for(var sn=c.entries(),Rn=sn.next();!Rn.done;Rn=sn.next()){var Ft=Rn.value,qt=Ft[0],sa=Ft[1],Sa=Q(sa,qt);if(Sa)return Sa}return}e.forEachEntry=_;function U(c,Q){for(var sn=c.keys(),Rn=sn.next();!Rn.done;Rn=sn.next()){var Ft=Q(Rn.value);if(Ft)return Ft}return}e.forEachKey=U;function Z(c,Q){c.forEach(function(sn,Rn){Q.set(Rn,sn)})}e.copyEntries=Z;function v(c){var Q=ne.getText();try{return c(ne),ne.getText()}finally{ne.clear(),ne.writeKeyword(Q)}}e.usingSingleLineStringWriter=v;function W(c){return c.end-c.pos}e.getFullWidth=W;function x(c,Q){return c&&c.resolvedModules&&c.resolvedModules.get(Q)}e.getResolvedModule=x;function $(c,Q,sn){c.resolvedModules||(c.resolvedModules=new e.Map),c.resolvedModules.set(Q,sn)}e.setResolvedModule=$;function L(c,Q,sn){c.resolvedTypeReferenceDirectiveNames||(c.resolvedTypeReferenceDirectiveNames=new e.Map),c.resolvedTypeReferenceDirectiveNames.set(Q,sn)}e.setResolvedTypeReferenceDirective=L;function E(c,Q){return c.path===Q.path&&!c.prepend===!Q.prepend&&!c.circular===!Q.circular}e.projectReferenceIsEqualTo=E;function ae(c,Q){return c.isExternalLibraryImport===Q.isExternalLibraryImport&&c.extension===Q.extension&&c.resolvedFileName===Q.resolvedFileName&&c.originalPath===Q.originalPath&&X(c.packageId,Q.packageId)}e.moduleResolutionIsEqualTo=ae;function X(c,Q){return c===Q||!!c&&!!Q&&c.name===Q.name&&c.subModuleName===Q.subModuleName&&c.version===Q.version}function ie(c){var Q=c.name,sn=c.subModuleName,Rn=c.version,Ft=sn?Q+"/"+sn:Q;return Ft+"@"+Rn}e.packageIdToString=ie;function le(c,Q){return c.resolvedFileName===Q.resolvedFileName&&c.primary===Q.primary&&c.originalPath===Q.originalPath}e.typeDirectiveIsEqualTo=le;function P(c,Q,sn,Rn){e.Debug.assert(c.length===Q.length);for(var Ft=0;Ft<c.length;Ft++){var qt=Q[Ft],sa=sn&&sn.get(c[Ft]),Sa=sa?!qt||!Rn(sa,qt):qt;if(Sa)return!0}return!1}e.hasChangesInResolutions=P;function I(c){return re(c),(c.flags&262144)!==0}e.containsParseError=I;function re(c){if(!(c.flags&524288)){var Q=(c.flags&65536)!==0||e.forEachChild(c,I);Q&&(c.flags|=262144),c.flags|=524288}}function B(c){for(;c&&c.kind!==300;)c=c.parent;return c}e.getSourceFileOfNode=B;function A(c){return B(c.valueDeclaration||ke(c))}e.getSourceFileOfModule=A;function f(c){switch(c.kind){case 233:case 261:case 240:case 241:case 242:return!0}return!1}e.isStatementWithLocals=f;function F(c,Q){return e.Debug.assert(c>=0),e.getLineStarts(Q)[c]}e.getStartPositionOfLine=F;function g(c){var Q=B(c),sn=e.getLineAndCharacterOfPosition(Q,c.pos);return Q.fileName+"("+(sn.line+1)+","+(sn.character+1)+")"}e.nodePosToString=g;function p(c,Q){e.Debug.assert(c>=0);var sn=e.getLineStarts(Q),Rn=c,Ft=Q.text;if(Rn+1===sn.length)return Ft.length-1;var qt=sn[Rn],sa=sn[Rn+1]-1;for(e.Debug.assert(e.isLineBreak(Ft.charCodeAt(sa)));qt<=sa&&e.isLineBreak(Ft.charCodeAt(sa));)sa--;return sa}e.getEndLinePosition=p;function d(c,Q,sn){return!(sn&&sn(Q))&&!c.identifiers.has(Q)}e.isFileLevelUniqueName=d;function T(c){return c===void 0?!0:c.pos===c.end&&c.pos>=0&&c.kind!==1}e.nodeIsMissing=T;function m(c){return!T(c)}e.nodeIsPresent=m;function k(c,Q,sn){if(Q===void 0||Q.length===0)return c;for(var Rn=0;Rn<c.length&&sn(c[Rn]);++Rn);return c.splice.apply(c,Mt([Rn,0],Q,!1)),c}function N(c,Q,sn){if(Q===void 0)return c;for(var Rn=0;Rn<c.length&&sn(c[Rn]);++Rn);return c.splice(Rn,0,Q),c}function D(c){return Et(c)||!!(qe(c)&1048576)}function R(c,Q){return k(c,Q,Et)}e.insertStatementsAfterStandardPrologue=R;function me(c,Q){return k(c,Q,D)}e.insertStatementsAfterCustomPrologue=me;function q(c,Q){return N(c,Q,Et)}e.insertStatementAfterStandardPrologue=q;function J(c,Q){return N(c,Q,D)}e.insertStatementAfterCustomPrologue=J;function C(c,Q,sn){if(c.charCodeAt(Q+1)===47&&Q+2<sn&&c.charCodeAt(Q+2)===47){var Rn=c.substring(Q,sn);return!!(e.fullTripleSlashReferencePathRegEx.test(Rn)||e.fullTripleSlashAMDReferencePathRegEx.test(Rn)||Xr.test(Rn)||At.test(Rn))}return!1}e.isRecognizedTripleSlashComment=C;function we(c,Q){return c.charCodeAt(Q+1)===42&&c.charCodeAt(Q+2)===33}e.isPinnedComment=we;function Oe(c,Q){var sn=new e.Map(Q.map(function(sa){return[""+e.getLineAndCharacterOfPosition(c,sa.range.end).line,sa]})),Rn=new e.Map;return{getUnusedExpectations:Ft,markUsed:qt};function Ft(){return e.arrayFrom(sn.entries()).filter(function(sa){var Sa=sa[0],_i=sa[1];return _i.type===0&&!Rn.get(Sa)}).map(function(sa){var Sa=sa[0],_i=sa[1];return _i})}function qt(sa){return sn.has(""+sa)?(Rn.set(""+sa,!0),!0):!1}}e.createCommentDirectivesMap=Oe;function te(c,Q,sn){return T(c)?c.pos:e.isJSDocNode(c)||c.kind===11?e.skipTrivia((Q||B(c)).text,c.pos,!1,!0):sn&&e.hasJSDocNodes(c)?te(c.jsDoc[0],Q):c.kind===343&&c._children.length>0?te(c._children[0],Q,sn):e.skipTrivia((Q||B(c)).text,c.pos,!1,!1,Ve(c))}e.getTokenPosOfNode=te;function Te(c,Q){return T(c)||!c.decorators?te(c,Q):e.skipTrivia((Q||B(c)).text,c.decorators.end)}e.getNonDecoratorTokenPosOfNode=Te;function be(c,Q,sn){return sn===void 0&&(sn=!1),Se(c.text,Q,sn)}e.getSourceTextOfNodeFromSourceFile=be;function Ce(c){return!!e.findAncestor(c,e.isJSDocTypeExpression)}function Ue(c){return!!(e.isExportDeclaration(c)&&c.exportClause&&e.isNamespaceExport(c.exportClause)&&c.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=Ue;function Se(c,Q,sn){if(sn===void 0&&(sn=!1),T(Q))return"";var Rn=c.substring(sn?Q.pos:e.skipTrivia(c,Q.pos),Q.end);return Ce(Q)&&(Rn=Rn.split(/\r\n|\n|\r/).map(function(Ft){return e.trimStringStart(Ft.replace(/^\s*\*/,""))}).join(`
|
|
|
`)),Rn}e.getTextOfNodeFromSourceText=Se;function $e(c,Q){return Q===void 0&&(Q=!1),be(B(c),c,Q)}e.getTextOfNode=$e;function ce(c){return c.pos}function Le(c,Q){return e.binarySearch(c,Q,ce,e.compareValues)}e.indexOfNode=Le;function qe(c){var Q=c.emitNode;return Q&&Q.flags||0}e.getEmitFlags=qe;function pe(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}}e.getScriptTargetFeatures=pe;var Me;(function(c){c[c.None=0]="None",c[c.NeverAsciiEscape=1]="NeverAsciiEscape",c[c.JsxAttributeEscape=2]="JsxAttributeEscape",c[c.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",c[c.AllowNumericSeparator=8]="AllowNumericSeparator"})(Me=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function fn(c,Q,sn){var Rn;if(Ye(c,sn))return be(Q,c);switch(c.kind){case 10:{var Ft=sn&2?ks:sn&1||qe(c)&16777216?mc:Ku;return c.singleQuote?"'"+Ft(c.text,39)+"'":'"'+Ft(c.text,34)+'"'}case 14:case 15:case 16:case 17:{var Ft=sn&1||qe(c)&16777216?mc:Ku,qt=(Rn=c.rawText)!==null&&Rn!==void 0?Rn:cf(Ft(c.text,96));switch(c.kind){case 14:return"`"+qt+"`";case 15:return"`"+qt+"${";case 16:return"}"+qt+"${";case 17:return"}"+qt+"`"}break}case 8:case 9:return c.text;case 13:return sn&4&&c.isUnterminated?c.text+(c.text.charCodeAt(c.text.length-1)===92?" /":"/"):c.text}return e.Debug.fail("Literal kind '"+c.kind+"' not accounted for.")}e.getLiteralText=fn;function Ye(c,Q){return es(c)||!c.parent||Q&4&&c.isUnterminated?!1:e.isNumericLiteral(c)&&c.numericLiteralFlags&512?!!(Q&8):!e.isBigIntLiteral(c)}function Ne(c){return e.isString(c)?'"'+Ku(c)+'"':""+c}e.getTextOfConstantValue=Ne;function je(c){return e.getBaseFileName(c).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=je;function xn(c){return(e.getCombinedNodeFlags(c)&3)!==0||Wn(c)}e.isBlockOrCatchScoped=xn;function Wn(c){var Q=$o(c);return Q.kind===252&&Q.parent.kind===290}e.isCatchClauseVariableDeclarationOrBindingElement=Wn;function dn(c){return e.isModuleDeclaration(c)&&(c.name.kind===10||Un(c))}e.isAmbientModule=dn;function vn(c){return e.isModuleDeclaration(c)&&c.name.kind===10}e.isModuleWithStringLiteralName=vn;function o(c){return e.isModuleDeclaration(c)&&e.isStringLiteral(c.name)}e.isNonGlobalAmbientModule=o;function Cn(c){return e.isModuleDeclaration(c)||e.isIdentifier(c)}e.isEffectiveModuleDeclaration=Cn;function z(c){return tn(c.valueDeclaration)}e.isShorthandAmbientModuleSymbol=z;function tn(c){return!!c&&c.kind===259&&!c.body}function $n(c){return c.kind===300||c.kind===259||e.isFunctionLikeOrClassStaticBlockDeclaration(c)}e.isBlockScopedContainerTopLevel=$n;function Un(c){return!!(c.flags&1024)}e.isGlobalScopeAugmentation=Un;function oe(c){return dn(c)&&Pe(c)}e.isExternalModuleAugmentation=oe;function Pe(c){switch(c.parent.kind){case 300:return e.isExternalModule(c.parent);case 260:return dn(c.parent.parent)&&e.isSourceFile(c.parent.parent.parent)&&!e.isExternalModule(c.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=Pe;function ke(c){var Q;return(Q=c.declarations)===null||Q===void 0?void 0:Q.find(function(sn){return!oe(sn)&&!(e.isModuleDeclaration(sn)&&Un(sn))})}e.getNonAugmentationDeclaration=ke;function Qe(c,Q){return e.isExternalModule(c)||Q.isolatedModules||Xf(Q)===e.ModuleKind.CommonJS&&!!c.commonJsModuleIndicator}e.isEffectiveExternalModule=Qe;function gn(c,Q){switch(c.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return c.isDeclarationFile?!1:ga(Q,"alwaysStrict")||e.startsWithUseStrict(c.statements)?!0:e.isExternalModule(c)||Q.isolatedModules?Xf(Q)>=e.ModuleKind.ES2015?!0:!Q.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=gn;function xe(c,Q){switch(c.kind){case 300:case 261:case 290:case 259:case 240:case 241:case 242:case 169:case 167:case 170:case 171:case 254:case 211:case 212:case 165:case 168:return!0;case 233:return!e.isFunctionLikeOrClassStaticBlockDeclaration(Q)}return!1}e.isBlockScope=xe;function Ze(c){switch(c.kind){case 333:case 340:case 318:return!0;default:return e.assertType(c),wn(c)}}e.isDeclarationWithTypeParameters=Ze;function wn(c){switch(c.kind){case 172:case 173:case 166:case 174:case 177:case 178:case 312:case 255:case 224:case 256:case 257:case 339:case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return e.assertType(c),!1}}e.isDeclarationWithTypeParameterChildren=wn;function Be(c){switch(c.kind){case 264:case 263:return!0;default:return!1}}e.isAnyImportSyntax=Be;function hn(c){switch(c.kind){case 264:case 263:case 235:case 255:case 254:case 259:case 257:case 256:case 258:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=hn;function Kn(c){return Je(c)||e.isModuleDeclaration(c)||e.isImportTypeNode(c)||qn(c)}e.hasPossibleExternalModuleReference=Kn;function Je(c){return Be(c)||e.isExportDeclaration(c)}e.isAnyImportOrReExport=Je;function En(c){return e.findAncestor(c.parent,function(Q){return xe(Q,Q.parent)})}e.getEnclosingBlockScopeContainer=En;function Nn(c,Q){for(var sn=En(c);sn;)Q(sn),sn=En(sn)}e.forEachEnclosingBlockScopeContainer=Nn;function ct(c){return!c||W(c)===0?"(Missing)":$e(c)}e.declarationNameToString=ct;function yt(c){return c.declaration?ct(c.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=yt;function Gt(c){return c.kind===160&&!a(c.expression)}e.isComputedNonLiteralName=Gt;function $t(c){switch(c.kind){case 79:case 80:return c.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(c.text);case 160:return a(c.expression)?e.escapeLeadingUnderscores(c.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(c)}}e.getTextOfPropertyName=$t;function Ke(c){switch(c.kind){case 108:return"this";case 80:case 79:return W(c)===0?e.idText(c):$e(c);case 159:return Ke(c.left)+"."+Ke(c.right);case 204:return e.isIdentifier(c.name)||e.isPrivateIdentifier(c.name)?Ke(c.expression)+"."+Ke(c.name):e.Debug.assertNever(c.name);case 306:return Ke(c.left)+Ke(c.right);default:return e.Debug.assertNever(c)}}e.entityNameToString=Ke;function Vn(c,Q,sn,Rn,Ft,qt){var sa=B(c);return Re(sa,c,Q,sn,Rn,Ft,qt)}e.createDiagnosticForNode=Vn;function Zn(c,Q,sn,Rn,Ft,qt,sa){var Sa=e.skipTrivia(c.text,Q.pos);return ah(c,Sa,Q.end-Sa,sn,Rn,Ft,qt,sa)}e.createDiagnosticForNodeArray=Zn;function Re(c,Q,sn,Rn,Ft,qt,sa){var Sa=K(c,Q);return ah(c,Sa.start,Sa.length,sn,Rn,Ft,qt,sa)}e.createDiagnosticForNodeInSourceFile=Re;function Pn(c,Q,sn){var Rn=B(c),Ft=K(Rn,c);return Yn(Rn,Ft.start,Ft.length,Q,sn)}e.createDiagnosticForNodeFromMessageChain=Pn;function rt(c,Q,sn){e.Debug.assertGreaterThanOrEqual(Q,0),e.Debug.assertGreaterThanOrEqual(sn,0),c&&(e.Debug.assertLessThanOrEqual(Q,c.text.length),e.Debug.assertLessThanOrEqual(Q+sn,c.text.length))}function Yn(c,Q,sn,Rn,Ft){return rt(c,Q,sn),{file:c,start:Q,length:sn,code:Rn.code,category:Rn.category,messageText:Rn.next?Rn:Rn.messageText,relatedInformation:Ft}}e.createFileDiagnosticFromMessageChain=Yn;function gt(c,Q,sn){return{file:c,start:0,length:0,code:Q.code,category:Q.category,messageText:Q.next?Q:Q.messageText,relatedInformation:sn}}e.createDiagnosticForFileFromMessageChain=gt;function lt(c,Q,sn){return{file:c,start:Q.pos,length:Q.end-Q.pos,code:sn.code,category:sn.category,messageText:sn.message}}e.createDiagnosticForRange=lt;function Fe(c,Q){var sn=e.createScanner(c.languageVersion,!0,c.languageVariant,c.text,void 0,Q);sn.scan();var Rn=sn.getTokenPos();return e.createTextSpanFromBounds(Rn,sn.getTextPos())}e.getSpanOfTokenAtPosition=Fe;function Bn(c,Q){var sn=e.skipTrivia(c.text,Q.pos);if(Q.body&&Q.body.kind===233){var Rn=e.getLineAndCharacterOfPosition(c,Q.body.pos).line,Ft=e.getLineAndCharacterOfPosition(c,Q.body.end).line;if(Rn<Ft)return e.createTextSpan(sn,p(Rn,c)-sn+1)}return e.createTextSpanFromBounds(sn,Q.end)}function K(c,Q){var sn=Q;switch(Q.kind){case 300:var Rn=e.skipTrivia(c.text,0,!1);return Rn===c.text.length?e.createTextSpan(0,0):Fe(c,Rn);case 252:case 201:case 255:case 224:case 256:case 259:case 258:case 294:case 254:case 211:case 167:case 170:case 171:case 257:case 165:case 164:case 266:sn=Q.name;break;case 212:return Bn(c,Q);case 287:case 288:var Ft=e.skipTrivia(c.text,Q.pos),qt=Q.statements.length>0?Q.statements[0].pos:Q.end;return e.createTextSpanFromBounds(Ft,qt)}if(sn===void 0)return Fe(c,Q.pos);e.Debug.assert(!e.isJSDoc(sn));var sa=T(sn),Sa=sa||e.isJsxText(Q)?sn.pos:e.skipTrivia(c.text,sn.pos);return sa?(e.Debug.assert(Sa===sn.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Sa===sn.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(Sa>=sn.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Sa<=sn.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(Sa,sn.end)}e.getErrorSpanForNode=K;function An(c){return(c.externalModuleIndicator||c.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=An;function Fn(c){return c.scriptKind===6}e.isJsonSourceFile=Fn;function ln(c){return!!(e.getCombinedModifierFlags(c)&2048)}e.isEnumConst=ln;function Ln(c){return!!(e.getCombinedModifierFlags(c)&64&&!e.isParameterPropertyDeclaration(c,c.parent))}e.isDeclarationReadonly=Ln;function Xe(c){return!!(e.getCombinedNodeFlags(c)&2)}e.isVarConst=Xe;function Dn(c){return!!(e.getCombinedNodeFlags(c)&1)}e.isLet=Dn;function rn(c){return c.kind===206&&c.expression.kind===106}e.isSuperCall=rn;function qn(c){return c.kind===206&&c.expression.kind===100}e.isImportCall=qn;function it(c){return e.isMetaProperty(c)&&c.keywordToken===100&&c.name.escapedText==="meta"}e.isImportMeta=it;function ht(c){return e.isImportTypeNode(c)&&e.isLiteralTypeNode(c.argument)&&e.isStringLiteral(c.argument.literal)}e.isLiteralImportTypeNode=ht;function Et(c){return c.kind===236&&c.expression.kind===10}e.isPrologueDirective=Et;function zt(c){return!!(qe(c)&1048576)}e.isCustomPrologue=zt;function fr(c){return zt(c)&&e.isFunctionDeclaration(c)}e.isHoistedFunction=fr;function br(c){return e.isIdentifier(c.name)&&!c.initializer}function Jt(c){return zt(c)&&e.isVariableStatement(c)&&e.every(c.declarationList.declarations,br)}e.isHoistedVariableStatement=Jt;function mr(c,Q){return c.kind!==11?e.getLeadingCommentRanges(Q.text,c.pos):void 0}e.getLeadingCommentRangesOfNode=mr;function Ht(c,Q){var sn=c.kind===162||c.kind===161||c.kind===211||c.kind===212||c.kind===210||c.kind===252?e.concatenate(e.getTrailingCommentRanges(Q,c.pos),e.getLeadingCommentRanges(Q,c.pos)):e.getLeadingCommentRanges(Q,c.pos);return e.filter(sn,function(Rn){return Q.charCodeAt(Rn.pos+1)===42&&Q.charCodeAt(Rn.pos+2)===42&&Q.charCodeAt(Rn.pos+3)!==47})}e.getJSDocCommentRanges=Ht,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Xr=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var At=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function Wr(c){if(175<=c.kind&&c.kind<=198)return!0;switch(c.kind){case 129:case 153:case 145:case 156:case 148:case 132:case 149:case 146:case 151:case 142:return!0;case 114:return c.parent.kind!==215;case 226:return!wc(c);case 161:return c.parent.kind===193||c.parent.kind===188;case 79:(c.parent.kind===159&&c.parent.right===c||c.parent.kind===204&&c.parent.name===c)&&(c=c.parent),e.Debug.assert(c.kind===79||c.kind===159||c.kind===204,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 159:case 204:case 108:{var Q=c.parent;if(Q.kind===179)return!1;if(Q.kind===198)return!Q.isTypeOf;if(175<=Q.kind&&Q.kind<=198)return!0;switch(Q.kind){case 226:return!wc(Q);case 161:return c===Q.constraint;case 339:return c===Q.constraint;case 165:case 164:case 162:case 252:return c===Q.type;case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171:return c===Q.type;case 172:case 173:case 174:return c===Q.type;case 209:return c===Q.type;case 206:case 207:return e.contains(Q.typeArguments,c);case 208:return!1}}}return!1}e.isPartOfTypeNode=Wr;function Or(c,Q){for(;c;){if(c.kind===Q)return!0;c=c.parent}return!1}e.isChildOfNodeWithKind=Or;function Ja(c,Q){return sn(c);function sn(Rn){switch(Rn.kind){case 245:return Q(Rn);case 261:case 233:case 237:case 238:case 239:case 240:case 241:case 242:case 246:case 247:case 287:case 288:case 248:case 250:case 290:return e.forEachChild(Rn,sn)}}}e.forEachReturnStatement=Ja;function qa(c,Q){return sn(c);function sn(Rn){switch(Rn.kind){case 222:Q(Rn);var Ft=Rn.expression;Ft&&sn(Ft);return;case 258:case 256:case 259:case 257:return;default:if(e.isFunctionLike(Rn)){if(Rn.name&&Rn.name.kind===160){sn(Rn.name.expression);return}}else Wr(Rn)||e.forEachChild(Rn,sn)}}}e.forEachYieldExpression=qa;function eo(c){return c&&c.kind===181?c.elementType:c&&c.kind===176?e.singleOrUndefined(c.typeArguments):void 0}e.getRestParameterElementType=eo;function Va(c){switch(c.kind){case 256:case 255:case 224:case 180:return c.members;case 203:return c.properties}}e.getMembersOfDeclaration=Va;function la(c){if(c)switch(c.kind){case 201:case 294:case 162:case 291:case 165:case 164:case 292:case 252:return!0}return!1}e.isVariableLike=la;function wt(c){return la(c)||e.isAccessor(c)}e.isVariableLikeOrAccessor=wt;function rr(c){return c.parent.kind===253&&c.parent.parent.kind===235}e.isVariableDeclarationInVariableStatement=rr;function Wt(c){return e.isVariableDeclaration(c)?Xe(c)&&e.isIdentifier(c.name)&&rr(c):e.isPropertyDeclaration(c)?jf(c)&&pp(c):e.isPropertySignature(c)&&jf(c)}e.isValidESSymbolDeclaration=Wt;function Pr(c){switch(c.kind){case 167:case 166:case 169:case 170:case 171:case 254:case 211:return!0}return!1}e.introducesArgumentsExoticObject=Pr;function ra(c,Q){for(;;){if(Q&&Q(c),c.statement.kind!==248)return c.statement;c=c.statement}}e.unwrapInnermostStatementOfLabel=ra;function Lt(c){return c&&c.kind===233&&e.isFunctionLike(c.parent)}e.isFunctionBlock=Lt;function xt(c){return c&&c.kind===167&&c.parent.kind===203}e.isObjectLiteralMethod=xt;function Yt(c){return c.kind===167&&(c.parent.kind===203||c.parent.kind===224)}e.isObjectLiteralOrClassExpressionMethod=Yt;function Qt(c){return c&&c.kind===1}e.isIdentifierTypePredicate=Qt;function sr(c){return c&&c.kind===0}e.isThisTypePredicate=sr;function at(c,Q,sn){return c.properties.filter(function(Rn){if(Rn.kind===291){var Ft=$t(Rn.name);return Q===Ft||!!sn&&sn===Ft}return!1})}e.getPropertyAssignment=at;function ea(c,Q,sn){return e.firstDefined(at(c,Q),function(Rn){return e.isArrayLiteralExpression(Rn.initializer)?e.find(Rn.initializer.elements,function(Ft){return e.isStringLiteral(Ft)&&Ft.text===sn}):void 0})}e.getPropertyArrayElementValue=ea;function Fa(c){if(c&&c.statements.length){var Q=c.statements[0].expression;return e.tryCast(Q,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=Fa;function li(c,Q,sn){return e.firstDefined(Si(c,Q),function(Rn){return e.isArrayLiteralExpression(Rn.initializer)?e.find(Rn.initializer.elements,function(Ft){return e.isStringLiteral(Ft)&&Ft.text===sn}):void 0})}e.getTsConfigPropArrayElementValue=li;function Si(c,Q){var sn=Fa(c);return sn?at(sn,Q):e.emptyArray}e.getTsConfigPropArray=Si;function Qr(c){return e.findAncestor(c.parent,e.isFunctionLike)}e.getContainingFunction=Qr;function ci(c){return e.findAncestor(c.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=ci;function Mi(c){return e.findAncestor(c.parent,e.isClassLike)}e.getContainingClass=Mi;function ro(c){return e.findAncestor(c.parent,function(Q){return e.isClassLike(Q)||e.isFunctionLike(Q)?"quit":e.isClassStaticBlockDeclaration(Q)})}e.getContainingClassStaticBlock=ro;function xi(c){return e.findAncestor(c.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=xi;function ui(c,Q){for(e.Debug.assert(c.kind!==300);;){if(c=c.parent,!c)return e.Debug.fail();switch(c.kind){case 160:if(e.isClassLike(c.parent.parent))return c;c=c.parent;break;case 163:c.parent.kind===162&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break;case 212:if(!Q)continue;case 254:case 211:case 259:case 168:case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 172:case 173:case 174:case 258:case 300:return c}}}e.getThisContainer=ui;function lo(c){e.isIdentifier(c)&&(e.isClassDeclaration(c.parent)||e.isFunctionDeclaration(c.parent))&&c.parent.name===c&&(c=c.parent);var Q=ui(c,!0);return e.isSourceFile(Q)}e.isInTopLevelContext=lo;function xo(c){var Q=ui(c,!1);if(Q)switch(Q.kind){case 169:case 254:case 211:return Q}return}e.getNewTargetContainer=xo;function Vi(c,Q){for(;;){if(c=c.parent,!c)return c;switch(c.kind){case 160:c=c.parent;break;case 254:case 211:case 212:if(!Q)continue;case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 168:return c;case 163:c.parent.kind===162&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break}}}e.getSuperContainer=Vi;function os(c){if(c.kind===211||c.kind===212){for(var Q=c,sn=c.parent;sn.kind===210;)Q=sn,sn=sn.parent;if(sn.kind===206&&sn.expression===Q)return sn}}e.getImmediatelyInvokedFunctionExpression=os;function Qi(c){return c.kind===106||mo(c)}e.isSuperOrSuperProperty=Qi;function mo(c){var Q=c.kind;return(Q===204||Q===205)&&c.expression.kind===106}e.isSuperProperty=mo;function Rs(c){var Q=c.kind;return(Q===204||Q===205)&&c.expression.kind===108}e.isThisProperty=Rs;function Ls(c){var Q;return!!c&&e.isVariableDeclaration(c)&&((Q=c.initializer)===null||Q===void 0?void 0:Q.kind)===108}e.isThisInitializedDeclaration=Ls;function Ca(c){return!!c&&(e.isShorthandPropertyAssignment(c)||e.isPropertyAssignment(c))&&e.isBinaryExpression(c.parent.parent)&&c.parent.parent.operatorToken.kind===63&&c.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Ca;function ai(c){switch(c.kind){case 176:return c.typeName;case 226:return gc(c.expression)?c.expression:void 0;case 79:case 159:return c}return}e.getEntityNameFromTypeNode=ai;function Pi(c){switch(c.kind){case 208:return c.tag;case 278:case 277:return c.tagName;default:return c.expression}}e.getInvokedExpression=Pi;function wo(c,Q,sn){if(e.isNamedDeclaration(c)&&e.isPrivateIdentifier(c.name))return!1;switch(c.kind){case 255:return!0;case 165:return Q.kind===255;case 170:case 171:case 167:return c.body!==void 0&&Q.kind===255;case 162:return Q.body!==void 0&&(Q.kind===169||Q.kind===167||Q.kind===171)&&sn.kind===255}return!1}e.nodeCanBeDecorated=wo;function Lo(c,Q,sn){return c.decorators!==void 0&&wo(c,Q,sn)}e.nodeIsDecorated=Lo;function _s(c,Q,sn){return Lo(c,Q,sn)||Oi(c,Q)}e.nodeOrChildIsDecorated=_s;function Oi(c,Q){switch(c.kind){case 255:return e.some(c.members,function(sn){return _s(sn,c,Q)});case 167:case 171:case 169:return e.some(c.parameters,function(sn){return Lo(sn,c,Q)});default:return!1}}e.childIsDecorated=Oi;function Io(c){if(Lo(c))return!0;var Q=Rd(c);return!!Q&&Oi(Q,c)}e.classOrConstructorParameterIsDecorated=Io;function fs(c){var Q=c.parent;return Q.kind===278||Q.kind===277||Q.kind===279?Q.tagName===c:!1}e.isJSXTagName=fs;function Mo(c){switch(c.kind){case 106:case 104:case 110:case 95:case 13:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 227:case 209:case 228:case 210:case 211:case 224:case 212:case 215:case 213:case 214:case 217:case 218:case 219:case 220:case 223:case 221:case 225:case 276:case 277:case 280:case 222:case 216:case 229:return!0;case 159:for(;c.parent.kind===159;)c=c.parent;return c.parent.kind===179||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||fs(c);case 306:for(;e.isJSDocMemberName(c.parent);)c=c.parent;return c.parent.kind===179||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||fs(c);case 79:if(c.parent.kind===179||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||fs(c))return!0;case 8:case 9:case 10:case 14:case 108:return Ms(c);default:return!1}}e.isExpressionNode=Mo;function Ms(c){var Q=c.parent;switch(Q.kind){case 252:case 162:case 165:case 164:case 294:case 291:case 201:return Q.initializer===c;case 236:case 237:case 238:case 239:case 245:case 246:case 247:case 287:case 249:return Q.expression===c;case 240:var sn=Q;return sn.initializer===c&&sn.initializer.kind!==253||sn.condition===c||sn.incrementor===c;case 241:case 242:var Rn=Q;return Rn.initializer===c&&Rn.initializer.kind!==253||Rn.expression===c;case 209:case 227:return c===Q.expression;case 231:return c===Q.expression;case 160:return c===Q.expression;case 163:case 286:case 285:case 293:return!0;case 226:return Q.expression===c&&wc(Q);case 292:return Q.objectAssignmentInitializer===c;default:return Mo(Q)}}e.isInExpressionContext=Ms;function yn(c){for(;c.kind===159||c.kind===79;)c=c.parent;return c.kind===179}e.isPartOfTypeQuery=yn;function _t(c){return e.isNamespaceExport(c)&&!!c.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=_t;function tr(c){return c.kind===263&&c.moduleReference.kind===275}e.isExternalModuleImportEqualsDeclaration=tr;function oa(c){return e.Debug.assert(tr(c)),c.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=oa;function Za(c){return mt(c)&&h(c.initializer).arguments[0]}e.getExternalModuleRequireArgument=Za;function Ga(c){return c.kind===263&&c.moduleReference.kind!==275}e.isInternalModuleImportEqualsDeclaration=Ga;function He(c){return pn(c)}e.isSourceFileJS=He;function se(c){return!pn(c)}e.isSourceFileNotJS=se;function pn(c){return!!c&&!!(c.flags&131072)}e.isInJSFile=pn;function j(c){return!!c&&!!(c.flags&33554432)}e.isInJsonFile=j;function De(c){return!Fn(c)}e.isSourceFileNotJson=De;function Ve(c){return!!c&&!!(c.flags&4194304)}e.isInJSDoc=Ve;function un(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)&&c.typeName.escapedText==="Object"&&c.typeArguments&&c.typeArguments.length===2&&(c.typeArguments[0].kind===148||c.typeArguments[0].kind===145)}e.isJSDocIndexSignature=un;function jn(c,Q){if(c.kind!==206)return!1;var sn=c,Rn=sn.expression,Ft=sn.arguments;if(Rn.kind!==79||Rn.escapedText!=="require")return!1;if(Ft.length!==1)return!1;var qt=Ft[0];return!Q||e.isStringLiteralLike(qt)}e.isRequireCall=jn;function mt(c){return c.kind===201&&(c=c.parent.parent),e.isVariableDeclaration(c)&&!!c.initializer&&jn(h(c.initializer),!0)}e.isRequireVariableDeclaration=mt;function St(c){return e.isVariableStatement(c)&&c.declarationList.declarations.length>0&&e.every(c.declarationList.declarations,function(Q){return mt(Q)})}e.isRequireVariableStatement=St;function ir(c){return c===39||c===34}e.isSingleOrDoubleQuote=ir;function _r(c,Q){return be(Q,c).charCodeAt(0)===34}e.isStringDoubleQuoted=_r;function na(c){return e.isBinaryExpression(c)||ec(c)||e.isIdentifier(c)||e.isCallExpression(c)}e.isAssignmentDeclaration=na;function wa(c){return pn(c)&&c.initializer&&e.isBinaryExpression(c.initializer)&&(c.initializer.operatorToken.kind===56||c.initializer.operatorToken.kind===60)&&c.name&&gc(c.name)&&Js(c.name,c.initializer.left)?c.initializer.right:c.initializer}e.getEffectiveInitializer=wa;function za(c){var Q=wa(c);return Q&&co(Q,Xu(c.name))}e.getDeclaredExpandoInitializer=za;function bi(c,Q){return e.forEach(c.properties,function(sn){return e.isPropertyAssignment(sn)&&e.isIdentifier(sn.name)&&sn.name.escapedText==="value"&&sn.initializer&&co(sn.initializer,Q)})}function Xi(c){if(c&&c.parent&&e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63){var Q=Xu(c.parent.left);return co(c.parent.right,Q)||Ss(c.parent.left,c.parent.right,Q)}if(c&&e.isCallExpression(c)&&ic(c)){var sn=bi(c.arguments[2],c.arguments[1].text==="prototype");if(sn)return sn}}e.getAssignedExpandoInitializer=Xi;function co(c,Q){if(e.isCallExpression(c)){var sn=Li(c.expression);return sn.kind===211||sn.kind===212?c:void 0}if(c.kind===211||c.kind===224||c.kind===212)return c;if(e.isObjectLiteralExpression(c)&&(c.properties.length===0||Q))return c}e.getExpandoInitializer=co;function Ss(c,Q,sn){var Rn=e.isBinaryExpression(Q)&&(Q.operatorToken.kind===56||Q.operatorToken.kind===60)&&co(Q.right,sn);if(Rn&&Js(c,Q.left))return Rn}function No(c){var Q=e.isVariableDeclaration(c.parent)?c.parent.name:e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63?c.parent.left:void 0;return Q&&co(c.right,Xu(Q))&&gc(Q)&&Js(Q,c.left)}e.isDefaultedExpandoInitializer=No;function Ks(c){if(e.isBinaryExpression(c.parent)){var Q=(c.parent.operatorToken.kind===56||c.parent.operatorToken.kind===60)&&e.isBinaryExpression(c.parent.parent)?c.parent.parent:c.parent;if(Q.operatorToken.kind===63&&e.isIdentifier(Q.left))return Q.left}else if(e.isVariableDeclaration(c.parent))return c.parent.name}e.getNameOfExpando=Ks;function Js(c,Q){if(Gn(c)&&Gn(Q))return bt(c)===bt(Q);if(e.isIdentifier(c)&&Pl(Q)&&(Q.expression.kind===108||e.isIdentifier(Q.expression)&&(Q.expression.escapedText==="window"||Q.expression.escapedText==="self"||Q.expression.escapedText==="global"))){var sn=Ee(Q);return e.isPrivateIdentifier(sn)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Js(c,sn)}return Pl(c)&&Pl(Q)?da(c)===da(Q)&&Js(c.expression,Q.expression):!1}e.isSameEntityName=Js;function gl(c){for(;Bd(c,!0);)c=c.right;return c}e.getRightMostAssignedExpression=gl;function yl(c){return e.isIdentifier(c)&&c.escapedText==="exports"}e.isExportsIdentifier=yl;function Ol(c){return e.isIdentifier(c)&&c.escapedText==="module"}e.isModuleIdentifier=Ol;function ac(c){return(e.isPropertyAccessExpression(c)||cl(c))&&Ol(c.expression)&&da(c)==="exports"}e.isModuleExportsAccessExpression=ac;function vs(c){var Q=Mn(c);return Q===5||pn(c)?Q:0}e.getAssignmentDeclarationKind=vs;function ic(c){return e.length(c.arguments)===3&&e.isPropertyAccessExpression(c.expression)&&e.isIdentifier(c.expression.expression)&&e.idText(c.expression.expression)==="Object"&&e.idText(c.expression.name)==="defineProperty"&&a(c.arguments[1])&&Jn(c.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=ic;function Pl(c){return e.isPropertyAccessExpression(c)||cl(c)}e.isLiteralLikeAccess=Pl;function cl(c){return e.isElementAccessExpression(c)&&a(c.argumentExpression)}e.isLiteralLikeElementAccess=cl;function nl(c,Q){return e.isPropertyAccessExpression(c)&&(!Q&&c.expression.kind===108||e.isIdentifier(c.name)&&Jn(c.expression,!0))||he(c,Q)}e.isBindableStaticAccessExpression=nl;function he(c,Q){return cl(c)&&(!Q&&c.expression.kind===108||gc(c.expression)||nl(c.expression,!0))}e.isBindableStaticElementAccessExpression=he;function Jn(c,Q){return gc(c)||nl(c,Q)}e.isBindableStaticNameExpression=Jn;function Ee(c){return e.isPropertyAccessExpression(c)?c.name:c.argumentExpression}e.getNameOrArgument=Ee;function Mn(c){if(e.isCallExpression(c)){if(!ic(c))return 0;var Q=c.arguments[0];return yl(Q)||ac(Q)?8:nl(Q)&&da(Q)==="prototype"?9:7}return c.operatorToken.kind!==63||!ec(c.left)||dr(gl(c))?0:Jn(c.left.expression,!0)&&da(c.left)==="prototype"&&e.isObjectLiteralExpression(bo(c))?6:ya(c.left)}function dr(c){return e.isVoidExpression(c)&&e.isNumericLiteral(c.expression)&&c.expression.text==="0"}function Yr(c){if(e.isPropertyAccessExpression(c))return c.name;var Q=Li(c.argumentExpression);return e.isNumericLiteral(Q)||e.isStringLiteralLike(Q)?Q:c}e.getElementOrPropertyAccessArgumentExpressionOrName=Yr;function da(c){var Q=Yr(c);if(Q){if(e.isIdentifier(Q))return Q.escapedText;if(e.isStringLiteralLike(Q)||e.isNumericLiteral(Q))return e.escapeLeadingUnderscores(Q.text)}return}e.getElementOrPropertyAccessName=da;function ya(c){if(c.expression.kind===108)return 4;if(ac(c))return 2;if(Jn(c.expression,!0)){if(Xu(c.expression))return 3;for(var Q=c;!e.isIdentifier(Q.expression);)Q=Q.expression;var sn=Q.expression;if((sn.escapedText==="exports"||sn.escapedText==="module"&&da(Q)==="exports")&&nl(c))return 1;if(Jn(c,!0)||e.isElementAccessExpression(c)&&nn(c))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=ya;function bo(c){for(;e.isBinaryExpression(c.right);)c=c.right;return c.right}e.getInitializerOfBinaryExpression=bo;function On(c){return e.isBinaryExpression(c)&&vs(c)===3}e.isPrototypePropertyAssignment=On;function Bo(c){return pn(c)&&c.parent&&c.parent.kind===236&&(!e.isElementAccessExpression(c)||cl(c))&&!!e.getJSDocTypeTag(c.parent)}e.isSpecialPropertyDeclaration=Bo;function ps(c,Q){var sn=c.valueDeclaration;(!sn||!(Q.flags&8388608&&!(sn.flags&8388608))&&na(sn)&&!na(Q)||sn.kind!==Q.kind&&Cn(sn))&&(c.valueDeclaration=Q)}e.setValueDeclaration=ps;function ms(c){if(!c||!c.valueDeclaration)return!1;var Q=c.valueDeclaration;return Q.kind===254||e.isVariableDeclaration(Q)&&Q.initializer&&e.isFunctionLike(Q.initializer)}e.isFunctionSymbol=ms;function _l(c){var Q,sn,Rn;switch(c.kind){case 252:return c.initializer.arguments[0].text;case 264:return(Q=e.tryCast(c.moduleSpecifier,e.isStringLiteralLike))===null||Q===void 0?void 0:Q.text;case 263:return(Rn=e.tryCast((sn=e.tryCast(c.moduleReference,e.isExternalModuleReference))===null||sn===void 0?void 0:sn.expression,e.isStringLiteralLike))===null||Rn===void 0?void 0:Rn.text;default:e.Debug.assertNever(c)}}e.tryGetModuleSpecifierFromDeclaration=_l;function Gi(c){return qs(c)||e.Debug.failBadSyntaxKind(c.parent)}e.importFromModuleSpecifier=Gi;function qs(c){switch(c.parent.kind){case 264:case 270:return c.parent;case 275:return c.parent.parent;case 206:return qn(c.parent)||jn(c.parent,!1)?c.parent:void 0;case 194:return e.Debug.assert(e.isStringLiteral(c)),e.tryCast(c.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=qs;function pl(c){switch(c.kind){case 264:case 270:return c.moduleSpecifier;case 263:return c.moduleReference.kind===275?c.moduleReference.expression:void 0;case 198:return ht(c)?c.argument.literal:void 0;case 206:return c.arguments[0];case 259:return c.name.kind===10?c.name:void 0;default:return e.Debug.assertNever(c)}}e.getExternalModuleName=pl;function Ec(c){switch(c.kind){case 264:return c.importClause&&e.tryCast(c.importClause.namedBindings,e.isNamespaceImport);case 263:return c;case 270:return c.exportClause&&e.tryCast(c.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(c)}}e.getNamespaceDeclarationNode=Ec;function lc(c){return c.kind===264&&!!c.importClause&&!!c.importClause.name}e.isDefaultImport=lc;function Pc(c,Q){if(c.name){var sn=Q(c);if(sn)return sn}if(c.namedBindings){var sn=e.isNamespaceImport(c.namedBindings)?Q(c.namedBindings):e.forEach(c.namedBindings.elements,Q);if(sn)return sn}}e.forEachImportClauseDeclaration=Pc;function oc(c){if(c)switch(c.kind){case 162:case 167:case 166:case 292:case 291:case 165:case 164:return c.questionToken!==void 0}return!1}e.hasQuestionToken=oc;function au(c){var Q=e.isJSDocFunctionType(c)?e.firstOrUndefined(c.parameters):void 0,sn=e.tryCast(Q&&Q.name,e.isIdentifier);return!!sn&&sn.escapedText==="new"}e.isJSDocConstructSignature=au;function cc(c){return c.kind===340||c.kind===333||c.kind===334}e.isJSDocTypeAlias=cc;function Zl(c){return cc(c)||e.isTypeAliasDeclaration(c)}e.isTypeAlias=Zl;function kn(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&c.expression.operatorToken.kind===63?gl(c.expression):void 0}function ot(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&vs(c.expression)!==0&&e.isBinaryExpression(c.expression.right)&&(c.expression.right.operatorToken.kind===56||c.expression.right.operatorToken.kind===60)?c.expression.right.right:void 0}function Nt(c){switch(c.kind){case 235:var Q=or(c);return Q&&Q.initializer;case 165:return c.initializer;case 291:return c.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Nt;function or(c){return e.isVariableStatement(c)?e.firstOrUndefined(c.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=or;function Sr(c){return e.isModuleDeclaration(c)&&c.body&&c.body.kind===259?c.body:void 0}function Er(c,Q){var sn;la(c)&&e.hasInitializer(c)&&e.hasJSDocNodes(c.initializer)&&(sn=e.append(sn,e.last(c.initializer.jsDoc)));for(var Rn=c;Rn&&Rn.parent;){if(e.hasJSDocNodes(Rn)&&(sn=e.append(sn,e.last(Rn.jsDoc))),Rn.kind===162){sn=e.addRange(sn,(Q?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Rn));break}if(Rn.kind===161){sn=e.addRange(sn,(Q?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Rn));break}Rn=Gr(Rn)}return sn||e.emptyArray}e.getJSDocCommentsAndTags=Er;function Gr(c){var Q=c.parent;if(Q.kind===291||Q.kind===269||Q.kind===165||Q.kind===236&&c.kind===204||Q.kind===245||Sr(Q)||e.isBinaryExpression(c)&&c.operatorToken.kind===63)return Q;if(Q.parent&&(or(Q.parent)===c||e.isBinaryExpression(Q)&&Q.operatorToken.kind===63))return Q.parent;if(Q.parent&&Q.parent.parent&&(or(Q.parent.parent)||Nt(Q.parent.parent)===c||ot(Q.parent.parent)))return Q.parent.parent}e.getNextJSDocCommentLocation=Gr;function $r(c){if(c.symbol)return c.symbol;if(!e.isIdentifier(c.name))return;var Q=c.name.escapedText,sn=zr(c);if(!sn)return;var Rn=e.find(sn.parameters,function(Ft){return Ft.name.kind===79&&Ft.name.escapedText===Q});return Rn&&Rn.symbol}e.getParameterSymbolFromJSDoc=$r;function zr(c){var Q=wi(c);return Q&&e.isFunctionLike(Q)?Q:void 0}e.getHostSignatureFromJSDoc=zr;function wi(c){var Q=Ta(c);if(Q)return ot(Q)||kn(Q)||Nt(Q)||or(Q)||Sr(Q)||Q}e.getEffectiveJSDocHost=wi;function Ta(c){var Q=Oa(c);if(!Q)return;var sn=Q.parent;if(sn&&sn.jsDoc&&Q===e.lastOrUndefined(sn.jsDoc))return sn}e.getJSDocHost=Ta;function Oa(c){return e.findAncestor(c.parent,e.isJSDoc)}e.getJSDocRoot=Oa;function ji(c){var Q=c.name.escapedText,sn=c.parent.parent.parent.typeParameters;return sn&&e.find(sn,function(Rn){return Rn.name.escapedText===Q})}e.getTypeParameterFromJsDoc=ji;function Ri(c){var Q=e.lastOrUndefined(c.parameters);return!!Q&&ye(Q)}e.hasRestParameter=Ri;function ye(c){var Q=e.isJSDocParameterTag(c)?c.typeExpression&&c.typeExpression.type:c.type;return c.dotDotDotToken!==void 0||!!Q&&Q.kind===313}e.isRestParameter=ye;function cn(c){return!!c.typeArguments}e.hasTypeArguments=cn;var Sn;(function(c){c[c.None=0]="None",c[c.Definite=1]="Definite",c[c.Compound=2]="Compound"})(Sn=e.AssignmentKind||(e.AssignmentKind={}));function Tt(c){for(var Q=c.parent;;){switch(Q.kind){case 219:var sn=Q.operatorToken.kind;return Gd(sn)&&Q.left===c?sn===63||jc(sn)?1:2:0;case 217:case 218:var Rn=Q.operator;return Rn===45||Rn===46?2:0;case 241:case 242:return Q.initializer===c?1:0;case 210:case 202:case 223:case 228:c=Q;break;case 293:c=Q.parent;break;case 292:if(Q.name!==c)return 0;c=Q.parent;break;case 291:if(Q.name===c)return 0;c=Q.parent;break;default:return 0}Q=c.parent}}e.getAssignmentTargetKind=Tt;function Vt(c){return Tt(c)!==0}e.isAssignmentTarget=Vt;function Zr(c){switch(c.kind){case 233:case 235:case 246:case 237:case 247:case 261:case 287:case 288:case 248:case 240:case 241:case 242:case 238:case 239:case 250:case 290:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=Zr;function Da(c){return e.isFunctionExpression(c)||e.isArrowFunction(c)||e.isMethodOrAccessor(c)||e.isFunctionDeclaration(c)||e.isConstructorDeclaration(c)}e.isValueSignatureDeclaration=Da;function gi(c,Q){for(;c&&c.kind===Q;)c=c.parent;return c}function Eo(c){return gi(c,189)}e.walkUpParenthesizedTypes=Eo;function Fo(c){return gi(c,210)}e.walkUpParenthesizedExpressions=Fo;function bs(c){for(var Q;c&&c.kind===189;)Q=c,c=c.parent;return[Q,c]}e.walkUpParenthesizedTypesAndGetParentAndChild=bs;function Li(c){return e.skipOuterExpressions(c,1)}e.skipParentheses=Li;function Uo(c){return c.kind!==204&&c.kind!==205?!1:(c=Fo(c.parent),c&&c.kind===213)}e.isDeleteTarget=Uo;function Hn(c,Q){for(;c;){if(c===Q)return!0;c=c.parent}return!1}e.isNodeDescendantOf=Hn;function Zo(c){return!e.isSourceFile(c)&&!e.isBindingPattern(c)&&e.isDeclaration(c.parent)&&c.parent.name===c}e.isDeclarationName=Zo;function Ds(c){var Q=c.parent;switch(c.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(Q))return Q.parent;case 79:if(e.isDeclaration(Q))return Q.name===c?Q:void 0;if(e.isQualifiedName(Q)){var sn=Q.parent;return e.isJSDocParameterTag(sn)&&sn.name===Q?sn:void 0}else{var Rn=Q.parent;return e.isBinaryExpression(Rn)&&vs(Rn)!==0&&(Rn.left.symbol||Rn.symbol)&&e.getNameOfDeclaration(Rn)===c?Rn:void 0}case 80:return e.isDeclaration(Q)&&Q.name===c?Q:void 0;default:return}}e.getDeclarationFromName=Ds;function Vs(c){return a(c)&&c.parent.kind===160&&e.isDeclaration(c.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Vs;function iu(c){var Q=c.parent;switch(Q.kind){case 165:case 164:case 167:case 166:case 170:case 171:case 294:case 291:case 204:return Q.name===c;case 159:return Q.right===c;case 201:case 268:return Q.propertyName===c;case 273:case 283:return!0}return!1}e.isIdentifierName=iu;function fc(c){return c.kind===263||c.kind===262||c.kind===265&&!!c.name||c.kind===266||c.kind===272||c.kind===268||c.kind===273||c.kind===269&&tl(c)||e.isBinaryExpression(c)&&vs(c)===2&&tl(c)||e.isPropertyAccessExpression(c)&&e.isBinaryExpression(c.parent)&&c.parent.left===c&&c.parent.operatorToken.kind===63&&oo(c.parent.right)||c.kind===292||c.kind===291&&oo(c.initializer)}e.isAliasSymbolDeclaration=fc;function ou(c){switch(c.parent.kind){case 265:case 268:case 266:case 273:case 269:case 263:return c.parent;case 159:do c=c.parent;while(c.parent.kind===159);return ou(c)}}e.getAliasDeclarationFromName=ou;function oo(c){return gc(c)||e.isClassExpression(c)}e.isAliasableExpression=oo;function tl(c){var Q=su(c);return oo(Q)}e.exportAssignmentIsAlias=tl;function su(c){return e.isExportAssignment(c)?c.expression:c.right}e.getExportAssignmentExpression=su;function Au(c){return c.kind===292?c.name:c.kind===291?c.initializer:c.parent.right}e.getPropertyAssignmentAliasLikeExpression=Au;function lu(c){var Q=Du(c);if(Q&&pn(c)){var sn=e.getJSDocAugmentsTag(c);if(sn)return sn.class}return Q}e.getEffectiveBaseTypeNode=lu;function Du(c){var Q=ad(c.heritageClauses,94);return Q&&Q.types.length>0?Q.types[0]:void 0}e.getClassExtendsHeritageElement=Du;function cu(c){if(pn(c))return e.getJSDocImplementsTags(c).map(function(sn){return sn.class});var Q=ad(c.heritageClauses,117);return Q==null?void 0:Q.types}e.getEffectiveImplementsTypeNodes=cu;function Of(c){return e.isInterfaceDeclaration(c)?Wl(c)||e.emptyArray:e.isClassLike(c)&&e.concatenate(e.singleElementArray(lu(c)),cu(c))||e.emptyArray}e.getAllSuperTypeNodes=Of;function Wl(c){var Q=ad(c.heritageClauses,94);return Q?Q.types:void 0}e.getInterfaceBaseTypeNodes=Wl;function ad(c,Q){if(c)for(var sn=0,Rn=c;sn<Rn.length;sn++){var Ft=Rn[sn];if(Ft.token===Q)return Ft}return}e.getHeritageClause=ad;function id(c,Q){for(;c;){if(c.kind===Q)return c;c=c.parent}return}e.getAncestor=id;function $a(c){return 81<=c&&c<=158}e.isKeyword=$a;function pa(c){return 126<=c&&c<=158}e.isContextualKeyword=pa;function Tc(c){return $a(c)&&!pa(c)}e.isNonContextualKeyword=Tc;function Vo(c){return 117<=c&&c<=125}e.isFutureReservedKeyword=Vo;function yi(c){var Q=e.stringToToken(c);return Q!==void 0&&Tc(Q)}e.isStringANonContextualKeyword=yi;function pc(c){var Q=e.stringToToken(c);return Q!==void 0&&$a(Q)}e.isStringAKeyword=pc;function rl(c){var Q=c.originalKeywordKind;return!!Q&&!pa(Q)}e.isIdentifierANonContextualKeyword=rl;function Zi(c){return 2<=c&&c<=7}e.isTrivia=Zi;var vl;(function(c){c[c.Normal=0]="Normal",c[c.Generator=1]="Generator",c[c.Async=2]="Async",c[c.Invalid=4]="Invalid",c[c.AsyncGenerator=3]="AsyncGenerator"})(vl=e.FunctionFlags||(e.FunctionFlags={}));function al(c){if(!c)return 4;var Q=0;switch(c.kind){case 254:case 211:case 167:c.asteriskToken&&(Q|=1);case 212:sl(c,256)&&(Q|=2);break}return c.body||(Q|=4),Q}e.getFunctionFlags=al;function Cu(c){switch(c.kind){case 254:case 211:case 212:case 167:return c.body!==void 0&&c.asteriskToken===void 0&&sl(c,256)}return!1}e.isAsyncFunction=Cu;function a(c){return e.isStringLiteralLike(c)||e.isNumericLiteral(c)}e.isStringOrNumericLiteralLike=a;function H(c){return e.isPrefixUnaryExpression(c)&&(c.operator===39||c.operator===40)&&e.isNumericLiteral(c.operand)}e.isSignedNumericLiteral=H;function Ae(c){var Q=e.getNameOfDeclaration(c);return!!Q&&nn(Q)}e.hasDynamicName=Ae;function nn(c){if(!(c.kind===160||c.kind===205))return!1;var Q=e.isElementAccessExpression(c)?Li(c.argumentExpression):c.expression;return!a(Q)&&!H(Q)}e.isDynamicName=nn;function In(c){switch(c.kind){case 79:case 80:return c.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(c.text);case 160:var Q=c.expression;return a(Q)?e.escapeLeadingUnderscores(Q.text):H(Q)?Q.operator===40?e.tokenToString(Q.operator)+Q.operand.text:Q.operand.text:void 0;default:return e.Debug.assertNever(c)}}e.getPropertyNameForPropertyNameNode=In;function Gn(c){switch(c.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=Gn;function bt(c){return e.isMemberName(c)?e.idText(c):c.text}e.getTextOfIdentifierOrLiteral=bt;function pt(c){return e.isMemberName(c)?c.escapedText:e.escapeLeadingUnderscores(c.text)}e.getEscapedTextOfIdentifierOrLiteral=pt;function It(c){return"__@"+e.getSymbolId(c)+"@"+c.escapedName}e.getPropertyNameForUniqueESSymbol=It;function Pt(c,Q){return"__#"+e.getSymbolId(c)+"@"+Q}e.getSymbolNameForPrivateIdentifier=Pt;function er(c){return e.startsWith(c.escapedName,"__@")}e.isKnownSymbol=er;function jr(c){return e.startsWith(c.escapedName,"__#")}e.isPrivateIdentifierSymbol=jr;function Qa(c){return c.kind===79&&c.escapedText==="Symbol"}e.isESSymbolIdentifier=Qa;function Wi(c){return c.escapedText==="push"||c.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=Wi;function uo(c){var Q=$o(c);return Q.kind===162}e.isParameterDeclaration=uo;function $o(c){for(;c.kind===201;)c=c.parent.parent;return c}e.getRootDeclaration=$o;function hs(c){var Q=c.kind;return Q===169||Q===211||Q===254||Q===212||Q===167||Q===170||Q===171||Q===259||Q===300}e.nodeStartsNewLexicalEnvironment=hs;function es(c){return Rm(c.pos)||Rm(c.end)}e.nodeIsSynthesized=es;function qr(c){return e.getParseTreeNode(c,e.isSourceFile)||c}e.getOriginalSourceFile=qr;var pi;(function(c){c[c.Left=0]="Left",c[c.Right=1]="Right"})(pi=e.Associativity||(e.Associativity={}));function Ya(c){var Q=Ci(c),sn=c.kind===207&&c.arguments!==void 0;return ki(c.kind,Q,sn)}e.getExpressionAssociativity=Ya;function ki(c,Q,sn){switch(c){case 207:return sn?0:1;case 217:case 214:case 215:case 213:case 216:case 220:case 222:return 1;case 219:switch(Q){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}e.getOperatorAssociativity=ki;function Hi(c){var Q=Ci(c),sn=c.kind===207&&c.arguments!==void 0;return Gs(c.kind,Q,sn)}e.getExpressionPrecedence=Hi;function Ci(c){return c.kind===219?c.operatorToken.kind:c.kind===217||c.kind===218?c.operator:c.kind}e.getOperator=Ci;var jo;(function(c){c[c.Comma=0]="Comma",c[c.Spread=1]="Spread",c[c.Yield=2]="Yield",c[c.Assignment=3]="Assignment",c[c.Conditional=4]="Conditional",c[c.Coalesce=4]="Coalesce",c[c.LogicalOR=5]="LogicalOR",c[c.LogicalAND=6]="LogicalAND",c[c.BitwiseOR=7]="BitwiseOR",c[c.BitwiseXOR=8]="BitwiseXOR",c[c.BitwiseAND=9]="BitwiseAND",c[c.Equality=10]="Equality",c[c.Relational=11]="Relational",c[c.Shift=12]="Shift",c[c.Additive=13]="Additive",c[c.Multiplicative=14]="Multiplicative",c[c.Exponentiation=15]="Exponentiation",c[c.Unary=16]="Unary",c[c.Update=17]="Update",c[c.LeftHandSide=18]="LeftHandSide",c[c.Member=19]="Member",c[c.Primary=20]="Primary",c[c.Highest=20]="Highest",c[c.Lowest=0]="Lowest",c[c.Invalid=-1]="Invalid"})(jo=e.OperatorPrecedence||(e.OperatorPrecedence={}));function Gs(c,Q,sn){switch(c){case 346:return 0;case 223:return 1;case 222:return 2;case 220:return 4;case 219:switch(Q){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return Cs(Q)}case 209:case 228:case 217:case 214:case 215:case 213:case 216:return 16;case 218:return 17;case 206:return 18;case 207:return sn?19:18;case 208:case 204:case 205:case 229:return 19;case 227:return 11;case 108:case 106:case 79:case 104:case 110:case 95:case 8:case 9:case 10:case 202:case 203:case 211:case 212:case 224:case 13:case 14:case 221:case 210:case 225:case 276:case 277:case 280:return 20;default:return-1}}e.getOperatorPrecedence=Gs;function Cs(c){switch(c){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=Cs;function ho(c){return e.filter(c,function(Q){switch(Q.kind){case 286:return!!Q.expression;case 11:return!Q.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=ho;function qc(){var c=[],Q=[],sn=new e.Map,Rn=!1;return{add:qt,lookup:Ft,getGlobalDiagnostics:sa,getDiagnostics:Sa};function Ft(_i){var Ai;if(_i.file?Ai=sn.get(_i.file.fileName):Ai=c,!Ai)return;var vi=e.binarySearch(Ai,_i,e.identity,hm);return vi>=0?Ai[vi]:void 0}function qt(_i){var Ai;_i.file?(Ai=sn.get(_i.file.fileName),Ai||(Ai=[],sn.set(_i.file.fileName,Ai),e.insertSorted(Q,_i.file.fileName,e.compareStringsCaseSensitive))):(Rn&&(Rn=!1,c=c.slice()),Ai=c),e.insertSorted(Ai,_i,Im)}function sa(){return Rn=!0,c}function Sa(_i){if(_i)return sn.get(_i)||[];var Ai=e.flatMapToMutable(Q,function(vi){return sn.get(vi)});return c.length&&Ai.unshift.apply(Ai,c),Ai}}e.createDiagnosticCollection=qc;var Pf=/\$\{/g;function cf(c){return c.replace(Pf,"\\${")}function Rf(c){return c&&!!(e.isNoSubstitutionTemplateLiteral(c)?c.templateFlags:c.head.templateFlags||e.some(c.templateSpans,function(Q){return!!Q.literal.templateFlags}))}e.hasInvalidEscape=Rf;var Mf=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ff=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,cp=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,uf=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function bd(c){var Q=c.toString(16).toUpperCase(),sn=("0000"+Q).slice(-4);return"\\u"+sn}function bl(c,Q,sn){if(c.charCodeAt(0)===0){var Rn=sn.charCodeAt(Q+c.length);return Rn>=48&&Rn<=57?"\\x00":"\\0"}return uf.get(c)||bd(c.charCodeAt(0))}function mc(c,Q){var sn=Q===96?cp:Q===39?Ff:Mf;return c.replace(sn,bl)}e.escapeString=mc;var od=/[^\u0000-\u007F]/g;function Ku(c,Q){return c=mc(c,Q),od.test(c)?c.replace(od,function(sn){return bd(sn.charCodeAt(0))}):c}e.escapeNonAsciiString=Ku;var Mp=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,df=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ed=new e.Map(e.getEntries({'"':""","'":"'"}));function ku(c){var Q=c.toString(16).toUpperCase();return"&#x"+Q+";"}function Ho(c){return c.charCodeAt(0)===0?"�":Ed.get(c)||ku(c.charCodeAt(0))}function ks(c,Q){var sn=Q===39?df:Mp;return c.replace(sn,Ho)}e.escapeJsxAttributeString=ks;function Lu(c){var Q=c.length;return Q>=2&&c.charCodeAt(0)===c.charCodeAt(Q-1)&&El(c.charCodeAt(0))?c.substring(1,Q-1):c}e.stripQuotes=Lu;function El(c){return c===39||c===34||c===96}function Fp(c){var Q=c.charCodeAt(0);return Q>=97&&Q<=122||e.stringContains(c,"-")||e.stringContains(c,":")}e.isIntrinsicJsxName=Fp;var hc=[""," "];function Td(c){for(var Q=hc[1],sn=hc.length;sn<=c;sn++)hc.push(hc[sn-1]+Q);return hc[c]}e.getIndentString=Td;function Sc(){return hc[1].length}e.getIndentSize=Sc;function qo(c){var Q,sn,Rn,Ft,qt,sa=!1;function Sa(Ys){var bu=e.computeLineStarts(Ys);bu.length>1?(Ft=Ft+bu.length-1,qt=Q.length-Ys.length+e.last(bu),Rn=qt-Q.length===0):Rn=!1}function _i(Ys){Ys&&Ys.length&&(Rn&&(Ys=Td(sn)+Ys,Rn=!1),Q+=Ys,Sa(Ys))}function Ai(Ys){Ys&&(sa=!1),_i(Ys)}function vi(Ys){Ys&&(sa=!0),_i(Ys)}function go(){Q="",sn=0,Rn=!0,Ft=0,qt=0,sa=!1}function Bs(Ys){Ys!==void 0&&(Q+=Ys,Sa(Ys),sa=!1)}function Al(Ys){Ys&&Ys.length&&Ai(Ys)}function Us(Ys){(!Rn||Ys)&&(Q+=c,Ft++,qt=Q.length,Rn=!0,sa=!1)}function rc(){return Rn?Q.length:Q.length+c.length}return go(),{write:Ai,rawWrite:Bs,writeLiteral:Al,writeLine:Us,increaseIndent:function(){sn++},decreaseIndent:function(){sn--},getIndent:function(){return sn},getTextPos:function(){return Q.length},getLine:function(){return Ft},getColumn:function(){return Rn?sn*Sc():Q.length-qt},getText:function(){return Q},isAtStartOfLine:function(){return Rn},hasTrailingComment:function(){return sa},hasTrailingWhitespace:function(){return!!Q.length&&e.isWhiteSpaceLike(Q.charCodeAt(Q.length-1))},clear:go,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:Ai,writeOperator:Ai,writeParameter:Ai,writeProperty:Ai,writePunctuation:Ai,writeSpace:Ai,writeStringLiteral:Ai,writeSymbol:function(Ys,bu){return Ai(Ys)},writeTrailingSemicolon:Ai,writeComment:vi,getTextPosWithWriteLine:rc}}e.createTextWriter=qo;function Sd(c){var Q=!1;function sn(){Q&&(c.writeTrailingSemicolon(";"),Q=!1)}return pr(pr({},c),{writeTrailingSemicolon:function(){Q=!0},writeLiteral:function(Rn){sn(),c.writeLiteral(Rn)},writeStringLiteral:function(Rn){sn(),c.writeStringLiteral(Rn)},writeSymbol:function(Rn,Ft){sn(),c.writeSymbol(Rn,Ft)},writePunctuation:function(Rn){sn(),c.writePunctuation(Rn)},writeKeyword:function(Rn){sn(),c.writeKeyword(Rn)},writeOperator:function(Rn){sn(),c.writeOperator(Rn)},writeParameter:function(Rn){sn(),c.writeParameter(Rn)},writeSpace:function(Rn){sn(),c.writeSpace(Rn)},writeProperty:function(Rn){sn(),c.writeProperty(Rn)},writeComment:function(Rn){sn(),c.writeComment(Rn)},writeLine:function(){sn(),c.writeLine()},increaseIndent:function(){sn(),c.increaseIndent()},decreaseIndent:function(){sn(),c.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=Sd;function uu(c){return c.useCaseSensitiveFileNames?c.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=uu;function rs(c){return e.createGetCanonicalFileName(uu(c))}e.hostGetCanonicalFileName=rs;function zc(c,Q,sn){return Q.moduleName||Ur(c,Q.fileName,sn&&sn.fileName)}e.getResolvedExternalModuleName=zc;function Gf(c,Q){return c.getCanonicalFileName(e.getNormalizedAbsolutePath(Q,c.getCurrentDirectory()))}function up(c,Q,sn){var Rn=Q.getExternalModuleFileFromDeclaration(sn);if(!Rn||Rn.isDeclarationFile)return;var Ft=pl(sn);return Ft&&e.isStringLiteralLike(Ft)&&!e.pathIsRelative(Ft.text)&&Gf(c,Rn.path).indexOf(Gf(c,e.ensureTrailingDirectorySeparator(c.getCommonSourceDirectory())))===-1?void 0:zc(c,Rn)}e.getExternalModuleNameFromDeclaration=up;function Ur(c,Q,sn){var Rn=function(_i){return c.getCanonicalFileName(_i)},Ft=e.toPath(sn?e.getDirectoryPath(sn):c.getCommonSourceDirectory(),c.getCurrentDirectory(),Rn),qt=e.getNormalizedAbsolutePath(Q,c.getCurrentDirectory()),sa=e.getRelativePathToDirectoryOrUrl(Ft,qt,Ft,Rn,!1),Sa=Kc(sa);return sn?e.ensurePathIsNonModuleName(Sa):Sa}e.getExternalModuleNameFromPath=Ur;function Ko(c,Q,sn){var Rn=Q.getCompilerOptions(),Ft;return Rn.outDir?Ft=Kc(Is(c,Q,Rn.outDir)):Ft=Kc(c),Ft+sn}e.getOwnEmitOutputFilePath=Ko;function mi(c,Q){return du(c,Q.getCompilerOptions(),Q.getCurrentDirectory(),Q.getCommonSourceDirectory(),function(sn){return Q.getCanonicalFileName(sn)})}e.getDeclarationEmitOutputFilePath=mi;function du(c,Q,sn,Rn,Ft){var qt=Q.declarationDir||Q.outDir,sa=qt?Rl(c,qt,sn,Rn,Ft):c;return Kc(sa)+".d.ts"}e.getDeclarationEmitOutputFilePathWorker=du;function Bf(c){return c.outFile||c.out}e.outFile=Bf;function Iu(c,Q){var sn,Rn;return c.paths?(sn=c.baseUrl)!==null&&sn!==void 0?sn:e.Debug.checkDefined(c.pathsBasePath||((Rn=Q.getCurrentDirectory)===null||Rn===void 0?void 0:Rn.call(Q)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'."):void 0}e.getPathsBasePath=Iu;function wr(c,Q,sn){var Rn=c.getCompilerOptions();if(Bf(Rn)){var Ft=Xf(Rn),qt=Rn.emitDeclarationOnly||Ft===e.ModuleKind.AMD||Ft===e.ModuleKind.System;return e.filter(c.getSourceFiles(),function(Sa){return(qt||!e.isExternalModule(Sa))&&xd(Sa,c,sn)})}else{var sa=Q===void 0?c.getSourceFiles():[Q];return e.filter(sa,function(Sa){return xd(Sa,c,sn)})}}e.getSourceFilesToEmit=wr;function xd(c,Q,sn){var Rn=Q.getCompilerOptions();return!(Rn.noEmitForJsFiles&&He(c))&&!c.isDeclarationFile&&!Q.isSourceFileFromExternalLibrary(c)&&(sn||!(Fn(c)&&Q.getResolvedProjectReferenceToRedirect(c.fileName))&&!Q.isSourceOfProjectReferenceRedirect(c.fileName))}e.sourceFileMayBeEmitted=xd;function Is(c,Q,sn){return Rl(c,sn,Q.getCurrentDirectory(),Q.getCommonSourceDirectory(),function(Rn){return Q.getCanonicalFileName(Rn)})}e.getSourceFilePathInNewDir=Is;function Rl(c,Q,sn,Rn,Ft){var qt=e.getNormalizedAbsolutePath(c,sn),sa=Ft(qt).indexOf(Ft(Rn))===0;return qt=sa?qt.substring(Rn.length):qt,e.combinePaths(Q,qt)}e.getSourceFilePathInNewDirWorker=Rl;function sc(c,Q,sn,Rn,Ft,qt){c.writeFile(sn,Rn,Ft,function(sa){Q.add(qh(e.Diagnostics.Could_not_write_file_0_Colon_1,sn,sa))},qt)}e.writeFile=sc;function Pd(c,Q,sn){if(c.length>e.getRootLength(c)&&!sn(c)){var Rn=e.getDirectoryPath(c);Pd(Rn,Q,sn),Q(c)}}function dp(c,Q,sn,Rn,Ft,qt){try{Rn(c,Q,sn)}catch(sa){Pd(e.getDirectoryPath(e.normalizePath(c)),Ft,qt),Rn(c,Q,sn)}}e.writeFileEnsuringDirectories=dp;function Ju(c,Q){var sn=e.getLineStarts(c);return e.computeLineOfPosition(sn,Q)}e.getLineOfLocalPosition=Ju;function Xc(c,Q){return e.computeLineOfPosition(c,Q)}e.getLineOfLocalPositionFromLineMap=Xc;function Rd(c){return e.find(c.members,function(Q){return e.isConstructorDeclaration(Q)&&m(Q.body)})}e.getFirstConstructorWithBody=Rd;function ul(c){if(c&&c.parameters.length>0){var Q=c.parameters.length===2&&wd(c.parameters[0]);return c.parameters[Q?1:0]}}e.getSetAccessorValueParameter=ul;function Bc(c){var Q=ul(c);return Q&&Q.type}e.getSetAccessorTypeAnnotationNode=Bc;function Uf(c){if(c.parameters.length&&!e.isJSDocSignature(c)){var Q=c.parameters[0];if(wd(Q))return Q}}e.getThisParameter=Uf;function wd(c){return To(c.name)}e.parameterIsThisKeyword=wd;function To(c){return!!c&&c.kind===79&&$l(c)}e.isThisIdentifier=To;function Rr(c){if(!To(c))return!1;for(;e.isQualifiedName(c.parent)&&c.parent.left===c;)c=c.parent;return c.parent.kind===179}e.isThisInTypeQuery=Rr;function $l(c){return c.originalKeywordKind===108}e.identifierIsThisKeyword=$l;function Gp(c,Q){var sn,Rn,Ft,qt;return Ae(Q)?(sn=Q,Q.kind===170?Ft=Q:Q.kind===171?qt=Q:e.Debug.fail("Accessor has wrong kind")):e.forEach(c,function(sa){if(e.isAccessor(sa)&&ns(sa)===ns(Q)){var Sa=In(sa.name),_i=In(Q.name);Sa===_i&&(sn?Rn||(Rn=sa):sn=sa,sa.kind===170&&!Ft&&(Ft=sa),sa.kind===171&&!qt&&(qt=sa))}}),{firstAccessor:sn,secondAccessor:Rn,getAccessor:Ft,setAccessor:qt}}e.getAllAccessorDeclarations=Gp;function sd(c){if(!pn(c)&&e.isFunctionDeclaration(c))return;var Q=c.type;return Q||!pn(c)?Q:e.isJSDocPropertyLikeTag(c)?c.typeExpression&&c.typeExpression.type:e.getJSDocType(c)}e.getEffectiveTypeAnnotationNode=sd;function fu(c){return c.type}e.getTypeAnnotationNode=fu;function Vf(c){return e.isJSDocSignature(c)?c.type&&c.type.typeExpression&&c.type.typeExpression.type:c.type||(pn(c)?e.getJSDocReturnType(c):void 0)}e.getEffectiveReturnTypeNode=Vf;function Md(c){return e.flatMap(e.getJSDocTags(c),function(Q){return xc(Q)?Q.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=Md;function xc(c){return e.isJSDocTemplateTag(c)&&!(c.parent.kind===315&&c.parent.tags.some(cc))}function pu(c){var Q=ul(c);return Q&&sd(Q)}e.getEffectiveSetAccessorTypeAnnotationNode=pu;function Uc(c,Q,sn,Rn){Vc(c,Q,sn.pos,Rn)}e.emitNewLineBeforeLeadingComments=Uc;function Vc(c,Q,sn,Rn){Rn&&Rn.length&&sn!==Rn[0].pos&&Xc(c,sn)!==Xc(c,Rn[0].pos)&&Q.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=Vc;function Hl(c,Q,sn,Rn){sn!==Rn&&Xc(c,sn)!==Xc(c,Rn)&&Q.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=Hl;function zs(c,Q,sn,Rn,Ft,qt,sa,Sa){if(Rn&&Rn.length>0){Ft&&sn.writeSpace(" ");for(var _i=!1,Ai=0,vi=Rn;Ai<vi.length;Ai++){var go=vi[Ai];_i&&(sn.writeSpace(" "),_i=!1),Sa(c,Q,sn,go.pos,go.end,sa),go.hasTrailingNewLine?sn.writeLine():_i=!0}_i&&qt&&sn.writeSpace(" ")}}e.emitComments=zs;function Ns(c,Q,sn,Rn,Ft,qt,sa){var Sa,_i;if(sa?Ft.pos===0&&(Sa=e.filter(e.getLeadingCommentRanges(c,Ft.pos),bu)):Sa=e.getLeadingCommentRanges(c,Ft.pos),Sa){for(var Ai=[],vi=void 0,go=0,Bs=Sa;go<Bs.length;go++){var Al=Bs[go];if(vi){var Us=Xc(Q,vi.end),rc=Xc(Q,Al.pos);if(rc>=Us+2)break}Ai.push(Al),vi=Al}if(Ai.length){var Us=Xc(Q,e.last(Ai).end),Ys=Xc(Q,e.skipTrivia(c,Ft.pos));Ys>=Us+2&&(Uc(Q,sn,Ft,Sa),zs(c,Q,sn,Ai,!1,!0,qt,Rn),_i={nodePos:Ft.pos,detachedCommentEndPos:e.last(Ai).end})}}return _i;function bu(wf){return we(c,wf.pos)}}e.emitDetachedComments=Ns;function Tl(c,Q,sn,Rn,Ft,qt){if(c.charCodeAt(Rn+1)===42)for(var sa=e.computeLineAndCharacterOfPosition(Q,Rn),Sa=Q.length,_i=void 0,Ai=Rn,vi=sa.line;Ai<Ft;vi++){var go=vi+1===Sa?c.length+1:Q[vi+1];if(Ai!==Rn){_i===void 0&&(_i=Yc(c,Q[sa.line],Rn));var Bs=sn.getIndent()*Sc(),Al=Bs-_i+Yc(c,Ai,go);if(Al>0){var Us=Al%Sc(),rc=Td((Al-Us)/Sc());for(sn.rawWrite(rc);Us;)sn.rawWrite(" "),Us--}else sn.rawWrite("")}fp(c,Ft,sn,qt,Ai,go),Ai=go}else sn.writeComment(c.substring(Rn,Ft))}e.writeCommentRange=Tl;function fp(c,Q,sn,Rn,Ft,qt){var sa=Math.min(Q,qt-1),Sa=e.trimString(c.substring(Ft,sa));Sa?(sn.writeComment(Sa),sa!==Q&&sn.writeLine()):sn.rawWrite(Rn)}function Yc(c,Q,sn){for(var Rn=0;Q<sn&&e.isWhiteSpaceSingleLine(c.charCodeAt(Q));Q++)c.charCodeAt(Q)===9?Rn+=Sc()-Rn%Sc():Rn++;return Rn}function Sl(c){return Wf(c)!==0}e.hasEffectiveModifiers=Sl;function ld(c){return ud(c)!==0}e.hasSyntacticModifiers=ld;function ff(c,Q){return!!mp(c,Q)}e.hasEffectiveModifier=ff;function sl(c,Q){return!!mf(c,Q)}e.hasSyntacticModifier=sl;function ns(c){return e.isClassElement(c)&&pp(c)||e.isClassStaticBlockDeclaration(c)}e.isStatic=ns;function pp(c){return sl(c,32)}e.hasStaticModifier=pp;function Nu(c){return ff(c,16384)}e.hasOverrideModifier=Nu;function cd(c){return sl(c,128)}e.hasAbstractModifier=cd;function pf(c){return sl(c,2)}e.hasAmbientModifier=pf;function jf(c){return ff(c,64)}e.hasEffectiveReadonlyModifier=jf;function mp(c,Q){return Wf(c)&Q}e.getSelectedEffectiveModifierFlags=mp;function mf(c,Q){return ud(c)&Q}e.getSelectedSyntacticModifierFlags=mf;function Ou(c,Q,sn){return c.kind>=0&&c.kind<=158?0:(c.modifierFlagsCache&536870912||(c.modifierFlagsCache=gf(c)|536870912),Q&&!(c.modifierFlagsCache&4096)&&(sn||pn(c))&&c.parent&&(c.modifierFlagsCache|=Ad(c)|4096),c.modifierFlagsCache&~(536870912|4096))}function Wf(c){return Ou(c,!0)}e.getEffectiveModifierFlags=Wf;function Fd(c){return Ou(c,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=Fd;function ud(c){return Ou(c,!1)}e.getSyntacticModifierFlags=ud;function Ad(c){var Q=0;return!!c.parent&&!e.isParameter(c)&&(pn(c)&&(e.getJSDocPublicTagNoCache(c)&&(Q|=4),e.getJSDocPrivateTagNoCache(c)&&(Q|=8),e.getJSDocProtectedTagNoCache(c)&&(Q|=16),e.getJSDocReadonlyTagNoCache(c)&&(Q|=64),e.getJSDocOverrideTagNoCache(c)&&(Q|=16384)),e.getJSDocDeprecatedTagNoCache(c)&&(Q|=8192)),Q}function hf(c){return gf(c)|Ad(c)}e.getEffectiveModifierFlagsNoCache=hf;function gf(c){var Q=dd(c.modifiers);return(c.flags&4||c.kind===79&&c.isInJSDocNamespace)&&(Q|=1),Q}e.getSyntacticModifierFlagsNoCache=gf;function dd(c){var Q=0;if(c)for(var sn=0,Rn=c;sn<Rn.length;sn++){var Ft=Rn[sn];Q|=Hf(Ft.kind)}return Q}e.modifiersToFlags=dd;function Hf(c){switch(c){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 134:return 2;case 85:return 2048;case 88:return 512;case 130:return 256;case 143:return 64;case 157:return 16384}return 0}e.modifierToFlag=Hf;function hp(c){return c?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(c)):void 0}e.createModifiers=hp;function Xa(c){return c===56||c===55||c===53}e.isLogicalOperator=Xa;function jc(c){return c===75||c===76||c===77}e.isLogicalOrCoalescingAssignmentOperator=jc;function Ar(c){return jc(c.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=Ar;function Gd(c){return c>=63&&c<=78}e.isAssignmentOperator=Gd;function qu(c){var Q=yf(c);return Q&&!Q.isImplements?Q.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=qu;function yf(c){return e.isExpressionWithTypeArguments(c)&&e.isHeritageClause(c.parent)&&e.isClassLike(c.parent.parent)?{class:c.parent.parent,isImplements:c.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=yf;function Bd(c,Q){return e.isBinaryExpression(c)&&(Q?c.operatorToken.kind===63:Gd(c.operatorToken.kind))&&e.isLeftHandSideExpression(c.left)}e.isAssignmentExpression=Bd;function _f(c){return Bd(c.parent)&&c.parent.left===c}e.isLeftHandSideOfAssignment=_f;function fd(c){if(Bd(c,!0)){var Q=c.left.kind;return Q===203||Q===202}return!1}e.isDestructuringAssignment=fd;function wc(c){return qu(c)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=wc;function gc(c){return c.kind===79||gp(c)}e.isEntityNameExpression=gc;function vf(c){switch(c.kind){case 79:return c;case 159:do c=c.left;while(c.kind!==79);return c;case 204:do c=c.expression;while(c.kind!==79);return c}}e.getFirstIdentifier=vf;function zu(c){return c.kind===79||c.kind===108||c.kind===106||c.kind===229||c.kind===204&&zu(c.expression)||c.kind===210&&zu(c.expression)}e.isDottedName=zu;function gp(c){return e.isPropertyAccessExpression(c)&&e.isIdentifier(c.name)&&gc(c.expression)}e.isPropertyAccessEntityNameExpression=gp;function bf(c){if(e.isPropertyAccessExpression(c)){var Q=bf(c.expression);if(Q!==void 0)return Q+"."+Ke(c.name)}else if(e.isElementAccessExpression(c)){var Q=bf(c.expression);if(Q!==void 0&&e.isPropertyName(c.argumentExpression))return Q+"."+In(c.argumentExpression)}else if(e.isIdentifier(c))return e.unescapeLeadingUnderscores(c.escapedText);return}e.tryGetPropertyAccessOrIdentifierToString=bf;function Xu(c){return nl(c)&&da(c)==="prototype"}e.isPrototypeAccess=Xu;function pd(c){return c.parent.kind===159&&c.parent.right===c||c.parent.kind===204&&c.parent.name===c}e.isRightSideOfQualifiedNameOrPropertyAccess=pd;function mu(c){return e.isQualifiedName(c.parent)&&c.parent.right===c||e.isPropertyAccessExpression(c.parent)&&c.parent.name===c||e.isJSDocMemberName(c.parent)&&c.parent.right===c}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=mu;function Kf(c){return c.kind===203&&c.properties.length===0}e.isEmptyObjectLiteral=Kf;function Qc(c){return c.kind===202&&c.elements.length===0}e.isEmptyArrayLiteral=Qc;function Ef(c){if(!Jf(c)||!c.declarations)return;for(var Q=0,sn=c.declarations;Q<sn.length;Q++){var Rn=sn[Q];if(Rn.localSymbol)return Rn.localSymbol}return}e.getLocalSymbolForExportDefault=Ef;function Jf(c){return c&&e.length(c.declarations)>0&&sl(c.declarations[0],512)}function Wc(c){return e.find(e.supportedTSExtensionsForExtractExtension,function(Q){return e.fileExtensionIs(c,Q)})}e.tryExtractTSExtension=Wc;function Ud(c){for(var Q=[],sn=c.length,Rn=0;Rn<sn;Rn++){var Ft=c.charCodeAt(Rn);Ft<128?Q.push(Ft):Ft<2048?(Q.push(Ft>>6|192),Q.push(Ft&63|128)):Ft<65536?(Q.push(Ft>>12|224),Q.push(Ft>>6&63|128),Q.push(Ft&63|128)):Ft<131072?(Q.push(Ft>>18|240),Q.push(Ft>>12&63|128),Q.push(Ft>>6&63|128),Q.push(Ft&63|128)):e.Debug.assert(!1,"Unexpected code point")}return Q}var Pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function js(c){for(var Q="",sn=Ud(c),Rn=0,Ft=sn.length,qt,sa,Sa,_i;Rn<Ft;)qt=sn[Rn]>>2,sa=(sn[Rn]&3)<<4|sn[Rn+1]>>4,Sa=(sn[Rn+1]&15)<<2|sn[Rn+2]>>6,_i=sn[Rn+2]&63,Rn+1>=Ft?Sa=_i=64:Rn+2>=Ft&&(_i=64),Q+=Pu.charAt(qt)+Pu.charAt(sa)+Pu.charAt(Sa)+Pu.charAt(_i),Rn+=3;return Q}e.convertToBase64=js;function Bp(c){for(var Q="",sn=0,Rn=c.length;sn<Rn;){var Ft=c[sn];if(Ft<128)Q+=String.fromCharCode(Ft),sn++;else if((Ft&192)===192){var qt=Ft&63;sn++;for(var sa=c[sn];(sa&192)===128;)qt=qt<<6|sa&63,sn++,sa=c[sn];Q+=String.fromCharCode(qt)}else Q+=String.fromCharCode(Ft),sn++}return Q}function no(c,Q){return c&&c.base64encode?c.base64encode(Q):js(Q)}e.base64encode=no;function Vd(c,Q){if(c&&c.base64decode)return c.base64decode(Q);for(var sn=Q.length,Rn=[],Ft=0;Ft<sn&&!(Q.charCodeAt(Ft)===Pu.charCodeAt(64));){var qt=Pu.indexOf(Q[Ft]),sa=Pu.indexOf(Q[Ft+1]),Sa=Pu.indexOf(Q[Ft+2]),_i=Pu.indexOf(Q[Ft+3]),Ai=(qt&63)<<2|sa>>4&3,vi=(sa&15)<<4|Sa>>2&15,go=(Sa&3)<<6|_i&63;vi===0&&Sa!==0?Rn.push(Ai):go===0&&_i!==0?Rn.push(Ai,vi):Rn.push(Ai,vi,go),Ft+=4}return Bp(Rn)}e.base64decode=Vd;function Tf(c,Q){try{var sn=Q.readFile(c);if(!sn)return{};var Rn=e.parseConfigFileTextToJson(c,sn);return Rn.error?{}:Rn.config}catch(Ft){return{}}}e.readJson=Tf;function qf(c,Q){return!Q.directoryExists||Q.directoryExists(c)}e.directoryProbablyExists=qf;var zf=`\r
|
|
|
`,Dd=`
|
|
|
`;function y(c,Q){switch(c.newLine){case 0:return zf;case 1:return Dd}return Q?Q():e.sys?e.sys.newLine:zf}e.getNewLineCharacter=y;function en(c,Q){return Q===void 0&&(Q=c),e.Debug.assert(Q>=c||Q===-1),{pos:c,end:Q}}e.createRange=en;function ft(c,Q){return en(c.pos,Q)}e.moveRangeEnd=ft;function Ut(c,Q){return en(Q,c.end)}e.moveRangePos=Ut;function _a(c){return c.decorators&&c.decorators.length>0?Ut(c,c.decorators.end):c}e.moveRangePastDecorators=_a;function Na(c){return c.modifiers&&c.modifiers.length>0?Ut(c,c.modifiers.end):_a(c)}e.moveRangePastModifiers=Na;function ja(c){return c.pos===c.end}e.isCollapsedRange=ja;function ii(c,Q){return en(c,c+e.tokenToString(Q).length)}e.createTokenRange=ii;function Yi(c,Q){return xl(c,c,Q)}e.rangeIsOnSingleLine=Yi;function ss(c,Q,sn){return Fl($c(c,sn,!1),$c(Q,sn,!1),sn)}e.rangeStartPositionsAreOnSameLine=ss;function gs(c,Q,sn){return Fl(c.end,Q.end,sn)}e.rangeEndPositionsAreOnSameLine=gs;function xl(c,Q,sn){return Fl($c(c,sn,!1),Q.end,sn)}e.rangeStartIsOnSameLineAsRangeEnd=xl;function Os(c,Q,sn){return Fl(c.end,$c(Q,sn,!1),sn)}e.rangeEndIsOnSameLineAsRangeStart=Os;function Ml(c,Q,sn,Rn){var Ft=$c(Q,sn,Rn);return e.getLinesBetweenPositions(sn,c.end,Ft)}e.getLinesBetweenRangeEndAndRangeStart=Ml;function Zc(c,Q,sn){return e.getLinesBetweenPositions(sn,c.end,Q.end)}e.getLinesBetweenRangeEndPositions=Zc;function Yu(c,Q){return!Fl(c.pos,c.end,Q)}e.isNodeArrayMultiLine=Yu;function Fl(c,Q,sn){return e.getLinesBetweenPositions(sn,c,Q)===0}e.positionsAreOnSameLine=Fl;function $c(c,Q,sn){return Rm(c.pos)?-1:e.skipTrivia(Q.text,c.pos,!1,sn)}e.getStartPositionOfRange=$c;function Up(c,Q,sn,Rn){var Ft=e.skipTrivia(sn.text,c,!1,Rn),qt=jp(Ft,Q,sn);return e.getLinesBetweenPositions(sn,qt!=null?qt:Q,Ft)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=Up;function Vp(c,Q,sn,Rn){var Ft=e.skipTrivia(sn.text,c,!1,Rn);return e.getLinesBetweenPositions(sn,c,Math.min(Q,Ft))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=Vp;function jp(c,Q,sn){for(Q===void 0&&(Q=0);c-- >Q;)if(!e.isWhiteSpaceLike(sn.text.charCodeAt(c)))return c}function Wp(c){var Q=e.getParseTreeNode(c);if(Q)switch(Q.parent.kind){case 258:case 259:return Q===Q.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=Wp;function md(c){return e.filter(c.declarations,Lm)}e.getInitializedVariables=md;function Lm(c){return c.initializer!==void 0}function mm(c){return c.watch&&c.hasOwnProperty("watch")}e.isWatchSet=mm;function th(c){c.close()}e.closeFileWatcher=th;function Hp(c){return c.flags&33554432?c.checkFlags:0}e.getCheckFlags=Hp;function Sf(c,Q){if(Q===void 0&&(Q=!1),c.valueDeclaration){var sn=Q&&c.declarations&&e.find(c.declarations,function(Sa){return Sa.kind===171})||c.valueDeclaration,Rn=e.getCombinedModifierFlags(sn);return c.parent&&c.parent.flags&32?Rn:Rn&~28}if(Hp(c)&6){var Ft=c.checkFlags,qt=Ft&1024?8:Ft&256?4:16,sa=Ft&2048?32:0;return qt|sa}return c.flags&4194304?4|32:0}e.getDeclarationModifierFlagsFromSymbol=Sf;function xf(c,Q){return c.flags&2097152?Q.getAliasedSymbol(c):c}e.skipAlias=xf;function Ie(c){return c.exportSymbol?c.exportSymbol.flags|c.flags:c.flags}e.getCombinedLocalAndExportSymbolFlags=Ie;function bn(c){return Rt(c)===1}e.isWriteOnlyAccess=bn;function Xn(c){return Rt(c)!==0}e.isWriteAccess=Xn;var dt;(function(c){c[c.Read=0]="Read",c[c.Write=1]="Write",c[c.ReadWrite=2]="ReadWrite"})(dt||(dt={}));function Rt(c){var Q=c.parent;if(!Q)return 0;switch(Q.kind){case 210:return Rt(Q);case 218:case 217:var sn=Q.operator;return sn===45||sn===46?Sa():0;case 219:var Rn=Q,Ft=Rn.left,qt=Rn.operatorToken;return Ft===c&&Gd(qt.kind)?qt.kind===63?1:Sa():0;case 204:return Q.name!==c?0:Rt(Q);case 291:{var sa=Rt(Q.parent);return c===Q.name?lr(sa):sa}case 292:return c===Q.objectAssignmentInitializer?0:Rt(Q.parent);case 202:return Rt(Q);default:return 0}function Sa(){return Q.parent&&Fo(Q.parent).kind===236?1:2}}function lr(c){switch(c){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(c)}}function Fr(c,Q){if(!c||!Q||Object.keys(c).length!==Object.keys(Q).length)return!1;for(var sn in c)if(typeof c[sn]=="object"){if(!Fr(c[sn],Q[sn]))return!1}else if(typeof c[sn]!="function"&&c[sn]!==Q[sn])return!1;return!0}e.compareDataObjects=Fr;function aa(c,Q){c.forEach(Q),c.clear()}e.clearMap=aa;function di(c,Q,sn){var Rn=sn.onDeleteValue,Ft=sn.onExistingValue;c.forEach(function(qt,sa){var Sa=Q.get(sa);Sa===void 0?(c.delete(sa),Rn(qt,sa)):Ft&&Ft(qt,Sa,sa)})}e.mutateMapSkippingNewValues=di;function ka(c,Q,sn){di(c,Q,sn);var Rn=sn.createNewValue;Q.forEach(function(Ft,qt){c.has(qt)||c.set(qt,Rn(qt,Ft))})}e.mutateMap=ka;function Co(c){if(c.flags&32){var Q=Fs(c);return!!Q&&sl(Q,128)}return!1}e.isAbstractConstructorSymbol=Co;function Fs(c){var Q;return(Q=c.declarations)===null||Q===void 0?void 0:Q.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=Fs;function ko(c){return c.flags&3899393?c.objectFlags:0}e.getObjectFlags=ko;function Es(c,Q){return Q.getSignaturesOfType(c,0).length!==0||Q.getSignaturesOfType(c,1).length!==0}e.typeHasCallOrConstructSignatures=Es;function Xs(c,Q){return!!e.forEachAncestorDirectory(c,function(sn){return Q(sn)?!0:void 0})}e.forSomeAncestorDirectory=Xs;function Cl(c){return!!c&&!!c.declarations&&!!c.declarations[0]&&e.isNamespaceExportDeclaration(c.declarations[0])}e.isUMDExportSymbol=Cl;function Gl(c){var Q=c.moduleSpecifier;return e.isStringLiteral(Q)?Q.text:$e(Q)}e.showModuleSpecifier=Gl;function Hc(c){var Q;return e.forEachChild(c,function(sn){m(sn)&&(Q=sn)},function(sn){for(var Rn=sn.length-1;Rn>=0;Rn--)if(m(sn[Rn])){Q=sn[Rn];break}}),Q}e.getLastChild=Hc;function uc(c,Q,sn){return sn===void 0&&(sn=!0),c.has(Q)?!1:(c.set(Q,sn),!0)}e.addToSeen=uc;function Cd(c){return e.isClassLike(c)||e.isInterfaceDeclaration(c)||e.isTypeLiteralNode(c)}e.isObjectTypeDeclaration=Cd;function Kl(c){return c>=175&&c<=198||c===129||c===153||c===145||c===156||c===146||c===132||c===148||c===149||c===114||c===151||c===142||c===226||c===307||c===308||c===309||c===310||c===311||c===312||c===313}e.isTypeNodeKind=Kl;function ec(c){return c.kind===204||c.kind===205}e.isAccessExpression=ec;function jd(c){return c.kind===204?c.name:(e.Debug.assert(c.kind===205),c.argumentExpression)}e.getNameOfAccessExpression=jd;function Ir(c){switch(c.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=Ir;function kl(c){return c.kind===267||c.kind===271}e.isNamedImportsOrExports=kl;function h(c){for(;ec(c);)c=c.expression;return c}e.getLeftmostAccessExpression=h;function G(c,Q){for(;;){switch(c.kind){case 218:c=c.operand;continue;case 219:c=c.left;continue;case 220:c=c.condition;continue;case 208:c=c.tag;continue;case 206:if(Q)return c;case 227:case 205:case 204:case 228:case 345:c=c.expression;continue}return c}}e.getLeftmostExpression=G;function ve(c,Q){this.flags=c,this.escapedName=Q,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function on(c,Q){this.flags=Q,(e.Debug.isDebugging||e.tracing)&&(this.checker=c)}function zn(c,Q){this.flags=Q,e.Debug.isDebugging&&(this.checker=c)}function Zt(c,Q,sn){this.pos=Q,this.end=sn,this.kind=c,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Lr(c,Q,sn){this.pos=Q,this.end=sn,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function Ei(c,Q,sn){this.pos=Q,this.end=sn,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function as(c,Q,sn){this.fileName=c,this.text=Q,this.skipTrivia=sn||function(Rn){return Rn}}e.objectAllocator={getNodeConstructor:function(){return Zt},getTokenConstructor:function(){return Lr},getIdentifierConstructor:function(){return Ei},getPrivateIdentifierConstructor:function(){return Zt},getSourceFileConstructor:function(){return Zt},getSymbolConstructor:function(){return ve},getTypeConstructor:function(){return on},getSignatureConstructor:function(){return zn},getSourceMapSourceConstructor:function(){return as}};function ll(c){e.objectAllocator=c}e.setObjectAllocator=ll;function hu(c,Q,sn){return sn===void 0&&(sn=0),c.replace(/{(\d+)}/g,function(Rn,Ft){return""+e.Debug.checkDefined(Q[+Ft+sn])})}e.formatStringFromArgs=hu;function kd(c){e.localizedDiagnosticMessages=c}e.setLocalizedDiagnosticMessages=kd;function Wd(c){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[c.key]||c.message}e.getLocaleSpecificMessage=Wd;function hd(c,Q,sn,Rn){rt(void 0,Q,sn);var Ft=Wd(Rn);return arguments.length>4&&(Ft=hu(Ft,arguments,4)),{file:void 0,start:Q,length:sn,messageText:Ft,category:Rn.category,code:Rn.code,reportsUnnecessary:Rn.reportsUnnecessary,fileName:c}}e.createDetachedDiagnostic=hd;function Jh(c){return c.file===void 0&&c.start!==void 0&&c.length!==void 0&&typeof c.fileName=="string"}function rh(c,Q){var sn=Q.fileName||"",Rn=Q.text.length;e.Debug.assertEqual(c.fileName,sn),e.Debug.assertLessThanOrEqual(c.start,Rn),e.Debug.assertLessThanOrEqual(c.start+c.length,Rn);var Ft={file:Q,start:c.start,length:c.length,messageText:c.messageText,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary};if(c.relatedInformation){Ft.relatedInformation=[];for(var qt=0,sa=c.relatedInformation;qt<sa.length;qt++){var Sa=sa[qt];Jh(Sa)&&Sa.fileName===sn?(e.Debug.assertLessThanOrEqual(Sa.start,Rn),e.Debug.assertLessThanOrEqual(Sa.start+Sa.length,Rn),Ft.relatedInformation.push(rh(Sa,Q))):Ft.relatedInformation.push(Sa)}}return Ft}function Ac(c,Q){for(var sn=[],Rn=0,Ft=c;Rn<Ft.length;Rn++){var qt=Ft[Rn];sn.push(rh(qt,Q))}return sn}e.attachFileToDiagnostics=Ac;function ah(c,Q,sn,Rn){rt(c,Q,sn);var Ft=Wd(Rn);return arguments.length>4&&(Ft=hu(Ft,arguments,4)),{file:c,start:Q,length:sn,messageText:Ft,category:Rn.category,code:Rn.code,reportsUnnecessary:Rn.reportsUnnecessary,reportsDeprecated:Rn.reportsDeprecated}}e.createFileDiagnostic=ah;function Vg(c,Q){var sn=Wd(Q);return arguments.length>2&&(sn=hu(sn,arguments,2)),sn}e.formatMessage=Vg;function qh(c){var Q=Wd(c);return arguments.length>1&&(Q=hu(Q,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:Q,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}e.createCompilerDiagnostic=qh;function Kp(c,Q){return{file:void 0,start:void 0,length:void 0,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:Q}}e.createCompilerDiagnosticFromMessageChain=Kp;function jg(c,Q){var sn=Wd(Q);return arguments.length>2&&(sn=hu(sn,arguments,2)),{messageText:sn,category:Q.category,code:Q.code,next:c===void 0||Array.isArray(c)?c:[c]}}e.chainDiagnosticMessages=jg;function yp(c,Q){for(var sn=c;sn.next;)sn=sn.next[0];sn.next=[Q]}e.concatenateDiagnosticMessageChains=yp;function yc(c){return c.file?c.file.path:void 0}function Im(c,Q){return hm(c,Q)||Nm(c,Q)||0}e.compareDiagnostics=Im;function hm(c,Q){return e.compareStringsCaseSensitive(yc(c),yc(Q))||e.compareValues(c.start,Q.start)||e.compareValues(c.length,Q.length)||e.compareValues(c.code,Q.code)||gm(c.messageText,Q.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=hm;function Nm(c,Q){return!c.relatedInformation&&!Q.relatedInformation?0:c.relatedInformation&&Q.relatedInformation?e.compareValues(c.relatedInformation.length,Q.relatedInformation.length)||e.forEach(c.relatedInformation,function(sn,Rn){var Ft=Q.relatedInformation[Rn];return Im(sn,Ft)})||0:c.relatedInformation?-1:1}function gm(c,Q){if(typeof c=="string"&&typeof Q=="string")return e.compareStringsCaseSensitive(c,Q);if(typeof c=="string")return-1;if(typeof Q=="string")return 1;var sn=e.compareStringsCaseSensitive(c.messageText,Q.messageText);if(sn)return sn;if(!c.next&&!Q.next)return 0;if(!c.next)return-1;if(!Q.next)return 1;for(var Rn=Math.min(c.next.length,Q.next.length),Ft=0;Ft<Rn;Ft++)if(sn=gm(c.next[Ft],Q.next[Ft]),sn)return sn;return c.next.length<Q.next.length?-1:c.next.length>Q.next.length?1:0}function Om(c){return c===4||c===2||c===1||c===6?1:0}e.getLanguageVariant=Om;function ih(c){return c.target||0}e.getEmitScriptTarget=ih;function Xf(c){return typeof c.module=="number"?c.module:ih(c)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=Xf;function Hd(c){var Q=c.moduleResolution;return Q===void 0&&(Q=Xf(c)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),Q}e.getEmitModuleResolutionKind=Hd;function Wg(c){switch(Xf(c)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=Wg;function ls(c){return c.allowUnreachableCode===!1}e.unreachableCodeIsError=ls;function zh(c){return c.allowUnusedLabels===!1}e.unusedLabelIsError=zh;function ym(c){return!!(oh(c)&&c.declarationMap)}e.getAreDeclarationMapsEnabled=ym;function Jp(c){var Q=Xf(c);return c.allowSyntheticDefaultImports!==void 0?c.allowSyntheticDefaultImports:c.esModuleInterop||Q===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=Jp;function oh(c){return!!(c.declaration||c.composite)}e.getEmitDeclarations=oh;function Yf(c){return!!(c.preserveConstEnums||c.isolatedModules)}e.shouldPreserveConstEnums=Yf;function vr(c){return!!(c.incremental||c.composite)}e.isIncrementalCompilation=vr;function ga(c,Q){return c[Q]===void 0?!!c.strict:!!c[Q]}e.getStrictOptionValue=ga;function ha(c){return c.allowJs===void 0?!!c.checkJs:c.allowJs}e.getAllowJSCompilerOption=ha;function Pa(c){return c.useDefineForClassFields===void 0?c.target===99:c.useDefineForClassFields}e.getUseDefineForClassFields=Pa;function oi(c,Q){return de(Q,c,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=oi;function Fi(c,Q){return de(Q,c,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=Fi;function ys(c,Q){return Q.strictFlag?ga(c,Q.name):c[Q.name]}e.getCompilerOptionValue=ys;function wl(c){var Q=c.jsx;return Q===2||Q===4||Q===5}e.getJSXTransformEnabled=wl;function Bl(c,Q){var sn=Q==null?void 0:Q.pragmas.get("jsximportsource"),Rn=e.isArray(sn)?sn[sn.length-1]:sn;return c.jsx===4||c.jsx===5||c.jsxImportSource||Rn?(Rn==null?void 0:Rn.arguments.factory)||c.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=Bl;function Jl(c,Q){return c?c+"/"+(Q.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=Jl;function gu(c){for(var Q=!1,sn=0;sn<c.length;sn++)if(c.charCodeAt(sn)===42)if(!Q)Q=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=gu;function nc(c,Q){var sn,Rn,Ft,qt=!1;return{getSymlinkedFiles:function(){return Ft},getSymlinkedDirectories:function(){return sn},getSymlinkedDirectoriesByRealpath:function(){return Rn},setSymlinkedFile:function(Sa,_i){return(Ft||(Ft=new e.Map)).set(Sa,_i)},setSymlinkedDirectory:function(Sa,_i){var Ai=e.toPath(Sa,c,Q);tg(Ai)||(Ai=e.ensureTrailingDirectorySeparator(Ai),_i!==!1&&!(sn==null?void 0:sn.has(Ai))&&(Rn||(Rn=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(_i.realPath),Sa),(sn||(sn=new e.Map)).set(Ai,_i))},setSymlinkedDirectoryFromSymlinkedFile:function(Sa,_i){this.setSymlinkedFile(e.toPath(Sa,c,Q),_i);var Ai=_p(_i,Sa,c,Q)||e.emptyArray,vi=Ai[0],go=Ai[1];vi&&go&&this.setSymlinkedDirectory(go,{real:vi,realPath:e.toPath(vi,c,Q)})},setSymlinksFromResolutions:function(Sa,_i){var Ai=this,vi;e.Debug.assert(!qt),qt=!0;for(var go=0,Bs=Sa;go<Bs.length;go++){var Al=Bs[go];(vi=Al.resolvedModules)===null||vi===void 0||vi.forEach(function(Us){return sa(Ai,Us)})}_i==null||_i.forEach(function(Us){return sa(Ai,Us)})},hasProcessedResolutions:function(){return qt}};function sa(Sa,_i){if(!_i||!_i.originalPath||!_i.resolvedFileName)return;var Ai=_i.resolvedFileName,vi=_i.originalPath;Sa.setSymlinkedFile(e.toPath(vi,c,Q),Ai);var go=_p(Ai,vi,c,Q)||e.emptyArray,Bs=go[0],Al=go[1];Bs&&Al&&Sa.setSymlinkedDirectory(Al,{real:Bs,realPath:e.toPath(Bs,c,Q)})}}e.createSymlinkCache=nc;function _p(c,Q,sn,Rn){for(var Ft=e.getPathComponents(e.getNormalizedAbsolutePath(c,sn)),qt=e.getPathComponents(e.getNormalizedAbsolutePath(Q,sn)),sa=!1;!qp(Ft[Ft.length-2],Rn)&&!qp(qt[qt.length-2],Rn)&&Rn(Ft[Ft.length-1])===Rn(qt[qt.length-1]);)Ft.pop(),qt.pop(),sa=!0;return sa?[e.getPathFromPathComponents(Ft),e.getPathFromPathComponents(qt)]:void 0}function qp(c,Q){return Q(c)==="node_modules"||e.startsWith(c,"@")}function zp(c){return e.isAnyDirectorySeparator(c.charCodeAt(0))?c.slice(1):void 0}function eu(c,Q,sn){var Rn=e.tryRemovePrefix(c,Q,sn);return Rn===void 0?void 0:zp(Rn)}e.tryRemoveDirectoryPrefix=eu;var Xp=/[^\w\s\/]/g;function Rc(c){return c.replace(Xp,Yy)}e.regExpEscape=Rc;function Yy(c){return"\\"+c}var Fv=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Hg="(?!("+e.commonPackageFolders.join("|")+")(/|$))",Ru={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Hg+"[^/.][^/]*)*?",replaceWildcardCharacter:function(c){return sh(c,Ru.singleAsteriskRegexFragment)}},_m={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Hg+"[^/.][^/]*)*?",replaceWildcardCharacter:function(c){return sh(c,_m.singleAsteriskRegexFragment)}},Kg={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(c){return sh(c,Kg.singleAsteriskRegexFragment)}},Qy={files:Ru,directories:_m,exclude:Kg};function Xh(c,Q,sn){var Rn=Yh(c,Q,sn);if(!Rn||!Rn.length)return;var Ft=Rn.map(function(sa){return"("+sa+")"}).join("|"),qt=sn==="exclude"?"($|/)":"$";return"^("+Ft+")"+qt}e.getRegularExpressionForWildcard=Xh;function Yh(c,Q,sn){return c===void 0||c.length===0?void 0:e.flatMap(c,function(Rn){return Rn&&$y(Rn,Q,sn,Qy[sn])})}e.getRegularExpressionsForWildcards=Yh;function Zy(c){return!/[.*?]/.test(c)}e.isImplicitGlob=Zy;function Jg(c,Q,sn){var Rn=c&&$y(c,Q,sn,Qy[sn]);return Rn&&"^("+Rn+")"+(sn==="exclude"?"($|/)":"$")}e.getPatternFromSpec=Jg;function $y(c,Q,sn,Rn){var Ft=Rn.singleAsteriskRegexFragment,qt=Rn.doubleAsteriskRegexFragment,sa=Rn.replaceWildcardCharacter,Sa="",_i=!1,Ai=e.getNormalizedPathComponents(c,Q),vi=e.last(Ai);if(sn!=="exclude"&&vi==="**")return;Ai[0]=e.removeTrailingDirectorySeparator(Ai[0]),Zy(vi)&&Ai.push("**","*");for(var go=0,Bs=0,Al=Ai;Bs<Al.length;Bs++){var Us=Al[Bs];if(Us==="**")Sa+=qt;else if(sn==="directories"&&(Sa+="(",go++),_i&&(Sa+=e.directorySeparator),sn!=="exclude"){var rc="";Us.charCodeAt(0)===42?(rc+="([^./]"+Ft+")?",Us=Us.substr(1)):Us.charCodeAt(0)===63&&(rc+="[^./]",Us=Us.substr(1)),rc+=Us.replace(Xp,sa),rc!==Us&&(Sa+=Hg),Sa+=rc}else Sa+=Us.replace(Xp,sa);_i=!0}for(;go>0;)Sa+=")?",go--;return Sa}function sh(c,Q){return c==="*"?Q:c==="?"?"[^/]":"\\"+c}function qg(c,Q,sn,Rn,Ft){c=e.normalizePath(c),Ft=e.normalizePath(Ft);var qt=e.combinePaths(Ft,c);return{includeFilePatterns:e.map(Yh(sn,qt,"files"),function(sa){return"^"+sa+"$"}),includeFilePattern:Xh(sn,qt,"files"),includeDirectoryPattern:Xh(sn,qt,"directories"),excludePattern:Xh(Q,qt,"exclude"),basePaths:Bv(c,sn,Rn)}}e.getFileMatcherPatterns=qg;function Qh(c,Q){return new RegExp(c,Q?"":"i")}e.getRegexFromPattern=Qh;function Gv(c,Q,sn,Rn,Ft,qt,sa,Sa,_i,Ai){c=e.normalizePath(c),qt=e.normalizePath(qt);for(var vi=qg(c,sn,Rn,Ft,qt),go=vi.includeFilePatterns&&vi.includeFilePatterns.map(function(fh){return Qh(fh,Ft)}),Bs=vi.includeDirectoryPattern&&Qh(vi.includeDirectoryPattern,Ft),Al=vi.excludePattern&&Qh(vi.excludePattern,Ft),Us=go?go.map(function(){return[]}):[[]],rc=new e.Map,Ys=e.createGetCanonicalFileName(Ft),bu=0,wf=vi.basePaths;bu<wf.length;bu++){var Yp=wf[bu];Ai(Yp)&&Jd(Yp,e.combinePaths(qt,Yp),sa)}return e.flatten(Us);function Jd(fh,ph,Qp){var Gu=Ys(_i(ph));if(rc.has(Gu))return;rc.set(Gu,!0);for(var $f=Sa(fh),Eu=$f.files,rb=$f.directories,ay=function(sy){var _o=e.combinePaths(fh,sy),bp=e.combinePaths(ph,sy);if(Q&&!e.fileExtensionIsOneOf(_o,Q))return"continue";if(Al&&Al.test(bp))return"continue";if(!go)Us[0].push(_o);else{var ig=e.findIndex(go,function(ab){return ab.test(bp)});ig!==-1&&Us[ig].push(_o)}},iy=0,rg=e.sort(Eu,e.compareStringsCaseSensitive);iy<rg.length;iy++){var gd=rg[iy];ay(gd)}if(Qp!==void 0&&(Qp--,Qp===0))return;for(var ag=0,Af=e.sort(rb,e.compareStringsCaseSensitive);ag<Af.length;ag++){var gd=Af[ag],Mc=e.combinePaths(fh,gd),oy=e.combinePaths(ph,gd);(!Bs||Bs.test(oy))&&(!Al||!Al.test(oy))&&Jd(Mc,oy,Qp)}}}e.matchFiles=Gv;function Bv(c,Q,sn){var Rn=[c];if(Q){for(var Ft=[],qt=0,sa=Q;qt<sa.length;qt++){var Sa=sa[qt],_i=e.isRootedDiskPath(Sa)?Sa:e.normalizePath(e.combinePaths(c,Sa));Ft.push(e_(_i))}Ft.sort(e.getStringComparer(!sn));for(var Ai=function(Al){e.every(Rn,function(Us){return!e.containsPath(Us,Al,c,!sn)})&&Rn.push(Al)},vi=0,go=Ft;vi<go.length;vi++){var Bs=go[vi];Ai(Bs)}}return Rn}function e_(c){var Q=e.indexOfAnyCharCode(c,Fv);return Q<0?e.hasExtension(c)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(c)):c:c.substring(0,c.lastIndexOf(e.directorySeparator,Q))}function Uv(c,Q){return Q||Pm(c)||3}e.ensureScriptKind=Uv;function Pm(c){var Q=c.substr(c.lastIndexOf("."));switch(Q.toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=Pm,e.supportedTSExtensions=[".ts",".tsx",".d.ts"],e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJSExtensions=[".js",".jsx"],e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var Zh=Mt(Mt([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),Vv=Mt(Mt(Mt([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),[".json"],!1);function n_(c,Q){var sn=c&&ha(c);if(!Q||Q.length===0)return sn?Zh:e.supportedTSExtensions;var Rn=Mt(Mt([],sn?Zh:e.supportedTSExtensions,!0),e.mapDefined(Q,function(Ft){return Ft.scriptKind===7||sn&&t_(Ft.scriptKind)?Ft.extension:void 0}),!0);return e.deduplicate(Rn,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}e.getSupportedExtensions=n_;function zg(c,Q){return!c||!c.resolveJsonModule?Q:Q===Zh?Vv:Q===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:Mt(Mt([],Q,!0),[".json"],!1)}e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=zg;function t_(c){return c===1||c===2}function jv(c){return e.some(e.supportedJSExtensions,function(Q){return e.fileExtensionIs(c,Q)})}e.hasJSFileExtension=jv;function Wv(c){return e.some(e.supportedTSExtensions,function(Q){return e.fileExtensionIs(c,Q)})}e.hasTSFileExtension=Wv;function Hv(c,Q,sn){if(!c)return!1;for(var Rn=n_(Q,sn),Ft=0,qt=zg(Q,Rn);Ft<qt.length;Ft++){var sa=qt[Ft];if(e.fileExtensionIs(c,sa))return!0}return!1}e.isSupportedSourceFileName=Hv;function lh(c){var Q=c.match(/\//g);return Q?Q.length:0}function Xg(c,Q){return e.compareValues(lh(c),lh(Q))}e.compareNumberOfDirectorySeparators=Xg;var Kv;(function(c){c[c.TypeScriptFiles=0]="TypeScriptFiles",c[c.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",c[c.Highest=0]="Highest",c[c.Lowest=2]="Lowest"})(Kv=e.ExtensionPriority||(e.ExtensionPriority={}));function Jv(c,Q){for(var sn=Q.length-1;sn>=0;sn--)if(e.fileExtensionIs(c,Q[sn]))return Mu(sn,Q);return 0}e.getExtensionPriority=Jv;function Mu(c,Q){return c<2?0:c<Q.length?2:Q.length}e.adjustExtensionPriority=Mu;function yu(c,Q){return c<2?2:Q.length}e.getNextLowestExtensionPriority=yu;var Qf=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Kc(c){for(var Q=0,sn=Qf;Q<sn.length;Q++){var Rn=sn[Q],Ft=Yg(c,Rn);if(Ft!==void 0)return Ft}return c}e.removeFileExtension=Kc;function Yg(c,Q){return e.fileExtensionIs(c,Q)?$h(c,Q):void 0}e.tryRemoveExtension=Yg;function $h(c,Q){return c.substring(0,c.length-Q.length)}e.removeExtension=$h;function eg(c,Q){return e.changeAnyExtension(c,Q,Qf,!1)}e.changeExtension=eg;function _u(c){var Q=c.indexOf("*");return Q===-1?c:c.indexOf("*",Q+1)!==-1?void 0:{prefix:c.substr(0,Q),suffix:c.substr(Q+1)}}e.tryParsePattern=_u;function r_(c){return e.mapDefined(e.getOwnKeys(c),function(Q){return _u(Q)})}e.tryParsePatterns=r_;function Rm(c){return!(c>=0)}e.positionIsSynthesized=Rm;function a_(c){return c===".ts"||c===".tsx"||c===".d.ts"}e.extensionIsTS=a_;function Dc(c){return a_(c)||c===".json"}e.resolutionExtensionIsTSOrJson=Dc;function Fu(c){var Q=Ld(c);return Q!==void 0?Q:e.Debug.fail("File "+c+" has unknown extension.")}e.extensionFromPath=Fu;function Kd(c){return Ld(c)!==void 0}e.isAnySupportedFileExtension=Kd;function Ld(c){return e.find(Qf,function(Q){return e.fileExtensionIs(c,Q)})}e.tryGetExtensionFromPath=Ld;function ch(c,Q){return c.checkJsDirective?c.checkJsDirective.enabled:Q.checkJs}e.isCheckJsEnabledForFile=ch,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function So(c,Q){for(var sn=[],Rn=0,Ft=c;Rn<Ft.length;Rn++){var qt=Ft[Rn];if(qt===Q)return Q;e.isString(qt)||sn.push(qt)}return e.findBestPatternMatch(sn,function(sa){return sa},Q)}e.matchPatternOrExact=So;function qv(c,Q){var sn=c.indexOf(Q);return e.Debug.assert(sn!==-1),c.slice(sn)}e.sliceAfter=qv;function zv(c){for(var Q,sn=[],Rn=1;Rn<arguments.length;Rn++)sn[Rn-1]=arguments[Rn];return sn.length&&(c.relatedInformation||(c.relatedInformation=[]),e.Debug.assert(c.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(Q=c.relatedInformation).push.apply(Q,sn)),c}e.addRelatedInfo=zv;function vp(c,Q){e.Debug.assert(c.length!==0);for(var sn=Q(c[0]),Rn=sn,Ft=1;Ft<c.length;Ft++){var qt=Q(c[Ft]);qt<sn?sn=qt:qt>Rn&&(Rn=qt)}return{min:sn,max:Rn}}e.minAndMax=vp;function Cc(c){return{pos:te(c),end:c.end}}e.rangeOfNode=Cc;function Xv(c,Q){var sn=Q.pos-1,Rn=e.skipTrivia(c.text,Q.end)+1;return{pos:sn,end:Rn}}e.rangeOfTypeParameters=Xv;function Qg(c,Q,sn){return Q.skipLibCheck&&c.isDeclarationFile||Q.skipDefaultLibCheck&&c.hasNoDefaultLib||sn.isSourceOfProjectReferenceRedirect(c.fileName)}e.skipTypeChecking=Qg;function Zg(c,Q){return c===Q||typeof c=="object"&&c!==null&&typeof Q=="object"&&Q!==null&&e.equalOwnProperties(c,Q,Zg)}e.isJsonEqual=Zg;function $g(c){var Q;switch(c.charCodeAt(1)){case 98:case 66:Q=1;break;case 111:case 79:Q=3;break;case 120:case 88:Q=4;break;default:for(var sn=c.length-1,Rn=0;c.charCodeAt(Rn)===48;)Rn++;return c.slice(Rn,sn)||"0"}for(var Ft=2,qt=c.length-1,sa=(qt-Ft)*Q,Sa=new Uint16Array((sa>>>4)+(sa&15?1:0)),_i=qt-1,Ai=0;_i>=Ft;_i--,Ai+=Q){var vi=Ai>>>4,go=c.charCodeAt(_i),Bs=go<=57?go-48:10+go-(go<=70?65:97),Al=Bs<<(Ai&15);Sa[vi]|=Al;var Us=Al>>>16;Us&&(Sa[vi+1]|=Us)}for(var rc="",Ys=Sa.length-1,bu=!0;bu;){var wf=0;bu=!1;for(var vi=Ys;vi>=0;vi--){var Yp=wf<<16|Sa[vi],Jd=Yp/10|0;Sa[vi]=Jd,wf=Yp-Jd*10,Jd&&!bu&&(Ys=vi,bu=!0)}rc=wf+rc}return rc}e.parsePseudoBigInt=$g;function i_(c){var Q=c.negative,sn=c.base10Value;return(Q&&sn!=="0"?"-":"")+sn}e.pseudoBigIntToString=i_;function o_(c){return!!(c.flags&8388608)||yn(c)||uh(c)||tc(c)||!(Mo(c)||Qv(c))}e.isValidTypeOnlyAliasUseSite=o_;function Yv(c){return c.kind===273}e.typeOnlyDeclarationIsExport=Yv;function Qv(c){return e.isIdentifier(c)&&e.isShorthandPropertyAssignment(c.parent)&&c.parent.name===c}function tc(c){for(;c.kind===79||c.kind===204;)c=c.parent;if(c.kind!==160)return!1;if(sl(c.parent,128))return!0;var Q=c.parent.parent.kind;return Q===256||Q===180}function uh(c){if(c.kind!==79)return!1;var Q=e.findAncestor(c.parent,function(sn){switch(sn.kind){case 289:return!0;case 204:case 226:return!1;default:return"quit"}});return(Q==null?void 0:Q.token)===117||(Q==null?void 0:Q.parent.kind)===256}function ey(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)}e.isIdentifierTypeReference=ey;function ny(c,Q){if(Q===void 0&&(Q=e.equateValues),c.length<2)return!0;for(var sn=c[0],Rn=1,Ft=c.length;Rn<Ft;Rn++){var qt=c[Rn];if(!Q(sn,qt))return!1}return!0}e.arrayIsHomogeneous=ny;function s_(c,Q){return c.pos=Q,c}e.setTextRangePos=s_;function ng(c,Q){return c.end=Q,c}e.setTextRangeEnd=ng;function Zf(c,Q,sn){return ng(s_(c,Q),sn)}e.setTextRangePosEnd=Zf;function Zv(c,Q,sn){return Zf(c,Q,Q+sn)}e.setTextRangePosWidth=Zv;function $v(c,Q){return c&&(c.flags=Q),c}e.setNodeFlags=$v;function ty(c,Q){return c&&Q&&(c.parent=Q),c}e.setParent=ty;function eb(c,Q){if(c)for(var sn=0,Rn=c;sn<Rn.length;sn++){var Ft=Rn[sn];ty(Ft,Q)}return c}e.setEachParent=eb;function Ul(c,Q){if(!c)return c;return e.forEachChildRecursively(c,e.isJSDocNode(c)?sn:Ft),c;function sn(qt,sa){if(Q&&qt.parent===sa)return"skip";ty(qt,sa)}function Rn(qt){if(e.hasJSDocNodes(qt))for(var sa=0,Sa=qt.jsDoc;sa<Sa.length;sa++){var _i=Sa[sa];sn(_i,qt),e.forEachChildRecursively(_i,sn)}}function Ft(qt,sa){return sn(qt,sa)||Rn(qt)}}e.setParentRecursive=Ul;function dh(c){return!e.isOmittedExpression(c)}function l_(c){return e.isArrayLiteralExpression(c)&&e.every(c.elements,dh)}e.isPackedArrayLiteral=l_;function ry(c){for(e.Debug.assertIsDefined(c.parent);;){var Q=c.parent;if(e.isParenthesizedExpression(Q)){c=Q;continue}if(e.isExpressionStatement(Q)||e.isVoidExpression(Q)||e.isForStatement(Q)&&(Q.initializer===c||Q.incrementor===c))return!0;if(e.isCommaListExpression(Q)){if(c!==e.last(Q.elements))return!0;c=Q;continue}if(e.isBinaryExpression(Q)&&Q.operatorToken.kind===27){if(c===Q.left)return!0;c=Q;continue}return!1}}e.expressionResultIsUnused=ry;function tg(c){return e.some(e.ignoredPaths,function(Q){return e.stringContains(c,Q)})}e.containsIgnoredPath=tg;function vu(c){if(!c.parent)return;switch(c.kind){case 161:var Q=c.parent;return Q.kind===188?void 0:Q.typeParameters;case 162:return c.parent.parameters;case 197:return c.parent.templateSpans;case 231:return c.parent.templateSpans;case 163:return c.parent.decorators;case 289:return c.parent.heritageClauses}var sn=c.parent;if(e.isJSDocTag(c))return e.isJSDocTypeLiteral(c.parent)?void 0:c.parent.tags;switch(sn.kind){case 180:case 256:return e.isTypeElement(c)?sn.members:void 0;case 185:case 186:return sn.types;case 182:case 202:case 346:case 267:case 271:return sn.elements;case 203:case 284:return sn.properties;case 206:case 207:return e.isTypeNode(c)?sn.typeArguments:sn.expression===c?void 0:sn.arguments;case 276:case 280:return e.isJsxChild(c)?sn.children:void 0;case 278:case 277:return e.isTypeNode(c)?sn.typeArguments:void 0;case 233:case 287:case 288:case 260:return sn.statements;case 261:return sn.clauses;case 255:case 224:return e.isClassElement(c)?sn.members:void 0;case 258:return e.isEnumMember(c)?sn.members:void 0;case 300:return sn.statements}}e.getContainingNodeArray=vu;function nb(c){if(!c.typeParameters){if(e.some(c.parameters,function(sn){return!sd(sn)}))return!0;if(c.kind!==212){var Q=e.firstOrUndefined(c.parameters);if(!(Q&&wd(Q)))return!0}}return!1}e.hasContextSensitiveParameters=nb;function tb(c){return c==="Infinity"||c==="-Infinity"||c==="NaN"}e.isInfinityOrNaNString=tb})(mn||(mn={}));var mn;(function(e){function s(){var ue,ee,Y,V,ne;return{createBaseSourceFileNode:_e,createBaseIdentifierNode:O,createBasePrivateIdentifierNode:w,createBaseTokenNode:b,createBaseNode:de};function _e(fe){return new(ne||(ne=e.objectAllocator.getSourceFileConstructor()))(fe,-1,-1)}function O(fe){return new(Y||(Y=e.objectAllocator.getIdentifierConstructor()))(fe,-1,-1)}function w(fe){return new(V||(V=e.objectAllocator.getPrivateIdentifierConstructor()))(fe,-1,-1)}function b(fe){return new(ee||(ee=e.objectAllocator.getTokenConstructor()))(fe,-1,-1)}function de(fe){return new(ue||(ue=e.objectAllocator.getNodeConstructor()))(fe,-1,-1)}}e.createBaseNodeFactory=s})(mn||(mn={}));var mn;(function(e){function s(ue){var ee,Y;return{getParenthesizeLeftSideOfBinaryForOperator:V,getParenthesizeRightSideOfBinaryForOperator:ne,parenthesizeLeftSideOfBinary:de,parenthesizeRightSideOfBinary:fe,parenthesizeExpressionOfComputedPropertyName:_,parenthesizeConditionOfConditionalExpression:U,parenthesizeBranchOfConditionalExpression:Z,parenthesizeExpressionOfExportDefault:v,parenthesizeExpressionOfNew:W,parenthesizeLeftSideOfAccess:x,parenthesizeOperandOfPostfixUnary:$,parenthesizeOperandOfPrefixUnary:L,parenthesizeExpressionsOfCommaDelimitedList:E,parenthesizeExpressionForDisallowedComma:ae,parenthesizeExpressionOfExpressionStatement:X,parenthesizeConciseBodyOfArrowFunction:ie,parenthesizeMemberOfConditionalType:le,parenthesizeMemberOfElementType:P,parenthesizeElementTypeOfArrayType:I,parenthesizeConstituentTypesOfUnionOrIntersectionType:re,parenthesizeTypeArguments:A};function V(f){ee||(ee=new e.Map);var F=ee.get(f);return F||(F=function(g){return de(f,g)},ee.set(f,F)),F}function ne(f){Y||(Y=new e.Map);var F=Y.get(f);return F||(F=function(g){return fe(f,void 0,g)},Y.set(f,F)),F}function _e(f,F,g,p){var d=e.getOperatorPrecedence(219,f),T=e.getOperatorAssociativity(219,f),m=e.skipPartiallyEmittedExpressions(F);if(!g&&F.kind===212&&d>3)return!0;var k=e.getExpressionPrecedence(m);switch(e.compareValues(k,d)){case-1:return!(!g&&T===1&&F.kind===222);case 1:return!1;case 0:if(g)return T===1;if(e.isBinaryExpression(m)&&m.operatorToken.kind===f){if(O(f))return!1;if(f===39){var N=p?w(p):0;if(e.isLiteralKind(N)&&N===w(m))return!1}}var D=e.getExpressionAssociativity(m);return D===0}}function O(f){return f===41||f===51||f===50||f===52}function w(f){if(f=e.skipPartiallyEmittedExpressions(f),e.isLiteralKind(f.kind))return f.kind;if(f.kind===219&&f.operatorToken.kind===39){if(f.cachedLiteralKind!==void 0)return f.cachedLiteralKind;var F=w(f.left),g=e.isLiteralKind(F)&&F===w(f.right)?F:0;return f.cachedLiteralKind=g,g}return 0}function b(f,F,g,p){var d=e.skipPartiallyEmittedExpressions(F);return d.kind===210?F:_e(f,F,g,p)?ue.createParenthesizedExpression(F):F}function de(f,F){return b(f,F,!0)}function fe(f,F,g){return b(f,g,!1,F)}function _(f){return e.isCommaSequence(f)?ue.createParenthesizedExpression(f):f}function U(f){var F=e.getOperatorPrecedence(220,57),g=e.skipPartiallyEmittedExpressions(f),p=e.getExpressionPrecedence(g);return e.compareValues(p,F)!==1?ue.createParenthesizedExpression(f):f}function Z(f){var F=e.skipPartiallyEmittedExpressions(f);return e.isCommaSequence(F)?ue.createParenthesizedExpression(f):f}function v(f){var F=e.skipPartiallyEmittedExpressions(f),g=e.isCommaSequence(F);if(!g)switch(e.getLeftmostExpression(F,!1).kind){case 224:case 211:g=!0}return g?ue.createParenthesizedExpression(f):f}function W(f){var F=e.getLeftmostExpression(f,!0);switch(F.kind){case 206:return ue.createParenthesizedExpression(f);case 207:return F.arguments?f:ue.createParenthesizedExpression(f)}return x(f)}function x(f){var F=e.skipPartiallyEmittedExpressions(f);return e.isLeftHandSideExpression(F)&&(F.kind!==207||F.arguments)?f:e.setTextRange(ue.createParenthesizedExpression(f),f)}function $(f){return e.isLeftHandSideExpression(f)?f:e.setTextRange(ue.createParenthesizedExpression(f),f)}function L(f){return e.isUnaryExpression(f)?f:e.setTextRange(ue.createParenthesizedExpression(f),f)}function E(f){var F=e.sameMap(f,ae);return e.setTextRange(ue.createNodeArray(F,f.hasTrailingComma),f)}function ae(f){var F=e.skipPartiallyEmittedExpressions(f),g=e.getExpressionPrecedence(F),p=e.getOperatorPrecedence(219,27);return g>p?f:e.setTextRange(ue.createParenthesizedExpression(f),f)}function X(f){var F=e.skipPartiallyEmittedExpressions(f);if(e.isCallExpression(F)){var g=F.expression,p=e.skipPartiallyEmittedExpressions(g).kind;if(p===211||p===212){var d=ue.updateCallExpression(F,e.setTextRange(ue.createParenthesizedExpression(g),g),F.typeArguments,F.arguments);return ue.restoreOuterExpressions(f,d,8)}}var T=e.getLeftmostExpression(F,!1).kind;return T===203||T===211?e.setTextRange(ue.createParenthesizedExpression(f),f):f}function ie(f){return!e.isBlock(f)&&(e.isCommaSequence(f)||e.getLeftmostExpression(f,!1).kind===203)?e.setTextRange(ue.createParenthesizedExpression(f),f):f}function le(f){return f.kind===187?ue.createParenthesizedType(f):f}function P(f){switch(f.kind){case 185:case 186:case 177:case 178:return ue.createParenthesizedType(f)}return le(f)}function I(f){switch(f.kind){case 179:case 191:case 188:return ue.createParenthesizedType(f)}return P(f)}function re(f){return ue.createNodeArray(e.sameMap(f,P))}function B(f,F){return F===0&&e.isFunctionOrConstructorTypeNode(f)&&f.typeParameters?ue.createParenthesizedType(f):f}function A(f){if(e.some(f))return ue.createNodeArray(e.sameMap(f,B))}}e.createParenthesizerRules=s,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(ue){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(ue){return e.identity},parenthesizeLeftSideOfBinary:function(ue,ee){return ee},parenthesizeRightSideOfBinary:function(ue,ee,Y){return Y},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(ue){return e.cast(ue,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(ue){return e.cast(ue,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(ue){return e.cast(ue,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(ue){return e.cast(ue,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(ue){return e.cast(ue,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(ue){return e.cast(ue,e.isNodeArray)},parenthesizeTypeArguments:function(ue){return ue&&e.cast(ue,e.isNodeArray)}}})(mn||(mn={}));var mn;(function(e){function s(ue){return{convertToFunctionBlock:ee,convertToFunctionExpression:Y,convertToArrayAssignmentElement:V,convertToObjectAssignmentElement:ne,convertToAssignmentPattern:_e,convertToObjectAssignmentPattern:O,convertToArrayAssignmentPattern:w,convertToAssignmentElementTarget:b};function ee(de,fe){if(e.isBlock(de))return de;var _=ue.createReturnStatement(de);e.setTextRange(_,de);var U=ue.createBlock([_],fe);return e.setTextRange(U,de),U}function Y(de){if(!de.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var fe=ue.createFunctionExpression(de.modifiers,de.asteriskToken,de.name,de.typeParameters,de.parameters,de.type,de.body);return e.setOriginalNode(fe,de),e.setTextRange(fe,de),e.getStartsOnNewLine(de)&&e.setStartsOnNewLine(fe,!0),fe}function V(de){if(e.isBindingElement(de)){if(de.dotDotDotToken)return e.Debug.assertNode(de.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ue.createSpreadElement(de.name),de),de);var fe=b(de.name);return de.initializer?e.setOriginalNode(e.setTextRange(ue.createAssignment(fe,de.initializer),de),de):fe}return e.cast(de,e.isExpression)}function ne(de){if(e.isBindingElement(de)){if(de.dotDotDotToken)return e.Debug.assertNode(de.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ue.createSpreadAssignment(de.name),de),de);if(de.propertyName){var fe=b(de.name);return e.setOriginalNode(e.setTextRange(ue.createPropertyAssignment(de.propertyName,de.initializer?ue.createAssignment(fe,de.initializer):fe),de),de)}return e.Debug.assertNode(de.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ue.createShorthandPropertyAssignment(de.name,de.initializer),de),de)}return e.cast(de,e.isObjectLiteralElementLike)}function _e(de){switch(de.kind){case 200:case 202:return w(de);case 199:case 203:return O(de)}}function O(de){return e.isObjectBindingPattern(de)?e.setOriginalNode(e.setTextRange(ue.createObjectLiteralExpression(e.map(de.elements,ne)),de),de):e.cast(de,e.isObjectLiteralExpression)}function w(de){return e.isArrayBindingPattern(de)?e.setOriginalNode(e.setTextRange(ue.createArrayLiteralExpression(e.map(de.elements,V)),de),de):e.cast(de,e.isArrayLiteralExpression)}function b(de){return e.isBindingPattern(de)?_e(de):e.cast(de,e.isExpression)}}e.createNodeConverters=s,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(mn||(mn={}));var mn;(function(e){var s=0,ue;(function(re){re[re.None=0]="None",re[re.NoParenthesizerRules=1]="NoParenthesizerRules",re[re.NoNodeConverters=2]="NoNodeConverters",re[re.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",re[re.NoOriginalNode=8]="NoOriginalNode"})(ue=e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function ee(re,B){var A=re&8?Y:V,f=e.memoize(function(){return re&1?e.nullParenthesizerRules:e.createParenthesizerRules(q)}),F=e.memoize(function(){return re&2?e.nullNodeConverters:e.createNodeConverters(q)}),g=e.memoizeOne(function(h){return function(G,ve){return On(G,h,ve)}}),p=e.memoizeOne(function(h){return function(G){return Yr(h,G)}}),d=e.memoizeOne(function(h){return function(G){return ya(G,h)}}),T=e.memoizeOne(function(h){return function(){return Ho(h)}}),m=e.memoizeOne(function(h){return function(G){return ks(h,G)}}),k=e.memoizeOne(function(h){return function(G,ve){return Lu(h,G,ve)}}),N=e.memoizeOne(function(h){return function(G,ve){return sd(h,G,ve)}}),D=e.memoizeOne(function(h){return function(G,ve,on){return fu(h,G,ve,on)}}),R=e.memoizeOne(function(h){return function(G,ve,on){return Vf(h,G,ve,on)}}),me=e.memoizeOne(function(h){return function(G,ve,on,zn){return Md(h,G,ve,on,zn)}}),q={get parenthesizer(){return f()},get converters(){return F()},createNodeArray:J,createNumericLiteral:pe,createBigIntLiteral:Me,createStringLiteral:Ye,createStringLiteralFromNode:Ne,createRegularExpressionLiteral:je,createLiteralLikeNode:xn,createIdentifier:vn,updateIdentifier:o,createTempVariable:Cn,createLoopVariable:z,createUniqueName:tn,getGeneratedNameForNode:$n,createPrivateIdentifier:Un,createToken:Pe,createSuper:ke,createThis:Qe,createNull:gn,createTrue:xe,createFalse:Ze,createModifier:wn,createModifiersFromModifierFlags:Be,createQualifiedName:hn,updateQualifiedName:Kn,createComputedPropertyName:Je,updateComputedPropertyName:En,createTypeParameterDeclaration:Nn,updateTypeParameterDeclaration:ct,createParameterDeclaration:yt,updateParameterDeclaration:Gt,createDecorator:$t,updateDecorator:Ke,createPropertySignature:Vn,updatePropertySignature:Zn,createPropertyDeclaration:Re,updatePropertyDeclaration:Pn,createMethodSignature:rt,updateMethodSignature:Yn,createMethodDeclaration:gt,updateMethodDeclaration:lt,createConstructorDeclaration:K,updateConstructorDeclaration:An,createGetAccessorDeclaration:Fn,updateGetAccessorDeclaration:ln,createSetAccessorDeclaration:Ln,updateSetAccessorDeclaration:Xe,createCallSignature:Dn,updateCallSignature:rn,createConstructSignature:qn,updateConstructSignature:it,createIndexSignature:ht,updateIndexSignature:Et,createClassStaticBlockDeclaration:Fe,updateClassStaticBlockDeclaration:Bn,createTemplateLiteralTypeSpan:zt,updateTemplateLiteralTypeSpan:fr,createKeywordTypeNode:br,createTypePredicateNode:Jt,updateTypePredicateNode:mr,createTypeReferenceNode:Ht,updateTypeReferenceNode:Xr,createFunctionTypeNode:At,updateFunctionTypeNode:Wr,createConstructorTypeNode:Or,updateConstructorTypeNode:eo,createTypeQueryNode:wt,updateTypeQueryNode:rr,createTypeLiteralNode:Wt,updateTypeLiteralNode:Pr,createArrayTypeNode:ra,updateArrayTypeNode:Lt,createTupleTypeNode:xt,updateTupleTypeNode:Yt,createNamedTupleMember:Qt,updateNamedTupleMember:sr,createOptionalTypeNode:at,updateOptionalTypeNode:ea,createRestTypeNode:Fa,updateRestTypeNode:li,createUnionTypeNode:ci,updateUnionTypeNode:Mi,createIntersectionTypeNode:ro,updateIntersectionTypeNode:xi,createConditionalTypeNode:ui,updateConditionalTypeNode:lo,createInferTypeNode:xo,updateInferTypeNode:Vi,createImportTypeNode:mo,updateImportTypeNode:Rs,createParenthesizedType:Ls,updateParenthesizedType:Ca,createThisTypeNode:ai,createTypeOperatorNode:Pi,updateTypeOperatorNode:wo,createIndexedAccessTypeNode:Lo,updateIndexedAccessTypeNode:_s,createMappedTypeNode:Oi,updateMappedTypeNode:Io,createLiteralTypeNode:fs,updateLiteralTypeNode:Mo,createTemplateLiteralType:os,updateTemplateLiteralType:Qi,createObjectBindingPattern:Ms,updateObjectBindingPattern:yn,createArrayBindingPattern:_t,updateArrayBindingPattern:tr,createBindingElement:oa,updateBindingElement:Za,createArrayLiteralExpression:He,updateArrayLiteralExpression:se,createObjectLiteralExpression:pn,updateObjectLiteralExpression:j,createPropertyAccessExpression:re&4?function(h,G){return e.setEmitFlags(De(h,G),131072)}:De,updatePropertyAccessExpression:Ve,createPropertyAccessChain:re&4?function(h,G,ve){return e.setEmitFlags(un(h,G,ve),131072)}:un,updatePropertyAccessChain:jn,createElementAccessExpression:mt,updateElementAccessExpression:St,createElementAccessChain:ir,updateElementAccessChain:_r,createCallExpression:na,updateCallExpression:wa,createCallChain:za,updateCallChain:bi,createNewExpression:Xi,updateNewExpression:co,createTaggedTemplateExpression:Ss,updateTaggedTemplateExpression:No,createTypeAssertion:Ks,updateTypeAssertion:Js,createParenthesizedExpression:gl,updateParenthesizedExpression:yl,createFunctionExpression:Ol,updateFunctionExpression:ac,createArrowFunction:vs,updateArrowFunction:ic,createDeleteExpression:Pl,updateDeleteExpression:cl,createTypeOfExpression:nl,updateTypeOfExpression:he,createVoidExpression:Jn,updateVoidExpression:Ee,createAwaitExpression:Mn,updateAwaitExpression:dr,createPrefixUnaryExpression:Yr,updatePrefixUnaryExpression:da,createPostfixUnaryExpression:ya,updatePostfixUnaryExpression:bo,createBinaryExpression:On,updateBinaryExpression:ps,createConditionalExpression:ms,updateConditionalExpression:_l,createTemplateExpression:Gi,updateTemplateExpression:qs,createTemplateHead:lc,createTemplateMiddle:Pc,createTemplateTail:oc,createNoSubstitutionTemplateLiteral:au,createTemplateLiteralLikeNode:Ec,createYieldExpression:cc,updateYieldExpression:Zl,createSpreadElement:kn,updateSpreadElement:ot,createClassExpression:Nt,updateClassExpression:or,createOmittedExpression:Sr,createExpressionWithTypeArguments:Er,updateExpressionWithTypeArguments:Gr,createAsExpression:$r,updateAsExpression:zr,createNonNullExpression:wi,updateNonNullExpression:Ta,createNonNullChain:Oa,updateNonNullChain:ji,createMetaProperty:Ri,updateMetaProperty:ye,createTemplateSpan:cn,updateTemplateSpan:Sn,createSemicolonClassElement:Tt,createBlock:Vt,updateBlock:Zr,createVariableStatement:Da,updateVariableStatement:gi,createEmptyStatement:Eo,createExpressionStatement:Fo,updateExpressionStatement:bs,createIfStatement:Li,updateIfStatement:Uo,createDoStatement:Hn,updateDoStatement:Zo,createWhileStatement:Ds,updateWhileStatement:Vs,createForStatement:iu,updateForStatement:fc,createForInStatement:ou,updateForInStatement:oo,createForOfStatement:tl,updateForOfStatement:su,createContinueStatement:Au,updateContinueStatement:lu,createBreakStatement:Du,updateBreakStatement:cu,createReturnStatement:Of,updateReturnStatement:Wl,createWithStatement:ad,updateWithStatement:id,createSwitchStatement:$a,updateSwitchStatement:pa,createLabeledStatement:Tc,updateLabeledStatement:Vo,createThrowStatement:yi,updateThrowStatement:pc,createTryStatement:rl,updateTryStatement:Zi,createDebuggerStatement:vl,createVariableDeclaration:al,updateVariableDeclaration:Cu,createVariableDeclarationList:a,updateVariableDeclarationList:H,createFunctionDeclaration:Ae,updateFunctionDeclaration:nn,createClassDeclaration:In,updateClassDeclaration:Gn,createInterfaceDeclaration:bt,updateInterfaceDeclaration:pt,createTypeAliasDeclaration:It,updateTypeAliasDeclaration:Pt,createEnumDeclaration:er,updateEnumDeclaration:jr,createModuleDeclaration:Qa,updateModuleDeclaration:Wi,createModuleBlock:uo,updateModuleBlock:$o,createCaseBlock:hs,updateCaseBlock:es,createNamespaceExportDeclaration:qr,updateNamespaceExportDeclaration:pi,createImportEqualsDeclaration:Ya,updateImportEqualsDeclaration:ki,createImportDeclaration:Hi,updateImportDeclaration:Ci,createImportClause:jo,updateImportClause:Gs,createNamespaceImport:Cs,updateNamespaceImport:ho,createNamespaceExport:qc,updateNamespaceExport:Pf,createNamedImports:cf,updateNamedImports:Rf,createImportSpecifier:Mf,updateImportSpecifier:Ff,createExportAssignment:cp,updateExportAssignment:uf,createExportDeclaration:bd,updateExportDeclaration:bl,createNamedExports:mc,updateNamedExports:od,createExportSpecifier:Ku,updateExportSpecifier:Mp,createMissingDeclaration:df,createExternalModuleReference:Ed,updateExternalModuleReference:ku,get createJSDocAllType(){return T(307)},get createJSDocUnknownType(){return T(308)},get createJSDocNonNullableType(){return m(310)},get updateJSDocNonNullableType(){return k(310)},get createJSDocNullableType(){return m(309)},get updateJSDocNullableType(){return k(309)},get createJSDocOptionalType(){return m(311)},get updateJSDocOptionalType(){return k(311)},get createJSDocVariadicType(){return m(313)},get updateJSDocVariadicType(){return k(313)},get createJSDocNamepathType(){return m(314)},get updateJSDocNamepathType(){return k(314)},createJSDocFunctionType:El,updateJSDocFunctionType:Fp,createJSDocTypeLiteral:hc,updateJSDocTypeLiteral:Td,createJSDocTypeExpression:Sc,updateJSDocTypeExpression:qo,createJSDocSignature:Sd,updateJSDocSignature:uu,createJSDocTemplateTag:Gf,updateJSDocTemplateTag:up,createJSDocTypedefTag:Ur,updateJSDocTypedefTag:Ko,createJSDocParameterTag:mi,updateJSDocParameterTag:du,createJSDocPropertyTag:Bf,updateJSDocPropertyTag:Iu,createJSDocCallbackTag:wr,updateJSDocCallbackTag:xd,createJSDocAugmentsTag:Is,updateJSDocAugmentsTag:Rl,createJSDocImplementsTag:sc,updateJSDocImplementsTag:Gp,createJSDocSeeTag:Pd,updateJSDocSeeTag:dp,createJSDocNameReference:Ju,updateJSDocNameReference:Xc,createJSDocMemberName:Rd,updateJSDocMemberName:ul,createJSDocLink:Bc,updateJSDocLink:Uf,createJSDocLinkCode:wd,updateJSDocLinkCode:To,createJSDocLinkPlain:Rr,updateJSDocLinkPlain:$l,get createJSDocTypeTag(){return R(338)},get updateJSDocTypeTag(){return me(338)},get createJSDocReturnTag(){return R(336)},get updateJSDocReturnTag(){return me(336)},get createJSDocThisTag(){return R(337)},get updateJSDocThisTag(){return me(337)},get createJSDocEnumTag(){return R(334)},get updateJSDocEnumTag(){return me(334)},get createJSDocAuthorTag(){return N(325)},get updateJSDocAuthorTag(){return D(325)},get createJSDocClassTag(){return N(327)},get updateJSDocClassTag(){return D(327)},get createJSDocPublicTag(){return N(328)},get updateJSDocPublicTag(){return D(328)},get createJSDocPrivateTag(){return N(329)},get updateJSDocPrivateTag(){return D(329)},get createJSDocProtectedTag(){return N(330)},get updateJSDocProtectedTag(){return D(330)},get createJSDocReadonlyTag(){return N(331)},get updateJSDocReadonlyTag(){return D(331)},get createJSDocOverrideTag(){return N(332)},get updateJSDocOverrideTag(){return D(332)},get createJSDocDeprecatedTag(){return N(326)},get updateJSDocDeprecatedTag(){return D(326)},createJSDocUnknownTag:xc,updateJSDocUnknownTag:pu,createJSDocText:Uc,updateJSDocText:Vc,createJSDocComment:Hl,updateJSDocComment:zs,createJsxElement:Ns,updateJsxElement:Tl,createJsxSelfClosingElement:fp,updateJsxSelfClosingElement:Yc,createJsxOpeningElement:Sl,updateJsxOpeningElement:ld,createJsxClosingElement:ff,updateJsxClosingElement:sl,createJsxFragment:ns,createJsxText:Nu,updateJsxText:cd,createJsxOpeningFragment:pf,createJsxJsxClosingFragment:jf,updateJsxFragment:pp,createJsxAttribute:mp,updateJsxAttribute:mf,createJsxAttributes:Ou,updateJsxAttributes:Wf,createJsxSpreadAttribute:Fd,updateJsxSpreadAttribute:ud,createJsxExpression:Ad,updateJsxExpression:hf,createCaseClause:gf,updateCaseClause:dd,createDefaultClause:Hf,updateDefaultClause:hp,createHeritageClause:Xa,updateHeritageClause:jc,createCatchClause:Ar,updateCatchClause:Gd,createPropertyAssignment:qu,updatePropertyAssignment:Bd,createShorthandPropertyAssignment:_f,updateShorthandPropertyAssignment:wc,createSpreadAssignment:gc,updateSpreadAssignment:vf,createEnumMember:zu,updateEnumMember:gp,createSourceFile:bf,updateSourceFile:pd,createBundle:mu,updateBundle:Kf,createUnparsedSource:Qc,createUnparsedPrologue:Jf,createUnparsedPrepend:Wc,createUnparsedTextLike:Ud,createUnparsedSyntheticReference:Pu,createInputFiles:js,createSyntheticExpression:Bp,createSyntaxList:no,createNotEmittedStatement:Vd,createPartiallyEmittedExpression:Tf,updatePartiallyEmittedExpression:qf,createCommaListExpression:Dd,updateCommaListExpression:y,createEndOfDeclarationMarker:en,createMergeDeclarationMarker:ft,createSyntheticReferenceExpression:Ut,updateSyntheticReferenceExpression:_a,cloneNode:Na,get createComma(){return g(27)},get createAssignment(){return g(63)},get createLogicalOr(){return g(56)},get createLogicalAnd(){return g(55)},get createBitwiseOr(){return g(51)},get createBitwiseXor(){return g(52)},get createBitwiseAnd(){return g(50)},get createStrictEquality(){return g(36)},get createStrictInequality(){return g(37)},get createEquality(){return g(34)},get createInequality(){return g(35)},get createLessThan(){return g(29)},get createLessThanEquals(){return g(32)},get createGreaterThan(){return g(31)},get createGreaterThanEquals(){return g(33)},get createLeftShift(){return g(47)},get createRightShift(){return g(48)},get createUnsignedRightShift(){return g(49)},get createAdd(){return g(39)},get createSubtract(){return g(40)},get createMultiply(){return g(41)},get createDivide(){return g(43)},get createModulo(){return g(44)},get createExponent(){return g(42)},get createPrefixPlus(){return p(39)},get createPrefixMinus(){return p(40)},get createPrefixIncrement(){return p(45)},get createPrefixDecrement(){return p(46)},get createBitwiseNot(){return p(54)},get createLogicalNot(){return p(53)},get createPostfixIncrement(){return d(45)},get createPostfixDecrement(){return d(46)},createImmediatelyInvokedFunctionExpression:ja,createImmediatelyInvokedArrowFunction:ii,createVoidZero:Yi,createExportDefault:ss,createExternalModuleExport:gs,createTypeCheck:xl,createMethodCall:Os,createGlobalMethodCall:Fl,createFunctionBindCall:Ml,createFunctionCallCall:Zc,createFunctionApplyCall:Yu,createArraySliceCall:$c,createArrayConcatCall:Up,createObjectDefinePropertyCall:Vp,createReflectGetCall:jp,createReflectSetCall:Wp,createPropertyDescriptor:Lm,createCallBinding:Ie,createAssignmentTargetWrapper:bn,inlineExpressions:Xn,getInternalName:Rt,getLocalName:lr,getExportName:Fr,getDeclarationName:aa,getNamespaceMemberName:di,getExternalModuleOrNamespaceExportName:ka,restoreOuterExpressions:Hp,restoreEnclosingLabel:Sf,createUseStrictPrologue:ko,copyPrologue:Co,copyStandardPrologue:Es,copyCustomPrologue:Xs,ensureUseStrict:Cl,liftToBlock:Gl,mergeLexicalEnvironment:uc,updateModifiers:Cd};return q;function J(h,G){if(h===void 0||h===e.emptyArray)h=[];else if(e.isNodeArray(h)){if(G===void 0||h.hasTrailingComma===G)return h.transformFlags===void 0&&U(h),e.Debug.attachNodeArrayDebugInfo(h),h;var ve=h.slice();return ve.pos=h.pos,ve.end=h.end,ve.hasTrailingComma=G,ve.transformFlags=h.transformFlags,e.Debug.attachNodeArrayDebugInfo(ve),ve}var on=h.length,zn=on>=1&&on<=4?h.slice():h;return e.setTextRangePosEnd(zn,-1,-1),zn.hasTrailingComma=!!G,U(zn),e.Debug.attachNodeArrayDebugInfo(zn),zn}function C(h){return B.createBaseNode(h)}function we(h,G,ve){var on=C(h);return on.decorators=Kl(G),on.modifiers=Kl(ve),on.transformFlags|=_(on.decorators)|_(on.modifiers),on.symbol=void 0,on.localSymbol=void 0,on.locals=void 0,on.nextContainer=void 0,on}function Oe(h,G,ve,on){var zn=we(h,G,ve);if(on=ec(on),zn.name=on,on)switch(zn.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(on)){zn.transformFlags|=b(on);break}default:zn.transformFlags|=fe(on);break}return zn}function te(h,G,ve,on,zn){var Zt=Oe(h,G,ve,on);return Zt.typeParameters=Kl(zn),Zt.transformFlags|=_(Zt.typeParameters),zn&&(Zt.transformFlags|=1),Zt}function Te(h,G,ve,on,zn,Zt,Lr){var Ei=te(h,G,ve,on,zn);return Ei.parameters=J(Zt),Ei.type=Lr,Ei.transformFlags|=_(Ei.parameters)|fe(Ei.type),Lr&&(Ei.transformFlags|=1),Ei}function be(h,G){return G.typeArguments&&(h.typeArguments=G.typeArguments),A(h,G)}function Ce(h,G,ve,on,zn,Zt,Lr,Ei){var as=Te(h,G,ve,on,zn,Zt,Lr);return as.body=Ei,as.transformFlags|=fe(as.body)&~16777216,Ei||(as.transformFlags|=1),as}function Ue(h,G){return G.exclamationToken&&(h.exclamationToken=G.exclamationToken),G.typeArguments&&(h.typeArguments=G.typeArguments),be(h,G)}function Se(h,G,ve,on,zn,Zt){var Lr=te(h,G,ve,on,zn);return Lr.heritageClauses=Kl(Zt),Lr.transformFlags|=_(Lr.heritageClauses),Lr}function $e(h,G,ve,on,zn,Zt,Lr){var Ei=Se(h,G,ve,on,zn,Zt);return Ei.members=J(Lr),Ei.transformFlags|=_(Ei.members),Ei}function ce(h,G,ve,on,zn){var Zt=Oe(h,G,ve,on);return Zt.initializer=zn,Zt.transformFlags|=fe(Zt.initializer),Zt}function Le(h,G,ve,on,zn,Zt){var Lr=ce(h,G,ve,on,Zt);return Lr.type=zn,Lr.transformFlags|=fe(zn),zn&&(Lr.transformFlags|=1),Lr}function qe(h,G){var ve=oe(h);return ve.text=G,ve}function pe(h,G){G===void 0&&(G=0);var ve=qe(8,typeof h=="number"?h+"":h);return ve.numericLiteralFlags=G,G&384&&(ve.transformFlags|=512),ve}function Me(h){var G=qe(9,typeof h=="string"?h:e.pseudoBigIntToString(h)+"n");return G.transformFlags|=4,G}function fn(h,G){var ve=qe(10,h);return ve.singleQuote=G,ve}function Ye(h,G,ve){var on=fn(h,G);return on.hasExtendedUnicodeEscape=ve,ve&&(on.transformFlags|=512),on}function Ne(h){var G=fn(e.getTextOfIdentifierOrLiteral(h),void 0);return G.textSourceNode=h,G}function je(h){var G=qe(13,h);return G}function xn(h,G){switch(h){case 8:return pe(G,0);case 9:return Me(G);case 10:return Ye(G,void 0);case 11:return Nu(G,!1);case 12:return Nu(G,!0);case 13:return je(G);case 14:return Ec(h,G,void 0,0)}}function Wn(h,G){G===void 0&&h&&(G=e.stringToToken(h)),G===79&&(G=void 0);var ve=B.createBaseIdentifierNode(79);return ve.originalKeywordKind=G,ve.escapedText=e.escapeLeadingUnderscores(h),ve}function dn(h,G){var ve=Wn(h,void 0);return ve.autoGenerateFlags=G,ve.autoGenerateId=s,s++,ve}function vn(h,G,ve){var on=Wn(h,ve);return G&&(on.typeArguments=J(G)),on.originalKeywordKind===131&&(on.transformFlags|=16777216),on}function o(h,G){return h.typeArguments!==G?A(vn(e.idText(h),G),h):h}function Cn(h,G){var ve=1;G&&(ve|=8);var on=dn("",ve);return h&&h(on),on}function z(h){var G=2;return h&&(G|=8),dn("",G)}function tn(h,G){return G===void 0&&(G=0),e.Debug.assert(!(G&7),"Argument out of range: flags"),e.Debug.assert((G&(16|32))!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),dn(h,3|G)}function $n(h,G){G===void 0&&(G=0),e.Debug.assert(!(G&7),"Argument out of range: flags");var ve=dn(h&&e.isIdentifier(h)?e.idText(h):"",4|G);return ve.original=h,ve}function Un(h){e.startsWith(h,"#")||e.Debug.fail("First character of private identifier must be #: "+h);var G=B.createBasePrivateIdentifierNode(80);return G.escapedText=e.escapeLeadingUnderscores(h),G.transformFlags|=8388608,G}function oe(h){return B.createBaseTokenNode(h)}function Pe(h){e.Debug.assert(h>=0&&h<=158,"Invalid token"),e.Debug.assert(h<=14||h>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(h<=8||h>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(h!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var G=oe(h),ve=0;switch(h){case 130:ve=128|64;break;case 123:case 121:case 122:case 143:case 126:case 134:case 85:case 129:case 145:case 156:case 142:case 146:case 157:case 148:case 132:case 149:case 114:case 153:case 151:ve=1;break;case 106:ve=512|33554432;break;case 124:ve=512;break;case 108:ve=8192;break}return ve&&(G.transformFlags|=ve),G}function ke(){return Pe(106)}function Qe(){return Pe(108)}function gn(){return Pe(104)}function xe(){return Pe(110)}function Ze(){return Pe(95)}function wn(h){return Pe(h)}function Be(h){var G=[];return h&1&&G.push(wn(93)),h&2&&G.push(wn(134)),h&512&&G.push(wn(88)),h&2048&&G.push(wn(85)),h&4&&G.push(wn(123)),h&8&&G.push(wn(121)),h&16&&G.push(wn(122)),h&128&&G.push(wn(126)),h&32&&G.push(wn(124)),h&16384&&G.push(wn(157)),h&64&&G.push(wn(143)),h&256&&G.push(wn(130)),G}function hn(h,G){var ve=C(159);return ve.left=h,ve.right=ec(G),ve.transformFlags|=fe(ve.left)|b(ve.right),ve}function Kn(h,G,ve){return h.left!==G||h.right!==ve?A(hn(G,ve),h):h}function Je(h){var G=C(160);return G.expression=f().parenthesizeExpressionOfComputedPropertyName(h),G.transformFlags|=fe(G.expression)|512|65536,G}function En(h,G){return h.expression!==G?A(Je(G),h):h}function Nn(h,G,ve){var on=Oe(161,void 0,void 0,h);return on.constraint=G,on.default=ve,on.transformFlags=1,on}function ct(h,G,ve,on){return h.name!==G||h.constraint!==ve||h.default!==on?A(Nn(G,ve,on),h):h}function yt(h,G,ve,on,zn,Zt,Lr){var Ei=Le(162,h,G,on,Zt,Lr&&f().parenthesizeExpressionForDisallowedComma(Lr));return Ei.dotDotDotToken=ve,Ei.questionToken=zn,e.isThisIdentifier(Ei.name)?Ei.transformFlags=1:(Ei.transformFlags|=fe(Ei.dotDotDotToken)|fe(Ei.questionToken),zn&&(Ei.transformFlags|=1),e.modifiersToFlags(Ei.modifiers)&16476&&(Ei.transformFlags|=4096),(Lr||ve)&&(Ei.transformFlags|=512)),Ei}function Gt(h,G,ve,on,zn,Zt,Lr,Ei){return h.decorators!==G||h.modifiers!==ve||h.dotDotDotToken!==on||h.name!==zn||h.questionToken!==Zt||h.type!==Lr||h.initializer!==Ei?A(yt(G,ve,on,zn,Zt,Lr,Ei),h):h}function $t(h){var G=C(163);return G.expression=f().parenthesizeLeftSideOfAccess(h),G.transformFlags|=fe(G.expression)|1|4096,G}function Ke(h,G){return h.expression!==G?A($t(G),h):h}function Vn(h,G,ve,on){var zn=Oe(164,void 0,h,G);return zn.type=on,zn.questionToken=ve,zn.transformFlags=1,zn}function Zn(h,G,ve,on,zn){return h.modifiers!==G||h.name!==ve||h.questionToken!==on||h.type!==zn?A(Vn(G,ve,on,zn),h):h}function Re(h,G,ve,on,zn,Zt){var Lr=Le(165,h,G,ve,zn,Zt);return Lr.questionToken=on&&e.isQuestionToken(on)?on:void 0,Lr.exclamationToken=on&&e.isExclamationToken(on)?on:void 0,Lr.transformFlags|=fe(Lr.questionToken)|fe(Lr.exclamationToken)|8388608,(e.isComputedPropertyName(Lr.name)||e.hasStaticModifier(Lr)&&Lr.initializer)&&(Lr.transformFlags|=4096),(on||e.modifiersToFlags(Lr.modifiers)&2)&&(Lr.transformFlags|=1),Lr}function Pn(h,G,ve,on,zn,Zt,Lr){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.questionToken!==(zn!==void 0&&e.isQuestionToken(zn)?zn:void 0)||h.exclamationToken!==(zn!==void 0&&e.isExclamationToken(zn)?zn:void 0)||h.type!==Zt||h.initializer!==Lr?A(Re(G,ve,on,zn,Zt,Lr),h):h}function rt(h,G,ve,on,zn,Zt){var Lr=Te(166,void 0,h,G,on,zn,Zt);return Lr.questionToken=ve,Lr.transformFlags=1,Lr}function Yn(h,G,ve,on,zn,Zt,Lr){return h.modifiers!==G||h.name!==ve||h.questionToken!==on||h.typeParameters!==zn||h.parameters!==Zt||h.type!==Lr?be(rt(G,ve,on,zn,Zt,Lr),h):h}function gt(h,G,ve,on,zn,Zt,Lr,Ei,as){var ll=Ce(167,h,G,on,Zt,Lr,Ei,as);return ll.asteriskToken=ve,ll.questionToken=zn,ll.transformFlags|=fe(ll.asteriskToken)|fe(ll.questionToken)|512,zn&&(ll.transformFlags|=1),e.modifiersToFlags(ll.modifiers)&256?ve?ll.transformFlags|=64:ll.transformFlags|=128:ve&&(ll.transformFlags|=1024),ll}function lt(h,G,ve,on,zn,Zt,Lr,Ei,as,ll){return h.decorators!==G||h.modifiers!==ve||h.asteriskToken!==on||h.name!==zn||h.questionToken!==Zt||h.typeParameters!==Lr||h.parameters!==Ei||h.type!==as||h.body!==ll?Ue(gt(G,ve,on,zn,Zt,Lr,Ei,as,ll),h):h}function Fe(h,G,ve){var on=te(168,h,G,void 0,void 0);return on.body=ve,on.transformFlags=fe(ve)|8388608,on}function Bn(h,G,ve,on){return h.decorators!==G||h.modifier!==ve||h.body!==on?A(Fe(G,ve,on),h):h}function K(h,G,ve,on){var zn=Ce(169,h,G,void 0,void 0,ve,void 0,on);return zn.transformFlags|=512,zn}function An(h,G,ve,on,zn){return h.decorators!==G||h.modifiers!==ve||h.parameters!==on||h.body!==zn?Ue(K(G,ve,on,zn),h):h}function Fn(h,G,ve,on,zn,Zt){return Ce(170,h,G,ve,void 0,on,zn,Zt)}function ln(h,G,ve,on,zn,Zt,Lr){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.parameters!==zn||h.type!==Zt||h.body!==Lr?Ue(Fn(G,ve,on,zn,Zt,Lr),h):h}function Ln(h,G,ve,on,zn){return Ce(171,h,G,ve,void 0,on,void 0,zn)}function Xe(h,G,ve,on,zn,Zt){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.parameters!==zn||h.body!==Zt?Ue(Ln(G,ve,on,zn,Zt),h):h}function Dn(h,G,ve){var on=Te(172,void 0,void 0,void 0,h,G,ve);return on.transformFlags=1,on}function rn(h,G,ve,on){return h.typeParameters!==G||h.parameters!==ve||h.type!==on?be(Dn(G,ve,on),h):h}function qn(h,G,ve){var on=Te(173,void 0,void 0,void 0,h,G,ve);return on.transformFlags=1,on}function it(h,G,ve,on){return h.typeParameters!==G||h.parameters!==ve||h.type!==on?be(qn(G,ve,on),h):h}function ht(h,G,ve,on){var zn=Te(174,h,G,void 0,void 0,ve,on);return zn.transformFlags=1,zn}function Et(h,G,ve,on,zn){return h.parameters!==on||h.type!==zn||h.decorators!==G||h.modifiers!==ve?be(ht(G,ve,on,zn),h):h}function zt(h,G){var ve=C(197);return ve.type=h,ve.literal=G,ve.transformFlags=1,ve}function fr(h,G,ve){return h.type!==G||h.literal!==ve?A(zt(G,ve),h):h}function br(h){return Pe(h)}function Jt(h,G,ve){var on=C(175);return on.assertsModifier=h,on.parameterName=ec(G),on.type=ve,on.transformFlags=1,on}function mr(h,G,ve,on){return h.assertsModifier!==G||h.parameterName!==ve||h.type!==on?A(Jt(G,ve,on),h):h}function Ht(h,G){var ve=C(176);return ve.typeName=ec(h),ve.typeArguments=G&&f().parenthesizeTypeArguments(J(G)),ve.transformFlags=1,ve}function Xr(h,G,ve){return h.typeName!==G||h.typeArguments!==ve?A(Ht(G,ve),h):h}function At(h,G,ve){var on=Te(177,void 0,void 0,void 0,h,G,ve);return on.transformFlags=1,on}function Wr(h,G,ve,on){return h.typeParameters!==G||h.parameters!==ve||h.type!==on?be(At(G,ve,on),h):h}function Or(){for(var h=[],G=0;G<arguments.length;G++)h[G]=arguments[G];return h.length===4?Ja.apply(void 0,h):h.length===3?qa.apply(void 0,h):e.Debug.fail("Incorrect number of arguments specified.")}function Ja(h,G,ve,on){var zn=Te(178,void 0,h,void 0,G,ve,on);return zn.transformFlags=1,zn}function qa(h,G,ve){return Ja(void 0,h,G,ve)}function eo(){for(var h=[],G=0;G<arguments.length;G++)h[G]=arguments[G];return h.length===5?Va.apply(void 0,h):h.length===4?la.apply(void 0,h):e.Debug.fail("Incorrect number of arguments specified.")}function Va(h,G,ve,on,zn){return h.modifiers!==G||h.typeParameters!==ve||h.parameters!==on||h.type!==zn?be(Or(G,ve,on,zn),h):h}function la(h,G,ve,on){return Va(h,h.modifiers,G,ve,on)}function wt(h){var G=C(179);return G.exprName=h,G.transformFlags=1,G}function rr(h,G){return h.exprName!==G?A(wt(G),h):h}function Wt(h){var G=C(180);return G.members=J(h),G.transformFlags=1,G}function Pr(h,G){return h.members!==G?A(Wt(G),h):h}function ra(h){var G=C(181);return G.elementType=f().parenthesizeElementTypeOfArrayType(h),G.transformFlags=1,G}function Lt(h,G){return h.elementType!==G?A(ra(G),h):h}function xt(h){var G=C(182);return G.elements=J(h),G.transformFlags=1,G}function Yt(h,G){return h.elements!==G?A(xt(G),h):h}function Qt(h,G,ve,on){var zn=C(195);return zn.dotDotDotToken=h,zn.name=G,zn.questionToken=ve,zn.type=on,zn.transformFlags=1,zn}function sr(h,G,ve,on,zn){return h.dotDotDotToken!==G||h.name!==ve||h.questionToken!==on||h.type!==zn?A(Qt(G,ve,on,zn),h):h}function at(h){var G=C(183);return G.type=f().parenthesizeElementTypeOfArrayType(h),G.transformFlags=1,G}function ea(h,G){return h.type!==G?A(at(G),h):h}function Fa(h){var G=C(184);return G.type=h,G.transformFlags=1,G}function li(h,G){return h.type!==G?A(Fa(G),h):h}function Si(h,G){var ve=C(h);return ve.types=f().parenthesizeConstituentTypesOfUnionOrIntersectionType(G),ve.transformFlags=1,ve}function Qr(h,G){return h.types!==G?A(Si(h.kind,G),h):h}function ci(h){return Si(185,h)}function Mi(h,G){return Qr(h,G)}function ro(h){return Si(186,h)}function xi(h,G){return Qr(h,G)}function ui(h,G,ve,on){var zn=C(187);return zn.checkType=f().parenthesizeMemberOfConditionalType(h),zn.extendsType=f().parenthesizeMemberOfConditionalType(G),zn.trueType=ve,zn.falseType=on,zn.transformFlags=1,zn}function lo(h,G,ve,on,zn){return h.checkType!==G||h.extendsType!==ve||h.trueType!==on||h.falseType!==zn?A(ui(G,ve,on,zn),h):h}function xo(h){var G=C(188);return G.typeParameter=h,G.transformFlags=1,G}function Vi(h,G){return h.typeParameter!==G?A(xo(G),h):h}function os(h,G){var ve=C(196);return ve.head=h,ve.templateSpans=J(G),ve.transformFlags=1,ve}function Qi(h,G,ve){return h.head!==G||h.templateSpans!==ve?A(os(G,ve),h):h}function mo(h,G,ve,on){on===void 0&&(on=!1);var zn=C(198);return zn.argument=h,zn.qualifier=G,zn.typeArguments=ve&&f().parenthesizeTypeArguments(ve),zn.isTypeOf=on,zn.transformFlags=1,zn}function Rs(h,G,ve,on,zn){return zn===void 0&&(zn=h.isTypeOf),h.argument!==G||h.qualifier!==ve||h.typeArguments!==on||h.isTypeOf!==zn?A(mo(G,ve,on,zn),h):h}function Ls(h){var G=C(189);return G.type=h,G.transformFlags=1,G}function Ca(h,G){return h.type!==G?A(Ls(G),h):h}function ai(){var h=C(190);return h.transformFlags=1,h}function Pi(h,G){var ve=C(191);return ve.operator=h,ve.type=f().parenthesizeMemberOfElementType(G),ve.transformFlags=1,ve}function wo(h,G){return h.type!==G?A(Pi(h.operator,G),h):h}function Lo(h,G){var ve=C(192);return ve.objectType=f().parenthesizeMemberOfElementType(h),ve.indexType=G,ve.transformFlags=1,ve}function _s(h,G,ve){return h.objectType!==G||h.indexType!==ve?A(Lo(G,ve),h):h}function Oi(h,G,ve,on,zn){var Zt=C(193);return Zt.readonlyToken=h,Zt.typeParameter=G,Zt.nameType=ve,Zt.questionToken=on,Zt.type=zn,Zt.transformFlags=1,Zt}function Io(h,G,ve,on,zn,Zt){return h.readonlyToken!==G||h.typeParameter!==ve||h.nameType!==on||h.questionToken!==zn||h.type!==Zt?A(Oi(G,ve,on,zn,Zt),h):h}function fs(h){var G=C(194);return G.literal=h,G.transformFlags=1,G}function Mo(h,G){return h.literal!==G?A(fs(G),h):h}function Ms(h){var G=C(199);return G.elements=J(h),G.transformFlags|=_(G.elements)|512|262144,G.transformFlags&16384&&(G.transformFlags|=64|32768),G}function yn(h,G){return h.elements!==G?A(Ms(G),h):h}function _t(h){var G=C(200);return G.elements=J(h),G.transformFlags|=_(G.elements)|512|262144,G}function tr(h,G){return h.elements!==G?A(_t(G),h):h}function oa(h,G,ve,on){var zn=ce(201,void 0,void 0,ve,on&&f().parenthesizeExpressionForDisallowedComma(on));return zn.propertyName=ec(G),zn.dotDotDotToken=h,zn.transformFlags|=fe(zn.dotDotDotToken)|512,zn.propertyName&&(zn.transformFlags|=e.isIdentifier(zn.propertyName)?b(zn.propertyName):fe(zn.propertyName)),h&&(zn.transformFlags|=16384),zn}function Za(h,G,ve,on,zn){return h.propertyName!==ve||h.dotDotDotToken!==G||h.name!==on||h.initializer!==zn?A(oa(G,ve,on,zn),h):h}function Ga(h){var G=C(h);return G}function He(h,G){var ve=Ga(202),on=h&&e.lastOrUndefined(h),zn=J(h,on&&e.isOmittedExpression(on)?!0:void 0);return ve.elements=f().parenthesizeExpressionsOfCommaDelimitedList(zn),ve.multiLine=G,ve.transformFlags|=_(ve.elements),ve}function se(h,G){return h.elements!==G?A(He(G,h.multiLine),h):h}function pn(h,G){var ve=Ga(203);return ve.properties=J(h),ve.multiLine=G,ve.transformFlags|=_(ve.properties),ve}function j(h,G){return h.properties!==G?A(pn(G,h.multiLine),h):h}function De(h,G){var ve=Ga(204);return ve.expression=f().parenthesizeLeftSideOfAccess(h),ve.name=ec(G),ve.transformFlags=fe(ve.expression)|(e.isIdentifier(ve.name)?b(ve.name):fe(ve.name)),e.isSuperKeyword(h)&&(ve.transformFlags|=128|64),ve}function Ve(h,G,ve){return e.isPropertyAccessChain(h)?jn(h,G,h.questionDotToken,e.cast(ve,e.isIdentifier)):h.expression!==G||h.name!==ve?A(De(G,ve),h):h}function un(h,G,ve){var on=Ga(204);return on.flags|=32,on.expression=f().parenthesizeLeftSideOfAccess(h),on.questionDotToken=G,on.name=ec(ve),on.transformFlags|=16|fe(on.expression)|fe(on.questionDotToken)|(e.isIdentifier(on.name)?b(on.name):fe(on.name)),on}function jn(h,G,ve,on){return e.Debug.assert(!!(h.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),h.expression!==G||h.questionDotToken!==ve||h.name!==on?A(un(G,ve,on),h):h}function mt(h,G){var ve=Ga(205);return ve.expression=f().parenthesizeLeftSideOfAccess(h),ve.argumentExpression=jd(G),ve.transformFlags|=fe(ve.expression)|fe(ve.argumentExpression),e.isSuperKeyword(h)&&(ve.transformFlags|=128|64),ve}function St(h,G,ve){return e.isElementAccessChain(h)?_r(h,G,h.questionDotToken,ve):h.expression!==G||h.argumentExpression!==ve?A(mt(G,ve),h):h}function ir(h,G,ve){var on=Ga(205);return on.flags|=32,on.expression=f().parenthesizeLeftSideOfAccess(h),on.questionDotToken=G,on.argumentExpression=jd(ve),on.transformFlags|=fe(on.expression)|fe(on.questionDotToken)|fe(on.argumentExpression)|16,on}function _r(h,G,ve,on){return e.Debug.assert(!!(h.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),h.expression!==G||h.questionDotToken!==ve||h.argumentExpression!==on?A(ir(G,ve,on),h):h}function na(h,G,ve){var on=Ga(206);return on.expression=f().parenthesizeLeftSideOfAccess(h),on.typeArguments=Kl(G),on.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(J(ve)),on.transformFlags|=fe(on.expression)|_(on.typeArguments)|_(on.arguments),on.typeArguments&&(on.transformFlags|=1),e.isImportKeyword(on.expression)?on.transformFlags|=4194304:e.isSuperProperty(on.expression)&&(on.transformFlags|=8192),on}function wa(h,G,ve,on){return e.isCallChain(h)?bi(h,G,h.questionDotToken,ve,on):h.expression!==G||h.typeArguments!==ve||h.arguments!==on?A(na(G,ve,on),h):h}function za(h,G,ve,on){var zn=Ga(206);return zn.flags|=32,zn.expression=f().parenthesizeLeftSideOfAccess(h),zn.questionDotToken=G,zn.typeArguments=Kl(ve),zn.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(J(on)),zn.transformFlags|=fe(zn.expression)|fe(zn.questionDotToken)|_(zn.typeArguments)|_(zn.arguments)|16,zn.typeArguments&&(zn.transformFlags|=1),e.isSuperProperty(zn.expression)&&(zn.transformFlags|=8192),zn}function bi(h,G,ve,on,zn){return e.Debug.assert(!!(h.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),h.expression!==G||h.questionDotToken!==ve||h.typeArguments!==on||h.arguments!==zn?A(za(G,ve,on,zn),h):h}function Xi(h,G,ve){var on=Ga(207);return on.expression=f().parenthesizeExpressionOfNew(h),on.typeArguments=Kl(G),on.arguments=ve?f().parenthesizeExpressionsOfCommaDelimitedList(ve):void 0,on.transformFlags|=fe(on.expression)|_(on.typeArguments)|_(on.arguments)|16,on.typeArguments&&(on.transformFlags|=1),on}function co(h,G,ve,on){return h.expression!==G||h.typeArguments!==ve||h.arguments!==on?A(Xi(G,ve,on),h):h}function Ss(h,G,ve){var on=Ga(208);return on.tag=f().parenthesizeLeftSideOfAccess(h),on.typeArguments=Kl(G),on.template=ve,on.transformFlags|=fe(on.tag)|_(on.typeArguments)|fe(on.template)|512,on.typeArguments&&(on.transformFlags|=1),e.hasInvalidEscape(on.template)&&(on.transformFlags|=64),on}function No(h,G,ve,on){return h.tag!==G||h.typeArguments!==ve||h.template!==on?A(Ss(G,ve,on),h):h}function Ks(h,G){var ve=Ga(209);return ve.expression=f().parenthesizeOperandOfPrefixUnary(G),ve.type=h,ve.transformFlags|=fe(ve.expression)|fe(ve.type)|1,ve}function Js(h,G,ve){return h.type!==G||h.expression!==ve?A(Ks(G,ve),h):h}function gl(h){var G=Ga(210);return G.expression=h,G.transformFlags=fe(G.expression),G}function yl(h,G){return h.expression!==G?A(gl(G),h):h}function Ol(h,G,ve,on,zn,Zt,Lr){var Ei=Ce(211,void 0,h,ve,on,zn,Zt,Lr);return Ei.asteriskToken=G,Ei.transformFlags|=fe(Ei.asteriskToken),Ei.typeParameters&&(Ei.transformFlags|=1),e.modifiersToFlags(Ei.modifiers)&256?Ei.asteriskToken?Ei.transformFlags|=64:Ei.transformFlags|=128:Ei.asteriskToken&&(Ei.transformFlags|=1024),Ei}function ac(h,G,ve,on,zn,Zt,Lr,Ei){return h.name!==on||h.modifiers!==G||h.asteriskToken!==ve||h.typeParameters!==zn||h.parameters!==Zt||h.type!==Lr||h.body!==Ei?Ue(Ol(G,ve,on,zn,Zt,Lr,Ei),h):h}function vs(h,G,ve,on,zn,Zt){var Lr=Ce(212,void 0,h,void 0,G,ve,on,f().parenthesizeConciseBodyOfArrowFunction(Zt));return Lr.equalsGreaterThanToken=zn!=null?zn:Pe(38),Lr.transformFlags|=fe(Lr.equalsGreaterThanToken)|512,e.modifiersToFlags(Lr.modifiers)&256&&(Lr.transformFlags|=128|8192),Lr}function ic(h,G,ve,on,zn,Zt,Lr){return h.modifiers!==G||h.typeParameters!==ve||h.parameters!==on||h.type!==zn||h.equalsGreaterThanToken!==Zt||h.body!==Lr?Ue(vs(G,ve,on,zn,Zt,Lr),h):h}function Pl(h){var G=Ga(213);return G.expression=f().parenthesizeOperandOfPrefixUnary(h),G.transformFlags|=fe(G.expression),G}function cl(h,G){return h.expression!==G?A(Pl(G),h):h}function nl(h){var G=Ga(214);return G.expression=f().parenthesizeOperandOfPrefixUnary(h),G.transformFlags|=fe(G.expression),G}function he(h,G){return h.expression!==G?A(nl(G),h):h}function Jn(h){var G=Ga(215);return G.expression=f().parenthesizeOperandOfPrefixUnary(h),G.transformFlags|=fe(G.expression),G}function Ee(h,G){return h.expression!==G?A(Jn(G),h):h}function Mn(h){var G=Ga(216);return G.expression=f().parenthesizeOperandOfPrefixUnary(h),G.transformFlags|=fe(G.expression)|128|64|1048576,G}function dr(h,G){return h.expression!==G?A(Mn(G),h):h}function Yr(h,G){var ve=Ga(217);return ve.operator=h,ve.operand=f().parenthesizeOperandOfPrefixUnary(G),ve.transformFlags|=fe(ve.operand),(h===45||h===46)&&e.isIdentifier(ve.operand)&&!e.isGeneratedIdentifier(ve.operand)&&!e.isLocalName(ve.operand)&&(ve.transformFlags|=67108864),ve}function da(h,G){return h.operand!==G?A(Yr(h.operator,G),h):h}function ya(h,G){var ve=Ga(218);return ve.operator=G,ve.operand=f().parenthesizeOperandOfPostfixUnary(h),ve.transformFlags|=fe(ve.operand),e.isIdentifier(ve.operand)&&!e.isGeneratedIdentifier(ve.operand)&&!e.isLocalName(ve.operand)&&(ve.transformFlags|=67108864),ve}function bo(h,G){return h.operand!==G?A(ya(G,h.operator),h):h}function On(h,G,ve){var on=Ga(219),zn=Ir(G),Zt=zn.kind;return on.left=f().parenthesizeLeftSideOfBinary(Zt,h),on.operatorToken=zn,on.right=f().parenthesizeRightSideOfBinary(Zt,on.left,ve),on.transformFlags|=fe(on.left)|fe(on.operatorToken)|fe(on.right),Zt===60?on.transformFlags|=16:Zt===63?e.isObjectLiteralExpression(on.left)?on.transformFlags|=512|64|2048|Bo(on.left):e.isArrayLiteralExpression(on.left)&&(on.transformFlags|=512|2048|Bo(on.left)):Zt===42||Zt===67?on.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(Zt)&&(on.transformFlags|=8),on}function Bo(h){if(h.transformFlags&32768)return 32768;if(h.transformFlags&64)for(var G=0,ve=e.getElementsOfBindingOrAssignmentPattern(h);G<ve.length;G++){var on=ve[G],zn=e.getTargetOfBindingOrAssignmentElement(on);if(zn&&e.isAssignmentPattern(zn)){if(zn.transformFlags&32768)return 32768;if(zn.transformFlags&64){var Zt=Bo(zn);if(Zt)return Zt}}}return 0}function ps(h,G,ve,on){return h.left!==G||h.operatorToken!==ve||h.right!==on?A(On(G,ve,on),h):h}function ms(h,G,ve,on,zn){var Zt=Ga(220);return Zt.condition=f().parenthesizeConditionOfConditionalExpression(h),Zt.questionToken=G!=null?G:Pe(57),Zt.whenTrue=f().parenthesizeBranchOfConditionalExpression(ve),Zt.colonToken=on!=null?on:Pe(58),Zt.whenFalse=f().parenthesizeBranchOfConditionalExpression(zn),Zt.transformFlags|=fe(Zt.condition)|fe(Zt.questionToken)|fe(Zt.whenTrue)|fe(Zt.colonToken)|fe(Zt.whenFalse),Zt}function _l(h,G,ve,on,zn,Zt){return h.condition!==G||h.questionToken!==ve||h.whenTrue!==on||h.colonToken!==zn||h.whenFalse!==Zt?A(ms(G,ve,on,zn,Zt),h):h}function Gi(h,G){var ve=Ga(221);return ve.head=h,ve.templateSpans=J(G),ve.transformFlags|=fe(ve.head)|_(ve.templateSpans)|512,ve}function qs(h,G,ve){return h.head!==G||h.templateSpans!==ve?A(Gi(G,ve),h):h}function pl(h,G,ve,on){on===void 0&&(on=0),e.Debug.assert(!(on&~2048),"Unsupported template flags.");var zn=void 0;if(ve!==void 0&&ve!==G&&(zn=w(h,ve),typeof zn=="object"))return e.Debug.fail("Invalid raw text");if(G===void 0){if(zn===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");G=zn}else zn!==void 0&&e.Debug.assert(G===zn,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Ec(h,G,ve,on)}function Ec(h,G,ve,on){var zn=oe(h);return zn.text=G,zn.rawText=ve,zn.templateFlags=on&2048,zn.transformFlags|=512,zn.templateFlags&&(zn.transformFlags|=64),zn}function lc(h,G,ve){return pl(15,h,G,ve)}function Pc(h,G,ve){return pl(16,h,G,ve)}function oc(h,G,ve){return pl(17,h,G,ve)}function au(h,G,ve){return pl(14,h,G,ve)}function cc(h,G){e.Debug.assert(!h||!!G,"A `YieldExpression` with an asteriskToken must have an expression.");var ve=Ga(222);return ve.expression=G&&f().parenthesizeExpressionForDisallowedComma(G),ve.asteriskToken=h,ve.transformFlags|=fe(ve.expression)|fe(ve.asteriskToken)|512|64|524288,ve}function Zl(h,G,ve){return h.expression!==ve||h.asteriskToken!==G?A(cc(G,ve),h):h}function kn(h){var G=Ga(223);return G.expression=f().parenthesizeExpressionForDisallowedComma(h),G.transformFlags|=fe(G.expression)|512|16384,G}function ot(h,G){return h.expression!==G?A(kn(G),h):h}function Nt(h,G,ve,on,zn,Zt){var Lr=$e(224,h,G,ve,on,zn,Zt);return Lr.transformFlags|=512,Lr}function or(h,G,ve,on,zn,Zt,Lr){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.typeParameters!==zn||h.heritageClauses!==Zt||h.members!==Lr?A(Nt(G,ve,on,zn,Zt,Lr),h):h}function Sr(){return Ga(225)}function Er(h,G){var ve=C(226);return ve.expression=f().parenthesizeLeftSideOfAccess(h),ve.typeArguments=G&&f().parenthesizeTypeArguments(G),ve.transformFlags|=fe(ve.expression)|_(ve.typeArguments)|512,ve}function Gr(h,G,ve){return h.expression!==G||h.typeArguments!==ve?A(Er(G,ve),h):h}function $r(h,G){var ve=Ga(227);return ve.expression=h,ve.type=G,ve.transformFlags|=fe(ve.expression)|fe(ve.type)|1,ve}function zr(h,G,ve){return h.expression!==G||h.type!==ve?A($r(G,ve),h):h}function wi(h){var G=Ga(228);return G.expression=f().parenthesizeLeftSideOfAccess(h),G.transformFlags|=fe(G.expression)|1,G}function Ta(h,G){return e.isNonNullChain(h)?ji(h,G):h.expression!==G?A(wi(G),h):h}function Oa(h){var G=Ga(228);return G.flags|=32,G.expression=f().parenthesizeLeftSideOfAccess(h),G.transformFlags|=fe(G.expression)|1,G}function ji(h,G){return e.Debug.assert(!!(h.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),h.expression!==G?A(Oa(G),h):h}function Ri(h,G){var ve=Ga(229);ve.keywordToken=h,ve.name=G,ve.transformFlags|=fe(ve.name);switch(h){case 103:ve.transformFlags|=512;break;case 100:ve.transformFlags|=4;break;default:return e.Debug.assertNever(h)}return ve}function ye(h,G){return h.name!==G?A(Ri(h.keywordToken,G),h):h}function cn(h,G){var ve=C(231);return ve.expression=h,ve.literal=G,ve.transformFlags|=fe(ve.expression)|fe(ve.literal)|512,ve}function Sn(h,G,ve){return h.expression!==G||h.literal!==ve?A(cn(G,ve),h):h}function Tt(){var h=C(232);return h.transformFlags|=512,h}function Vt(h,G){var ve=C(233);return ve.statements=J(h),ve.multiLine=G,ve.transformFlags|=_(ve.statements),ve}function Zr(h,G){return h.statements!==G?A(Vt(G,h.multiLine),h):h}function Da(h,G){var ve=we(235,void 0,h);return ve.declarationList=e.isArray(G)?a(G):G,ve.transformFlags|=fe(ve.declarationList),e.modifiersToFlags(ve.modifiers)&2&&(ve.transformFlags=1),ve}function gi(h,G,ve){return h.modifiers!==G||h.declarationList!==ve?A(Da(G,ve),h):h}function Eo(){return C(234)}function Fo(h){var G=C(236);return G.expression=f().parenthesizeExpressionOfExpressionStatement(h),G.transformFlags|=fe(G.expression),G}function bs(h,G){return h.expression!==G?A(Fo(G),h):h}function Li(h,G,ve){var on=C(237);return on.expression=h,on.thenStatement=kl(G),on.elseStatement=kl(ve),on.transformFlags|=fe(on.expression)|fe(on.thenStatement)|fe(on.elseStatement),on}function Uo(h,G,ve,on){return h.expression!==G||h.thenStatement!==ve||h.elseStatement!==on?A(Li(G,ve,on),h):h}function Hn(h,G){var ve=C(238);return ve.statement=kl(h),ve.expression=G,ve.transformFlags|=fe(ve.statement)|fe(ve.expression),ve}function Zo(h,G,ve){return h.statement!==G||h.expression!==ve?A(Hn(G,ve),h):h}function Ds(h,G){var ve=C(239);return ve.expression=h,ve.statement=kl(G),ve.transformFlags|=fe(ve.expression)|fe(ve.statement),ve}function Vs(h,G,ve){return h.expression!==G||h.statement!==ve?A(Ds(G,ve),h):h}function iu(h,G,ve,on){var zn=C(240);return zn.initializer=h,zn.condition=G,zn.incrementor=ve,zn.statement=kl(on),zn.transformFlags|=fe(zn.initializer)|fe(zn.condition)|fe(zn.incrementor)|fe(zn.statement),zn}function fc(h,G,ve,on,zn){return h.initializer!==G||h.condition!==ve||h.incrementor!==on||h.statement!==zn?A(iu(G,ve,on,zn),h):h}function ou(h,G,ve){var on=C(241);return on.initializer=h,on.expression=G,on.statement=kl(ve),on.transformFlags|=fe(on.initializer)|fe(on.expression)|fe(on.statement),on}function oo(h,G,ve,on){return h.initializer!==G||h.expression!==ve||h.statement!==on?A(ou(G,ve,on),h):h}function tl(h,G,ve,on){var zn=C(242);return zn.awaitModifier=h,zn.initializer=G,zn.expression=f().parenthesizeExpressionForDisallowedComma(ve),zn.statement=kl(on),zn.transformFlags|=fe(zn.awaitModifier)|fe(zn.initializer)|fe(zn.expression)|fe(zn.statement)|512,h&&(zn.transformFlags|=64),zn}function su(h,G,ve,on,zn){return h.awaitModifier!==G||h.initializer!==ve||h.expression!==on||h.statement!==zn?A(tl(G,ve,on,zn),h):h}function Au(h){var G=C(243);return G.label=ec(h),G.transformFlags|=fe(G.label)|2097152,G}function lu(h,G){return h.label!==G?A(Au(G),h):h}function Du(h){var G=C(244);return G.label=ec(h),G.transformFlags|=fe(G.label)|2097152,G}function cu(h,G){return h.label!==G?A(Du(G),h):h}function Of(h){var G=C(245);return G.expression=h,G.transformFlags|=fe(G.expression)|64|2097152,G}function Wl(h,G){return h.expression!==G?A(Of(G),h):h}function ad(h,G){var ve=C(246);return ve.expression=h,ve.statement=kl(G),ve.transformFlags|=fe(ve.expression)|fe(ve.statement),ve}function id(h,G,ve){return h.expression!==G||h.statement!==ve?A(ad(G,ve),h):h}function $a(h,G){var ve=C(247);return ve.expression=f().parenthesizeExpressionForDisallowedComma(h),ve.caseBlock=G,ve.transformFlags|=fe(ve.expression)|fe(ve.caseBlock),ve}function pa(h,G,ve){return h.expression!==G||h.caseBlock!==ve?A($a(G,ve),h):h}function Tc(h,G){var ve=C(248);return ve.label=ec(h),ve.statement=kl(G),ve.transformFlags|=fe(ve.label)|fe(ve.statement),ve}function Vo(h,G,ve){return h.label!==G||h.statement!==ve?A(Tc(G,ve),h):h}function yi(h){var G=C(249);return G.expression=h,G.transformFlags|=fe(G.expression),G}function pc(h,G){return h.expression!==G?A(yi(G),h):h}function rl(h,G,ve){var on=C(250);return on.tryBlock=h,on.catchClause=G,on.finallyBlock=ve,on.transformFlags|=fe(on.tryBlock)|fe(on.catchClause)|fe(on.finallyBlock),on}function Zi(h,G,ve,on){return h.tryBlock!==G||h.catchClause!==ve||h.finallyBlock!==on?A(rl(G,ve,on),h):h}function vl(){return C(251)}function al(h,G,ve,on){var zn=Le(252,void 0,void 0,h,ve,on&&f().parenthesizeExpressionForDisallowedComma(on));return zn.exclamationToken=G,zn.transformFlags|=fe(zn.exclamationToken),G&&(zn.transformFlags|=1),zn}function Cu(h,G,ve,on,zn){return h.name!==G||h.type!==on||h.exclamationToken!==ve||h.initializer!==zn?A(al(G,ve,on,zn),h):h}function a(h,G){G===void 0&&(G=0);var ve=C(253);return ve.flags|=G&3,ve.declarations=J(h),ve.transformFlags|=_(ve.declarations)|2097152,G&3&&(ve.transformFlags|=512|131072),ve}function H(h,G){return h.declarations!==G?A(a(G,h.flags),h):h}function Ae(h,G,ve,on,zn,Zt,Lr,Ei){var as=Ce(254,h,G,on,zn,Zt,Lr,Ei);return as.asteriskToken=ve,!as.body||e.modifiersToFlags(as.modifiers)&2?as.transformFlags=1:(as.transformFlags|=fe(as.asteriskToken)|2097152,e.modifiersToFlags(as.modifiers)&256?as.asteriskToken?as.transformFlags|=64:as.transformFlags|=128:as.asteriskToken&&(as.transformFlags|=1024)),as}function nn(h,G,ve,on,zn,Zt,Lr,Ei,as){return h.decorators!==G||h.modifiers!==ve||h.asteriskToken!==on||h.name!==zn||h.typeParameters!==Zt||h.parameters!==Lr||h.type!==Ei||h.body!==as?Ue(Ae(G,ve,on,zn,Zt,Lr,Ei,as),h):h}function In(h,G,ve,on,zn,Zt){var Lr=$e(255,h,G,ve,on,zn,Zt);return e.modifiersToFlags(Lr.modifiers)&2?Lr.transformFlags=1:(Lr.transformFlags|=512,Lr.transformFlags&4096&&(Lr.transformFlags|=1)),Lr}function Gn(h,G,ve,on,zn,Zt,Lr){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.typeParameters!==zn||h.heritageClauses!==Zt||h.members!==Lr?A(In(G,ve,on,zn,Zt,Lr),h):h}function bt(h,G,ve,on,zn,Zt){var Lr=Se(256,h,G,ve,on,zn);return Lr.members=J(Zt),Lr.transformFlags=1,Lr}function pt(h,G,ve,on,zn,Zt,Lr){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.typeParameters!==zn||h.heritageClauses!==Zt||h.members!==Lr?A(bt(G,ve,on,zn,Zt,Lr),h):h}function It(h,G,ve,on,zn){var Zt=te(257,h,G,ve,on);return Zt.type=zn,Zt.transformFlags=1,Zt}function Pt(h,G,ve,on,zn,Zt){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.typeParameters!==zn||h.type!==Zt?A(It(G,ve,on,zn,Zt),h):h}function er(h,G,ve,on){var zn=Oe(258,h,G,ve);return zn.members=J(on),zn.transformFlags|=_(zn.members)|1,zn.transformFlags&=~16777216,zn}function jr(h,G,ve,on,zn){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.members!==zn?A(er(G,ve,on,zn),h):h}function Qa(h,G,ve,on,zn){zn===void 0&&(zn=0);var Zt=we(259,h,G);return Zt.flags|=zn&(16|4|1024),Zt.name=ve,Zt.body=on,e.modifiersToFlags(Zt.modifiers)&2?Zt.transformFlags=1:Zt.transformFlags|=fe(Zt.name)|fe(Zt.body)|1,Zt.transformFlags&=~16777216,Zt}function Wi(h,G,ve,on,zn){return h.decorators!==G||h.modifiers!==ve||h.name!==on||h.body!==zn?A(Qa(G,ve,on,zn,h.flags),h):h}function uo(h){var G=C(260);return G.statements=J(h),G.transformFlags|=_(G.statements),G}function $o(h,G){return h.statements!==G?A(uo(G),h):h}function hs(h){var G=C(261);return G.clauses=J(h),G.transformFlags|=_(G.clauses),G}function es(h,G){return h.clauses!==G?A(hs(G),h):h}function qr(h){var G=Oe(262,void 0,void 0,h);return G.transformFlags=1,G}function pi(h,G){return h.name!==G?A(qr(G),h):h}function Ya(h,G,ve,on,zn){var Zt=Oe(263,h,G,on);return Zt.isTypeOnly=ve,Zt.moduleReference=zn,Zt.transformFlags|=fe(Zt.moduleReference),e.isExternalModuleReference(Zt.moduleReference)||(Zt.transformFlags|=1),Zt.transformFlags&=~16777216,Zt}function ki(h,G,ve,on,zn,Zt){return h.decorators!==G||h.modifiers!==ve||h.isTypeOnly!==on||h.name!==zn||h.moduleReference!==Zt?A(Ya(G,ve,on,zn,Zt),h):h}function Hi(h,G,ve,on){var zn=we(264,h,G);return zn.importClause=ve,zn.moduleSpecifier=on,zn.transformFlags|=fe(zn.importClause)|fe(zn.moduleSpecifier),zn.transformFlags&=~16777216,zn}function Ci(h,G,ve,on,zn){return h.decorators!==G||h.modifiers!==ve||h.importClause!==on||h.moduleSpecifier!==zn?A(Hi(G,ve,on,zn),h):h}function jo(h,G,ve){var on=C(265);return on.isTypeOnly=h,on.name=G,on.namedBindings=ve,on.transformFlags|=fe(on.name)|fe(on.namedBindings),h&&(on.transformFlags|=1),on.transformFlags&=~16777216,on}function Gs(h,G,ve,on){return h.isTypeOnly!==G||h.name!==ve||h.namedBindings!==on?A(jo(G,ve,on),h):h}function Cs(h){var G=C(266);return G.name=h,G.transformFlags|=fe(G.name),G.transformFlags&=~16777216,G}function ho(h,G){return h.name!==G?A(Cs(G),h):h}function qc(h){var G=C(272);return G.name=h,G.transformFlags|=fe(G.name)|4,G.transformFlags&=~16777216,G}function Pf(h,G){return h.name!==G?A(qc(G),h):h}function cf(h){var G=C(267);return G.elements=J(h),G.transformFlags|=_(G.elements),G.transformFlags&=~16777216,G}function Rf(h,G){return h.elements!==G?A(cf(G),h):h}function Mf(h,G){var ve=C(268);return ve.propertyName=h,ve.name=G,ve.transformFlags|=fe(ve.propertyName)|fe(ve.name),ve.transformFlags&=~16777216,ve}function Ff(h,G,ve){return h.propertyName!==G||h.name!==ve?A(Mf(G,ve),h):h}function cp(h,G,ve,on){var zn=we(269,h,G);return zn.isExportEquals=ve,zn.expression=ve?f().parenthesizeRightSideOfBinary(63,void 0,on):f().parenthesizeExpressionOfExportDefault(on),zn.transformFlags|=fe(zn.expression),zn.transformFlags&=~16777216,zn}function uf(h,G,ve,on){return h.decorators!==G||h.modifiers!==ve||h.expression!==on?A(cp(G,ve,h.isExportEquals,on),h):h}function bd(h,G,ve,on,zn){var Zt=we(270,h,G);return Zt.isTypeOnly=ve,Zt.exportClause=on,Zt.moduleSpecifier=zn,Zt.transformFlags|=fe(Zt.exportClause)|fe(Zt.moduleSpecifier),Zt.transformFlags&=~16777216,Zt}function bl(h,G,ve,on,zn,Zt){return h.decorators!==G||h.modifiers!==ve||h.isTypeOnly!==on||h.exportClause!==zn||h.moduleSpecifier!==Zt?A(bd(G,ve,on,zn,Zt),h):h}function mc(h){var G=C(271);return G.elements=J(h),G.transformFlags|=_(G.elements),G.transformFlags&=~16777216,G}function od(h,G){return h.elements!==G?A(mc(G),h):h}function Ku(h,G){var ve=C(273);return ve.propertyName=ec(h),ve.name=ec(G),ve.transformFlags|=fe(ve.propertyName)|fe(ve.name),ve.transformFlags&=~16777216,ve}function Mp(h,G,ve){return h.propertyName!==G||h.name!==ve?A(Ku(G,ve),h):h}function df(){var h=we(274,void 0,void 0);return h}function Ed(h){var G=C(275);return G.expression=h,G.transformFlags|=fe(G.expression),G.transformFlags&=~16777216,G}function ku(h,G){return h.expression!==G?A(Ed(G),h):h}function Ho(h){return C(h)}function ks(h,G){var ve=C(h);return ve.type=G,ve}function Lu(h,G,ve){return G.type!==ve?A(ks(h,ve),G):G}function El(h,G){var ve=Te(312,void 0,void 0,void 0,void 0,h,G);return ve}function Fp(h,G,ve){return h.parameters!==G||h.type!==ve?A(El(G,ve),h):h}function hc(h,G){G===void 0&&(G=!1);var ve=C(317);return ve.jsDocPropertyTags=Kl(h),ve.isArrayType=G,ve}function Td(h,G,ve){return h.jsDocPropertyTags!==G||h.isArrayType!==ve?A(hc(G,ve),h):h}function Sc(h){var G=C(304);return G.type=h,G}function qo(h,G){return h.type!==G?A(Sc(G),h):h}function Sd(h,G,ve){var on=C(318);return on.typeParameters=Kl(h),on.parameters=J(G),on.type=ve,on}function uu(h,G,ve,on){return h.typeParameters!==G||h.parameters!==ve||h.type!==on?A(Sd(G,ve,on),h):h}function rs(h){var G=ne(h.kind);return h.tagName.escapedText===e.escapeLeadingUnderscores(G)?h.tagName:vn(G)}function zc(h,G,ve){var on=C(h);return on.tagName=G,on.comment=ve,on}function Gf(h,G,ve,on){var zn=zc(339,h!=null?h:vn("template"),on);return zn.constraint=G,zn.typeParameters=J(ve),zn}function up(h,G,ve,on,zn){return G===void 0&&(G=rs(h)),h.tagName!==G||h.constraint!==ve||h.typeParameters!==on||h.comment!==zn?A(Gf(G,ve,on,zn),h):h}function Ur(h,G,ve,on){var zn=zc(340,h!=null?h:vn("typedef"),on);return zn.typeExpression=G,zn.fullName=ve,zn.name=e.getJSDocTypeAliasName(ve),zn}function Ko(h,G,ve,on,zn){return G===void 0&&(G=rs(h)),h.tagName!==G||h.typeExpression!==ve||h.fullName!==on||h.comment!==zn?A(Ur(G,ve,on,zn),h):h}function mi(h,G,ve,on,zn,Zt){var Lr=zc(335,h!=null?h:vn("param"),Zt);return Lr.typeExpression=on,Lr.name=G,Lr.isNameFirst=!!zn,Lr.isBracketed=ve,Lr}function du(h,G,ve,on,zn,Zt,Lr){return G===void 0&&(G=rs(h)),h.tagName!==G||h.name!==ve||h.isBracketed!==on||h.typeExpression!==zn||h.isNameFirst!==Zt||h.comment!==Lr?A(mi(G,ve,on,zn,Zt,Lr),h):h}function Bf(h,G,ve,on,zn,Zt){var Lr=zc(342,h!=null?h:vn("prop"),Zt);return Lr.typeExpression=on,Lr.name=G,Lr.isNameFirst=!!zn,Lr.isBracketed=ve,Lr}function Iu(h,G,ve,on,zn,Zt,Lr){return G===void 0&&(G=rs(h)),h.tagName!==G||h.name!==ve||h.isBracketed!==on||h.typeExpression!==zn||h.isNameFirst!==Zt||h.comment!==Lr?A(Bf(G,ve,on,zn,Zt,Lr),h):h}function wr(h,G,ve,on){var zn=zc(333,h!=null?h:vn("callback"),on);return zn.typeExpression=G,zn.fullName=ve,zn.name=e.getJSDocTypeAliasName(ve),zn}function xd(h,G,ve,on,zn){return G===void 0&&(G=rs(h)),h.tagName!==G||h.typeExpression!==ve||h.fullName!==on||h.comment!==zn?A(wr(G,ve,on,zn),h):h}function Is(h,G,ve){var on=zc(323,h!=null?h:vn("augments"),ve);return on.class=G,on}function Rl(h,G,ve,on){return G===void 0&&(G=rs(h)),h.tagName!==G||h.class!==ve||h.comment!==on?A(Is(G,ve,on),h):h}function sc(h,G,ve){var on=zc(324,h!=null?h:vn("implements"),ve);return on.class=G,on}function Pd(h,G,ve){var on=zc(341,h!=null?h:vn("see"),ve);return on.name=G,on}function dp(h,G,ve,on){return h.tagName!==G||h.name!==ve||h.comment!==on?A(Pd(G,ve,on),h):h}function Ju(h){var G=C(305);return G.name=h,G}function Xc(h,G){return h.name!==G?A(Ju(G),h):h}function Rd(h,G){var ve=C(306);return ve.left=h,ve.right=G,ve.transformFlags|=fe(ve.left)|fe(ve.right),ve}function ul(h,G,ve){return h.left!==G||h.right!==ve?A(Rd(G,ve),h):h}function Bc(h,G){var ve=C(319);return ve.name=h,ve.text=G,ve}function Uf(h,G,ve){return h.name!==G?A(Bc(G,ve),h):h}function wd(h,G){var ve=C(320);return ve.name=h,ve.text=G,ve}function To(h,G,ve){return h.name!==G?A(wd(G,ve),h):h}function Rr(h,G){var ve=C(321);return ve.name=h,ve.text=G,ve}function $l(h,G,ve){return h.name!==G?A(Rr(G,ve),h):h}function Gp(h,G,ve,on){return G===void 0&&(G=rs(h)),h.tagName!==G||h.class!==ve||h.comment!==on?A(sc(G,ve,on),h):h}function sd(h,G,ve){var on=zc(h,G!=null?G:vn(ne(h)),ve);return on}function fu(h,G,ve,on){return ve===void 0&&(ve=rs(G)),G.tagName!==ve||G.comment!==on?A(sd(h,ve,on),G):G}function Vf(h,G,ve,on){var zn=zc(h,G!=null?G:vn(ne(h)),on);return zn.typeExpression=ve,zn}function Md(h,G,ve,on,zn){return ve===void 0&&(ve=rs(G)),G.tagName!==ve||G.typeExpression!==on||G.comment!==zn?A(Vf(h,ve,on,zn),G):G}function xc(h,G){var ve=zc(322,h,G);return ve}function pu(h,G,ve){return h.tagName!==G||h.comment!==ve?A(xc(G,ve),h):h}function Uc(h){var G=C(316);return G.text=h,G}function Vc(h,G){return h.text!==G?A(Uc(G),h):h}function Hl(h,G){var ve=C(315);return ve.comment=h,ve.tags=Kl(G),ve}function zs(h,G,ve){return h.comment!==G||h.tags!==ve?A(Hl(G,ve),h):h}function Ns(h,G,ve){var on=C(276);return on.openingElement=h,on.children=J(G),on.closingElement=ve,on.transformFlags|=fe(on.openingElement)|_(on.children)|fe(on.closingElement)|2,on}function Tl(h,G,ve,on){return h.openingElement!==G||h.children!==ve||h.closingElement!==on?A(Ns(G,ve,on),h):h}function fp(h,G,ve){var on=C(277);return on.tagName=h,on.typeArguments=Kl(G),on.attributes=ve,on.transformFlags|=fe(on.tagName)|_(on.typeArguments)|fe(on.attributes)|2,on.typeArguments&&(on.transformFlags|=1),on}function Yc(h,G,ve,on){return h.tagName!==G||h.typeArguments!==ve||h.attributes!==on?A(fp(G,ve,on),h):h}function Sl(h,G,ve){var on=C(278);return on.tagName=h,on.typeArguments=Kl(G),on.attributes=ve,on.transformFlags|=fe(on.tagName)|_(on.typeArguments)|fe(on.attributes)|2,G&&(on.transformFlags|=1),on}function ld(h,G,ve,on){return h.tagName!==G||h.typeArguments!==ve||h.attributes!==on?A(Sl(G,ve,on),h):h}function ff(h){var G=C(279);return G.tagName=h,G.transformFlags|=fe(G.tagName)|2,G}function sl(h,G){return h.tagName!==G?A(ff(G),h):h}function ns(h,G,ve){var on=C(280);return on.openingFragment=h,on.children=J(G),on.closingFragment=ve,on.transformFlags|=fe(on.openingFragment)|_(on.children)|fe(on.closingFragment)|2,on}function pp(h,G,ve,on){return h.openingFragment!==G||h.children!==ve||h.closingFragment!==on?A(ns(G,ve,on),h):h}function Nu(h,G){var ve=C(11);return ve.text=h,ve.containsOnlyTriviaWhiteSpaces=!!G,ve.transformFlags|=2,ve}function cd(h,G,ve){return h.text!==G||h.containsOnlyTriviaWhiteSpaces!==ve?A(Nu(G,ve),h):h}function pf(){var h=C(281);return h.transformFlags|=2,h}function jf(){var h=C(282);return h.transformFlags|=2,h}function mp(h,G){var ve=C(283);return ve.name=h,ve.initializer=G,ve.transformFlags|=fe(ve.name)|fe(ve.initializer)|2,ve}function mf(h,G,ve){return h.name!==G||h.initializer!==ve?A(mp(G,ve),h):h}function Ou(h){var G=C(284);return G.properties=J(h),G.transformFlags|=_(G.properties)|2,G}function Wf(h,G){return h.properties!==G?A(Ou(G),h):h}function Fd(h){var G=C(285);return G.expression=h,G.transformFlags|=fe(G.expression)|2,G}function ud(h,G){return h.expression!==G?A(Fd(G),h):h}function Ad(h,G){var ve=C(286);return ve.dotDotDotToken=h,ve.expression=G,ve.transformFlags|=fe(ve.dotDotDotToken)|fe(ve.expression)|2,ve}function hf(h,G){return h.expression!==G?A(Ad(h.dotDotDotToken,G),h):h}function gf(h,G){var ve=C(287);return ve.expression=f().parenthesizeExpressionForDisallowedComma(h),ve.statements=J(G),ve.transformFlags|=fe(ve.expression)|_(ve.statements),ve}function dd(h,G,ve){return h.expression!==G||h.statements!==ve?A(gf(G,ve),h):h}function Hf(h){var G=C(288);return G.statements=J(h),G.transformFlags=_(G.statements),G}function hp(h,G){return h.statements!==G?A(Hf(G),h):h}function Xa(h,G){var ve=C(289);ve.token=h,ve.types=J(G),ve.transformFlags|=_(ve.types);switch(h){case 94:ve.transformFlags|=512;break;case 117:ve.transformFlags|=1;break;default:return e.Debug.assertNever(h)}return ve}function jc(h,G){return h.types!==G?A(Xa(h.token,G),h):h}function Ar(h,G){var ve=C(290);return h=e.isString(h)?al(h,void 0,void 0,void 0):h,ve.variableDeclaration=h,ve.block=G,ve.transformFlags|=fe(ve.variableDeclaration)|fe(ve.block),h||(ve.transformFlags|=32),ve}function Gd(h,G,ve){return h.variableDeclaration!==G||h.block!==ve?A(Ar(G,ve),h):h}function qu(h,G){var ve=Oe(291,void 0,void 0,h);return ve.initializer=f().parenthesizeExpressionForDisallowedComma(G),ve.transformFlags|=fe(ve.name)|fe(ve.initializer),ve}function yf(h,G){return G.decorators&&(h.decorators=G.decorators),G.modifiers&&(h.modifiers=G.modifiers),G.questionToken&&(h.questionToken=G.questionToken),G.exclamationToken&&(h.exclamationToken=G.exclamationToken),A(h,G)}function Bd(h,G,ve){return h.name!==G||h.initializer!==ve?yf(qu(G,ve),h):h}function _f(h,G){var ve=Oe(292,void 0,void 0,h);return ve.objectAssignmentInitializer=G&&f().parenthesizeExpressionForDisallowedComma(G),ve.transformFlags|=fe(ve.objectAssignmentInitializer)|512,ve}function fd(h,G){return G.decorators&&(h.decorators=G.decorators),G.modifiers&&(h.modifiers=G.modifiers),G.equalsToken&&(h.equalsToken=G.equalsToken),G.questionToken&&(h.questionToken=G.questionToken),G.exclamationToken&&(h.exclamationToken=G.exclamationToken),A(h,G)}function wc(h,G,ve){return h.name!==G||h.objectAssignmentInitializer!==ve?fd(_f(G,ve),h):h}function gc(h){var G=C(293);return G.expression=f().parenthesizeExpressionForDisallowedComma(h),G.transformFlags|=fe(G.expression)|64|32768,G}function vf(h,G){return h.expression!==G?A(gc(G),h):h}function zu(h,G){var ve=C(294);return ve.name=ec(h),ve.initializer=G&&f().parenthesizeExpressionForDisallowedComma(G),ve.transformFlags|=fe(ve.name)|fe(ve.initializer)|1,ve}function gp(h,G,ve){return h.name!==G||h.initializer!==ve?A(zu(G,ve),h):h}function bf(h,G,ve){var on=B.createBaseSourceFileNode(300);return on.statements=J(h),on.endOfFileToken=G,on.flags|=ve,on.fileName="",on.text="",on.languageVersion=0,on.languageVariant=0,on.scriptKind=0,on.isDeclarationFile=!1,on.hasNoDefaultLib=!1,on.transformFlags|=_(on.statements)|fe(on.endOfFileToken),on}function Xu(h,G,ve,on,zn,Zt,Lr){var Ei=B.createBaseSourceFileNode(300);for(var as in h){if(as==="emitNode"||e.hasProperty(Ei,as)||!e.hasProperty(h,as))continue;Ei[as]=h[as]}return Ei.flags|=h.flags,Ei.statements=J(G),Ei.endOfFileToken=h.endOfFileToken,Ei.isDeclarationFile=ve,Ei.referencedFiles=on,Ei.typeReferenceDirectives=zn,Ei.hasNoDefaultLib=Zt,Ei.libReferenceDirectives=Lr,Ei.transformFlags=_(Ei.statements)|fe(Ei.endOfFileToken),Ei}function pd(h,G,ve,on,zn,Zt,Lr){return ve===void 0&&(ve=h.isDeclarationFile),on===void 0&&(on=h.referencedFiles),zn===void 0&&(zn=h.typeReferenceDirectives),Zt===void 0&&(Zt=h.hasNoDefaultLib),Lr===void 0&&(Lr=h.libReferenceDirectives),h.statements!==G||h.isDeclarationFile!==ve||h.referencedFiles!==on||h.typeReferenceDirectives!==zn||h.hasNoDefaultLib!==Zt||h.libReferenceDirectives!==Lr?A(Xu(h,G,ve,on,zn,Zt,Lr),h):h}function mu(h,G){G===void 0&&(G=e.emptyArray);var ve=C(301);return ve.prepends=G,ve.sourceFiles=h,ve}function Kf(h,G,ve){return ve===void 0&&(ve=e.emptyArray),h.sourceFiles!==G||h.prepends!==ve?A(mu(G,ve),h):h}function Qc(h,G,ve){var on=C(302);return on.prologues=h,on.syntheticReferences=G,on.texts=ve,on.fileName="",on.text="",on.referencedFiles=e.emptyArray,on.libReferenceDirectives=e.emptyArray,on.getLineAndCharacterOfPosition=function(zn){return e.getLineAndCharacterOfPosition(on,zn)},on}function Ef(h,G){var ve=C(h);return ve.data=G,ve}function Jf(h){return Ef(295,h)}function Wc(h,G){var ve=Ef(296,h);return ve.texts=G,ve}function Ud(h,G){return Ef(G?298:297,h)}function Pu(h){var G=C(299);return G.data=h.data,G.section=h,G}function js(){var h=C(303);return h.javascriptText="",h.declarationText="",h}function Bp(h,G,ve){G===void 0&&(G=!1);var on=C(230);return on.type=h,on.isSpread=G,on.tupleNameSource=ve,on}function no(h){var G=C(343);return G._children=h,G}function Vd(h){var G=C(344);return G.original=h,e.setTextRange(G,h),G}function Tf(h,G){var ve=C(345);return ve.expression=h,ve.original=G,ve.transformFlags|=fe(ve.expression)|1,e.setTextRange(ve,G),ve}function qf(h,G){return h.expression!==G?A(Tf(G,h.original),h):h}function zf(h){if(e.nodeIsSynthesized(h)&&!e.isParseTreeNode(h)&&!h.original&&!h.emitNode&&!h.id){if(e.isCommaListExpression(h))return h.elements;if(e.isBinaryExpression(h)&&e.isCommaToken(h.operatorToken))return[h.left,h.right]}return h}function Dd(h){var G=C(346);return G.elements=J(e.sameFlatMap(h,zf)),G.transformFlags|=_(G.elements),G}function y(h,G){return h.elements!==G?A(Dd(G),h):h}function en(h){var G=C(348);return G.emitNode={},G.original=h,G}function ft(h){var G=C(347);return G.emitNode={},G.original=h,G}function Ut(h,G){var ve=C(349);return ve.expression=h,ve.thisArg=G,ve.transformFlags|=fe(ve.expression)|fe(ve.thisArg),ve}function _a(h,G,ve){return h.expression!==G||h.thisArg!==ve?A(Ut(G,ve),h):h}function Na(h){if(h===void 0)return h;var G=e.isSourceFile(h)?B.createBaseSourceFileNode(300):e.isIdentifier(h)?B.createBaseIdentifierNode(79):e.isPrivateIdentifier(h)?B.createBasePrivateIdentifierNode(80):e.isNodeKind(h.kind)?B.createBaseNode(h.kind):B.createBaseTokenNode(h.kind);G.flags|=h.flags&~8,G.transformFlags=h.transformFlags,le(G,h);for(var ve in h){if(G.hasOwnProperty(ve)||!h.hasOwnProperty(ve))continue;G[ve]=h[ve]}return G}function ja(h,G,ve){return na(Ol(void 0,void 0,void 0,void 0,G?[G]:[],void 0,Vt(h,!0)),void 0,ve?[ve]:[])}function ii(h,G,ve){return na(vs(void 0,void 0,G?[G]:[],void 0,void 0,Vt(h,!0)),void 0,ve?[ve]:[])}function Yi(){return Jn(pe("0"))}function ss(h){return cp(void 0,void 0,!1,h)}function gs(h){return bd(void 0,void 0,!1,mc([Ku(void 0,h)]))}function xl(h,G){return G==="undefined"?q.createStrictEquality(h,Yi()):q.createStrictEquality(nl(h),Ye(G))}function Os(h,G,ve){return e.isCallChain(h)?za(un(h,void 0,G),void 0,void 0,ve):na(De(h,G),void 0,ve)}function Ml(h,G,ve){return Os(h,"bind",Mt([G],ve,!0))}function Zc(h,G,ve){return Os(h,"call",Mt([G],ve,!0))}function Yu(h,G,ve){return Os(h,"apply",[G,ve])}function Fl(h,G,ve){return Os(vn(h),G,ve)}function $c(h,G){return Os(h,"slice",G===void 0?[]:[jd(G)])}function Up(h,G){return Os(h,"concat",G)}function Vp(h,G,ve){return Fl("Object","defineProperty",[h,jd(G),ve])}function jp(h,G,ve){return Fl("Reflect","get",ve?[h,G,ve]:[h,G])}function Wp(h,G,ve,on){return Fl("Reflect","set",on?[h,G,ve,on]:[h,G,ve])}function md(h,G,ve){return ve?(h.push(qu(G,ve)),!0):!1}function Lm(h,G){var ve=[];md(ve,"enumerable",jd(h.enumerable)),md(ve,"configurable",jd(h.configurable));var on=md(ve,"writable",jd(h.writable));on=md(ve,"value",h.value)||on;var zn=md(ve,"get",h.get);return zn=md(ve,"set",h.set)||zn,e.Debug.assert(!(on&&zn),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),pn(ve,!G)}function mm(h,G){switch(h.kind){case 210:return yl(h,G);case 209:return Js(h,h.type,G);case 227:return zr(h,G,h.type);case 228:return Ta(h,G);case 345:return qf(h,G)}}function th(h){return e.isParenthesizedExpression(h)&&e.nodeIsSynthesized(h)&&e.nodeIsSynthesized(e.getSourceMapRange(h))&&e.nodeIsSynthesized(e.getCommentRange(h))&&!e.some(e.getSyntheticLeadingComments(h))&&!e.some(e.getSyntheticTrailingComments(h))}function Hp(h,G,ve){return ve===void 0&&(ve=15),h&&e.isOuterExpression(h,ve)&&!th(h)?mm(h,Hp(h.expression,G)):G}function Sf(h,G,ve){if(!G)return h;var on=Vo(G,G.label,e.isLabeledStatement(G.statement)?Sf(h,G.statement):h);return ve&&ve(G),on}function xf(h,G){var ve=e.skipParentheses(h);switch(ve.kind){case 79:return G;case 108:case 8:case 9:case 10:return!1;case 202:var on=ve.elements;return!(on.length===0);case 203:return ve.properties.length>0;default:return!0}}function Ie(h,G,ve,on){on===void 0&&(on=!1);var zn=e.skipOuterExpressions(h,15),Zt,Lr;return e.isSuperProperty(zn)?(Zt=Qe(),Lr=zn):e.isSuperKeyword(zn)?(Zt=Qe(),Lr=ve!==void 0&&ve<2?e.setTextRange(vn("_super"),zn):zn):e.getEmitFlags(zn)&4096?(Zt=Yi(),Lr=f().parenthesizeLeftSideOfAccess(zn)):e.isPropertyAccessExpression(zn)?xf(zn.expression,on)?(Zt=Cn(G),Lr=De(e.setTextRange(q.createAssignment(Zt,zn.expression),zn.expression),zn.name),e.setTextRange(Lr,zn)):(Zt=zn.expression,Lr=zn):e.isElementAccessExpression(zn)?xf(zn.expression,on)?(Zt=Cn(G),Lr=mt(e.setTextRange(q.createAssignment(Zt,zn.expression),zn.expression),zn.argumentExpression),e.setTextRange(Lr,zn)):(Zt=zn.expression,Lr=zn):(Zt=Yi(),Lr=f().parenthesizeLeftSideOfAccess(h)),{target:Lr,thisArg:Zt}}function bn(h,G){return De(gl(pn([Ln(void 0,void 0,"value",[yt(void 0,void 0,void 0,h,void 0,void 0,void 0)],Vt([Fo(G)]))])),"value")}function Xn(h){return h.length>10?Dd(h):e.reduceLeft(h,q.createComma)}function dt(h,G,ve,on){on===void 0&&(on=0);var zn=e.getNameOfDeclaration(h);if(zn&&e.isIdentifier(zn)&&!e.isGeneratedIdentifier(zn)){var Zt=e.setParent(e.setTextRange(Na(zn),zn),zn.parent);return on|=e.getEmitFlags(zn),ve||(on|=48),G||(on|=1536),on&&e.setEmitFlags(Zt,on),Zt}return $n(h)}function Rt(h,G,ve){return dt(h,G,ve,16384|32768)}function lr(h,G,ve){return dt(h,G,ve,16384)}function Fr(h,G,ve){return dt(h,G,ve,8192)}function aa(h,G,ve){return dt(h,G,ve)}function di(h,G,ve,on){var zn=De(h,e.nodeIsSynthesized(G)?G:Na(G));e.setTextRange(zn,G);var Zt=0;return on||(Zt|=48),ve||(Zt|=1536),Zt&&e.setEmitFlags(zn,Zt),zn}function ka(h,G,ve,on){return h&&e.hasSyntacticModifier(G,1)?di(h,dt(G),ve,on):Fr(G,ve,on)}function Co(h,G,ve,on){var zn=Es(h,G,ve);return Xs(h,G,zn,on)}function Fs(h){return e.isStringLiteral(h.expression)&&h.expression.text==="use strict"}function ko(){return e.startOnNewLine(Fo(Ye("use strict")))}function Es(h,G,ve){e.Debug.assert(G.length===0,"Prologue directives should be at the first statement in the target statements array");for(var on=!1,zn=0,Zt=h.length;zn<Zt;){var Lr=h[zn];if(e.isPrologueDirective(Lr))Fs(Lr)&&(on=!0),G.push(Lr);else break;zn++}return ve&&!on&&G.push(ko()),zn}function Xs(h,G,ve,on,zn){zn===void 0&&(zn=e.returnTrue);for(var Zt=h.length;ve!==void 0&&ve<Zt;){var Lr=h[ve];if(e.getEmitFlags(Lr)&1048576&&zn(Lr))e.append(G,on?e.visitNode(Lr,on,e.isStatement):Lr);else break;ve++}return ve}function Cl(h){var G=e.findUseStrictPrologue(h);return G?h:e.setTextRange(J(Mt([ko()],h,!0)),h)}function Gl(h){return e.Debug.assert(e.every(h,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(h)||Vt(h)}function Hc(h,G,ve){for(var on=ve;on<h.length&&G(h[on]);)on++;return on}function uc(h,G){if(!e.some(G))return h;var ve=Hc(h,e.isPrologueDirective,0),on=Hc(h,e.isHoistedFunction,ve),zn=Hc(h,e.isHoistedVariableStatement,on),Zt=Hc(G,e.isPrologueDirective,0),Lr=Hc(G,e.isHoistedFunction,Zt),Ei=Hc(G,e.isHoistedVariableStatement,Lr),as=Hc(G,e.isCustomPrologue,Ei);e.Debug.assert(as===G.length,"Expected declarations to be valid standard or custom prologues");var ll=e.isNodeArray(h)?h.slice():h;if(as>Ei&&ll.splice.apply(ll,Mt([zn,0],G.slice(Ei,as),!1)),Ei>Lr&&ll.splice.apply(ll,Mt([on,0],G.slice(Lr,Ei),!1)),Lr>Zt&&ll.splice.apply(ll,Mt([ve,0],G.slice(Zt,Lr),!1)),Zt>0)if(ve===0)ll.splice.apply(ll,Mt([0,0],G.slice(0,Zt),!1));else{for(var hu=new e.Map,kd=0;kd<ve;kd++){var Wd=h[kd];hu.set(Wd.expression.text,!0)}for(var kd=Zt-1;kd>=0;kd--){var hd=G[kd];hu.has(hd.expression.text)||ll.unshift(hd)}}return e.isNodeArray(h)?e.setTextRange(J(ll,h.hasTrailingComma),h):h}function Cd(h,G){var ve;return typeof G=="number"&&(G=Be(G)),e.isParameter(h)?Gt(h,h.decorators,G,h.dotDotDotToken,h.name,h.questionToken,h.type,h.initializer):e.isPropertySignature(h)?Zn(h,G,h.name,h.questionToken,h.type):e.isPropertyDeclaration(h)?Pn(h,h.decorators,G,h.name,(ve=h.questionToken)!==null&&ve!==void 0?ve:h.exclamationToken,h.type,h.initializer):e.isMethodSignature(h)?Yn(h,G,h.name,h.questionToken,h.typeParameters,h.parameters,h.type):e.isMethodDeclaration(h)?lt(h,h.decorators,G,h.asteriskToken,h.name,h.questionToken,h.typeParameters,h.parameters,h.type,h.body):e.isConstructorDeclaration(h)?An(h,h.decorators,G,h.parameters,h.body):e.isGetAccessorDeclaration(h)?ln(h,h.decorators,G,h.name,h.parameters,h.type,h.body):e.isSetAccessorDeclaration(h)?Xe(h,h.decorators,G,h.name,h.parameters,h.body):e.isIndexSignatureDeclaration(h)?Et(h,h.decorators,G,h.parameters,h.type):e.isFunctionExpression(h)?ac(h,G,h.asteriskToken,h.name,h.typeParameters,h.parameters,h.type,h.body):e.isArrowFunction(h)?ic(h,G,h.typeParameters,h.parameters,h.type,h.equalsGreaterThanToken,h.body):e.isClassExpression(h)?or(h,h.decorators,G,h.name,h.typeParameters,h.heritageClauses,h.members):e.isVariableStatement(h)?gi(h,G,h.declarationList):e.isFunctionDeclaration(h)?nn(h,h.decorators,G,h.asteriskToken,h.name,h.typeParameters,h.parameters,h.type,h.body):e.isClassDeclaration(h)?Gn(h,h.decorators,G,h.name,h.typeParameters,h.heritageClauses,h.members):e.isInterfaceDeclaration(h)?pt(h,h.decorators,G,h.name,h.typeParameters,h.heritageClauses,h.members):e.isTypeAliasDeclaration(h)?Pt(h,h.decorators,G,h.name,h.typeParameters,h.type):e.isEnumDeclaration(h)?jr(h,h.decorators,G,h.name,h.members):e.isModuleDeclaration(h)?Wi(h,h.decorators,G,h.name,h.body):e.isImportEqualsDeclaration(h)?ki(h,h.decorators,G,h.isTypeOnly,h.name,h.moduleReference):e.isImportDeclaration(h)?Ci(h,h.decorators,G,h.importClause,h.moduleSpecifier):e.isExportAssignment(h)?uf(h,h.decorators,G,h.expression):e.isExportDeclaration(h)?bl(h,h.decorators,G,h.isTypeOnly,h.exportClause,h.moduleSpecifier):e.Debug.assertNever(h)}function Kl(h){return h?J(h):void 0}function ec(h){return typeof h=="string"?vn(h):h}function jd(h){return typeof h=="string"?Ye(h):typeof h=="number"?pe(h):typeof h=="boolean"?h?xe():Ze():h}function Ir(h){return typeof h=="number"?Pe(h):h}function kl(h){return h&&e.isNotEmittedStatement(h)?e.setTextRange(le(Eo(),h),h):h}}e.createNodeFactory=ee;function Y(re,B){return re!==B&&e.setTextRange(re,B),re}function V(re,B){return re!==B&&(le(re,B),e.setTextRange(re,B)),re}function ne(re){switch(re){case 338:return"type";case 336:return"returns";case 337:return"this";case 334:return"enum";case 325:return"author";case 327:return"class";case 328:return"public";case 329:return"private";case 330:return"protected";case 331:return"readonly";case 332:return"override";case 339:return"template";case 340:return"typedef";case 335:return"param";case 342:return"prop";case 333:return"callback";case 323:return"augments";case 324:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(re))}}var _e,O={};function w(re,B){_e||(_e=e.createScanner(99,!1,0));switch(re){case 14:_e.setText("`"+B+"`");break;case 15:_e.setText("`"+B+"${");break;case 16:_e.setText("}"+B+"${");break;case 17:_e.setText("}"+B+"`");break}var A=_e.scan();if(A===19&&(A=_e.reScanTemplateToken(!1)),_e.isUnterminated())return _e.setText(void 0),O;var f;switch(A){case 14:case 15:case 16:case 17:f=_e.getTokenValue();break}return f===void 0||_e.scan()!==1?(_e.setText(void 0),O):(_e.setText(void 0),f)}function b(re){return fe(re)&~16777216}function de(re,B){return B|re.transformFlags&33562624}function fe(re){if(!re)return 0;var B=re.transformFlags&~Z(re.kind);return e.isNamedDeclaration(re)&&e.isPropertyName(re.name)?de(re.name,B):B}function _(re){return re?re.transformFlags:0}function U(re){for(var B=0,A=0,f=re;A<f.length;A++){var F=f[A];B|=fe(F)}re.transformFlags=B}function Z(re){if(re>=175&&re<=198)return-2;switch(re){case 206:case 207:case 202:return 536887296;case 259:return 589443072;case 162:return 536870912;case 212:return 557748224;case 211:case 254:return 591310848;case 253:return 537165824;case 255:case 224:return 536940544;case 169:return 591306752;case 165:return 570433536;case 167:case 170:case 171:return 574529536;case 129:case 145:case 156:case 142:case 148:case 146:case 132:case 149:case 114:case 161:case 164:case 166:case 172:case 173:case 174:case 256:case 257:return-2;case 203:return 536973312;case 290:return 536903680;case 199:case 200:return 536887296;case 209:case 227:case 345:case 210:case 106:return 536870912;case 204:case 205:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=Z;var v=e.createBaseNodeFactory();function W(re){return re.flags|=8,re}var x={createBaseSourceFileNode:function(re){return W(v.createBaseSourceFileNode(re))},createBaseIdentifierNode:function(re){return W(v.createBaseIdentifierNode(re))},createBasePrivateIdentifierNode:function(re){return W(v.createBasePrivateIdentifierNode(re))},createBaseTokenNode:function(re){return W(v.createBaseTokenNode(re))},createBaseNode:function(re){return W(v.createBaseNode(re))}};e.factory=ee(4,x);function $(re,B,A){var f,F,g,p,d,T,m,k,N,D;e.isString(re)?(g="",p=re,d=re.length,T=B,m=A):(e.Debug.assert(B==="js"||B==="dts"),g=(B==="js"?re.javascriptPath:re.declarationPath)||"",T=B==="js"?re.javascriptMapPath:re.declarationMapPath,k=function(){return B==="js"?re.javascriptText:re.declarationText},N=function(){return B==="js"?re.javascriptMapText:re.declarationMapText},d=function(){return k().length},re.buildInfo&&re.buildInfo.bundle&&(e.Debug.assert(A===void 0||typeof A=="boolean"),f=A,F=B==="js"?re.buildInfo.bundle.js:re.buildInfo.bundle.dts,D=re.oldFileOfCurrentEmit));var R=D?E(e.Debug.assertDefined(F)):L(F,f,d);return R.fileName=g,R.sourceMapPath=T,R.oldFileOfCurrentEmit=D,k&&N?(Object.defineProperty(R,"text",{get:k}),Object.defineProperty(R,"sourceMapText",{get:N})):(e.Debug.assert(!D),R.text=p!=null?p:"",R.sourceMapText=m),R}e.createUnparsedSourceFile=$;function L(re,B,A){for(var f,F,g,p,d,T,m,k,N=0,D=re?re.sections:e.emptyArray;N<D.length;N++){var R=D[N];switch(R.kind){case"prologue":f=e.append(f,e.setTextRange(e.factory.createUnparsedPrologue(R.data),R));break;case"emitHelpers":F=e.append(F,e.getAllUnscopedEmitHelpers().get(R.data));break;case"no-default-lib":k=!0;break;case"reference":g=e.append(g,{pos:-1,end:-1,fileName:R.data});break;case"type":p=e.append(p,R.data);break;case"lib":d=e.append(d,{pos:-1,end:-1,fileName:R.data});break;case"prepend":for(var me=void 0,q=0,J=R.texts;q<J.length;q++){var C=J[q];(!B||C.kind!=="internal")&&(me=e.append(me,e.setTextRange(e.factory.createUnparsedTextLike(C.data,C.kind==="internal"),C)))}T=e.addRange(T,me),m=e.append(m,e.factory.createUnparsedPrepend(R.data,me!=null?me:e.emptyArray));break;case"internal":if(B){m||(m=[]);break}case"text":m=e.append(m,e.setTextRange(e.factory.createUnparsedTextLike(R.data,R.kind==="internal"),R));break;default:e.Debug.assertNever(R)}}if(!m){var we=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(we,0,typeof A=="function"?A():A),m=[we]}var Oe=e.parseNodeFactory.createUnparsedSource(f!=null?f:e.emptyArray,void 0,m);return e.setEachParent(f,Oe),e.setEachParent(m,Oe),e.setEachParent(T,Oe),Oe.hasNoDefaultLib=k,Oe.helpers=F,Oe.referencedFiles=g||e.emptyArray,Oe.typeReferenceDirectives=p,Oe.libReferenceDirectives=d||e.emptyArray,Oe}function E(re){for(var B,A,f=0,F=re.sections;f<F.length;f++){var g=F[f];switch(g.kind){case"internal":case"text":B=e.append(B,e.setTextRange(e.factory.createUnparsedTextLike(g.data,g.kind==="internal"),g));break;case"no-default-lib":case"reference":case"type":case"lib":A=e.append(A,e.setTextRange(e.factory.createUnparsedSyntheticReference(g),g));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(g)}}var p=e.factory.createUnparsedSource(e.emptyArray,A,B!=null?B:e.emptyArray);return e.setEachParent(A,p),e.setEachParent(B,p),p.helpers=e.map(re.sources&&re.sources.helpers,function(d){return e.getAllUnscopedEmitHelpers().get(d)}),p}function ae(re,B,A,f,F,g,p,d,T,m,k){var N=e.parseNodeFactory.createInputFiles();if(e.isString(re))N.javascriptText=re,N.javascriptMapPath=A,N.javascriptMapText=f,N.declarationText=B,N.declarationMapPath=F,N.declarationMapText=g,N.javascriptPath=p,N.declarationPath=d,N.buildInfoPath=T,N.buildInfo=m,N.oldFileOfCurrentEmit=k;else{var D=new e.Map,R=function(C){if(C===void 0)return;var we=D.get(C);return we===void 0&&(we=re(C),D.set(C,we!==void 0?we:!1)),we!==!1?we:void 0},me=function(C){var we=R(C);return we!==void 0?we:"/* Input file "+C+` was missing */\r
|
|
|
`},q,J=function(C){if(q===void 0){var we=C();q=we!==void 0?e.getBuildInfo(we):!1}return q||void 0};N.javascriptPath=B,N.javascriptMapPath=A,N.declarationPath=e.Debug.assertDefined(f),N.declarationMapPath=F,N.buildInfoPath=g,Object.defineProperties(N,{javascriptText:{get:function(){return me(B)}},javascriptMapText:{get:function(){return R(A)}},declarationText:{get:function(){return me(e.Debug.assertDefined(f))}},declarationMapText:{get:function(){return R(F)}},buildInfo:{get:function(){return J(function(){return R(g)})}}})}return N}e.createInputFiles=ae;var X;function ie(re,B,A){return new(X||(X=e.objectAllocator.getSourceMapSourceConstructor()))(re,B,A)}e.createSourceMapSource=ie;function le(re,B){if(re.original=B,B){var A=B.emitNode;A&&(re.emitNode=P(A,re.emitNode))}return re}e.setOriginalNode=le;function P(re,B){var A=re.flags,f=re.leadingComments,F=re.trailingComments,g=re.commentRange,p=re.sourceMapRange,d=re.tokenSourceMapRanges,T=re.constantValue,m=re.helpers,k=re.startsOnNewLine;if(B||(B={}),f&&(B.leadingComments=e.addRange(f.slice(),B.leadingComments)),F&&(B.trailingComments=e.addRange(F.slice(),B.trailingComments)),A&&(B.flags=A&~268435456),g&&(B.commentRange=g),p&&(B.sourceMapRange=p),d&&(B.tokenSourceMapRanges=I(d,B.tokenSourceMapRanges)),T!==void 0&&(B.constantValue=T),m)for(var N=0,D=m;N<D.length;N++){var R=D[N];B.helpers=e.appendIfUnique(B.helpers,R)}return k!==void 0&&(B.startsOnNewLine=k),B}function I(re,B){B||(B=[]);for(var A in re)B[A]=re[A];return B}})(mn||(mn={}));var mn;(function(e){function s(B){var A;if(B.emitNode)e.Debug.assert(!(B.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(B)){if(B.kind===300)return B.emitNode={annotatedNodes:[B]};var f=(A=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(B))))!==null&&A!==void 0?A:e.Debug.fail("Could not determine parsed source file.");s(f).annotatedNodes.push(B)}B.emitNode={}}return B.emitNode}e.getOrCreateEmitNode=s;function ue(B){var A,f,F=(f=(A=e.getSourceFileOfNode(e.getParseTreeNode(B)))===null||A===void 0?void 0:A.emitNode)===null||f===void 0?void 0:f.annotatedNodes;if(F)for(var g=0,p=F;g<p.length;g++){var d=p[g];d.emitNode=void 0}}e.disposeEmitNodes=ue;function ee(B){var A=s(B);return A.flags|=1536,A.leadingComments=void 0,A.trailingComments=void 0,B}e.removeAllComments=ee;function Y(B,A){return s(B).flags=A,B}e.setEmitFlags=Y;function V(B,A){var f=s(B);return f.flags=f.flags|A,B}e.addEmitFlags=V;function ne(B){var A,f;return(f=(A=B.emitNode)===null||A===void 0?void 0:A.sourceMapRange)!==null&&f!==void 0?f:B}e.getSourceMapRange=ne;function _e(B,A){return s(B).sourceMapRange=A,B}e.setSourceMapRange=_e;function O(B,A){var f,F;return(F=(f=B.emitNode)===null||f===void 0?void 0:f.tokenSourceMapRanges)===null||F===void 0?void 0:F[A]}e.getTokenSourceMapRange=O;function w(B,A,f){var F,g=s(B),p=(F=g.tokenSourceMapRanges)!==null&&F!==void 0?F:g.tokenSourceMapRanges=[];return p[A]=f,B}e.setTokenSourceMapRange=w;function b(B){var A;return(A=B.emitNode)===null||A===void 0?void 0:A.startsOnNewLine}e.getStartsOnNewLine=b;function de(B,A){return s(B).startsOnNewLine=A,B}e.setStartsOnNewLine=de;function fe(B){var A,f;return(f=(A=B.emitNode)===null||A===void 0?void 0:A.commentRange)!==null&&f!==void 0?f:B}e.getCommentRange=fe;function _(B,A){return s(B).commentRange=A,B}e.setCommentRange=_;function U(B){var A;return(A=B.emitNode)===null||A===void 0?void 0:A.leadingComments}e.getSyntheticLeadingComments=U;function Z(B,A){return s(B).leadingComments=A,B}e.setSyntheticLeadingComments=Z;function v(B,A,f,F){return Z(B,e.append(U(B),{kind:A,pos:-1,end:-1,hasTrailingNewLine:F,text:f}))}e.addSyntheticLeadingComment=v;function W(B){var A;return(A=B.emitNode)===null||A===void 0?void 0:A.trailingComments}e.getSyntheticTrailingComments=W;function x(B,A){return s(B).trailingComments=A,B}e.setSyntheticTrailingComments=x;function $(B,A,f,F){return x(B,e.append(W(B),{kind:A,pos:-1,end:-1,hasTrailingNewLine:F,text:f}))}e.addSyntheticTrailingComment=$;function L(B,A){Z(B,U(A)),x(B,W(A));var f=s(A);return f.leadingComments=void 0,f.trailingComments=void 0,B}e.moveSyntheticComments=L;function E(B){var A;return(A=B.emitNode)===null||A===void 0?void 0:A.constantValue}e.getConstantValue=E;function ae(B,A){var f=s(B);return f.constantValue=A,B}e.setConstantValue=ae;function X(B,A){var f=s(B);return f.helpers=e.append(f.helpers,A),B}e.addEmitHelper=X;function ie(B,A){if(e.some(A))for(var f=s(B),F=0,g=A;F<g.length;F++){var p=g[F];f.helpers=e.appendIfUnique(f.helpers,p)}return B}e.addEmitHelpers=ie;function le(B,A){var f,F=(f=B.emitNode)===null||f===void 0?void 0:f.helpers;return F?e.orderedRemoveItem(F,A):!1}e.removeEmitHelper=le;function P(B){var A;return(A=B.emitNode)===null||A===void 0?void 0:A.helpers}e.getEmitHelpers=P;function I(B,A,f){var F=B.emitNode,g=F&&F.helpers;if(!e.some(g))return;for(var p=s(A),d=0,T=0;T<g.length;T++){var m=g[T];f(m)?(d++,p.helpers=e.appendIfUnique(p.helpers,m)):d>0&&(g[T-d]=m)}d>0&&(g.length-=d)}e.moveEmitHelpers=I;function re(B){return s(B).flags|=134217728,B}e.ignoreSourceNewlines=re})(mn||(mn={}));var mn;(function(e){function s(_e){var O=_e.factory,w=e.memoize(function(){return e.setEmitFlags(O.createTrue(),268435456)}),b=e.memoize(function(){return e.setEmitFlags(O.createFalse(),268435456)});return{getUnscopedHelperName:de,createDecorateHelper:fe,createMetadataHelper:_,createParamHelper:U,createAssignHelper:Z,createAwaitHelper:v,createAsyncGeneratorHelper:W,createAsyncDelegatorHelper:x,createAsyncValuesHelper:$,createRestHelper:L,createAwaiterHelper:E,createExtendsHelper:ae,createTemplateObjectHelper:X,createSpreadArrayHelper:ie,createValuesHelper:le,createReadHelper:P,createGeneratorHelper:I,createCreateBindingHelper:re,createImportStarHelper:B,createImportStarCallbackHelper:A,createImportDefaultHelper:f,createExportStarHelper:F,createClassPrivateFieldGetHelper:g,createClassPrivateFieldSetHelper:p};function de(d){return e.setEmitFlags(O.createIdentifier(d),4096|2)}function fe(d,T,m,k){_e.requestEmitHelper(e.decorateHelper);var N=[];return N.push(O.createArrayLiteralExpression(d,!0)),N.push(T),m&&(N.push(m),k&&N.push(k)),O.createCallExpression(de("__decorate"),void 0,N)}function _(d,T){return _e.requestEmitHelper(e.metadataHelper),O.createCallExpression(de("__metadata"),void 0,[O.createStringLiteral(d),T])}function U(d,T,m){return _e.requestEmitHelper(e.paramHelper),e.setTextRange(O.createCallExpression(de("__param"),void 0,[O.createNumericLiteral(T+""),d]),m)}function Z(d){return _e.getCompilerOptions().target>=2?O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Object"),"assign"),void 0,d):(_e.requestEmitHelper(e.assignHelper),O.createCallExpression(de("__assign"),void 0,d))}function v(d){return _e.requestEmitHelper(e.awaitHelper),O.createCallExpression(de("__await"),void 0,[d])}function W(d,T){return _e.requestEmitHelper(e.awaitHelper),_e.requestEmitHelper(e.asyncGeneratorHelper),(d.emitNode||(d.emitNode={})).flags|=262144|524288,O.createCallExpression(de("__asyncGenerator"),void 0,[T?O.createThis():O.createVoidZero(),O.createIdentifier("arguments"),d])}function x(d){return _e.requestEmitHelper(e.awaitHelper),_e.requestEmitHelper(e.asyncDelegator),O.createCallExpression(de("__asyncDelegator"),void 0,[d])}function $(d){return _e.requestEmitHelper(e.asyncValues),O.createCallExpression(de("__asyncValues"),void 0,[d])}function L(d,T,m,k){_e.requestEmitHelper(e.restHelper);for(var N=[],D=0,R=0;R<T.length-1;R++){var me=e.getPropertyNameOfBindingOrAssignmentElement(T[R]);if(me)if(e.isComputedPropertyName(me)){e.Debug.assertIsDefined(m,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var q=m[D];D++,N.push(O.createConditionalExpression(O.createTypeCheck(q,"symbol"),void 0,q,void 0,O.createAdd(q,O.createStringLiteral(""))))}else N.push(O.createStringLiteralFromNode(me))}return O.createCallExpression(de("__rest"),void 0,[d,e.setTextRange(O.createArrayLiteralExpression(N),k)])}function E(d,T,m,k){_e.requestEmitHelper(e.awaiterHelper);var N=O.createFunctionExpression(void 0,O.createToken(41),void 0,void 0,[],void 0,k);return(N.emitNode||(N.emitNode={})).flags|=262144|524288,O.createCallExpression(de("__awaiter"),void 0,[d?O.createThis():O.createVoidZero(),T?O.createIdentifier("arguments"):O.createVoidZero(),m?e.createExpressionFromEntityName(O,m):O.createVoidZero(),N])}function ae(d){return _e.requestEmitHelper(e.extendsHelper),O.createCallExpression(de("__extends"),void 0,[d,O.createUniqueName("_super",16|32)])}function X(d,T){return _e.requestEmitHelper(e.templateObjectHelper),O.createCallExpression(de("__makeTemplateObject"),void 0,[d,T])}function ie(d,T,m){return _e.requestEmitHelper(e.spreadArrayHelper),O.createCallExpression(de("__spreadArray"),void 0,[d,T,m?w():b()])}function le(d){return _e.requestEmitHelper(e.valuesHelper),O.createCallExpression(de("__values"),void 0,[d])}function P(d,T){return _e.requestEmitHelper(e.readHelper),O.createCallExpression(de("__read"),void 0,T!==void 0?[d,O.createNumericLiteral(T+"")]:[d])}function I(d){return _e.requestEmitHelper(e.generatorHelper),O.createCallExpression(de("__generator"),void 0,[O.createThis(),d])}function re(d,T,m){return _e.requestEmitHelper(e.createBindingHelper),O.createCallExpression(de("__createBinding"),void 0,Mt([O.createIdentifier("exports"),d,T],m?[m]:[],!0))}function B(d){return _e.requestEmitHelper(e.importStarHelper),O.createCallExpression(de("__importStar"),void 0,[d])}function A(){return _e.requestEmitHelper(e.importStarHelper),de("__importStar")}function f(d){return _e.requestEmitHelper(e.importDefaultHelper),O.createCallExpression(de("__importDefault"),void 0,[d])}function F(d,T){return T===void 0&&(T=O.createIdentifier("exports")),_e.requestEmitHelper(e.exportStarHelper),_e.requestEmitHelper(e.createBindingHelper),O.createCallExpression(de("__exportStar"),void 0,[d,T])}function g(d,T,m,k){_e.requestEmitHelper(e.classPrivateFieldGetHelper);var N;return k?N=[d,T,O.createStringLiteral(m),k]:N=[d,T,O.createStringLiteral(m)],O.createCallExpression(de("__classPrivateFieldGet"),void 0,N)}function p(d,T,m,k,N){_e.requestEmitHelper(e.classPrivateFieldSetHelper);var D;return N?D=[d,T,m,O.createStringLiteral(k),N]:D=[d,T,m,O.createStringLiteral(k)],O.createCallExpression(de("__classPrivateFieldSet"),void 0,D)}}e.createEmitHelperFactory=s;function ue(_e,O){return _e===O||_e.priority===O.priority?0:_e.priority===void 0?1:O.priority===void 0?-1:e.compareValues(_e.priority,O.priority)}e.compareEmitHelpers=ue;function ee(_e){for(var O=[],w=1;w<arguments.length;w++)O[w-1]=arguments[w];return function(b){for(var de="",fe=0;fe<O.length;fe++)de+=_e[fe],de+=b(O[fe]);return de+=_e[_e.length-1],de}}e.helperString=ee,e.decorateHelper={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;
|
|
|
};`},e.metadataHelper={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);
|
|
|
};`},e.paramHelper={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); }
|
|
|
};`},e.assignHelper={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);
|
|
|
};`},e.awaitHelper={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); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
|
|
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
|
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
|
function fulfill(value) { resume("next", value); }
|
|
|
function reject(value) { resume("throw", value); }
|
|
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
|
};`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],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: n === "return" } : f ? f(v) : v; } : f; }
|
|
|
};`},e.asyncValues={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); }
|
|
|
};`},e.restHelper={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;
|
|
|
};`},e.awaiterHelper={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());
|
|
|
});
|
|
|
};`},e.extendsHelper={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 __());
|
|
|
};
|
|
|
})();`},e.templateObjectHelper={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;
|
|
|
};`},e.readHelper={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;
|
|
|
};`},e.spreadArrayHelper={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));
|
|
|
};`},e.valuesHelper={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.");
|
|
|
};`},e.generatorHelper={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 (_) 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 };
|
|
|
}
|
|
|
};`},e.createBindingHelper={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;
|
|
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
|
}) : (function(o, m, k, k2) {
|
|
|
if (k2 === undefined) k2 = k;
|
|
|
o[k2] = m[k];
|
|
|
}));`},e.setModuleDefaultHelper={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;
|
|
|
});`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],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;
|
|
|
};`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
|
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
};`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],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);
|
|
|
};`},e.classPrivateFieldGetHelper={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);
|
|
|
};`},e.classPrivateFieldSetHelper={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;
|
|
|
};`};var Y;function V(){return Y||(Y=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(_e){return _e.name}))}e.getAllUnscopedEmitHelpers=V,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:ee(Ma([`
|
|
|
const `," = name => super[name];"],[`
|
|
|
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:ee(Ma([`
|
|
|
const `,` = (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);`],[`
|
|
|
const `,` = (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);`]),"_superIndex")};function ne(_e,O){return e.isCallExpression(_e)&&e.isIdentifier(_e.expression)&&(e.getEmitFlags(_e.expression)&4096)!==0&&_e.expression.escapedText===O}e.isCallToHelper=ne})(mn||(mn={}));var mn;(function(e){function s(On){return On.kind===8}e.isNumericLiteral=s;function ue(On){return On.kind===9}e.isBigIntLiteral=ue;function ee(On){return On.kind===10}e.isStringLiteral=ee;function Y(On){return On.kind===11}e.isJsxText=Y;function V(On){return On.kind===13}e.isRegularExpressionLiteral=V;function ne(On){return On.kind===14}e.isNoSubstitutionTemplateLiteral=ne;function _e(On){return On.kind===15}e.isTemplateHead=_e;function O(On){return On.kind===16}e.isTemplateMiddle=O;function w(On){return On.kind===17}e.isTemplateTail=w;function b(On){return On.kind===25}e.isDotDotDotToken=b;function de(On){return On.kind===27}e.isCommaToken=de;function fe(On){return On.kind===39}e.isPlusToken=fe;function _(On){return On.kind===40}e.isMinusToken=_;function U(On){return On.kind===41}e.isAsteriskToken=U;function Z(On){return On.kind===53}e.isExclamationToken=Z;function v(On){return On.kind===57}e.isQuestionToken=v;function W(On){return On.kind===58}e.isColonToken=W;function x(On){return On.kind===28}e.isQuestionDotToken=x;function $(On){return On.kind===38}e.isEqualsGreaterThanToken=$;function L(On){return On.kind===79}e.isIdentifier=L;function E(On){return On.kind===80}e.isPrivateIdentifier=E;function ae(On){return On.kind===93}e.isExportModifier=ae;function X(On){return On.kind===130}e.isAsyncModifier=X;function ie(On){return On.kind===128}e.isAssertsKeyword=ie;function le(On){return On.kind===131}e.isAwaitKeyword=le;function P(On){return On.kind===143}e.isReadonlyKeyword=P;function I(On){return On.kind===124}e.isStaticModifier=I;function re(On){return On.kind===126}e.isAbstractModifier=re;function B(On){return On.kind===106}e.isSuperKeyword=B;function A(On){return On.kind===100}e.isImportKeyword=A;function f(On){return On.kind===159}e.isQualifiedName=f;function F(On){return On.kind===160}e.isComputedPropertyName=F;function g(On){return On.kind===161}e.isTypeParameterDeclaration=g;function p(On){return On.kind===162}e.isParameter=p;function d(On){return On.kind===163}e.isDecorator=d;function T(On){return On.kind===164}e.isPropertySignature=T;function m(On){return On.kind===165}e.isPropertyDeclaration=m;function k(On){return On.kind===166}e.isMethodSignature=k;function N(On){return On.kind===167}e.isMethodDeclaration=N;function D(On){return On.kind===168}e.isClassStaticBlockDeclaration=D;function R(On){return On.kind===169}e.isConstructorDeclaration=R;function me(On){return On.kind===170}e.isGetAccessorDeclaration=me;function q(On){return On.kind===171}e.isSetAccessorDeclaration=q;function J(On){return On.kind===172}e.isCallSignatureDeclaration=J;function C(On){return On.kind===173}e.isConstructSignatureDeclaration=C;function we(On){return On.kind===174}e.isIndexSignatureDeclaration=we;function Oe(On){return On.kind===175}e.isTypePredicateNode=Oe;function te(On){return On.kind===176}e.isTypeReferenceNode=te;function Te(On){return On.kind===177}e.isFunctionTypeNode=Te;function be(On){return On.kind===178}e.isConstructorTypeNode=be;function Ce(On){return On.kind===179}e.isTypeQueryNode=Ce;function Ue(On){return On.kind===180}e.isTypeLiteralNode=Ue;function Se(On){return On.kind===181}e.isArrayTypeNode=Se;function $e(On){return On.kind===182}e.isTupleTypeNode=$e;function ce(On){return On.kind===195}e.isNamedTupleMember=ce;function Le(On){return On.kind===183}e.isOptionalTypeNode=Le;function qe(On){return On.kind===184}e.isRestTypeNode=qe;function pe(On){return On.kind===185}e.isUnionTypeNode=pe;function Me(On){return On.kind===186}e.isIntersectionTypeNode=Me;function fn(On){return On.kind===187}e.isConditionalTypeNode=fn;function Ye(On){return On.kind===188}e.isInferTypeNode=Ye;function Ne(On){return On.kind===189}e.isParenthesizedTypeNode=Ne;function je(On){return On.kind===190}e.isThisTypeNode=je;function xn(On){return On.kind===191}e.isTypeOperatorNode=xn;function Wn(On){return On.kind===192}e.isIndexedAccessTypeNode=Wn;function dn(On){return On.kind===193}e.isMappedTypeNode=dn;function vn(On){return On.kind===194}e.isLiteralTypeNode=vn;function o(On){return On.kind===198}e.isImportTypeNode=o;function Cn(On){return On.kind===197}e.isTemplateLiteralTypeSpan=Cn;function z(On){return On.kind===196}e.isTemplateLiteralTypeNode=z;function tn(On){return On.kind===199}e.isObjectBindingPattern=tn;function $n(On){return On.kind===200}e.isArrayBindingPattern=$n;function Un(On){return On.kind===201}e.isBindingElement=Un;function oe(On){return On.kind===202}e.isArrayLiteralExpression=oe;function Pe(On){return On.kind===203}e.isObjectLiteralExpression=Pe;function ke(On){return On.kind===204}e.isPropertyAccessExpression=ke;function Qe(On){return On.kind===205}e.isElementAccessExpression=Qe;function gn(On){return On.kind===206}e.isCallExpression=gn;function xe(On){return On.kind===207}e.isNewExpression=xe;function Ze(On){return On.kind===208}e.isTaggedTemplateExpression=Ze;function wn(On){return On.kind===209}e.isTypeAssertionExpression=wn;function Be(On){return On.kind===210}e.isParenthesizedExpression=Be;function hn(On){return On.kind===211}e.isFunctionExpression=hn;function Kn(On){return On.kind===212}e.isArrowFunction=Kn;function Je(On){return On.kind===213}e.isDeleteExpression=Je;function En(On){return On.kind===214}e.isTypeOfExpression=En;function Nn(On){return On.kind===215}e.isVoidExpression=Nn;function ct(On){return On.kind===216}e.isAwaitExpression=ct;function yt(On){return On.kind===217}e.isPrefixUnaryExpression=yt;function Gt(On){return On.kind===218}e.isPostfixUnaryExpression=Gt;function $t(On){return On.kind===219}e.isBinaryExpression=$t;function Ke(On){return On.kind===220}e.isConditionalExpression=Ke;function Vn(On){return On.kind===221}e.isTemplateExpression=Vn;function Zn(On){return On.kind===222}e.isYieldExpression=Zn;function Re(On){return On.kind===223}e.isSpreadElement=Re;function Pn(On){return On.kind===224}e.isClassExpression=Pn;function rt(On){return On.kind===225}e.isOmittedExpression=rt;function Yn(On){return On.kind===226}e.isExpressionWithTypeArguments=Yn;function gt(On){return On.kind===227}e.isAsExpression=gt;function lt(On){return On.kind===228}e.isNonNullExpression=lt;function Fe(On){return On.kind===229}e.isMetaProperty=Fe;function Bn(On){return On.kind===230}e.isSyntheticExpression=Bn;function K(On){return On.kind===345}e.isPartiallyEmittedExpression=K;function An(On){return On.kind===346}e.isCommaListExpression=An;function Fn(On){return On.kind===231}e.isTemplateSpan=Fn;function ln(On){return On.kind===232}e.isSemicolonClassElement=ln;function Ln(On){return On.kind===233}e.isBlock=Ln;function Xe(On){return On.kind===235}e.isVariableStatement=Xe;function Dn(On){return On.kind===234}e.isEmptyStatement=Dn;function rn(On){return On.kind===236}e.isExpressionStatement=rn;function qn(On){return On.kind===237}e.isIfStatement=qn;function it(On){return On.kind===238}e.isDoStatement=it;function ht(On){return On.kind===239}e.isWhileStatement=ht;function Et(On){return On.kind===240}e.isForStatement=Et;function zt(On){return On.kind===241}e.isForInStatement=zt;function fr(On){return On.kind===242}e.isForOfStatement=fr;function br(On){return On.kind===243}e.isContinueStatement=br;function Jt(On){return On.kind===244}e.isBreakStatement=Jt;function mr(On){return On.kind===245}e.isReturnStatement=mr;function Ht(On){return On.kind===246}e.isWithStatement=Ht;function Xr(On){return On.kind===247}e.isSwitchStatement=Xr;function At(On){return On.kind===248}e.isLabeledStatement=At;function Wr(On){return On.kind===249}e.isThrowStatement=Wr;function Or(On){return On.kind===250}e.isTryStatement=Or;function Ja(On){return On.kind===251}e.isDebuggerStatement=Ja;function qa(On){return On.kind===252}e.isVariableDeclaration=qa;function eo(On){return On.kind===253}e.isVariableDeclarationList=eo;function Va(On){return On.kind===254}e.isFunctionDeclaration=Va;function la(On){return On.kind===255}e.isClassDeclaration=la;function wt(On){return On.kind===256}e.isInterfaceDeclaration=wt;function rr(On){return On.kind===257}e.isTypeAliasDeclaration=rr;function Wt(On){return On.kind===258}e.isEnumDeclaration=Wt;function Pr(On){return On.kind===259}e.isModuleDeclaration=Pr;function ra(On){return On.kind===260}e.isModuleBlock=ra;function Lt(On){return On.kind===261}e.isCaseBlock=Lt;function xt(On){return On.kind===262}e.isNamespaceExportDeclaration=xt;function Yt(On){return On.kind===263}e.isImportEqualsDeclaration=Yt;function Qt(On){return On.kind===264}e.isImportDeclaration=Qt;function sr(On){return On.kind===265}e.isImportClause=sr;function at(On){return On.kind===266}e.isNamespaceImport=at;function ea(On){return On.kind===272}e.isNamespaceExport=ea;function Fa(On){return On.kind===267}e.isNamedImports=Fa;function li(On){return On.kind===268}e.isImportSpecifier=li;function Si(On){return On.kind===269}e.isExportAssignment=Si;function Qr(On){return On.kind===270}e.isExportDeclaration=Qr;function ci(On){return On.kind===271}e.isNamedExports=ci;function Mi(On){return On.kind===273}e.isExportSpecifier=Mi;function ro(On){return On.kind===274}e.isMissingDeclaration=ro;function xi(On){return On.kind===344}e.isNotEmittedStatement=xi;function ui(On){return On.kind===349}e.isSyntheticReference=ui;function lo(On){return On.kind===347}e.isMergeDeclarationMarker=lo;function xo(On){return On.kind===348}e.isEndOfDeclarationMarker=xo;function Vi(On){return On.kind===275}e.isExternalModuleReference=Vi;function os(On){return On.kind===276}e.isJsxElement=os;function Qi(On){return On.kind===277}e.isJsxSelfClosingElement=Qi;function mo(On){return On.kind===278}e.isJsxOpeningElement=mo;function Rs(On){return On.kind===279}e.isJsxClosingElement=Rs;function Ls(On){return On.kind===280}e.isJsxFragment=Ls;function Ca(On){return On.kind===281}e.isJsxOpeningFragment=Ca;function ai(On){return On.kind===282}e.isJsxClosingFragment=ai;function Pi(On){return On.kind===283}e.isJsxAttribute=Pi;function wo(On){return On.kind===284}e.isJsxAttributes=wo;function Lo(On){return On.kind===285}e.isJsxSpreadAttribute=Lo;function _s(On){return On.kind===286}e.isJsxExpression=_s;function Oi(On){return On.kind===287}e.isCaseClause=Oi;function Io(On){return On.kind===288}e.isDefaultClause=Io;function fs(On){return On.kind===289}e.isHeritageClause=fs;function Mo(On){return On.kind===290}e.isCatchClause=Mo;function Ms(On){return On.kind===291}e.isPropertyAssignment=Ms;function yn(On){return On.kind===292}e.isShorthandPropertyAssignment=yn;function _t(On){return On.kind===293}e.isSpreadAssignment=_t;function tr(On){return On.kind===294}e.isEnumMember=tr;function oa(On){return On.kind===296}e.isUnparsedPrepend=oa;function Za(On){return On.kind===300}e.isSourceFile=Za;function Ga(On){return On.kind===301}e.isBundle=Ga;function He(On){return On.kind===302}e.isUnparsedSource=He;function se(On){return On.kind===304}e.isJSDocTypeExpression=se;function pn(On){return On.kind===305}e.isJSDocNameReference=pn;function j(On){return On.kind===306}e.isJSDocMemberName=j;function De(On){return On.kind===319}e.isJSDocLink=De;function Ve(On){return On.kind===320}e.isJSDocLinkCode=Ve;function un(On){return On.kind===321}e.isJSDocLinkPlain=un;function jn(On){return On.kind===307}e.isJSDocAllType=jn;function mt(On){return On.kind===308}e.isJSDocUnknownType=mt;function St(On){return On.kind===309}e.isJSDocNullableType=St;function ir(On){return On.kind===310}e.isJSDocNonNullableType=ir;function _r(On){return On.kind===311}e.isJSDocOptionalType=_r;function na(On){return On.kind===312}e.isJSDocFunctionType=na;function wa(On){return On.kind===313}e.isJSDocVariadicType=wa;function za(On){return On.kind===314}e.isJSDocNamepathType=za;function bi(On){return On.kind===315}e.isJSDoc=bi;function Xi(On){return On.kind===317}e.isJSDocTypeLiteral=Xi;function co(On){return On.kind===318}e.isJSDocSignature=co;function Ss(On){return On.kind===323}e.isJSDocAugmentsTag=Ss;function No(On){return On.kind===325}e.isJSDocAuthorTag=No;function Ks(On){return On.kind===327}e.isJSDocClassTag=Ks;function Js(On){return On.kind===333}e.isJSDocCallbackTag=Js;function gl(On){return On.kind===328}e.isJSDocPublicTag=gl;function yl(On){return On.kind===329}e.isJSDocPrivateTag=yl;function Ol(On){return On.kind===330}e.isJSDocProtectedTag=Ol;function ac(On){return On.kind===331}e.isJSDocReadonlyTag=ac;function vs(On){return On.kind===332}e.isJSDocOverrideTag=vs;function ic(On){return On.kind===326}e.isJSDocDeprecatedTag=ic;function Pl(On){return On.kind===341}e.isJSDocSeeTag=Pl;function cl(On){return On.kind===334}e.isJSDocEnumTag=cl;function nl(On){return On.kind===335}e.isJSDocParameterTag=nl;function he(On){return On.kind===336}e.isJSDocReturnTag=he;function Jn(On){return On.kind===337}e.isJSDocThisTag=Jn;function Ee(On){return On.kind===338}e.isJSDocTypeTag=Ee;function Mn(On){return On.kind===339}e.isJSDocTemplateTag=Mn;function dr(On){return On.kind===340}e.isJSDocTypedefTag=dr;function Yr(On){return On.kind===322}e.isJSDocUnknownTag=Yr;function da(On){return On.kind===342}e.isJSDocPropertyTag=da;function ya(On){return On.kind===324}e.isJSDocImplementsTag=ya;function bo(On){return On.kind===343}e.isSyntaxList=bo})(mn||(mn={}));var mn;(function(e){function s(z){return z.createExportDeclaration(void 0,void 0,!1,z.createNamedExports([]),void 0)}e.createEmptyExports=s;function ue(z,tn,$n,Un){if(e.isComputedPropertyName($n))return e.setTextRange(z.createElementAccessExpression(tn,$n.expression),Un);var oe=e.setTextRange(e.isMemberName($n)?z.createPropertyAccessExpression(tn,$n):z.createElementAccessExpression(tn,$n),$n);return e.getOrCreateEmitNode(oe).flags|=64,oe}e.createMemberAccessForPropertyName=ue;function ee(z,tn){var $n=e.parseNodeFactory.createIdentifier(z||"React");return e.setParent($n,e.getParseTreeNode(tn)),$n}function Y(z,tn,$n){if(e.isQualifiedName(tn)){var Un=Y(z,tn.left,$n),oe=z.createIdentifier(e.idText(tn.right));return oe.escapedText=tn.right.escapedText,z.createPropertyAccessExpression(Un,oe)}else return ee(e.idText(tn),$n)}function V(z,tn,$n,Un){return tn?Y(z,tn,Un):z.createPropertyAccessExpression(ee($n,Un),"createElement")}e.createJsxFactoryExpression=V;function ne(z,tn,$n,Un){return tn?Y(z,tn,Un):z.createPropertyAccessExpression(ee($n,Un),"Fragment")}function _e(z,tn,$n,Un,oe,Pe){var ke=[$n];if(Un&&ke.push(Un),oe&&oe.length>0)if(Un||ke.push(z.createNull()),oe.length>1)for(var Qe=0,gn=oe;Qe<gn.length;Qe++){var xe=gn[Qe];B(xe),ke.push(xe)}else ke.push(oe[0]);return e.setTextRange(z.createCallExpression(tn,void 0,ke),Pe)}e.createExpressionForJsxElement=_e;function O(z,tn,$n,Un,oe,Pe,ke){var Qe=ne(z,$n,Un,Pe),gn=[Qe,z.createNull()];if(oe&&oe.length>0)if(oe.length>1)for(var xe=0,Ze=oe;xe<Ze.length;xe++){var wn=Ze[xe];B(wn),gn.push(wn)}else gn.push(oe[0]);return e.setTextRange(z.createCallExpression(V(z,tn,Un,Pe),void 0,gn),ke)}e.createExpressionForJsxFragment=O;function w(z,tn,$n){if(e.isVariableDeclarationList(tn)){var Un=e.first(tn.declarations),oe=z.updateVariableDeclaration(Un,Un.name,void 0,void 0,$n);return e.setTextRange(z.createVariableStatement(void 0,z.updateVariableDeclarationList(tn,[oe])),tn)}else{var Pe=e.setTextRange(z.createAssignment(tn,$n),tn);return e.setTextRange(z.createExpressionStatement(Pe),tn)}}e.createForOfBindingStatement=w;function b(z,tn,$n){return e.isBlock(tn)?z.updateBlock(tn,e.setTextRange(z.createNodeArray(Mt([$n],tn.statements,!0)),tn.statements)):z.createBlock(z.createNodeArray([tn,$n]),!0)}e.insertLeadingStatement=b;function de(z,tn){if(e.isQualifiedName(tn)){var $n=de(z,tn.left),Un=e.setParent(e.setTextRange(z.cloneNode(tn.right),tn.right),tn.right.parent);return e.setTextRange(z.createPropertyAccessExpression($n,Un),tn)}else return e.setParent(e.setTextRange(z.cloneNode(tn),tn),tn.parent)}e.createExpressionFromEntityName=de;function fe(z,tn){return e.isIdentifier(tn)?z.createStringLiteralFromNode(tn):e.isComputedPropertyName(tn)?e.setParent(e.setTextRange(z.cloneNode(tn.expression),tn.expression),tn.expression.parent):e.setParent(e.setTextRange(z.cloneNode(tn),tn),tn.parent)}e.createExpressionForPropertyName=fe;function _(z,tn,$n,Un,oe){var Pe=e.getAllAccessorDeclarations(tn,$n),ke=Pe.firstAccessor,Qe=Pe.getAccessor,gn=Pe.setAccessor;return $n===ke?e.setTextRange(z.createObjectDefinePropertyCall(Un,fe(z,$n.name),z.createPropertyDescriptor({enumerable:z.createFalse(),configurable:!0,get:Qe&&e.setTextRange(e.setOriginalNode(z.createFunctionExpression(Qe.modifiers,void 0,void 0,void 0,Qe.parameters,void 0,Qe.body),Qe),Qe),set:gn&&e.setTextRange(e.setOriginalNode(z.createFunctionExpression(gn.modifiers,void 0,void 0,void 0,gn.parameters,void 0,gn.body),gn),gn)},!oe)),ke):void 0}function U(z,tn,$n){return e.setOriginalNode(e.setTextRange(z.createAssignment(ue(z,$n,tn.name,tn.name),tn.initializer),tn),tn)}function Z(z,tn,$n){return e.setOriginalNode(e.setTextRange(z.createAssignment(ue(z,$n,tn.name,tn.name),z.cloneNode(tn.name)),tn),tn)}function v(z,tn,$n){return e.setOriginalNode(e.setTextRange(z.createAssignment(ue(z,$n,tn.name,tn.name),e.setOriginalNode(e.setTextRange(z.createFunctionExpression(tn.modifiers,tn.asteriskToken,void 0,void 0,tn.parameters,void 0,tn.body),tn),tn)),tn),tn)}function W(z,tn,$n,Un){$n.name&&e.isPrivateIdentifier($n.name)&&e.Debug.failBadSyntaxKind($n.name,"Private identifiers are not allowed in object literals.");switch($n.kind){case 170:case 171:return _(z,tn.properties,$n,Un,!!tn.multiLine);case 291:return U(z,$n,Un);case 292:return Z(z,$n,Un);case 167:return v(z,$n,Un)}}e.createExpressionForObjectLiteralElementLike=W;function x(z,tn,$n,Un,oe){var Pe=tn.operator;e.Debug.assert(Pe===45||Pe===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var ke=z.createTempVariable(Un);$n=z.createAssignment(ke,$n),e.setTextRange($n,tn.operand);var Qe=e.isPrefixUnaryExpression(tn)?z.createPrefixUnaryExpression(Pe,ke):z.createPostfixUnaryExpression(ke,Pe);return e.setTextRange(Qe,tn),oe&&(Qe=z.createAssignment(oe,Qe),e.setTextRange(Qe,tn)),$n=z.createComma($n,Qe),e.setTextRange($n,tn),e.isPostfixUnaryExpression(tn)&&($n=z.createComma($n,ke),e.setTextRange($n,tn)),$n}e.expandPreOrPostfixIncrementOrDecrementExpression=x;function $(z){return(e.getEmitFlags(z)&32768)!==0}e.isInternalName=$;function L(z){return(e.getEmitFlags(z)&16384)!==0}e.isLocalName=L;function E(z){return(e.getEmitFlags(z)&8192)!==0}e.isExportName=E;function ae(z){return e.isStringLiteral(z.expression)&&z.expression.text==="use strict"}function X(z){for(var tn=0,$n=z;tn<$n.length;tn++){var Un=$n[tn];if(e.isPrologueDirective(Un)){if(ae(Un))return Un}else break}return}e.findUseStrictPrologue=X;function ie(z){var tn=e.firstOrUndefined(z);return tn!==void 0&&e.isPrologueDirective(tn)&&ae(tn)}e.startsWithUseStrict=ie;function le(z){return z.kind===219&&z.operatorToken.kind===27||z.kind===346}e.isCommaSequence=le;function P(z,tn){tn===void 0&&(tn=15);switch(z.kind){case 210:return(tn&1)!==0;case 209:case 227:return(tn&2)!==0;case 228:return(tn&4)!==0;case 345:return(tn&8)!==0}return!1}e.isOuterExpression=P;function I(z,tn){for(tn===void 0&&(tn=15);P(z,tn);)z=z.expression;return z}e.skipOuterExpressions=I;function re(z){return I(z,6)}e.skipAssertions=re;function B(z){return e.setStartsOnNewLine(z,!0)}e.startOnNewLine=B;function A(z){var tn=e.getOriginalNode(z,e.isSourceFile),$n=tn&&tn.emitNode;return $n&&$n.externalHelpersModuleName}e.getExternalHelpersModuleName=A;function f(z){var tn=e.getOriginalNode(z,e.isSourceFile),$n=tn&&tn.emitNode;return!!$n&&(!!$n.externalHelpersModuleName||!!$n.externalHelpers)}e.hasRecordedExternalHelpers=f;function F(z,tn,$n,Un,oe,Pe,ke){if(Un.importHelpers&&e.isEffectiveExternalModule($n,Un)){var Qe=void 0,gn=e.getEmitModuleKind(Un);if(gn>=e.ModuleKind.ES2015&&gn<=e.ModuleKind.ESNext){var xe=e.getEmitHelpers($n);if(xe){for(var Ze=[],wn=0,Be=xe;wn<Be.length;wn++){var hn=Be[wn];if(!hn.scoped){var Kn=hn.importName;Kn&&e.pushIfUnique(Ze,Kn)}}if(e.some(Ze)){Ze.sort(e.compareStringsCaseSensitive),Qe=z.createNamedImports(e.map(Ze,function(yt){return e.isFileLevelUniqueName($n,yt)?z.createImportSpecifier(void 0,z.createIdentifier(yt)):z.createImportSpecifier(z.createIdentifier(yt),tn.getUnscopedHelperName(yt))}));var Je=e.getOriginalNode($n,e.isSourceFile),En=e.getOrCreateEmitNode(Je);En.externalHelpers=!0}}}else{var Nn=g(z,$n,Un,oe,Pe||ke);Nn&&(Qe=z.createNamespaceImport(Nn))}if(Qe){var ct=z.createImportDeclaration(void 0,void 0,z.createImportClause(!1,void 0,Qe),z.createStringLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(ct,67108864),ct}}}e.createExternalHelpersImportDeclarationIfNeeded=F;function g(z,tn,$n,Un,oe){if($n.importHelpers&&e.isEffectiveExternalModule(tn,$n)){var Pe=A(tn);if(Pe)return Pe;var ke=e.getEmitModuleKind($n),Qe=(Un||$n.esModuleInterop&&oe)&&ke!==e.ModuleKind.System&&ke<e.ModuleKind.ES2015;if(!Qe){var gn=e.getEmitHelpers(tn);if(gn)for(var xe=0,Ze=gn;xe<Ze.length;xe++){var wn=Ze[xe];if(!wn.scoped){Qe=!0;break}}}if(Qe){var Be=e.getOriginalNode(tn,e.isSourceFile),hn=e.getOrCreateEmitNode(Be);return hn.externalHelpersModuleName||(hn.externalHelpersModuleName=z.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=g;function p(z,tn,$n){var Un=e.getNamespaceDeclarationNode(tn);if(Un&&!e.isDefaultImport(tn)&&!e.isExportNamespaceAsDefaultDeclaration(tn)){var oe=Un.name;return e.isGeneratedIdentifier(oe)?oe:z.createIdentifier(e.getSourceTextOfNodeFromSourceFile($n,oe)||e.idText(oe))}return tn.kind===264&&tn.importClause||tn.kind===270&&tn.moduleSpecifier?z.getGeneratedNameForNode(tn):void 0}e.getLocalNameForExternalImport=p;function d(z,tn,$n,Un,oe,Pe){var ke=e.getExternalModuleName(tn);return ke&&e.isStringLiteral(ke)?k(tn,Un,z,oe,Pe)||T(z,ke,$n)||z.cloneNode(ke):void 0}e.getExternalModuleNameLiteral=d;function T(z,tn,$n){var Un=$n.renamedDependencies&&$n.renamedDependencies.get(tn.text);return Un?z.createStringLiteral(Un):void 0}function m(z,tn,$n,Un){return tn?tn.moduleName?z.createStringLiteral(tn.moduleName):!tn.isDeclarationFile&&e.outFile(Un)?z.createStringLiteral(e.getExternalModuleNameFromPath($n,tn.fileName)):void 0:void 0}e.tryGetModuleNameFromFile=m;function k(z,tn,$n,Un,oe){return m($n,Un.getExternalModuleFileFromDeclaration(z),tn,oe)}function N(z){if(e.isDeclarationBindingElement(z))return z.initializer;if(e.isPropertyAssignment(z)){var tn=z.initializer;return e.isAssignmentExpression(tn,!0)?tn.right:void 0}if(e.isShorthandPropertyAssignment(z))return z.objectAssignmentInitializer;if(e.isAssignmentExpression(z,!0))return z.right;if(e.isSpreadElement(z))return N(z.expression)}e.getInitializerOfBindingOrAssignmentElement=N;function D(z){if(e.isDeclarationBindingElement(z))return z.name;if(e.isObjectLiteralElementLike(z)){switch(z.kind){case 291:return D(z.initializer);case 292:return z.name;case 293:return D(z.expression)}return}return e.isAssignmentExpression(z,!0)?D(z.left):e.isSpreadElement(z)?D(z.expression):z}e.getTargetOfBindingOrAssignmentElement=D;function R(z){switch(z.kind){case 162:case 201:return z.dotDotDotToken;case 223:case 293:return z}return}e.getRestIndicatorOfBindingOrAssignmentElement=R;function me(z){var tn=q(z);return e.Debug.assert(!!tn||e.isSpreadAssignment(z),"Invalid property name for binding element."),tn}e.getPropertyNameOfBindingOrAssignmentElement=me;function q(z){switch(z.kind){case 201:if(z.propertyName){var tn=z.propertyName;return e.isPrivateIdentifier(tn)?e.Debug.failBadSyntaxKind(tn):e.isComputedPropertyName(tn)&&J(tn.expression)?tn.expression:tn}break;case 291:if(z.name){var tn=z.name;return e.isPrivateIdentifier(tn)?e.Debug.failBadSyntaxKind(tn):e.isComputedPropertyName(tn)&&J(tn.expression)?tn.expression:tn}break;case 293:return z.name&&e.isPrivateIdentifier(z.name)?e.Debug.failBadSyntaxKind(z.name):z.name}var $n=D(z);if($n&&e.isPropertyName($n))return $n}e.tryGetPropertyNameOfBindingOrAssignmentElement=q;function J(z){var tn=z.kind;return tn===10||tn===8}function C(z){switch(z.kind){case 199:case 200:case 202:return z.elements;case 203:return z.properties}}e.getElementsOfBindingOrAssignmentPattern=C;function we(z){if(z)for(var tn=z;;){if(e.isIdentifier(tn)||!tn.body)return e.isIdentifier(tn)?tn:tn.name;tn=tn.body}}e.getJSDocTypeAliasName=we;function Oe(z){var tn=z.kind;return tn===162||tn===164||tn===165||tn===166||tn===167||tn===169||tn===170||tn===171||tn===174||tn===211||tn===212||tn===224||tn===235||tn===254||tn===255||tn===256||tn===257||tn===258||tn===259||tn===263||tn===264||tn===269||tn===270}e.canHaveModifiers=Oe,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function te(z){var tn=z.kind;return tn===104||tn===110||tn===95||e.isLiteralExpression(z)||e.isPrefixUnaryExpression(z)}e.isLiteralTypeLikeExpression=te;function Te(z){return z===42}function be(z){return z===41||z===43||z===44}function Ce(z){return Te(z)||be(z)}function Ue(z){return z===39||z===40}function Se(z){return Ue(z)||Ce(z)}function $e(z){return z===47||z===48||z===49}function ce(z){return $e(z)||Se(z)}function Le(z){return z===29||z===32||z===31||z===33||z===102||z===101}function qe(z){return Le(z)||ce(z)}function pe(z){return z===34||z===36||z===35||z===37}function Me(z){return pe(z)||qe(z)}function fn(z){return z===50||z===51||z===52}function Ye(z){return fn(z)||Me(z)}function Ne(z){return z===55||z===56}function je(z){return Ne(z)||Ye(z)}function xn(z){return z===60||je(z)||e.isAssignmentOperator(z)}function Wn(z){return xn(z)||z===27}function dn(z){return Wn(z.kind)}e.isBinaryOperatorToken=dn;var vn;(function(z){function tn(Ze,wn,Be,hn,Kn,Je,En){var Nn=wn>0?Kn[wn-1]:void 0;return e.Debug.assertEqual(Be[wn],tn),Kn[wn]=Ze.onEnter(hn[wn],Nn,En),Be[wn]=Qe(Ze,tn),wn}z.enter=tn;function $n(Ze,wn,Be,hn,Kn,Je,En){e.Debug.assertEqual(Be[wn],$n),e.Debug.assertIsDefined(Ze.onLeft),Be[wn]=Qe(Ze,$n);var Nn=Ze.onLeft(hn[wn].left,Kn[wn],hn[wn]);return Nn?(xe(wn,hn,Nn),gn(wn,Be,hn,Kn,Nn)):wn}z.left=$n;function Un(Ze,wn,Be,hn,Kn,Je,En){return e.Debug.assertEqual(Be[wn],Un),e.Debug.assertIsDefined(Ze.onOperator),Be[wn]=Qe(Ze,Un),Ze.onOperator(hn[wn].operatorToken,Kn[wn],hn[wn]),wn}z.operator=Un;function oe(Ze,wn,Be,hn,Kn,Je,En){e.Debug.assertEqual(Be[wn],oe),e.Debug.assertIsDefined(Ze.onRight),Be[wn]=Qe(Ze,oe);var Nn=Ze.onRight(hn[wn].right,Kn[wn],hn[wn]);return Nn?(xe(wn,hn,Nn),gn(wn,Be,hn,Kn,Nn)):wn}z.right=oe;function Pe(Ze,wn,Be,hn,Kn,Je,En){e.Debug.assertEqual(Be[wn],Pe),Be[wn]=Qe(Ze,Pe);var Nn=Ze.onExit(hn[wn],Kn[wn]);if(wn>0){if(wn--,Ze.foldState){var ct=Be[wn]===Pe?"right":"left";Kn[wn]=Ze.foldState(Kn[wn],Nn,ct)}}else Je.value=Nn;return wn}z.exit=Pe;function ke(Ze,wn,Be,hn,Kn,Je,En){return e.Debug.assertEqual(Be[wn],ke),wn}z.done=ke;function Qe(Ze,wn){switch(wn){case tn:if(Ze.onLeft)return $n;case $n:if(Ze.onOperator)return Un;case Un:if(Ze.onRight)return oe;case oe:return Pe;case Pe:return ke;case ke:return ke;default:e.Debug.fail("Invalid state")}}z.nextState=Qe;function gn(Ze,wn,Be,hn,Kn){return Ze++,wn[Ze]=tn,Be[Ze]=Kn,hn[Ze]=void 0,Ze}function xe(Ze,wn,Be){if(e.Debug.shouldAssert(2))for(;Ze>=0;)e.Debug.assert(wn[Ze]!==Be,"Circular traversal detected."),Ze--}})(vn||(vn={}));var o=function(){function z(tn,$n,Un,oe,Pe,ke){this.onEnter=tn,this.onLeft=$n,this.onOperator=Un,this.onRight=oe,this.onExit=Pe,this.foldState=ke}return z}();function Cn(z,tn,$n,Un,oe,Pe){var ke=new o(z,tn,$n,Un,oe,Pe);return Qe;function Qe(gn,xe){for(var Ze={value:void 0},wn=[vn.enter],Be=[gn],hn=[void 0],Kn=0;wn[Kn]!==vn.done;)Kn=wn[Kn](ke,Kn,wn,Be,hn,Ze,xe);return e.Debug.assertEqual(Kn,0),Ze.value}}e.createBinaryExpressionTrampoline=Cn})(mn||(mn={}));var mn;(function(e){function s(ue,ee){return ee?e.setTextRangePosEnd(ue,ee.pos,ee.end):ue}e.setTextRange=s})(mn||(mn={}));var mn;(function(e){var s;(function(p){p[p.None=0]="None",p[p.Yield=1]="Yield",p[p.Await=2]="Await",p[p.Type=4]="Type",p[p.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",p[p.JSDoc=32]="JSDoc"})(s||(s={}));var ue;(function(p){p[p.TryParse=0]="TryParse",p[p.Lookahead=1]="Lookahead",p[p.Reparse=2]="Reparse"})(ue||(ue={}));var ee,Y,V,ne,_e;e.parseBaseNodeFactory={createBaseSourceFileNode:function(p){return new(_e||(_e=e.objectAllocator.getSourceFileConstructor()))(p,-1,-1)},createBaseIdentifierNode:function(p){return new(V||(V=e.objectAllocator.getIdentifierConstructor()))(p,-1,-1)},createBasePrivateIdentifierNode:function(p){return new(ne||(ne=e.objectAllocator.getPrivateIdentifierConstructor()))(p,-1,-1)},createBaseTokenNode:function(p){return new(Y||(Y=e.objectAllocator.getTokenConstructor()))(p,-1,-1)},createBaseNode:function(p){return new(ee||(ee=e.objectAllocator.getNodeConstructor()))(p,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function O(p,d){return d&&p(d)}function w(p,d,T){if(T){if(d)return d(T);for(var m=0,k=T;m<k.length;m++){var N=k[m],D=p(N);if(D)return D}}}function b(p,d){return p.charCodeAt(d+1)===42&&p.charCodeAt(d+2)===42&&p.charCodeAt(d+3)!==47}e.isJSDocLikeText=b;function de(p,d,T){if(!p||p.kind<=158)return;switch(p.kind){case 159:return O(d,p.left)||O(d,p.right);case 161:return O(d,p.name)||O(d,p.constraint)||O(d,p.default)||O(d,p.expression);case 292:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||O(d,p.questionToken)||O(d,p.exclamationToken)||O(d,p.equalsToken)||O(d,p.objectAssignmentInitializer);case 293:return O(d,p.expression);case 162:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.dotDotDotToken)||O(d,p.name)||O(d,p.questionToken)||O(d,p.type)||O(d,p.initializer);case 165:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||O(d,p.questionToken)||O(d,p.exclamationToken)||O(d,p.type)||O(d,p.initializer);case 164:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||O(d,p.questionToken)||O(d,p.type)||O(d,p.initializer);case 291:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||O(d,p.questionToken)||O(d,p.initializer);case 252:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||O(d,p.exclamationToken)||O(d,p.type)||O(d,p.initializer);case 201:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.dotDotDotToken)||O(d,p.propertyName)||O(d,p.name)||O(d,p.initializer);case 177:case 178:case 172:case 173:case 174:return w(d,T,p.decorators)||w(d,T,p.modifiers)||w(d,T,p.typeParameters)||w(d,T,p.parameters)||O(d,p.type);case 167:case 166:case 169:case 170:case 171:case 211:case 254:case 212:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.asteriskToken)||O(d,p.name)||O(d,p.questionToken)||O(d,p.exclamationToken)||w(d,T,p.typeParameters)||w(d,T,p.parameters)||O(d,p.type)||O(d,p.equalsGreaterThanToken)||O(d,p.body);case 168:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.body);case 176:return O(d,p.typeName)||w(d,T,p.typeArguments);case 175:return O(d,p.assertsModifier)||O(d,p.parameterName)||O(d,p.type);case 179:return O(d,p.exprName);case 180:return w(d,T,p.members);case 181:return O(d,p.elementType);case 182:return w(d,T,p.elements);case 185:case 186:return w(d,T,p.types);case 187:return O(d,p.checkType)||O(d,p.extendsType)||O(d,p.trueType)||O(d,p.falseType);case 188:return O(d,p.typeParameter);case 198:return O(d,p.argument)||O(d,p.qualifier)||w(d,T,p.typeArguments);case 189:case 191:return O(d,p.type);case 192:return O(d,p.objectType)||O(d,p.indexType);case 193:return O(d,p.readonlyToken)||O(d,p.typeParameter)||O(d,p.nameType)||O(d,p.questionToken)||O(d,p.type);case 194:return O(d,p.literal);case 195:return O(d,p.dotDotDotToken)||O(d,p.name)||O(d,p.questionToken)||O(d,p.type);case 199:case 200:return w(d,T,p.elements);case 202:return w(d,T,p.elements);case 203:return w(d,T,p.properties);case 204:return O(d,p.expression)||O(d,p.questionDotToken)||O(d,p.name);case 205:return O(d,p.expression)||O(d,p.questionDotToken)||O(d,p.argumentExpression);case 206:case 207:return O(d,p.expression)||O(d,p.questionDotToken)||w(d,T,p.typeArguments)||w(d,T,p.arguments);case 208:return O(d,p.tag)||O(d,p.questionDotToken)||w(d,T,p.typeArguments)||O(d,p.template);case 209:return O(d,p.type)||O(d,p.expression);case 210:return O(d,p.expression);case 213:return O(d,p.expression);case 214:return O(d,p.expression);case 215:return O(d,p.expression);case 217:return O(d,p.operand);case 222:return O(d,p.asteriskToken)||O(d,p.expression);case 216:return O(d,p.expression);case 218:return O(d,p.operand);case 219:return O(d,p.left)||O(d,p.operatorToken)||O(d,p.right);case 227:return O(d,p.expression)||O(d,p.type);case 228:return O(d,p.expression);case 229:return O(d,p.name);case 220:return O(d,p.condition)||O(d,p.questionToken)||O(d,p.whenTrue)||O(d,p.colonToken)||O(d,p.whenFalse);case 223:return O(d,p.expression);case 233:case 260:return w(d,T,p.statements);case 300:return w(d,T,p.statements)||O(d,p.endOfFileToken);case 235:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.declarationList);case 253:return w(d,T,p.declarations);case 236:return O(d,p.expression);case 237:return O(d,p.expression)||O(d,p.thenStatement)||O(d,p.elseStatement);case 238:return O(d,p.statement)||O(d,p.expression);case 239:return O(d,p.expression)||O(d,p.statement);case 240:return O(d,p.initializer)||O(d,p.condition)||O(d,p.incrementor)||O(d,p.statement);case 241:return O(d,p.initializer)||O(d,p.expression)||O(d,p.statement);case 242:return O(d,p.awaitModifier)||O(d,p.initializer)||O(d,p.expression)||O(d,p.statement);case 243:case 244:return O(d,p.label);case 245:return O(d,p.expression);case 246:return O(d,p.expression)||O(d,p.statement);case 247:return O(d,p.expression)||O(d,p.caseBlock);case 261:return w(d,T,p.clauses);case 287:return O(d,p.expression)||w(d,T,p.statements);case 288:return w(d,T,p.statements);case 248:return O(d,p.label)||O(d,p.statement);case 249:return O(d,p.expression);case 250:return O(d,p.tryBlock)||O(d,p.catchClause)||O(d,p.finallyBlock);case 290:return O(d,p.variableDeclaration)||O(d,p.block);case 163:return O(d,p.expression);case 255:case 224:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||w(d,T,p.typeParameters)||w(d,T,p.heritageClauses)||w(d,T,p.members);case 256:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||w(d,T,p.typeParameters)||w(d,T,p.heritageClauses)||w(d,T,p.members);case 257:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||w(d,T,p.typeParameters)||O(d,p.type);case 258:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||w(d,T,p.members);case 294:return O(d,p.name)||O(d,p.initializer);case 259:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||O(d,p.body);case 263:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.name)||O(d,p.moduleReference);case 264:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.importClause)||O(d,p.moduleSpecifier);case 265:return O(d,p.name)||O(d,p.namedBindings);case 262:return O(d,p.name);case 266:return O(d,p.name);case 272:return O(d,p.name);case 267:case 271:return w(d,T,p.elements);case 270:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.exportClause)||O(d,p.moduleSpecifier);case 268:case 273:return O(d,p.propertyName)||O(d,p.name);case 269:return w(d,T,p.decorators)||w(d,T,p.modifiers)||O(d,p.expression);case 221:return O(d,p.head)||w(d,T,p.templateSpans);case 231:return O(d,p.expression)||O(d,p.literal);case 196:return O(d,p.head)||w(d,T,p.templateSpans);case 197:return O(d,p.type)||O(d,p.literal);case 160:return O(d,p.expression);case 289:return w(d,T,p.types);case 226:return O(d,p.expression)||w(d,T,p.typeArguments);case 275:return O(d,p.expression);case 274:return w(d,T,p.decorators);case 346:return w(d,T,p.elements);case 276:return O(d,p.openingElement)||w(d,T,p.children)||O(d,p.closingElement);case 280:return O(d,p.openingFragment)||w(d,T,p.children)||O(d,p.closingFragment);case 277:case 278:return O(d,p.tagName)||w(d,T,p.typeArguments)||O(d,p.attributes);case 284:return w(d,T,p.properties);case 283:return O(d,p.name)||O(d,p.initializer);case 285:return O(d,p.expression);case 286:return O(d,p.dotDotDotToken)||O(d,p.expression);case 279:return O(d,p.tagName);case 183:case 184:case 304:case 310:case 309:case 311:case 313:return O(d,p.type);case 312:return w(d,T,p.parameters)||O(d,p.type);case 315:return(typeof p.comment=="string"?void 0:w(d,T,p.comment))||w(d,T,p.tags);case 341:return O(d,p.tagName)||O(d,p.name)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 305:return O(d,p.name);case 306:return O(d,p.left)||O(d,p.right);case 335:case 342:return O(d,p.tagName)||(p.isNameFirst?O(d,p.name)||O(d,p.typeExpression)||(typeof p.comment=="string"?void 0:w(d,T,p.comment)):O(d,p.typeExpression)||O(d,p.name)||(typeof p.comment=="string"?void 0:w(d,T,p.comment)));case 325:return O(d,p.tagName)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 324:return O(d,p.tagName)||O(d,p.class)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 323:return O(d,p.tagName)||O(d,p.class)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 339:return O(d,p.tagName)||O(d,p.constraint)||w(d,T,p.typeParameters)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 340:return O(d,p.tagName)||(p.typeExpression&&p.typeExpression.kind===304?O(d,p.typeExpression)||O(d,p.fullName)||(typeof p.comment=="string"?void 0:w(d,T,p.comment)):O(d,p.fullName)||O(d,p.typeExpression)||(typeof p.comment=="string"?void 0:w(d,T,p.comment)));case 333:return O(d,p.tagName)||O(d,p.fullName)||O(d,p.typeExpression)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 336:case 338:case 337:case 334:return O(d,p.tagName)||O(d,p.typeExpression)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 318:return e.forEach(p.typeParameters,d)||e.forEach(p.parameters,d)||O(d,p.type);case 319:case 320:case 321:return O(d,p.name);case 317:return e.forEach(p.jsDocPropertyTags,d);case 322:case 327:case 328:case 329:case 330:case 331:case 326:return O(d,p.tagName)||(typeof p.comment=="string"?void 0:w(d,T,p.comment));case 345:return O(d,p.expression)}}e.forEachChild=de;function fe(p,d,T){for(var m=_(p),k=[];k.length<m.length;)k.push(p);for(;m.length!==0;){var N=m.pop(),D=k.pop();if(e.isArray(N)){if(T){var R=T(N,D);if(R){if(R==="skip")continue;return R}}for(var me=N.length-1;me>=0;--me)m.push(N[me]),k.push(D)}else{var R=d(N,D);if(R){if(R==="skip")continue;return R}if(N.kind>=159)for(var q=0,J=_(N);q<J.length;q++){var C=J[q];m.push(C),k.push(N)}}}}e.forEachChildRecursively=fe;function _(p){var d=[];return de(p,T,T),d;function T(m){d.unshift(m)}}function U(p,d,T,m,k){m===void 0&&(m=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:p},!0),e.performance.mark("beforeParse");var N;return e.perfLogger.logStartParseSourceFile(p),T===100?N=E.parseSourceFile(p,d,T,void 0,m,6):N=E.parseSourceFile(p,d,T,void 0,m,k),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),N}e.createSourceFile=U;function Z(p,d){return E.parseIsolatedEntityName(p,d)}e.parseIsolatedEntityName=Z;function v(p,d){return E.parseJsonText(p,d)}e.parseJsonText=v;function W(p){return p.externalModuleIndicator!==void 0}e.isExternalModule=W;function x(p,d,T,m){m===void 0&&(m=!1);var k=ae.updateSourceFile(p,d,T,m);return k.flags|=p.flags&3145728,k}e.updateSourceFile=x;function $(p,d,T){var m=E.JSDocParser.parseIsolatedJSDocComment(p,d,T);return m&&m.jsDoc&&E.fixupParentReferences(m.jsDoc),m}e.parseIsolatedJSDocComment=$;function L(p,d,T){return E.JSDocParser.parseJSDocTypeExpressionForTests(p,d,T)}e.parseJSDocTypeExpressionForTests=L;var E;(function(p){var d=e.createScanner(99,!0),T=4096|16384,m,k,N,D,R;function me(Ie){return ce++,Ie}var q={createBaseSourceFileNode:function(Ie){return me(new R(Ie,0,0))},createBaseIdentifierNode:function(Ie){return me(new N(Ie,0,0))},createBasePrivateIdentifierNode:function(Ie){return me(new D(Ie,0,0))},createBaseTokenNode:function(Ie){return me(new k(Ie,0,0))},createBaseNode:function(Ie){return me(new m(Ie,0,0))}},J=e.createNodeFactory(1|2|8,q),C,we,Oe,te,Te,be,Ce,Ue,Se,$e,ce,Le,qe,pe,Me,fn,Ye,Ne=!0,je=!1;function xn(Ie,bn,Xn,dt,Rt,lr){var Fr;if(Rt===void 0&&(Rt=!1),lr=e.ensureScriptKind(Ie,lr),lr===6){var aa=dn(Ie,bn,Xn,dt,Rt);return e.convertToObjectWorker(aa,(Fr=aa.statements[0])===null||Fr===void 0?void 0:Fr.expression,aa.parseDiagnostics,!1,void 0,void 0),aa.referencedFiles=e.emptyArray,aa.typeReferenceDirectives=e.emptyArray,aa.libReferenceDirectives=e.emptyArray,aa.amdDependencies=e.emptyArray,aa.hasNoDefaultLib=!1,aa.pragmas=e.emptyMap,aa}vn(Ie,bn,Xn,dt,lr);var di=Cn(Xn,Rt,lr);return o(),di}p.parseSourceFile=xn;function Wn(Ie,bn){vn("",Ie,bn,void 0,1),ln();var Xn=Xi(!0),dt=K()===1&&!Ce.length;return o(),dt?Xn:void 0}p.parseIsolatedEntityName=Wn;function dn(Ie,bn,Xn,dt,Rt){Xn===void 0&&(Xn=2),Rt===void 0&&(Rt=!1),vn(Ie,bn,Xn,dt,6),we=Ye,ln();var lr=Fe(),Fr,aa;if(K()===1)Fr=sr([],lr,lr),aa=ra();else{for(var di=void 0;K()!==1;){var ka=void 0;switch(K()){case 22:ka=du();break;case 110:case 95:case 104:ka=ra();break;case 40:Jt(function(){return ln()===8&&ln()!==58})?ka=Ya():ka=Iu();break;case 8:case 10:if(Jt(function(){return ln()!==58})){ka=vs();break}default:ka=Iu();break}di&&e.isArray(di)?di.push(ka):di?di=[di,ka]:(di=ka,K()!==1&&Pn(e.Diagnostics.Unexpected_token))}var Co=e.isArray(di)?at(J.createArrayLiteralExpression(di),lr):e.Debug.checkDefined(di),Fs=J.createExpressionStatement(Co);at(Fs,lr),Fr=sr([Fs],lr),aa=Wt(1,e.Diagnostics.Unexpected_token)}var ko=Pe(Ie,2,6,!1,Fr,aa,we);Rt&&oe(ko),ko.nodeCount=ce,ko.identifierCount=pe,ko.identifiers=Le,ko.parseDiagnostics=e.attachFileToDiagnostics(Ce,ko),Ue&&(ko.jsDocDiagnostics=e.attachFileToDiagnostics(Ue,ko));var Es=ko;return o(),Es}p.parseJsonText=dn;function vn(Ie,bn,Xn,dt,Rt){m=e.objectAllocator.getNodeConstructor(),k=e.objectAllocator.getTokenConstructor(),N=e.objectAllocator.getIdentifierConstructor(),D=e.objectAllocator.getPrivateIdentifierConstructor(),R=e.objectAllocator.getSourceFileConstructor(),C=e.normalizePath(Ie),Oe=bn,te=Xn,Se=dt,Te=Rt,be=e.getLanguageVariant(Rt),Ce=[],Me=0,Le=new e.Map,qe=new e.Map,pe=0,ce=0,we=0,Ne=!0;switch(Te){case 1:case 2:Ye=131072;break;case 6:Ye=131072|33554432;break;default:Ye=0;break}je=!1,d.setText(Oe),d.setOnError(lt),d.setScriptTarget(te),d.setLanguageVariant(be)}function o(){d.clearCommentDirectives(),d.setText(""),d.setOnError(void 0),Oe=void 0,te=void 0,Se=void 0,Te=void 0,be=void 0,we=0,Ce=void 0,Ue=void 0,Me=0,Le=void 0,fn=void 0,Ne=!0}function Cn(Ie,bn,Xn){var dt=X(C);dt&&(Ye|=8388608),we=Ye,ln();var Rt=tr(0,Sl);e.Debug.assert(K()===1);var lr=$n(ra()),Fr=Pe(C,Ie,Xn,dt,Rt,lr,we);return ie(Fr,Oe),le(Fr,aa),Fr.commentDirectives=d.getCommentDirectives(),Fr.nodeCount=ce,Fr.identifierCount=pe,Fr.identifiers=Le,Fr.parseDiagnostics=e.attachFileToDiagnostics(Ce,Fr),Ue&&(Fr.jsDocDiagnostics=e.attachFileToDiagnostics(Ue,Fr)),bn&&oe(Fr),Fr;function aa(di,ka,Co){Ce.push(e.createDetachedDiagnostic(C,di,ka,Co))}}function z(Ie,bn){return bn?$n(Ie):Ie}var tn=!1;function $n(Ie){e.Debug.assert(!Ie.jsDoc);var bn=e.mapDefined(e.getJSDocCommentRanges(Ie,Oe),function(Xn){return xf.parseJSDocComment(Ie,Xn.pos,Xn.end-Xn.pos)});return bn.length&&(Ie.jsDoc=bn),tn&&(tn=!1,Ie.flags|=134217728),Ie}function Un(Ie){var bn=Se,Xn=ae.createSyntaxCursor(Ie);Se={currentNode:Es};var dt=[],Rt=Ce;Ce=[];for(var lr=0,Fr=Fs(Ie.statements,0),aa=function(){var Xs=Ie.statements[lr],Cl=Ie.statements[Fr];e.addRange(dt,Ie.statements,lr,Fr),lr=ko(Ie.statements,Fr);var Gl=e.findIndex(Rt,function(uc){return uc.start>=Xs.pos}),Hc=Gl>=0?e.findIndex(Rt,function(uc){return uc.start>=Cl.pos},Gl):-1;Gl>=0&&e.addRange(Ce,Rt,Gl,Hc>=0?Hc:void 0),br(function(){var uc=Ye;for(Ye|=32768,d.setTextPos(Cl.pos),ln();K()!==1;){var Cd=d.getStartPos(),Kl=oa(0,Sl);if(dt.push(Kl),Cd===d.getStartPos()&&ln(),lr>=0){var ec=Ie.statements[lr];if(Kl.end===ec.pos)break;Kl.end>ec.pos&&(lr=ko(Ie.statements,lr+1))}}Ye=uc},2),Fr=lr>=0?Fs(Ie.statements,lr):-1};Fr!==-1;)aa();if(lr>=0){var di=Ie.statements[lr];e.addRange(dt,Ie.statements,lr);var ka=e.findIndex(Rt,function(Xs){return Xs.start>=di.pos});ka>=0&&e.addRange(Ce,Rt,ka)}return Se=bn,J.updateSourceFile(Ie,e.setTextRange(J.createNodeArray(dt),Ie.statements));function Co(Xs){return!(Xs.flags&32768)&&!!(Xs.transformFlags&16777216)}function Fs(Xs,Cl){for(var Gl=Cl;Gl<Xs.length;Gl++)if(Co(Xs[Gl]))return Gl;return-1}function ko(Xs,Cl){for(var Gl=Cl;Gl<Xs.length;Gl++)if(!Co(Xs[Gl]))return Gl;return-1}function Es(Xs){var Cl=Xn.currentNode(Xs);return Ne&&Cl&&Co(Cl)&&(Cl.intersectsChange=!0),Cl}}function oe(Ie){e.setParentRecursive(Ie,!0)}p.fixupParentReferences=oe;function Pe(Ie,bn,Xn,dt,Rt,lr,Fr){var aa=J.createSourceFile(Rt,lr,Fr);return e.setTextRangePosWidth(aa,0,Oe.length),jp(aa),!dt&&W(aa)&&aa.transformFlags&16777216&&(aa=Un(aa)),aa.text=Oe,aa.bindDiagnostics=[],aa.bindSuggestionDiagnostics=void 0,aa.languageVersion=bn,aa.fileName=Ie,aa.languageVariant=e.getLanguageVariant(Xn),aa.isDeclarationFile=dt,aa.scriptKind=Xn,aa}function ke(Ie,bn){Ie?Ye|=bn:Ye&=~bn}function Qe(Ie){ke(Ie,4096)}function gn(Ie){ke(Ie,8192)}function xe(Ie){ke(Ie,16384)}function Ze(Ie){ke(Ie,32768)}function wn(Ie,bn){var Xn=Ie&Ye;if(Xn){ke(!1,Xn);var dt=bn();return ke(!0,Xn),dt}return bn()}function Be(Ie,bn){var Xn=Ie&~Ye;if(Xn){ke(!0,Xn);var dt=bn();return ke(!1,Xn),dt}return bn()}function hn(Ie){return wn(4096,Ie)}function Kn(Ie){return Be(4096,Ie)}function Je(Ie){return Be(8192,Ie)}function En(Ie){return Be(16384,Ie)}function Nn(Ie){return Be(32768,Ie)}function ct(Ie){return wn(32768,Ie)}function yt(Ie){return Be(8192|32768,Ie)}function Gt(Ie){return wn(8192|32768,Ie)}function $t(Ie){return(Ye&Ie)!==0}function Ke(){return $t(8192)}function Vn(){return $t(4096)}function Zn(){return $t(16384)}function Re(){return $t(32768)}function Pn(Ie,bn){Yn(d.getTokenPos(),d.getTextPos(),Ie,bn)}function rt(Ie,bn,Xn,dt){var Rt=e.lastOrUndefined(Ce);(!Rt||Ie!==Rt.start)&&Ce.push(e.createDetachedDiagnostic(C,Ie,bn,Xn,dt)),je=!0}function Yn(Ie,bn,Xn,dt){rt(Ie,bn-Ie,Xn,dt)}function gt(Ie,bn,Xn){Yn(Ie.pos,Ie.end,bn,Xn)}function lt(Ie,bn){rt(d.getTextPos(),bn,Ie)}function Fe(){return d.getStartPos()}function Bn(){return d.hasPrecedingJSDocComment()}function K(){return $e}function An(){return $e=d.scan()}function Fn(Ie){return ln(),Ie()}function ln(){return e.isKeyword($e)&&(d.hasUnicodeEscape()||d.hasExtendedUnicodeEscape())&&Yn(d.getTokenPos(),d.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),An()}function Ln(){return $e=d.scanJsDocToken()}function Xe(){return $e=d.reScanGreaterToken()}function Dn(){return $e=d.reScanSlashToken()}function rn(Ie){return $e=d.reScanTemplateToken(Ie)}function qn(){return $e=d.reScanTemplateHeadOrNoSubstitutionTemplate()}function it(){return $e=d.reScanLessThanToken()}function ht(){return $e=d.reScanHashToken()}function Et(){return $e=d.scanJsxIdentifier()}function zt(){return $e=d.scanJsxToken()}function fr(){return $e=d.scanJsxAttributeValue()}function br(Ie,bn){var Xn=$e,dt=Ce.length,Rt=je,lr=Ye,Fr=bn!==0?d.lookAhead(Ie):d.tryScan(Ie);return e.Debug.assert(lr===Ye),(!Fr||bn!==0)&&($e=Xn,bn!==2&&(Ce.length=dt),je=Rt),Fr}function Jt(Ie){return br(Ie,1)}function mr(Ie){return br(Ie,0)}function Ht(){return K()===79?!0:K()>116}function Xr(){return K()===79?!0:K()===125&&Ke()||K()===131&&Re()?!1:K()>116}function At(Ie,bn,Xn){return Xn===void 0&&(Xn=!0),K()===Ie?(Xn&&ln(),!0):(bn?Pn(bn):Pn(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}var Wr=Object.keys(e.textToKeywordObj).filter(function(Ie){return Ie.length>2});function Or(Ie){var bn;if(e.isTaggedTemplateExpression(Ie)){Yn(e.skipTrivia(Oe,Ie.template.pos),Ie.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Xn=e.isIdentifier(Ie)?e.idText(Ie):void 0;if(!Xn||!e.isIdentifierText(Xn,te)){Pn(e.Diagnostics._0_expected,e.tokenToString(26));return}var dt=e.skipTrivia(Oe,Ie.pos);switch(Xn){case"const":case"let":case"var":Yn(dt,Ie.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Ja(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":Yn(dt,d.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Ja(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":Ja(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Rt=(bn=e.getSpellingSuggestion(Xn,Wr,function(lr){return lr}))!==null&&bn!==void 0?bn:qa(Xn);if(Rt){Yn(dt,Ie.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Rt);return}if(K()===0)return;Yn(dt,Ie.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function Ja(Ie,bn,Xn){K()===Xn?Pn(bn):Pn(Ie,e.tokenToString(K()))}function qa(Ie){for(var bn=0,Xn=Wr;bn<Xn.length;bn++){var dt=Xn[bn];if(Ie.length>dt.length+2&&e.startsWith(Ie,dt))return dt+" "+Ie.slice(dt.length)}return}function eo(Ie,bn,Xn){if(K()===59&&!d.hasPrecedingLineBreak()){Pn(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(K()===20){Pn(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),ln();return}if(bn&&!xt()){Xn?Pn(e.Diagnostics._0_expected,e.tokenToString(26)):Pn(e.Diagnostics.Expected_for_property_initializer);return}if(Yt())return;if(Xn){K()===18&&Pn(e.Diagnostics._0_expected,e.tokenToString(26));return}Or(Ie)}function Va(Ie){return K()===Ie?(Ln(),!0):(Pn(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}function la(Ie){return K()===Ie?(ln(),!0):!1}function wt(Ie){return K()===Ie?ra():void 0}function rr(Ie){return K()===Ie?Lt():void 0}function Wt(Ie,bn,Xn){return wt(Ie)||ea(Ie,!1,bn||e.Diagnostics._0_expected,Xn||e.tokenToString(Ie))}function Pr(Ie){return rr(Ie)||ea(Ie,!1,e.Diagnostics._0_expected,e.tokenToString(Ie))}function ra(){var Ie=Fe(),bn=K();return ln(),at(J.createToken(bn),Ie)}function Lt(){var Ie=Fe(),bn=K();return Ln(),at(J.createToken(bn),Ie)}function xt(){return K()===26?!0:K()===19||K()===1||d.hasPrecedingLineBreak()}function Yt(){return xt()?(K()===26&&ln(),!0):!1}function Qt(){return Yt()||At(26)}function sr(Ie,bn,Xn,dt){var Rt=J.createNodeArray(Ie,dt);return e.setTextRangePosEnd(Rt,bn,Xn!=null?Xn:d.getStartPos()),Rt}function at(Ie,bn,Xn){return e.setTextRangePosEnd(Ie,bn,Xn!=null?Xn:d.getStartPos()),Ye&&(Ie.flags|=Ye),je&&(je=!1,Ie.flags|=65536),Ie}function ea(Ie,bn,Xn,dt){bn?rt(d.getStartPos(),0,Xn,dt):Xn&&Pn(Xn,dt);var Rt=Fe(),lr=Ie===79?J.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(Ie)?J.createTemplateLiteralLikeNode(Ie,"","",void 0):Ie===8?J.createNumericLiteral("",void 0):Ie===10?J.createStringLiteral("",void 0):Ie===274?J.createMissingDeclaration():J.createToken(Ie);return at(lr,Rt)}function Fa(Ie){var bn=Le.get(Ie);return bn===void 0&&Le.set(Ie,bn=Ie),bn}function li(Ie,bn,Xn){if(Ie){pe++;var dt=Fe(),Rt=K(),lr=Fa(d.getTokenValue());return An(),at(J.createIdentifier(lr,void 0,Rt),dt)}if(K()===80)return Pn(Xn||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),li(!0);if(K()===0&&d.tryScan(function(){return d.reScanInvalidIdentifier()===79}))return li(!0);pe++;var Fr=K()===1,aa=d.isReservedWord(),di=d.getTokenText(),ka=aa?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return ea(79,Fr,bn||ka,di)}function Si(Ie){return li(Ht(),void 0,Ie)}function Qr(Ie,bn){return li(Xr(),Ie,bn)}function ci(Ie){return li(e.tokenIsIdentifierOrKeyword(K()),Ie)}function Mi(){return e.tokenIsIdentifierOrKeyword(K())||K()===10||K()===8}function ro(Ie){if(K()===10||K()===8){var bn=vs();return bn.text=Fa(bn.text),bn}return Ie&&K()===22?ui():K()===80?xo():ci()}function xi(){return ro(!0)}function ui(){var Ie=Fe();At(22);var bn=hn(al);return At(23),at(J.createComputedPropertyName(bn),Ie)}function lo(Ie){var bn=qe.get(Ie);return bn===void 0&&qe.set(Ie,bn=Ie),bn}function xo(){var Ie=Fe(),bn=J.createPrivateIdentifier(lo(d.getTokenText()));return ln(),at(bn,Ie)}function Vi(Ie){return K()===Ie&&mr(Qi)}function os(){return ln(),d.hasPrecedingLineBreak()?!1:Ca()}function Qi(){switch(K()){case 85:return ln()===92;case 93:return ln(),K()===88?Jt(ai):K()===150?Jt(Rs):mo();case 88:return ai();case 124:return os();case 135:case 147:return ln(),Ca();default:return os()}}function mo(){return K()!==41&&K()!==127&&K()!==18&&Ca()}function Rs(){return ln(),mo()}function Ls(){return e.isModifierKind(K())&&mr(Qi)}function Ca(){return K()===22||K()===18||K()===41||K()===25||Mi()}function ai(){return ln(),K()===84||K()===98||K()===118||K()===126&&Jt(Uc)||K()===130&&Jt(Vc)}function Pi(Ie,bn){var Xn=Za(Ie);if(Xn)return!0;switch(Ie){case 0:case 1:case 3:return!(K()===26&&bn)&&Tl();case 2:return K()===82||K()===88;case 4:return Jt(Gr);case 5:return Jt(Gd)||K()===26&&!bn;case 6:return K()===22||Mi();case 12:switch(K()){case 22:case 41:case 25:case 24:return!0;default:return Mi()}case 18:return Mi();case 9:return K()===22||K()===25||Mi();case 7:return K()===18?Jt(wo):bn?Xr()&&!Io():rl()&&!Io();case 8:return mf();case 10:return K()===27||K()===25||mf();case 19:return Xr();case 15:switch(K()){case 27:case 24:return!0}case 11:return K()===25||Zi();case 16:return qs(!1);case 17:return qs(!0);case 20:case 21:return K()===27||Vs();case 22:return Wc();case 23:return e.tokenIsIdentifierOrKeyword(K());case 13:return e.tokenIsIdentifierOrKeyword(K())||K()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function wo(){if(e.Debug.assert(K()===18),ln()===19){var Ie=ln();return Ie===27||Ie===18||Ie===94||Ie===117}return!0}function Lo(){return ln(),Xr()}function _s(){return ln(),e.tokenIsIdentifierOrKeyword(K())}function Oi(){return ln(),e.tokenIsIdentifierOrKeywordOrGreaterThan(K())}function Io(){return K()===117||K()===94?Jt(fs):!1}function fs(){return ln(),Zi()}function Mo(){return ln(),Vs()}function Ms(Ie){if(K()===1)return!0;switch(Ie){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return K()===19;case 3:return K()===19||K()===82||K()===88;case 7:return K()===18||K()===94||K()===117;case 8:return yn();case 19:return K()===31||K()===20||K()===18||K()===94||K()===117;case 11:return K()===21||K()===26;case 15:case 21:case 10:return K()===23;case 17:case 16:case 18:return K()===21||K()===23;case 20:return K()!==27;case 22:return K()===18||K()===19;case 13:return K()===31||K()===43;case 14:return K()===29&&Jt(ft);default:return!1}}function yn(){return xt()||$o(K())?!0:K()===38}function _t(){for(var Ie=0;Ie<24;Ie++)if(Me&1<<Ie&&(Pi(Ie,!0)||Ms(Ie)))return!0;return!1}function tr(Ie,bn){var Xn=Me;Me|=1<<Ie;for(var dt=[],Rt=Fe();!Ms(Ie);){if(Pi(Ie,!1)){dt.push(oa(Ie,bn));continue}if(St(Ie))break}return Me=Xn,sr(dt,Rt)}function oa(Ie,bn){var Xn=Za(Ie);return Xn?Ga(Xn):bn()}function Za(Ie){if(!Se||!He(Ie)||je)return;var bn=Se.currentNode(d.getStartPos());if(e.nodeIsMissing(bn)||bn.intersectsChange||e.containsParseError(bn))return;var Xn=bn.flags&25358336;return Xn!==Ye?void 0:se(bn,Ie)?(bn.jsDocCache&&(bn.jsDocCache=void 0),bn):void 0}function Ga(Ie){return d.setTextPos(Ie.end),ln(),Ie}function He(Ie){switch(Ie){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 se(Ie,bn){switch(bn){case 5:return pn(Ie);case 2:return j(Ie);case 0:case 1:case 3:return De(Ie);case 6:return Ve(Ie);case 4:return un(Ie);case 8:return jn(Ie);case 17:case 16:return mt(Ie)}return!1}function pn(Ie){if(Ie)switch(Ie.kind){case 169:case 174:case 170:case 171:case 165:case 232:return!0;case 167:var bn=Ie,Xn=bn.name.kind===79&&bn.name.originalKeywordKind===133;return!Xn}return!1}function j(Ie){if(Ie)switch(Ie.kind){case 287:case 288:return!0}return!1}function De(Ie){if(Ie)switch(Ie.kind){case 254:case 235:case 233:case 237:case 236:case 249:case 245:case 247:case 244:case 243:case 241:case 242:case 240:case 239:case 246:case 234:case 250:case 248:case 238:case 251:case 264:case 263:case 270:case 269:case 259:case 255:case 256:case 258:case 257:return!0}return!1}function Ve(Ie){return Ie.kind===294}function un(Ie){if(Ie)switch(Ie.kind){case 173:case 166:case 174:case 164:case 172:return!0}return!1}function jn(Ie){if(Ie.kind!==252)return!1;var bn=Ie;return bn.initializer===void 0}function mt(Ie){if(Ie.kind!==162)return!1;var bn=Ie;return bn.initializer===void 0}function St(Ie){return ir(Ie),_t()?!0:(ln(),!1)}function ir(Ie){switch(Ie){case 0:return K()===88?Pn(e.Diagnostics._0_expected,e.tokenToString(93)):Pn(e.Diagnostics.Declaration_or_statement_expected);case 1:return Pn(e.Diagnostics.Declaration_or_statement_expected);case 2:return Pn(e.Diagnostics.case_or_default_expected);case 3:return Pn(e.Diagnostics.Statement_expected);case 18:case 4:return Pn(e.Diagnostics.Property_or_signature_expected);case 5:return Pn(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Pn(e.Diagnostics.Enum_member_expected);case 7:return Pn(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(K())?Pn(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(K())):Pn(e.Diagnostics.Variable_declaration_expected);case 9:return Pn(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return Pn(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return Pn(e.Diagnostics.Argument_expression_expected);case 12:return Pn(e.Diagnostics.Property_assignment_expected);case 15:return Pn(e.Diagnostics.Expression_or_comma_expected);case 17:return Pn(e.Diagnostics.Parameter_declaration_expected);case 16:return Pn(e.Diagnostics.Parameter_declaration_expected);case 19:return Pn(e.Diagnostics.Type_parameter_declaration_expected);case 20:return Pn(e.Diagnostics.Type_argument_expected);case 21:return Pn(e.Diagnostics.Type_expected);case 22:return Pn(e.Diagnostics.Unexpected_token_expected);case 23:return Pn(e.Diagnostics.Identifier_expected);case 13:return Pn(e.Diagnostics.Identifier_expected);case 14:return Pn(e.Diagnostics.Identifier_expected);default:return[void 0]}}function _r(Ie,bn,Xn){var dt=Me;Me|=1<<Ie;for(var Rt=[],lr=Fe(),Fr=-1;;){if(Pi(Ie,!1)){var aa=d.getStartPos();if(Rt.push(oa(Ie,bn)),Fr=d.getTokenPos(),la(27))continue;if(Fr=-1,Ms(Ie))break;At(27,na(Ie)),Xn&&K()===26&&!d.hasPrecedingLineBreak()&&ln(),aa===d.getStartPos()&&ln();continue}if(Ms(Ie))break;if(St(Ie))break}return Me=dt,sr(Rt,lr,void 0,Fr>=0)}function na(Ie){return Ie===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function wa(){var Ie=sr([],Fe());return Ie.isMissingList=!0,Ie}function za(Ie){return!!Ie.isMissingList}function bi(Ie,bn,Xn,dt){if(At(Xn)){var Rt=_r(Ie,bn);return At(dt),Rt}return wa()}function Xi(Ie,bn){for(var Xn=Fe(),dt=Ie?ci(bn):Qr(bn),Rt=Fe();la(24);){if(K()===29){dt.jsdocDotPos=Rt;break}Rt=Fe(),dt=at(J.createQualifiedName(dt,Ss(Ie,!1)),Xn)}return dt}function co(Ie,bn){return at(J.createQualifiedName(Ie,bn),Ie.pos)}function Ss(Ie,bn){if(d.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(K())){var Xn=Jt(pu);if(Xn)return ea(79,!0,e.Diagnostics.Identifier_expected)}if(K()===80){var dt=xo();return bn?dt:ea(79,!0,e.Diagnostics.Identifier_expected)}return Ie?ci():Qr()}function No(Ie){var bn=Fe(),Xn=[],dt;do dt=ac(Ie),Xn.push(dt);while(dt.literal.kind===16);return sr(Xn,bn)}function Ks(Ie){var bn=Fe();return at(J.createTemplateExpression(ic(Ie),No(Ie)),bn)}function Js(){var Ie=Fe();return at(J.createTemplateLiteralType(ic(!1),gl()),Ie)}function gl(){var Ie=Fe(),bn=[],Xn;do Xn=yl(),bn.push(Xn);while(Xn.literal.kind===16);return sr(bn,Ie)}function yl(){var Ie=Fe();return at(J.createTemplateLiteralTypeSpan(Vo(),Ol(!1)),Ie)}function Ol(Ie){return K()===19?(rn(Ie),Pl()):Wt(17,e.Diagnostics._0_expected,e.tokenToString(19))}function ac(Ie){var bn=Fe();return at(J.createTemplateSpan(hn(al),Ol(Ie)),bn)}function vs(){return nl(K())}function ic(Ie){Ie&&qn();var bn=nl(K());return e.Debug.assert(bn.kind===15,"Template head has wrong token kind"),bn}function Pl(){var Ie=nl(K());return e.Debug.assert(Ie.kind===16||Ie.kind===17,"Template fragment has wrong token kind"),Ie}function cl(Ie){var bn=Ie===14||Ie===17,Xn=d.getTokenText();return Xn.substring(1,Xn.length-(d.isUnterminated()?0:bn?1:2))}function nl(Ie){var bn=Fe(),Xn=e.isTemplateLiteralKind(Ie)?J.createTemplateLiteralLikeNode(Ie,d.getTokenValue(),cl(Ie),d.getTokenFlags()&2048):Ie===8?J.createNumericLiteral(d.getTokenValue(),d.getNumericLiteralFlags()):Ie===10?J.createStringLiteral(d.getTokenValue(),void 0,d.hasExtendedUnicodeEscape()):e.isLiteralKind(Ie)?J.createLiteralLikeNode(Ie,d.getTokenValue()):e.Debug.fail();return d.hasExtendedUnicodeEscape()&&(Xn.hasExtendedUnicodeEscape=!0),d.isUnterminated()&&(Xn.isUnterminated=!0),ln(),at(Xn,bn)}function he(){return Xi(!0,e.Diagnostics.Type_expected)}function Jn(){if(!d.hasPrecedingLineBreak()&&it()===29)return bi(20,Vo,29,31)}function Ee(){var Ie=Fe();return at(J.createTypeReferenceNode(he(),Jn()),Ie)}function Mn(Ie){switch(Ie.kind){case 176:return e.nodeIsMissing(Ie.typeName);case 177:case 178:{var bn=Ie,Xn=bn.parameters,dt=bn.type;return za(Xn)||Mn(dt)}case 189:return Mn(Ie.type);default:return!1}}function dr(Ie){return ln(),at(J.createTypePredicateNode(void 0,Ie,Vo()),Ie.pos)}function Yr(){var Ie=Fe();return ln(),at(J.createThisTypeNode(),Ie)}function da(){var Ie=Fe();return ln(),at(J.createJSDocAllType(),Ie)}function ya(){var Ie=Fe();return ln(),at(J.createJSDocNonNullableType(Ds()),Ie)}function bo(){var Ie=Fe();return ln(),K()===27||K()===19||K()===21||K()===31||K()===63||K()===51?at(J.createJSDocUnknownType(),Ie):at(J.createJSDocNullableType(Vo()),Ie)}function On(){var Ie=Fe(),bn=Bn();if(Jt(y)){ln();var Xn=Zl(4|32),dt=oc(58,!1);return z(at(J.createJSDocFunctionType(Xn,dt),Ie),bn)}return at(J.createTypeReferenceNode(ci(),void 0),Ie)}function Bo(){var Ie=Fe(),bn;return(K()===108||K()===103)&&(bn=ci(),At(58)),at(J.createParameterDeclaration(void 0,void 0,void 0,bn,void 0,ps(),void 0),Ie)}function ps(){d.setInJSDocType(!0);var Ie=Fe();if(la(140)){var bn=J.createJSDocNamepathType(void 0);e:for(;;)switch(K()){case 19:case 1:case 27:case 5:break e;default:Ln()}return d.setInJSDocType(!1),at(bn,Ie)}var Xn=la(25),dt=$a();return d.setInJSDocType(!1),Xn&&(dt=at(J.createJSDocVariadicType(dt),Ie)),K()===63?(ln(),at(J.createJSDocOptionalType(dt),Ie)):dt}function ms(){var Ie=Fe();return At(112),at(J.createTypeQueryNode(Xi(!0)),Ie)}function _l(){var Ie=Fe(),bn=Qr(),Xn,dt;la(94)&&(Vs()||!Zi()?Xn=Vo():dt=Cs());var Rt=la(63)?Vo():void 0,lr=J.createTypeParameterDeclaration(bn,Xn,Rt);return lr.expression=dt,at(lr,Ie)}function Gi(){if(K()===29)return bi(19,_l,29,31)}function qs(Ie){return K()===25||mf()||e.isModifierKind(K())||K()===59||Vs(!Ie)}function pl(Ie){var bn=Ou(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(bn)===0&&!e.some(Ie)&&e.isModifierKind(K())&&ln(),bn}function Ec(){return Pc(!0)}function lc(){return Pc(!1)}function Pc(Ie){var bn=Fe(),Xn=Bn(),dt=Ie?Nn(fd):fd();if(K()===108){var Rt=J.createParameterDeclaration(dt,void 0,void 0,li(!0),void 0,pc(),void 0);return dt&>(dt[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),z(at(Rt,bn),Xn)}var lr=Ne;Ne=!1;var Fr=gc(),aa=z(at(J.createParameterDeclaration(dt,Fr,wt(25),pl(Fr),wt(57),pc(),Cu()),bn),Xn);return Ne=lr,aa}function oc(Ie,bn){if(au(Ie,bn))return $a()}function au(Ie,bn){return Ie===38?(At(Ie),!0):la(58)?!0:bn&&K()===38?(Pn(e.Diagnostics._0_expected,e.tokenToString(58)),ln(),!0):!1}function cc(Ie){var bn=Ke(),Xn=Re();gn(!!(Ie&1)),Ze(!!(Ie&2));var dt=Ie&32?_r(17,Bo):_r(16,Xn?Ec:lc);return gn(bn),Ze(Xn),dt}function Zl(Ie){if(!At(20))return wa();var bn=cc(Ie);return At(21),bn}function kn(){if(la(27))return;Qt()}function ot(Ie){var bn=Fe(),Xn=Bn();Ie===173&&At(103);var dt=Gi(),Rt=Zl(4),lr=oc(58,!0);kn();var Fr=Ie===172?J.createCallSignature(dt,Rt,lr):J.createConstructSignature(dt,Rt,lr);return z(at(Fr,bn),Xn)}function Nt(){return K()===22&&Jt(or)}function or(){if(ln(),K()===25||K()===23)return!0;if(e.isModifierKind(K())){if(ln(),Xr())return!0}else if(Xr())ln();else return!1;return K()===58||K()===27?!0:K()!==57?!1:(ln(),K()===58||K()===27||K()===23)}function Sr(Ie,bn,Xn,dt){var Rt=bi(16,lc,22,23),lr=pc();kn();var Fr=J.createIndexSignature(Xn,dt,Rt,lr);return z(at(Fr,Ie),bn)}function Er(Ie,bn,Xn){var dt=xi(),Rt=wt(57),lr;if(K()===20||K()===29){var Fr=Gi(),aa=Zl(4),di=oc(58,!0);lr=J.createMethodSignature(Xn,dt,Rt,Fr,aa,di)}else{var di=pc();lr=J.createPropertySignature(Xn,dt,Rt,di),K()===63&&(lr.initializer=Cu())}return kn(),z(at(lr,Ie),bn)}function Gr(){if(K()===20||K()===29||K()===135||K()===147)return!0;for(var Ie=!1;e.isModifierKind(K());)Ie=!0,ln();return K()===22?!0:(Mi()&&(Ie=!0,ln()),Ie?K()===20||K()===29||K()===57||K()===58||K()===27||xt():!1)}function $r(){if(K()===20||K()===29)return ot(172);if(K()===103&&Jt(zr))return ot(173);var Ie=Fe(),bn=Bn(),Xn=gc();return Vi(135)?Ar(Ie,bn,void 0,Xn,170):Vi(147)?Ar(Ie,bn,void 0,Xn,171):Nt()?Sr(Ie,bn,void 0,Xn):Er(Ie,bn,Xn)}function zr(){return ln(),K()===20||K()===29}function wi(){return ln()===24}function Ta(){switch(ln()){case 20:case 29:case 24:return!0}return!1}function Oa(){var Ie=Fe();return at(J.createTypeLiteralNode(ji()),Ie)}function ji(){var Ie;return At(18)?(Ie=tr(4,$r),At(19)):Ie=wa(),Ie}function Ri(){return ln(),K()===39||K()===40?ln()===143:(K()===143&&ln(),K()===22&&Lo()&&ln()===101)}function ye(){var Ie=Fe(),bn=ci();At(101);var Xn=Vo();return at(J.createTypeParameterDeclaration(bn,Xn,void 0),Ie)}function cn(){var Ie=Fe();At(18);var bn;(K()===143||K()===39||K()===40)&&(bn=ra(),bn.kind!==143&&At(143)),At(22);var Xn=ye(),dt=la(127)?Vo():void 0;At(23);var Rt;(K()===57||K()===39||K()===40)&&(Rt=ra(),Rt.kind!==57&&At(57));var lr=pc();return Qt(),At(19),at(J.createMappedTypeNode(bn,Xn,dt,Rt,lr),Ie)}function Sn(){var Ie=Fe();if(la(25))return at(J.createRestTypeNode(Vo()),Ie);var bn=Vo();if(e.isJSDocNullableType(bn)&&bn.pos===bn.type.pos){var Xn=J.createOptionalTypeNode(bn.type);return e.setTextRange(Xn,bn),Xn.flags=bn.flags,Xn}return bn}function Tt(){return ln()===58||K()===57&&ln()===58}function Vt(){return K()===25?e.tokenIsIdentifierOrKeyword(ln())&&Tt():e.tokenIsIdentifierOrKeyword(K())&&Tt()}function Zr(){if(Jt(Vt)){var Ie=Fe(),bn=Bn(),Xn=wt(25),dt=ci(),Rt=wt(57);At(58);var lr=Sn(),Fr=J.createNamedTupleMember(Xn,dt,Rt,lr);return z(at(Fr,Ie),bn)}return Sn()}function Da(){var Ie=Fe();return at(J.createTupleTypeNode(bi(21,Zr,22,23)),Ie)}function gi(){var Ie=Fe();At(20);var bn=Vo();return At(21),at(J.createParenthesizedType(bn),Ie)}function Eo(){var Ie;if(K()===126){var bn=Fe();ln();var Xn=at(J.createToken(126),bn);Ie=sr([Xn],bn)}return Ie}function Fo(){var Ie=Fe(),bn=Bn(),Xn=Eo(),dt=la(103),Rt=Gi(),lr=Zl(4),Fr=oc(38,!1),aa=dt?J.createConstructorTypeNode(Xn,Rt,lr,Fr):J.createFunctionTypeNode(Rt,lr,Fr);return dt||(aa.modifiers=Xn),z(at(aa,Ie),bn)}function bs(){var Ie=ra();return K()===24?void 0:Ie}function Li(Ie){var bn=Fe();Ie&&ln();var Xn=K()===110||K()===95||K()===104?ra():nl(K());return Ie&&(Xn=at(J.createPrefixUnaryExpression(40,Xn),bn)),at(J.createLiteralTypeNode(Xn),bn)}function Uo(){return ln(),K()===100}function Hn(){we|=1048576;var Ie=Fe(),bn=la(112);At(100),At(20);var Xn=Vo();At(21);var dt=la(24)?he():void 0,Rt=Jn();return at(J.createImportTypeNode(Xn,dt,Rt,bn),Ie)}function Zo(){return ln(),K()===8||K()===9}function Ds(){switch(K()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return mr(bs)||Ee();case 66:d.reScanAsteriskEqualsToken();case 41:return da();case 60:d.reScanQuestionToken();case 57:return bo();case 98:return On();case 53:return ya();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Li();case 40:return Jt(Zo)?Li(!0):Ee();case 114:return ra();case 108:{var Ie=Yr();return K()===138&&!d.hasPrecedingLineBreak()?dr(Ie):Ie}case 112:return Jt(Uo)?Hn():ms();case 18:return Jt(Ri)?cn():Oa();case 22:return Da();case 20:return gi();case 100:return Hn();case 128:return Jt(pu)?Tc():Ee();case 15:return Js();default:return Ee()}}function Vs(Ie){switch(K()){case 129:case 153:case 148:case 145:case 156:case 132:case 143:case 149:case 152:case 114:case 151:case 104:case 108:case 112:case 142:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 146:case 41:case 57:case 53:case 25:case 136:case 100:case 128:case 14:case 15:return!0;case 98:return!Ie;case 40:return!Ie&&Jt(Zo);case 20:return!Ie&&Jt(iu);default:return Xr()}}function iu(){return ln(),K()===21||qs(!1)||Vs()}function fc(){for(var Ie=Fe(),bn=Ds();!d.hasPrecedingLineBreak();)switch(K()){case 53:ln(),bn=at(J.createJSDocNonNullableType(bn),Ie);break;case 57:if(Jt(Mo))return bn;ln(),bn=at(J.createJSDocNullableType(bn),Ie);break;case 22:if(At(22),Vs()){var Xn=Vo();At(23),bn=at(J.createIndexedAccessTypeNode(bn,Xn),Ie)}else At(23),bn=at(J.createArrayTypeNode(bn),Ie);break;default:return bn}return bn}function ou(Ie){var bn=Fe();return At(Ie),at(J.createTypeOperatorNode(Ie,su()),bn)}function oo(){var Ie=Fe();return at(J.createTypeParameterDeclaration(Qr(),void 0,void 0),Ie)}function tl(){var Ie=Fe();return At(136),at(J.createInferTypeNode(oo()),Ie)}function su(){var Ie=K();switch(Ie){case 139:case 152:case 143:return ou(Ie);case 136:return tl()}return fc()}function Au(Ie){if(Wl()){var bn=Fo(),Xn=void 0;return e.isFunctionTypeNode(bn)?Xn=Ie?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Xn=Ie?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,gt(bn,Xn),bn}return}function lu(Ie,bn,Xn){var dt=Fe(),Rt=Ie===51,lr=la(Ie),Fr=lr&&Au(Rt)||bn();if(K()===Ie||lr){for(var aa=[Fr];la(Ie);)aa.push(Au(Rt)||bn());Fr=at(Xn(sr(aa,dt)),dt)}return Fr}function Du(){return lu(50,su,J.createIntersectionTypeNode)}function cu(){return lu(51,Du,J.createUnionTypeNode)}function Of(){return ln(),K()===103}function Wl(){return K()===29||K()===20&&Jt(id)?!0:K()===103||K()===126&&Jt(Of)}function ad(){if(e.isModifierKind(K())&&gc(),Xr()||K()===108)return ln(),!0;if(K()===22||K()===18){var Ie=Ce.length;return Ou(),Ie===Ce.length}return!1}function id(){if(ln(),K()===21||K()===25)return!0;if(ad()){if(K()===58||K()===27||K()===57||K()===63)return!0;if(K()===21&&(ln(),K()===38))return!0}return!1}function $a(){var Ie=Fe(),bn=Xr()&&mr(pa),Xn=Vo();return bn?at(J.createTypePredicateNode(void 0,bn,Xn),Ie):Xn}function pa(){var Ie=Qr();if(K()===138&&!d.hasPrecedingLineBreak())return ln(),Ie}function Tc(){var Ie=Fe(),bn=Wt(128),Xn=K()===108?Yr():Qr(),dt=la(138)?Vo():void 0;return at(J.createTypePredicateNode(bn,Xn,dt),Ie)}function Vo(){return wn(40960,yi)}function yi(Ie){if(Wl())return Fo();var bn=Fe(),Xn=cu();if(!Ie&&!d.hasPrecedingLineBreak()&&la(94)){var dt=yi(!0);At(57);var Rt=yi();At(58);var lr=yi();return at(J.createConditionalTypeNode(Xn,dt,Rt,lr),bn)}return Xn}function pc(){return la(58)?Vo():void 0}function rl(){switch(K()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Jt(Ta);default:return Xr()}}function Zi(){if(rl())return!0;switch(K()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 131:case 125:case 80:return!0;default:return es()?!0:Xr()}}function vl(){return K()!==18&&K()!==98&&K()!==84&&K()!==59&&Zi()}function al(){var Ie=Zn();Ie&&xe(!1);for(var bn=Fe(),Xn=a(),dt;dt=wt(27);)Xn=qr(Xn,dt,a(),bn);return Ie&&xe(!0),Xn}function Cu(){return la(63)?a():void 0}function a(){if(H())return nn();var Ie=Gn()||Pt();if(Ie)return Ie;var bn=Fe(),Xn=uo(0);return Xn.kind===79&&K()===38?In(bn,Xn,void 0):e.isLeftHandSideExpression(Xn)&&e.isAssignmentOperator(Xe())?qr(Xn,ra(),a(),bn):Wi(Xn,bn)}function H(){return K()===125?Ke()?!0:Jt(Hl):!1}function Ae(){return ln(),!d.hasPrecedingLineBreak()&&Xr()}function nn(){var Ie=Fe();return ln(),!d.hasPrecedingLineBreak()&&(K()===41||Zi())?at(J.createYieldExpression(wt(41),a()),Ie):at(J.createYieldExpression(void 0,void 0),Ie)}function In(Ie,bn,Xn){e.Debug.assert(K()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var dt=J.createParameterDeclaration(void 0,void 0,void 0,bn,void 0,void 0,void 0);at(dt,bn.pos);var Rt=sr([dt],dt.pos,dt.end),lr=Wt(38),Fr=Qa(!!Xn),aa=J.createArrowFunction(Xn,void 0,Rt,void 0,lr,Fr);return $n(at(aa,Ie))}function Gn(){var Ie=bt();return Ie===0?void 0:Ie===1?jr(!0):mr(It)}function bt(){return K()===20||K()===29||K()===130?Jt(pt):K()===38?1:0}function pt(){if(K()===130){if(ln(),d.hasPrecedingLineBreak())return 0;if(K()!==20&&K()!==29)return 0}var Ie=K(),bn=ln();if(Ie===20){if(bn===21){var Xn=ln();switch(Xn){case 38:case 58:case 18:return 1;default:return 0}}if(bn===22||bn===18)return 2;if(bn===25)return 1;if(e.isModifierKind(bn)&&bn!==130&&Jt(Lo))return 1;if(!Xr()&&bn!==108)return 0;switch(ln()){case 58:return 1;case 57:return ln(),K()===58||K()===27||K()===63||K()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(Ie===29),!Xr())return 0;if(be===1){var dt=Jt(function(){var Rt=ln();if(Rt===94){var lr=ln();switch(lr){case 63:case 31:return!1;default:return!0}}else if(Rt===27)return!0;return!1});return dt?1:0}return 2}}function It(){var Ie=d.getTokenPos();if(fn==null?void 0:fn.has(Ie))return;var bn=jr(!1);return bn||(fn||(fn=new e.Set)).add(Ie),bn}function Pt(){if(K()===130&&Jt(er)===1){var Ie=Fe(),bn=vf(),Xn=uo(0);return In(Ie,Xn,bn)}return}function er(){if(K()===130){if(ln(),d.hasPrecedingLineBreak()||K()===38)return 0;var Ie=uo(0);if(!d.hasPrecedingLineBreak()&&Ie.kind===79&&K()===38)return 1}return 0}function jr(Ie){var bn=Fe(),Xn=Bn(),dt=vf(),Rt=e.some(dt,e.isAsyncModifier)?2:0,lr=Gi(),Fr;if(At(20)){if(Fr=cc(Rt),!At(21)&&!Ie)return}else{if(!Ie)return;Fr=wa()}var aa=oc(58,!1);if(aa&&!Ie&&Mn(aa))return;var di=aa&&e.isJSDocFunctionType(aa);if(!Ie&&K()!==38&&(di||K()!==18))return;var ka=K(),Co=Wt(38),Fs=ka===38||ka===18?Qa(e.some(dt,e.isAsyncModifier)):Qr(),ko=J.createArrowFunction(dt,lr,Fr,aa,Co,Fs);return z(at(ko,bn),Xn)}function Qa(Ie){if(K()===18)return sc(Ie?2:0);if(K()!==26&&K()!==98&&K()!==84&&Tl()&&!vl())return sc(16|(Ie?2:0));var bn=Ne;Ne=!1;var Xn=Ie?Nn(a):ct(a);return Ne=bn,Xn}function Wi(Ie,bn){var Xn=wt(57);if(!Xn)return Ie;var dt;return at(J.createConditionalExpression(Ie,Xn,wn(T,a),dt=Wt(58),e.nodeIsPresent(dt)?a():ea(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),bn)}function uo(Ie){var bn=Fe(),Xn=Cs();return hs(Ie,Xn,bn)}function $o(Ie){return Ie===101||Ie===158}function hs(Ie,bn,Xn){for(;;){Xe();var dt=e.getBinaryOperatorPrecedence(K()),Rt=K()===42?dt>=Ie:dt>Ie;if(!Rt)break;if(K()===101&&Vn())break;if(K()===127){if(d.hasPrecedingLineBreak())break;ln(),bn=pi(bn,Vo())}else bn=qr(bn,ra(),uo(dt),Xn)}return bn}function es(){return Vn()&&K()===101?!1:e.getBinaryOperatorPrecedence(K())>0}function qr(Ie,bn,Xn,dt){return at(J.createBinaryExpression(Ie,bn,Xn),dt)}function pi(Ie,bn){return at(J.createAsExpression(Ie,bn),Ie.pos)}function Ya(){var Ie=Fe();return at(J.createPrefixUnaryExpression(K(),Fn(ho)),Ie)}function ki(){var Ie=Fe();return at(J.createDeleteExpression(Fn(ho)),Ie)}function Hi(){var Ie=Fe();return at(J.createTypeOfExpression(Fn(ho)),Ie)}function Ci(){var Ie=Fe();return at(J.createVoidExpression(Fn(ho)),Ie)}function jo(){return K()===131?Re()?!0:Jt(Hl):!1}function Gs(){var Ie=Fe();return at(J.createAwaitExpression(Fn(ho)),Ie)}function Cs(){if(qc()){var Ie=Fe(),bn=Pf();return K()===42?hs(e.getBinaryOperatorPrecedence(K()),bn,Ie):bn}var Xn=K(),dt=ho();if(K()===42){var Ie=e.skipTrivia(Oe,dt.pos),Rt=dt.end;dt.kind===209?Yn(Ie,Rt,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Yn(Ie,Rt,e.Diagnostics.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,e.tokenToString(Xn))}return dt}function ho(){switch(K()){case 39:case 40:case 54:case 53:return Ya();case 89:return ki();case 112:return Hi();case 114:return Ci();case 29:return Ho();case 131:if(jo())return Gs();default:return Pf()}}function qc(){switch(K()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return!1;case 29:if(be!==1)return!1;default:return!0}}function Pf(){if(K()===45||K()===46){var Ie=Fe();return at(J.createPrefixUnaryExpression(K(),Fn(cf)),Ie)}else if(be===1&&K()===29&&Jt(Oi))return Ff(!0);var bn=cf();if(e.Debug.assert(e.isLeftHandSideExpression(bn)),(K()===45||K()===46)&&!d.hasPrecedingLineBreak()){var Xn=K();return ln(),at(J.createPostfixUnaryExpression(bn,Xn),bn.pos)}return bn}function cf(){var Ie=Fe(),bn;return K()===100?Jt(zr)?(we|=1048576,bn=ra()):Jt(wi)?(ln(),ln(),bn=at(J.createMetaProperty(100,ci()),Ie),we|=2097152):bn=Rf():bn=K()===106?Mf():Rf(),Sd(Ie,bn)}function Rf(){var Ie=Fe(),bn=Gf();return Td(Ie,bn,!0)}function Mf(){var Ie=Fe(),bn=ra();if(K()===29){var Xn=Fe(),dt=mr(rs);dt!==void 0&&Yn(Xn,Fe(),e.Diagnostics.super_may_not_use_type_arguments)}return K()===20||K()===24||K()===22?bn:(Wt(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),at(J.createPropertyAccessExpression(bn,Ss(!0,!0)),Ie))}function Ff(Ie,bn,Xn){var dt=Fe(),Rt=mc(Ie),lr;if(Rt.kind===278){var Fr=bd(Rt),aa=void 0,di=Fr[Fr.length-1];if((di==null?void 0:di.kind)===276&&!g(di.openingElement.tagName,di.closingElement.tagName)&&g(Rt.tagName,di.closingElement.tagName)){var ka=di.openingElement.end,Co=at(J.createJsxElement(di.openingElement,sr([],ka,ka),at(J.createJsxClosingElement(at(J.createIdentifier(""),ka,ka)),ka,ka)),di.openingElement.pos,ka);Fr=sr(Mt(Mt([],Fr.slice(0,Fr.length-1),!0),[Co],!1),Fr.pos,ka),aa=di.closingElement}else aa=Ed(Rt,Ie),g(Rt.tagName,aa.tagName)||(Xn&&e.isJsxOpeningElement(Xn)&&g(aa.tagName,Xn.tagName)?gt(Rt.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(Oe,Rt.tagName)):gt(aa.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(Oe,Rt.tagName)));lr=at(J.createJsxElement(Rt,Fr,aa),dt)}else Rt.kind===281?lr=at(J.createJsxFragment(Rt,bd(Rt),ku(Ie)),dt):(e.Debug.assert(Rt.kind===277),lr=Rt);if(Ie&&K()===29){var Fs=typeof bn=="undefined"?lr.pos:bn,ko=mr(function(){return Ff(!0,Fs)});if(ko){var Es=ea(27,!1);return e.setTextRangePosWidth(Es,ko.pos,0),Yn(e.skipTrivia(Oe,Fs),ko.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),at(J.createBinaryExpression(lr,Es,ko),dt)}}return lr}function cp(){var Ie=Fe(),bn=J.createJsxText(d.getTokenValue(),$e===12);return $e=d.scanJsxToken(),at(bn,Ie)}function uf(Ie,bn){switch(bn){case 1:if(e.isJsxOpeningFragment(Ie))gt(Ie,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Xn=Ie.tagName,dt=e.skipTrivia(Oe,Xn.pos);Yn(dt,Xn.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(Oe,Ie.tagName))}return;case 30:case 7:return;case 11:case 12:return cp();case 18:return Ku(!1);case 29:return Ff(!1,void 0,Ie);default:return e.Debug.assertNever(bn)}}function bd(Ie){var bn=[],Xn=Fe(),dt=Me;for(Me|=1<<14;;){var Rt=uf(Ie,$e=d.reScanJsxToken());if(!Rt)break;if(bn.push(Rt),e.isJsxOpeningElement(Ie)&&(Rt==null?void 0:Rt.kind)===276&&!g(Rt.openingElement.tagName,Rt.closingElement.tagName)&&g(Ie.tagName,Rt.closingElement.tagName))break}return Me=dt,sr(bn,Xn)}function bl(){var Ie=Fe();return at(J.createJsxAttributes(tr(13,Mp)),Ie)}function mc(Ie){var bn=Fe();if(At(29),K()===31)return zt(),at(J.createJsxOpeningFragment(),bn);var Xn=od(),dt=(Ye&131072)===0?Jf():void 0,Rt=bl(),lr;return K()===31?(zt(),lr=J.createJsxOpeningElement(Xn,dt,Rt)):(At(43),At(31,void 0,!1)&&(Ie?ln():zt()),lr=J.createJsxSelfClosingElement(Xn,dt,Rt)),at(lr,bn)}function od(){var Ie=Fe();Et();for(var bn=K()===108?ra():ci();la(24);)bn=at(J.createPropertyAccessExpression(bn,Ss(!0,!1)),Ie);return bn}function Ku(Ie){var bn=Fe();if(!At(18))return;var Xn,dt;return K()!==19&&(Xn=wt(25),dt=al()),Ie?At(19):At(19,void 0,!1)&&zt(),at(J.createJsxExpression(Xn,dt),bn)}function Mp(){if(K()===18)return df();Et();var Ie=Fe();return at(J.createJsxAttribute(ci(),K()!==63?void 0:fr()===10?vs():Ku(!0)),Ie)}function df(){var Ie=Fe();At(18),At(25);var bn=al();return At(19),at(J.createJsxSpreadAttribute(bn),Ie)}function Ed(Ie,bn){var Xn=Fe();At(30);var dt=od();return At(31,void 0,!1)&&(bn||!g(Ie.tagName,dt)?ln():zt()),at(J.createJsxClosingElement(dt),Xn)}function ku(Ie){var bn=Fe();return At(30),e.tokenIsIdentifierOrKeyword(K())&>(od(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),At(31,void 0,!1)&&(Ie?ln():zt()),at(J.createJsxJsxClosingFragment(),bn)}function Ho(){var Ie=Fe();At(29);var bn=Vo();At(31);var Xn=ho();return at(J.createTypeAssertion(bn,Xn),Ie)}function ks(){return ln(),e.tokenIsIdentifierOrKeyword(K())||K()===22||Sc()}function Lu(){return K()===28&&Jt(ks)}function El(Ie){if(Ie.flags&32)return!0;if(e.isNonNullExpression(Ie)){for(var bn=Ie.expression;e.isNonNullExpression(bn)&&!(bn.flags&32);)bn=bn.expression;if(bn.flags&32){for(;e.isNonNullExpression(Ie);)Ie.flags|=32,Ie=Ie.expression;return!0}}return!1}function Fp(Ie,bn,Xn){var dt=Ss(!0,!0),Rt=Xn||El(bn),lr=Rt?J.createPropertyAccessChain(bn,Xn,dt):J.createPropertyAccessExpression(bn,dt);return Rt&&e.isPrivateIdentifier(lr.name)&>(lr.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),at(lr,Ie)}function hc(Ie,bn,Xn){var dt;if(K()===23)dt=ea(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Rt=hn(al);e.isStringOrNumericLiteralLike(Rt)&&(Rt.text=Fa(Rt.text)),dt=Rt}At(23);var lr=Xn||El(bn)?J.createElementAccessChain(bn,Xn,dt):J.createElementAccessExpression(bn,dt);return at(lr,Ie)}function Td(Ie,bn,Xn){for(;;){var dt=void 0,Rt=!1;if(Xn&&Lu()?(dt=Wt(28),Rt=e.tokenIsIdentifierOrKeyword(K())):Rt=la(24),Rt){bn=Fp(Ie,bn,dt);continue}if(!dt&&K()===53&&!d.hasPrecedingLineBreak()){ln(),bn=at(J.createNonNullExpression(bn),Ie);continue}if((dt||!Zn())&&la(22)){bn=hc(Ie,bn,dt);continue}if(Sc()){bn=qo(Ie,bn,dt,void 0);continue}return bn}}function Sc(){return K()===14||K()===15}function qo(Ie,bn,Xn,dt){var Rt=J.createTaggedTemplateExpression(bn,dt,K()===14?(qn(),vs()):Ks(!0));return(Xn||bn.flags&32)&&(Rt.flags|=32),Rt.questionDotToken=Xn,at(Rt,Ie)}function Sd(Ie,bn){for(;;){bn=Td(Ie,bn,!0);var Xn=wt(28);if((Ye&131072)===0&&(K()===29||K()===47)){var dt=mr(rs);if(dt){if(Sc()){bn=qo(Ie,bn,Xn,dt);continue}var Rt=uu(),lr=Xn||El(bn)?J.createCallChain(bn,Xn,dt,Rt):J.createCallExpression(bn,dt,Rt);bn=at(lr,Ie);continue}}else if(K()===20){var Rt=uu(),lr=Xn||El(bn)?J.createCallChain(bn,Xn,void 0,Rt):J.createCallExpression(bn,void 0,Rt);bn=at(lr,Ie);continue}if(Xn){var Fr=ea(79,!1,e.Diagnostics.Identifier_expected);bn=at(J.createPropertyAccessChain(bn,Xn,Fr),Ie)}break}return bn}function uu(){At(20);var Ie=_r(11,mi);return At(21),Ie}function rs(){if((Ye&131072)!==0)return;if(it()!==29)return;ln();var Ie=_r(20,Vo);return At(31)&&(Ie&&zc())?Ie:void 0}function zc(){switch(K()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}function Gf(){switch(K()){case 8:case 9:case 10:case 14:return vs();case 108:case 106:case 104:case 110:case 95:return ra();case 20:return up();case 22:return du();case 18:return Iu();case 130:if(!Jt(Vc))break;return wr();case 84:return gp();case 98:return wr();case 103:return Is();case 43:case 68:if(Dn()===13)return vs();break;case 15:return Ks(!1)}return Qr(e.Diagnostics.Expression_expected)}function up(){var Ie=Fe(),bn=Bn();At(20);var Xn=hn(al);return At(21),z(at(J.createParenthesizedExpression(Xn),Ie),bn)}function Ur(){var Ie=Fe();At(25);var bn=a();return at(J.createSpreadElement(bn),Ie)}function Ko(){return K()===25?Ur():K()===27?at(J.createOmittedExpression(),Fe()):a()}function mi(){return wn(T,Ko)}function du(){var Ie=Fe();At(22);var bn=d.hasPrecedingLineBreak(),Xn=_r(15,Ko);return At(23),at(J.createArrayLiteralExpression(Xn,bn),Ie)}function Bf(){var Ie=Fe(),bn=Bn();if(wt(25)){var Xn=a();return z(at(J.createSpreadAssignment(Xn),Ie),bn)}var dt=fd(),Rt=gc();if(Vi(135))return Ar(Ie,bn,dt,Rt,170);if(Vi(147))return Ar(Ie,bn,dt,Rt,171);var lr=wt(41),Fr=Xr(),aa=xi(),di=wt(57),ka=wt(53);if(lr||K()===20||K()===29)return hp(Ie,bn,dt,Rt,lr,aa,di,ka);var Co,Fs=Fr&&K()!==58;if(Fs){var ko=wt(63),Es=ko?hn(a):void 0;Co=J.createShorthandPropertyAssignment(aa,Es),Co.equalsToken=ko}else{At(58);var Xs=hn(a);Co=J.createPropertyAssignment(aa,Xs)}return Co.decorators=dt,Co.modifiers=Rt,Co.questionToken=di,Co.exclamationToken=ka,z(at(Co,Ie),bn)}function Iu(){var Ie=Fe(),bn=d.getTokenPos();At(18);var Xn=d.hasPrecedingLineBreak(),dt=_r(12,Bf,!0);if(!At(19)){var Rt=e.lastOrUndefined(Ce);Rt&&Rt.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Rt,e.createDetachedDiagnostic(C,bn,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return at(J.createObjectLiteralExpression(dt,Xn),Ie)}function wr(){var Ie=Zn();xe(!1);var bn=Fe(),Xn=Bn(),dt=gc();At(98);var Rt=wt(41),lr=Rt?1:0,Fr=e.some(dt,e.isAsyncModifier)?2:0,aa=lr&&Fr?yt(xd):lr?Je(xd):Fr?Nn(xd):xd(),di=Gi(),ka=Zl(lr|Fr),Co=oc(58,!1),Fs=sc(lr|Fr);xe(Ie);var ko=J.createFunctionExpression(dt,Rt,aa,di,ka,Co,Fs);return z(at(ko,bn),Xn)}function xd(){return Ht()?Si():void 0}function Is(){var Ie=Fe();if(At(103),la(24)){var bn=ci();return at(J.createMetaProperty(103,bn),Ie)}for(var Xn=Fe(),dt=Gf(),Rt;;){dt=Td(Xn,dt,!1),Rt=mr(rs),Sc()&&(e.Debug.assert(!!Rt,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),dt=qo(Xn,dt,void 0,Rt),Rt=void 0);break}var lr;return K()===20?lr=uu():Rt&&Yn(Ie,d.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),at(J.createNewExpression(dt,Rt,lr),Ie)}function Rl(Ie,bn){var Xn=Fe(),dt=Bn(),Rt=d.getTokenPos();if(At(18,bn)||Ie){var lr=d.hasPrecedingLineBreak(),Fr=tr(1,Sl);if(!At(19)){var aa=e.lastOrUndefined(Ce);aa&&aa.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(aa,e.createDetachedDiagnostic(C,Rt,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var di=z(at(J.createBlock(Fr,lr),Xn),dt);return K()===63&&(Pn(e.Diagnostics.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_the_whole_assignment_in_parentheses),ln()),di}else{var Fr=wa();return z(at(J.createBlock(Fr,void 0),Xn),dt)}}function sc(Ie,bn){var Xn=Ke();gn(!!(Ie&1));var dt=Re();Ze(!!(Ie&2));var Rt=Ne;Ne=!1;var lr=Zn();lr&&xe(!1);var Fr=Rl(!!(Ie&16),bn);return lr&&xe(!0),Ne=Rt,gn(Xn),Ze(dt),Fr}function Pd(){var Ie=Fe(),bn=Bn();return At(26),z(at(J.createEmptyStatement(),Ie),bn)}function dp(){var Ie=Fe(),bn=Bn();At(99),At(20);var Xn=hn(al);At(21);var dt=Sl(),Rt=la(91)?Sl():void 0;return z(at(J.createIfStatement(Xn,dt,Rt),Ie),bn)}function Ju(){var Ie=Fe(),bn=Bn();At(90);var Xn=Sl();At(115),At(20);var dt=hn(al);return At(21),la(26),z(at(J.createDoStatement(Xn,dt),Ie),bn)}function Xc(){var Ie=Fe(),bn=Bn();At(115),At(20);var Xn=hn(al);At(21);var dt=Sl();return z(at(J.createWhileStatement(Xn,dt),Ie),bn)}function Rd(){var Ie=Fe(),bn=Bn();At(97);var Xn=wt(131);At(20);var dt;K()!==26&&(K()===113||K()===119||K()===85?dt=ud(!0):dt=Kn(al));var Rt;if(Xn?At(158):la(158)){var lr=hn(a);At(21),Rt=J.createForOfStatement(Xn,dt,lr,Sl())}else if(la(101)){var lr=hn(al);At(21),Rt=J.createForInStatement(dt,lr,Sl())}else{At(26);var Fr=K()!==26&&K()!==21?hn(al):void 0;At(26);var aa=K()!==21?hn(al):void 0;At(21),Rt=J.createForStatement(dt,Fr,aa,Sl())}return z(at(Rt,Ie),bn)}function ul(Ie){var bn=Fe(),Xn=Bn();At(Ie===244?81:86);var dt=xt()?void 0:Qr();Qt();var Rt=Ie===244?J.createBreakStatement(dt):J.createContinueStatement(dt);return z(at(Rt,bn),Xn)}function Bc(){var Ie=Fe(),bn=Bn();At(105);var Xn=xt()?void 0:hn(al);return Qt(),z(at(J.createReturnStatement(Xn),Ie),bn)}function Uf(){var Ie=Fe(),bn=Bn();At(116),At(20);var Xn=hn(al);At(21);var dt=Be(16777216,Sl);return z(at(J.createWithStatement(Xn,dt),Ie),bn)}function wd(){var Ie=Fe();At(82);var bn=hn(al);At(58);var Xn=tr(3,Sl);return at(J.createCaseClause(bn,Xn),Ie)}function To(){var Ie=Fe();At(88),At(58);var bn=tr(3,Sl);return at(J.createDefaultClause(bn),Ie)}function Rr(){return K()===82?wd():To()}function $l(){var Ie=Fe();At(18);var bn=tr(2,Rr);return At(19),at(J.createCaseBlock(bn),Ie)}function Gp(){var Ie=Fe(),bn=Bn();At(107),At(20);var Xn=hn(al);At(21);var dt=$l();return z(at(J.createSwitchStatement(Xn,dt),Ie),bn)}function sd(){var Ie=Fe(),bn=Bn();At(109);var Xn=d.hasPrecedingLineBreak()?void 0:hn(al);return Xn===void 0&&(pe++,Xn=at(J.createIdentifier(""),Fe())),Yt()||Or(Xn),z(at(J.createThrowStatement(Xn),Ie),bn)}function fu(){var Ie=Fe(),bn=Bn();At(111);var Xn=Rl(!1),dt=K()===83?Vf():void 0,Rt;return(!dt||K()===96)&&(At(96),Rt=Rl(!1)),z(at(J.createTryStatement(Xn,dt,Rt),Ie),bn)}function Vf(){var Ie=Fe();At(83);var bn;la(20)?(bn=Fd(),At(21)):bn=void 0;var Xn=Rl(!1);return at(J.createCatchClause(bn,Xn),Ie)}function Md(){var Ie=Fe(),bn=Bn();return At(87),Qt(),z(at(J.createDebuggerStatement(),Ie),bn)}function xc(){var Ie=Fe(),bn=Bn(),Xn,dt=K()===20,Rt=hn(al);return e.isIdentifier(Rt)&&la(58)?Xn=J.createLabeledStatement(Rt,Sl()):(Yt()||Or(Rt),Xn=J.createExpressionStatement(Rt),dt&&(bn=!1)),z(at(Xn,Ie),bn)}function pu(){return ln(),e.tokenIsIdentifierOrKeyword(K())&&!d.hasPrecedingLineBreak()}function Uc(){return ln(),K()===84&&!d.hasPrecedingLineBreak()}function Vc(){return ln(),K()===98&&!d.hasPrecedingLineBreak()}function Hl(){return ln(),(e.tokenIsIdentifierOrKeyword(K())||K()===8||K()===9||K()===10)&&!d.hasPrecedingLineBreak()}function zs(){for(;;)switch(K()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 150:return Ae();case 140:case 141:return pp();case 126:case 130:case 134:case 121:case 122:case 123:case 143:if(ln(),d.hasPrecedingLineBreak())return!1;continue;case 155:return ln(),K()===18||K()===79||K()===93;case 100:return ln(),K()===10||K()===41||K()===18||e.tokenIsIdentifierOrKeyword(K());case 93:var Ie=ln();if(Ie===150&&(Ie=Jt(ln)),Ie===63||Ie===41||Ie===18||Ie===88||Ie===127)return!0;continue;case 124:ln();continue;default:return!1}}function Ns(){return Jt(zs)}function Tl(){switch(K()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Ns()||Jt(Ta);case 85:case 93:return Ns();case 130:case 134:case 118:case 140:case 141:case 150:case 155:return!0;case 123:case 121:case 122:case 124:case 143:return Ns()||!Jt(pu);default:return Zi()}}function fp(){return ln(),Ht()||K()===18||K()===22}function Yc(){return Jt(fp)}function Sl(){switch(K()){case 26:return Pd();case 18:return Rl(!1);case 113:return hf(Fe(),Bn(),void 0,void 0);case 119:if(Yc())return hf(Fe(),Bn(),void 0,void 0);break;case 98:return gf(Fe(),Bn(),void 0,void 0);case 84:return bf(Fe(),Bn(),void 0,void 0);case 99:return dp();case 90:return Ju();case 115:return Xc();case 97:return Rd();case 86:return ul(243);case 81:return ul(244);case 105:return Bc();case 116:return Uf();case 107:return Gp();case 109:return sd();case 111:case 83:case 96:return fu();case 87:return Md();case 59:return ff();case 130:case 118:case 150:case 140:case 141:case 134:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 143:case 155:if(Ns())return ff();break}return xc()}function ld(Ie){return Ie.kind===134}function ff(){var Ie=e.some(Jt(function(){return fd(),gc()}),ld);if(Ie){var bn=sl();if(bn)return bn}var Xn=Fe(),dt=Bn(),Rt=fd(),lr=gc();if(Ie){for(var Fr=0,aa=lr;Fr<aa.length;Fr++){var di=aa[Fr];di.flags|=8388608}return Be(8388608,function(){return ns(Xn,dt,Rt,lr)})}else return ns(Xn,dt,Rt,lr)}function sl(){return Be(8388608,function(){var Ie=Za(Me);if(Ie)return Ga(Ie)})}function ns(Ie,bn,Xn,dt){switch(K()){case 113:case 119:case 85:return hf(Ie,bn,Xn,dt);case 98:return gf(Ie,bn,Xn,dt);case 84:return bf(Ie,bn,Xn,dt);case 118:return Pu(Ie,bn,Xn,dt);case 150:return js(Ie,bn,Xn,dt);case 92:return no(Ie,bn,Xn,dt);case 155:case 140:case 141:return zf(Ie,bn,Xn,dt);case 100:return _a(Ie,bn,Xn,dt);case 93:ln();switch(K()){case 88:case 63:return Vp(Ie,bn,Xn,dt);case 127:return Ut(Ie,bn,Xn,dt);default:return Up(Ie,bn,Xn,dt)}default:if(Xn||dt){var Rt=ea(274,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Rt,Ie),Rt.decorators=Xn,Rt.modifiers=dt,Rt}return}}function pp(){return ln(),!d.hasPrecedingLineBreak()&&(Xr()||K()===10)}function Nu(Ie,bn){if(K()!==18&&xt()){Qt();return}return sc(Ie,bn)}function cd(){var Ie=Fe();if(K()===27)return at(J.createOmittedExpression(),Ie);var bn=wt(25),Xn=Ou(),dt=Cu();return at(J.createBindingElement(bn,void 0,Xn,dt),Ie)}function pf(){var Ie=Fe(),bn=wt(25),Xn=Ht(),dt=xi(),Rt;Xn&&K()!==58?(Rt=dt,dt=void 0):(At(58),Rt=Ou());var lr=Cu();return at(J.createBindingElement(bn,dt,Rt,lr),Ie)}function jf(){var Ie=Fe();At(18);var bn=_r(9,pf);return At(19),at(J.createObjectBindingPattern(bn),Ie)}function mp(){var Ie=Fe();At(22);var bn=_r(10,cd);return At(23),at(J.createArrayBindingPattern(bn),Ie)}function mf(){return K()===18||K()===22||K()===80||Ht()}function Ou(Ie){return K()===22?mp():K()===18?jf():Si(Ie)}function Wf(){return Fd(!0)}function Fd(Ie){var bn=Fe(),Xn=Bn(),dt=Ou(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Rt;Ie&&dt.kind===79&&K()===53&&!d.hasPrecedingLineBreak()&&(Rt=ra());var lr=pc(),Fr=$o(K())?void 0:Cu(),aa=J.createVariableDeclaration(dt,Rt,lr,Fr);return z(at(aa,bn),Xn)}function ud(Ie){var bn=Fe(),Xn=0;switch(K()){case 113:break;case 119:Xn|=1;break;case 85:Xn|=2;break;default:e.Debug.fail()}ln();var dt;if(K()===158&&Jt(Ad))dt=wa();else{var Rt=Vn();Qe(Ie),dt=_r(8,Ie?Fd:Wf),Qe(Rt)}return at(J.createVariableDeclarationList(dt,Xn),bn)}function Ad(){return Lo()&&ln()===21}function hf(Ie,bn,Xn,dt){var Rt=ud(!1);Qt();var lr=J.createVariableStatement(dt,Rt);return lr.decorators=Xn,z(at(lr,Ie),bn)}function gf(Ie,bn,Xn,dt){var Rt=Re(),lr=e.modifiersToFlags(dt);At(98);var Fr=wt(41),aa=lr&512?xd():Si(),di=Fr?1:0,ka=lr&256?2:0,Co=Gi();lr&1&&Ze(!0);var Fs=Zl(di|ka),ko=oc(58,!1),Es=Nu(di|ka,e.Diagnostics.or_expected);Ze(Rt);var Xs=J.createFunctionDeclaration(Xn,dt,Fr,aa,Co,Fs,ko,Es);return z(at(Xs,Ie),bn)}function dd(){if(K()===133)return At(133);if(K()===10&&Jt(ln)===20)return mr(function(){var Ie=vs();return Ie.text==="constructor"?Ie:void 0})}function Hf(Ie,bn,Xn,dt){return mr(function(){if(dd()){var Rt=Gi(),lr=Zl(0),Fr=oc(58,!1),aa=Nu(0,e.Diagnostics.or_expected),di=J.createConstructorDeclaration(Xn,dt,lr,aa);return di.typeParameters=Rt,di.type=Fr,z(at(di,Ie),bn)}})}function hp(Ie,bn,Xn,dt,Rt,lr,Fr,aa,di){var ka=Rt?1:0,Co=e.some(dt,e.isAsyncModifier)?2:0,Fs=Gi(),ko=Zl(ka|Co),Es=oc(58,!1),Xs=Nu(ka|Co,di),Cl=J.createMethodDeclaration(Xn,dt,Rt,lr,Fr,Fs,ko,Es,Xs);return Cl.exclamationToken=aa,z(at(Cl,Ie),bn)}function Xa(Ie,bn,Xn,dt,Rt,lr){var Fr=!lr&&!d.hasPrecedingLineBreak()?wt(53):void 0,aa=pc(),di=wn(8192|32768|4096,Cu);eo(Rt,aa,di);var ka=J.createPropertyDeclaration(Xn,dt,Rt,lr||Fr,aa,di);return z(at(ka,Ie),bn)}function jc(Ie,bn,Xn,dt){var Rt=wt(41),lr=xi(),Fr=wt(57);return Rt||K()===20||K()===29?hp(Ie,bn,Xn,dt,Rt,lr,Fr,void 0,e.Diagnostics.or_expected):Xa(Ie,bn,Xn,dt,lr,Fr)}function Ar(Ie,bn,Xn,dt,Rt){var lr=xi(),Fr=Gi(),aa=Zl(0),di=oc(58,!1),ka=Nu(0),Co=Rt===170?J.createGetAccessorDeclaration(Xn,dt,lr,aa,di,ka):J.createSetAccessorDeclaration(Xn,dt,lr,aa,ka);return Co.typeParameters=Fr,di&&Co.kind===171&&(Co.type=di),z(at(Co,Ie),bn)}function Gd(){var Ie;if(K()===59)return!0;for(;e.isModifierKind(K());){if(Ie=K(),e.isClassMemberModifier(Ie))return!0;ln()}if(K()===41)return!0;if(Mi()&&(Ie=K(),ln()),K()===22)return!0;if(Ie!==void 0){if(!e.isKeyword(Ie)||Ie===147||Ie===135)return!0;switch(K()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return xt()}}return!1}function qu(Ie,bn,Xn,dt){Wt(124);var Rt=yf();return z(at(J.createClassStaticBlockDeclaration(Xn,dt,Rt),Ie),bn)}function yf(){var Ie=Ke(),bn=Re();gn(!1),Ze(!0);var Xn=Rl(!1);return gn(Ie),Ze(bn),Xn}function Bd(){if(Re()&&K()===131){var Ie=Fe(),bn=Qr(e.Diagnostics.Expression_expected);ln();var Xn=Td(Ie,bn,!0);return Sd(Ie,Xn)}return cf()}function _f(){var Ie=Fe();if(!la(59))return;var bn=En(Bd);return at(J.createDecorator(bn),Ie)}function fd(){for(var Ie=Fe(),bn,Xn;Xn=_f();)bn=e.append(bn,Xn);return bn&&sr(bn,Ie)}function wc(Ie,bn){var Xn=Fe(),dt=K();if(K()===85&&Ie){if(!mr(os))return}else{if(bn&&K()===124&&Jt(en))return;if(!Ls())return}return at(J.createToken(dt),Xn)}function gc(Ie,bn){for(var Xn=Fe(),dt,Rt;Rt=wc(Ie,bn);)dt=e.append(dt,Rt);return dt&&sr(dt,Xn)}function vf(){var Ie;if(K()===130){var bn=Fe();ln();var Xn=at(J.createToken(130),bn);Ie=sr([Xn],bn)}return Ie}function zu(){var Ie=Fe();if(K()===26)return ln(),at(J.createSemicolonClassElement(),Ie);var bn=Bn(),Xn=fd(),dt=gc(!0,!0);if(K()===124&&Jt(en))return qu(Ie,bn,Xn,dt);if(Vi(135))return Ar(Ie,bn,Xn,dt,170);if(Vi(147))return Ar(Ie,bn,Xn,dt,171);if(K()===133||K()===10){var Rt=Hf(Ie,bn,Xn,dt);if(Rt)return Rt}if(Nt())return Sr(Ie,bn,Xn,dt);if(e.tokenIsIdentifierOrKeyword(K())||K()===10||K()===8||K()===41||K()===22){var lr=e.some(dt,ld);if(lr){for(var Fr=0,aa=dt;Fr<aa.length;Fr++){var di=aa[Fr];di.flags|=8388608}return Be(8388608,function(){return jc(Ie,bn,Xn,dt)})}else return jc(Ie,bn,Xn,dt)}if(Xn||dt){var ka=ea(79,!0,e.Diagnostics.Declaration_expected);return Xa(Ie,bn,Xn,dt,ka,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function gp(){return Xu(Fe(),Bn(),void 0,void 0,224)}function bf(Ie,bn,Xn,dt){return Xu(Ie,bn,Xn,dt,255)}function Xu(Ie,bn,Xn,dt,Rt){var lr=Re();At(84);var Fr=pd(),aa=Gi();e.some(dt,e.isExportModifier)&&Ze(!0);var di=Kf(),ka;At(18)?(ka=Ud(),At(19)):ka=wa(),Ze(lr);var Co=Rt===255?J.createClassDeclaration(Xn,dt,Fr,aa,di,ka):J.createClassExpression(Xn,dt,Fr,aa,di,ka);return z(at(Co,Ie),bn)}function pd(){return Ht()&&!mu()?li(Ht()):void 0}function mu(){return K()===117&&Jt(_s)}function Kf(){return Wc()?tr(22,Qc):void 0}function Qc(){var Ie=Fe(),bn=K();e.Debug.assert(bn===94||bn===117),ln();var Xn=_r(7,Ef);return at(J.createHeritageClause(bn,Xn),Ie)}function Ef(){var Ie=Fe(),bn=cf(),Xn=Jf();return at(J.createExpressionWithTypeArguments(bn,Xn),Ie)}function Jf(){return K()===29?bi(20,Vo,29,31):void 0}function Wc(){return K()===94||K()===117}function Ud(){return tr(5,zu)}function Pu(Ie,bn,Xn,dt){At(118);var Rt=Qr(),lr=Gi(),Fr=Kf(),aa=ji(),di=J.createInterfaceDeclaration(Xn,dt,Rt,lr,Fr,aa);return z(at(di,Ie),bn)}function js(Ie,bn,Xn,dt){At(150);var Rt=Qr(),lr=Gi();At(63);var Fr=K()===137&&mr(bs)||Vo();Qt();var aa=J.createTypeAliasDeclaration(Xn,dt,Rt,lr,Fr);return z(at(aa,Ie),bn)}function Bp(){var Ie=Fe(),bn=Bn(),Xn=xi(),dt=hn(Cu);return z(at(J.createEnumMember(Xn,dt),Ie),bn)}function no(Ie,bn,Xn,dt){At(92);var Rt=Qr(),lr;At(18)?(lr=Gt(function(){return _r(6,Bp)}),At(19)):lr=wa();var Fr=J.createEnumDeclaration(Xn,dt,Rt,lr);return z(at(Fr,Ie),bn)}function Vd(){var Ie=Fe(),bn;return At(18)?(bn=tr(1,Sl),At(19)):bn=wa(),at(J.createModuleBlock(bn),Ie)}function Tf(Ie,bn,Xn,dt,Rt){var lr=Rt&16,Fr=Qr(),aa=la(24)?Tf(Fe(),!1,void 0,void 0,4|lr):Vd(),di=J.createModuleDeclaration(Xn,dt,Fr,aa,Rt);return z(at(di,Ie),bn)}function qf(Ie,bn,Xn,dt){var Rt=0,lr;K()===155?(lr=Qr(),Rt|=1024):(lr=vs(),lr.text=Fa(lr.text));var Fr;K()===18?Fr=Vd():Qt();var aa=J.createModuleDeclaration(Xn,dt,lr,Fr,Rt);return z(at(aa,Ie),bn)}function zf(Ie,bn,Xn,dt){var Rt=0;if(K()===155)return qf(Ie,bn,Xn,dt);if(la(141))Rt|=16;else if(At(140),K()===10)return qf(Ie,bn,Xn,dt);return Tf(Ie,bn,Xn,dt,Rt)}function Dd(){return K()===144&&Jt(y)}function y(){return ln()===20}function en(){return ln()===18}function ft(){return ln()===43}function Ut(Ie,bn,Xn,dt){At(127),At(141);var Rt=Qr();Qt();var lr=J.createNamespaceExportDeclaration(Rt);return lr.decorators=Xn,lr.modifiers=dt,z(at(lr,Ie),bn)}function _a(Ie,bn,Xn,dt){At(100);var Rt=d.getStartPos(),lr;Xr()&&(lr=Qr());var Fr=!1;if(K()!==154&&(lr==null?void 0:lr.escapedText)==="type"&&(Xr()||Na())&&(Fr=!0,lr=Xr()?Qr():void 0),lr&&!ja())return ii(Ie,bn,Xn,dt,lr,Fr);var aa;(lr||K()===41||K()===18)&&(aa=Yi(lr,Rt,Fr),At(154));var di=xl();Qt();var ka=J.createImportDeclaration(Xn,dt,aa,di);return z(at(ka,Ie),bn)}function Na(){return K()===41||K()===18}function ja(){return K()===27||K()===154}function ii(Ie,bn,Xn,dt,Rt,lr){At(63);var Fr=ss();Qt();var aa=J.createImportEqualsDeclaration(Xn,dt,lr,Rt,Fr),di=z(at(aa,Ie),bn);return di}function Yi(Ie,bn,Xn){var dt;return(!Ie||la(27))&&(dt=K()===41?Os():Ml(267)),at(J.createImportClause(Xn,Ie,dt),bn)}function ss(){return Dd()?gs():Xi(!1)}function gs(){var Ie=Fe();At(144),At(20);var bn=xl();return At(21),at(J.createExternalModuleReference(bn),Ie)}function xl(){if(K()===10){var Ie=vs();return Ie.text=Fa(Ie.text),Ie}else return al()}function Os(){var Ie=Fe();At(41),At(127);var bn=Qr();return at(J.createNamespaceImport(bn),Ie)}function Ml(Ie){var bn=Fe(),Xn=Ie===267?J.createNamedImports(bi(23,Yu,18,19)):J.createNamedExports(bi(23,Zc,18,19));return at(Xn,bn)}function Zc(){return Fl(273)}function Yu(){return Fl(268)}function Fl(Ie){var bn=Fe(),Xn=e.isKeyword(K())&&!Xr(),dt=d.getTokenPos(),Rt=d.getTextPos(),lr=ci(),Fr,aa;K()===127?(Fr=lr,At(127),Xn=e.isKeyword(K())&&!Xr(),dt=d.getTokenPos(),Rt=d.getTextPos(),aa=ci()):aa=lr,Ie===268&&Xn&&Yn(dt,Rt,e.Diagnostics.Identifier_expected);var di=Ie===268?J.createImportSpecifier(Fr,aa):J.createExportSpecifier(Fr,aa);return at(di,bn)}function $c(Ie){return at(J.createNamespaceExport(ci()),Ie)}function Up(Ie,bn,Xn,dt){var Rt=Re();Ze(!0);var lr,Fr,aa=la(150),di=Fe();la(41)?(la(127)&&(lr=$c(di)),At(154),Fr=xl()):(lr=Ml(271),(K()===154||K()===10&&!d.hasPrecedingLineBreak())&&(At(154),Fr=xl())),Qt(),Ze(Rt);var ka=J.createExportDeclaration(Xn,dt,aa,lr,Fr);return z(at(ka,Ie),bn)}function Vp(Ie,bn,Xn,dt){var Rt=Re();Ze(!0);var lr;la(63)?lr=!0:At(88);var Fr=a();Qt(),Ze(Rt);var aa=J.createExportAssignment(Xn,dt,lr,Fr);return z(at(aa,Ie),bn)}function jp(Ie){Ie.externalModuleIndicator=e.forEach(Ie.statements,Wp)||md(Ie)}function Wp(Ie){return mm(Ie,93)||e.isImportEqualsDeclaration(Ie)&&e.isExternalModuleReference(Ie.moduleReference)||e.isImportDeclaration(Ie)||e.isExportAssignment(Ie)||e.isExportDeclaration(Ie)?Ie:void 0}function md(Ie){return Ie.flags&2097152?Lm(Ie):void 0}function Lm(Ie){return th(Ie)?Ie:de(Ie,Lm)}function mm(Ie,bn){return e.some(Ie.modifiers,function(Xn){return Xn.kind===bn})}function th(Ie){return e.isMetaProperty(Ie)&&Ie.keywordToken===100&&Ie.name.escapedText==="meta"}var Hp;(function(Ie){Ie[Ie.SourceElements=0]="SourceElements",Ie[Ie.BlockStatements=1]="BlockStatements",Ie[Ie.SwitchClauses=2]="SwitchClauses",Ie[Ie.SwitchClauseStatements=3]="SwitchClauseStatements",Ie[Ie.TypeMembers=4]="TypeMembers",Ie[Ie.ClassMembers=5]="ClassMembers",Ie[Ie.EnumMembers=6]="EnumMembers",Ie[Ie.HeritageClauseElement=7]="HeritageClauseElement",Ie[Ie.VariableDeclarations=8]="VariableDeclarations",Ie[Ie.ObjectBindingElements=9]="ObjectBindingElements",Ie[Ie.ArrayBindingElements=10]="ArrayBindingElements",Ie[Ie.ArgumentExpressions=11]="ArgumentExpressions",Ie[Ie.ObjectLiteralMembers=12]="ObjectLiteralMembers",Ie[Ie.JsxAttributes=13]="JsxAttributes",Ie[Ie.JsxChildren=14]="JsxChildren",Ie[Ie.ArrayLiteralMembers=15]="ArrayLiteralMembers",Ie[Ie.Parameters=16]="Parameters",Ie[Ie.JSDocParameters=17]="JSDocParameters",Ie[Ie.RestProperties=18]="RestProperties",Ie[Ie.TypeParameters=19]="TypeParameters",Ie[Ie.TypeArguments=20]="TypeArguments",Ie[Ie.TupleElementTypes=21]="TupleElementTypes",Ie[Ie.HeritageClauses=22]="HeritageClauses",Ie[Ie.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Ie[Ie.Count=24]="Count"})(Hp||(Hp={}));var Sf;(function(Ie){Ie[Ie.False=0]="False",Ie[Ie.True=1]="True",Ie[Ie.Unknown=2]="Unknown"})(Sf||(Sf={}));var xf;(function(Ie){function bn(ka,Co,Fs){vn("file.js",ka,99,void 0,1),d.setText(ka,Co,Fs),$e=d.scan();var ko=Xn(),Es=Pe("file.js",99,1,!1,[],J.createToken(1),0),Xs=e.attachFileToDiagnostics(Ce,Es);return Ue&&(Es.jsDocDiagnostics=e.attachFileToDiagnostics(Ue,Es)),o(),ko?{jsDocTypeExpression:ko,diagnostics:Xs}:void 0}Ie.parseJSDocTypeExpressionForTests=bn;function Xn(ka){var Co=Fe(),Fs=(ka?la:At)(18),ko=Be(4194304,ps);(!ka||Fs)&&Va(19);var Es=J.createJSDocTypeExpression(ko);return oe(Es),at(Es,Co)}Ie.parseJSDocTypeExpression=Xn;function dt(){for(var ka=Fe(),Co=la(18),Fs=Fe(),ko=Xi(!1);K()===80;)ht(),Ln(),ko=at(J.createJSDocMemberName(ko,Qr()),Fs);Co&&Va(19);var Es=J.createJSDocNameReference(ko);return oe(Es),at(Es,ka)}Ie.parseJSDocNameReference=dt;function Rt(ka,Co,Fs){vn("",ka,99,void 0,1);var ko=Be(4194304,function(){return di(Co,Fs)}),Es={languageVariant:0,text:ka},Xs=e.attachFileToDiagnostics(Ce,Es);return o(),ko?{jsDoc:ko,diagnostics:Xs}:void 0}Ie.parseIsolatedJSDocComment=Rt;function lr(ka,Co,Fs){var ko=$e,Es=Ce.length,Xs=je,Cl=Be(4194304,function(){return di(Co,Fs)});return e.setParent(Cl,ka),Ye&131072&&(Ue||(Ue=[]),Ue.push.apply(Ue,Ce)),$e=ko,Ce.length=Es,je=Xs,Cl}Ie.parseJSDocComment=lr;var Fr;(function(ka){ka[ka.BeginningOfLine=0]="BeginningOfLine",ka[ka.SawAsterisk=1]="SawAsterisk",ka[ka.SavingComments=2]="SavingComments",ka[ka.SavingBackticks=3]="SavingBackticks"})(Fr||(Fr={}));var aa;(function(ka){ka[ka.Property=1]="Property",ka[ka.Parameter=2]="Parameter",ka[ka.CallbackParameter=4]="CallbackParameter"})(aa||(aa={}));function di(ka,Co){ka===void 0&&(ka=0);var Fs=Oe,ko=Co===void 0?Fs.length:ka+Co;if(Co=ko-ka,e.Debug.assert(ka>=0),e.Debug.assert(ka<=ko),e.Debug.assert(ko<=Fs.length),!b(Fs,ka))return;var Es,Xs,Cl,Gl,Hc,uc=[],Cd=[];return d.scanRange(ka+3,Co-5,function(){var vr=1,ga,ha=ka-(Fs.lastIndexOf(`
|
|
|
`,ka)+1)+4;function Pa(gu){ga||(ga=ha),uc.push(gu),ha+=gu.length}for(Ln();Jp(5););Jp(4)&&(vr=0,ha=0);e:for(;;){switch(K()){case 59:vr===0||vr===1?(ec(uc),Hc||(Hc=Fe()),Ei(h(ha)),vr=0,ga=void 0):Pa(d.getTokenText());break;case 4:uc.push(d.getTokenText()),vr=0,ha=0;break;case 41:var oi=d.getTokenText();vr===1||vr===2?(vr=2,Pa(oi)):(vr=1,ha+=oi.length);break;case 5:var Fi=d.getTokenText();vr===2?uc.push(Fi):ga!==void 0&&ha+Fi.length>ga&&uc.push(Fi.slice(ga-ha)),ha+=Fi.length;break;case 1:break e;case 18:vr=2;var ys=d.getStartPos(),wl=d.getTextPos()-1,Bl=zn(wl);if(Bl){Gl||Kl(uc),Cd.push(at(J.createJSDocText(uc.join("")),Gl!=null?Gl:ka,ys)),Cd.push(Bl),uc=[],Gl=d.getTextPos();break}default:vr=2,Pa(d.getTokenText());break}Ln()}ec(uc),Cd.length&&uc.length&&Cd.push(at(J.createJSDocText(uc.join("")),Gl!=null?Gl:ka,Hc)),Cd.length&&Es&&e.Debug.assertIsDefined(Hc,"having parsed tags implies that the end of the comment span should be set");var Jl=Es&&sr(Es,Xs,Cl);return at(J.createJSDocComment(Cd.length?sr(Cd,ka,Hc):uc.length?uc.join(""):void 0,Jl),ka,ko)});function Kl(vr){for(;vr.length&&(vr[0]===`
|
|
|
`||vr[0]==="\r");)vr.shift()}function ec(vr){for(;vr.length&&vr[vr.length-1].trim()==="";)vr.pop()}function jd(){for(;;){if(Ln(),K()===1)return!0;if(!(K()===5||K()===4))return!1}}function Ir(){if((K()===5||K()===4)&&Jt(jd))return;for(;K()===5||K()===4;)Ln()}function kl(){if((K()===5||K()===4)&&Jt(jd))return"";for(var vr=d.hasPrecedingLineBreak(),ga=!1,ha="";vr&&K()===41||K()===5||K()===4;)ha+=d.getTokenText(),K()===4?(vr=!0,ga=!0,ha=""):K()===41&&(vr=!1),Ln();return ga?ha:""}function h(vr){e.Debug.assert(K()===59);var ga=d.getTokenPos();Ln();var ha=Yf(void 0),Pa=kl(),oi;switch(ha.escapedText){case"author":oi=Ac(ga,ha,vr,Pa);break;case"implements":oi=Vg(ga,ha,vr,Pa);break;case"augments":case"extends":oi=qh(ga,ha,vr,Pa);break;case"class":case"constructor":oi=yp(ga,J.createJSDocClassTag,ha,vr,Pa);break;case"public":oi=yp(ga,J.createJSDocPublicTag,ha,vr,Pa);break;case"private":oi=yp(ga,J.createJSDocPrivateTag,ha,vr,Pa);break;case"protected":oi=yp(ga,J.createJSDocProtectedTag,ha,vr,Pa);break;case"readonly":oi=yp(ga,J.createJSDocReadonlyTag,ha,vr,Pa);break;case"override":oi=yp(ga,J.createJSDocOverrideTag,ha,vr,Pa);break;case"deprecated":tn=!0,oi=yp(ga,J.createJSDocDeprecatedTag,ha,vr,Pa);break;case"this":oi=yc(ga,ha,vr,Pa);break;case"enum":oi=Im(ga,ha,vr,Pa);break;case"arg":case"argument":case"param":return kd(ga,ha,2,vr);case"return":case"returns":oi=hd(ga,ha,vr,Pa);break;case"template":oi=ym(ga,ha,vr,Pa);break;case"type":oi=Jh(ga,ha,vr,Pa);break;case"typedef":oi=hm(ga,ha,vr,Pa);break;case"callback":oi=Om(ga,ha,vr,Pa);break;case"see":oi=rh(ga,ha,vr,Pa);break;default:oi=Lr(ga,ha,vr,Pa);break}return oi}function G(vr,ga,ha,Pa){return Pa||(ha+=ga-vr),ve(ha,Pa.slice(ha))}function ve(vr,ga){var ha=Fe(),Pa=[],oi=[],Fi,ys=0,wl=!0,Bl;function Jl(eu){Bl||(Bl=vr),Pa.push(eu),vr+=eu.length}ga!==void 0&&(ga!==""&&Jl(ga),ys=1);var gu=K();e:for(;;){switch(gu){case 4:ys=0,Pa.push(d.getTokenText()),vr=0;break;case 59:if(ys===3||ys===2&&(!wl||Jt(on))){Pa.push(d.getTokenText());break}d.setTextPos(d.getTextPos()-1);case 1:break e;case 5:if(ys===2||ys===3)Jl(d.getTokenText());else{var nc=d.getTokenText();Bl!==void 0&&vr+nc.length>Bl&&Pa.push(nc.slice(Bl-vr)),vr+=nc.length}break;case 18:ys=2;var _p=d.getStartPos(),qp=d.getTextPos()-1,zp=zn(qp);zp?(oi.push(at(J.createJSDocText(Pa.join("")),Fi!=null?Fi:ha,_p)),oi.push(zp),Pa=[],Fi=d.getTextPos()):Jl(d.getTokenText());break;case 61:ys===3?ys=2:ys=3,Jl(d.getTokenText());break;case 41:if(ys===0){ys=1,vr+=1;break}default:ys!==3&&(ys=2),Jl(d.getTokenText());break}wl=K()===5,gu=Ln()}if(Kl(Pa),ec(Pa),oi.length)return Pa.length&&oi.push(at(J.createJSDocText(Pa.join("")),Fi!=null?Fi:ha)),sr(oi,ha,d.getTextPos());if(Pa.length)return Pa.join("")}function on(){var vr=Ln();return vr===5||vr===4}function zn(vr){var ga=mr(Zt);if(!ga)return;Ln(),Ir();var ha=Fe(),Pa=e.tokenIsIdentifierOrKeyword(K())?Xi(!0):void 0;if(Pa)for(;K()===80;)ht(),Ln(),Pa=at(J.createJSDocMemberName(Pa,Qr()),ha);for(var oi=[];K()!==19&&K()!==4&&K()!==1;)oi.push(d.getTokenText()),Ln();var Fi=ga==="link"?J.createJSDocLink:ga==="linkcode"?J.createJSDocLinkCode:J.createJSDocLinkPlain;return at(Fi(Pa,oi.join("")),vr,d.getTextPos())}function Zt(){if(kl(),K()===18&&Ln()===59&&e.tokenIsIdentifierOrKeyword(Ln())){var vr=d.getTokenValue();if(vr==="link"||vr==="linkcode"||vr==="linkplain")return vr}}function Lr(vr,ga,ha,Pa){return at(J.createJSDocUnknownTag(ga,G(vr,Fe(),ha,Pa)),vr)}function Ei(vr){if(!vr)return;Es?Es.push(vr):(Es=[vr],Xs=vr.pos),Cl=vr.end}function as(){return kl(),K()===18?Xn():void 0}function ll(){var vr=Jp(22);vr&&Ir();var ga=Jp(61),ha=oh();return ga&&Pr(61),vr&&(Ir(),wt(63)&&al(),At(23)),{name:ha,isBracketed:vr}}function hu(vr){switch(vr.kind){case 146:return!0;case 181:return hu(vr.elementType);default:return e.isTypeReferenceNode(vr)&&e.isIdentifier(vr.typeName)&&vr.typeName.escapedText==="Object"&&!vr.typeArguments}}function kd(vr,ga,ha,Pa){var oi=as(),Fi=!oi;kl();var ys=ll(),wl=ys.name,Bl=ys.isBracketed,Jl=kl();Fi&&!Jt(Zt)&&(oi=as());var gu=G(vr,Fe(),Pa,Jl),nc=ha!==4&&Wd(oi,wl,ha,Pa);nc&&(oi=nc,Fi=!0);var _p=ha===1?J.createJSDocPropertyTag(ga,wl,Bl,oi,Fi,gu):J.createJSDocParameterTag(ga,wl,Bl,oi,Fi,gu);return at(_p,vr)}function Wd(vr,ga,ha,Pa){if(vr&&hu(vr.type)){for(var oi=Fe(),Fi=void 0,ys=void 0;Fi=mr(function(){return Hd(ha,Pa,ga)});)(Fi.kind===335||Fi.kind===342)&&(ys=e.append(ys,Fi));if(ys){var wl=at(J.createJSDocTypeLiteral(ys,vr.type.kind===181),oi);return at(J.createJSDocTypeExpression(wl),oi)}}}function hd(vr,ga,ha,Pa){e.some(Es,e.isJSDocReturnTag)&&Yn(ga.pos,d.getTokenPos(),e.Diagnostics._0_tag_already_specified,ga.escapedText);var oi=as();return at(J.createJSDocReturnTag(ga,oi,G(vr,Fe(),ha,Pa)),vr)}function Jh(vr,ga,ha,Pa){e.some(Es,e.isJSDocTypeTag)&&Yn(ga.pos,d.getTokenPos(),e.Diagnostics._0_tag_already_specified,ga.escapedText);var oi=Xn(!0),Fi=ha!==void 0&&Pa!==void 0?G(vr,Fe(),ha,Pa):void 0;return at(J.createJSDocTypeTag(ga,oi,Fi),vr)}function rh(vr,ga,ha,Pa){var oi=Jt(function(){return Ln()===59&&e.tokenIsIdentifierOrKeyword(Ln())&&d.getTokenValue()==="link"}),Fi=oi?void 0:dt(),ys=ha!==void 0&&Pa!==void 0?G(vr,Fe(),ha,Pa):void 0;return at(J.createJSDocSeeTag(ga,Fi,ys),vr)}function Ac(vr,ga,ha,Pa){var oi=Fe(),Fi=ah(),ys=d.getStartPos(),wl=G(vr,ys,ha,Pa);wl||(ys=d.getStartPos());var Bl=typeof wl!="string"?sr(e.concatenate([at(Fi,oi,ys)],wl),oi):Fi.text+wl;return at(J.createJSDocAuthorTag(ga,Bl),vr)}function ah(){for(var vr=[],ga=!1,ha=d.getToken();ha!==1&&ha!==4;){if(ha===29)ga=!0;else{if(ha===59&&!ga)break;if(ha===31&&ga){vr.push(d.getTokenText()),d.setTextPos(d.getTokenPos()+1);break}}vr.push(d.getTokenText()),ha=Ln()}return J.createJSDocText(vr.join(""))}function Vg(vr,ga,ha,Pa){var oi=Kp();return at(J.createJSDocImplementsTag(ga,oi,G(vr,Fe(),ha,Pa)),vr)}function qh(vr,ga,ha,Pa){var oi=Kp();return at(J.createJSDocAugmentsTag(ga,oi,G(vr,Fe(),ha,Pa)),vr)}function Kp(){var vr=la(18),ga=Fe(),ha=jg(),Pa=Jf(),oi=J.createExpressionWithTypeArguments(ha,Pa),Fi=at(oi,ga);return vr&&At(19),Fi}function jg(){for(var vr=Fe(),ga=Yf();la(24);){var ha=Yf();ga=at(J.createPropertyAccessExpression(ga,ha),vr)}return ga}function yp(vr,ga,ha,Pa,oi){return at(ga(ha,G(vr,Fe(),Pa,oi)),vr)}function yc(vr,ga,ha,Pa){var oi=Xn(!0);return Ir(),at(J.createJSDocThisTag(ga,oi,G(vr,Fe(),ha,Pa)),vr)}function Im(vr,ga,ha,Pa){var oi=Xn(!0);return Ir(),at(J.createJSDocEnumTag(ga,oi,G(vr,Fe(),ha,Pa)),vr)}function hm(vr,ga,ha,Pa){var oi,Fi=as();kl();var ys=Nm();Ir();var wl=ve(ha),Bl;if(!Fi||hu(Fi.type)){for(var Jl=void 0,gu=void 0,nc=void 0,_p=!1;Jl=mr(function(){return Xf(ha)});)if(_p=!0,Jl.kind===338)if(gu){Pn(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var qp=e.lastOrUndefined(Ce);qp&&e.addRelatedInfo(qp,e.createDetachedDiagnostic(C,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else gu=Jl;else nc=e.append(nc,Jl);if(_p){var zp=Fi&&Fi.type.kind===181,eu=J.createJSDocTypeLiteral(nc,zp);Fi=gu&&gu.typeExpression&&!hu(gu.typeExpression.type)?gu.typeExpression:at(eu,vr),Bl=Fi.end}}Bl=Bl||wl!==void 0?Fe():((oi=ys!=null?ys:Fi)!==null&&oi!==void 0?oi:ga).end,wl||(wl=G(vr,Bl,ha,Pa));var Xp=J.createJSDocTypedefTag(ga,Fi,ys,wl);return at(Xp,vr,Bl)}function Nm(vr){var ga=d.getTokenPos();if(!e.tokenIsIdentifierOrKeyword(K()))return;var ha=Yf();if(la(24)){var Pa=Nm(!0),oi=J.createModuleDeclaration(void 0,void 0,ha,Pa,vr?4:void 0);return at(oi,ga)}return vr&&(ha.isInJSDocNamespace=!0),ha}function gm(vr){for(var ga=Fe(),ha,Pa;ha=mr(function(){return Hd(4,vr)});)Pa=e.append(Pa,ha);return sr(Pa||[],ga)}function Om(vr,ga,ha,Pa){var oi=Nm();Ir();var Fi=ve(ha),ys=gm(ha),wl=mr(function(){if(Jp(59)){var Jl=h(ha);if(Jl&&Jl.kind===336)return Jl}}),Bl=at(J.createJSDocSignature(void 0,ys,wl),vr);return Fi||(Fi=G(vr,Fe(),ha,Pa)),at(J.createJSDocCallbackTag(ga,Bl,oi,Fi),vr)}function ih(vr,ga){for(;!e.isIdentifier(vr)||!e.isIdentifier(ga);)if(!e.isIdentifier(vr)&&!e.isIdentifier(ga)&&vr.right.escapedText===ga.right.escapedText)vr=vr.left,ga=ga.left;else return!1;return vr.escapedText===ga.escapedText}function Xf(vr){return Hd(1,vr)}function Hd(vr,ga,ha){for(var Pa=!0,oi=!1;;)switch(Ln()){case 59:if(Pa){var Fi=Wg(vr,ga);return Fi&&(Fi.kind===335||Fi.kind===342)&&vr!==4&&ha&&(e.isIdentifier(Fi.name)||!ih(ha,Fi.name.left))?!1:Fi}oi=!1;break;case 4:Pa=!0,oi=!1;break;case 41:oi&&(Pa=!1),oi=!0;break;case 79:Pa=!1;break;case 1:return!1}}function Wg(vr,ga){e.Debug.assert(K()===59);var ha=d.getStartPos();Ln();var Pa=Yf();Ir();var oi;switch(Pa.escapedText){case"type":return vr===1&&Jh(ha,Pa);case"prop":case"property":oi=1;break;case"arg":case"argument":case"param":oi=2|4;break;default:return!1}return vr&oi?kd(ha,Pa,vr,ga):!1}function ls(){var vr=Fe(),ga=Yf(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);return e.nodeIsMissing(ga)?void 0:at(J.createTypeParameterDeclaration(ga,void 0,void 0),vr)}function zh(){var vr=Fe(),ga=[];do{Ir();var ha=ls();ha!==void 0&&ga.push(ha),kl()}while(Jp(27));return sr(ga,vr)}function ym(vr,ga,ha,Pa){var oi=K()===18?Xn():void 0,Fi=zh();return at(J.createJSDocTemplateTag(ga,oi,Fi,G(vr,Fe(),ha,Pa)),vr)}function Jp(vr){return K()===vr?(Ln(),!0):!1}function oh(){var vr=Yf();for(la(22)&&At(23);la(24);){var ga=Yf();la(22)&&At(23),vr=co(vr,ga)}return vr}function Yf(vr){if(!e.tokenIsIdentifierOrKeyword(K()))return ea(79,!vr,vr||e.Diagnostics.Identifier_expected);pe++;var ga=d.getTokenPos(),ha=d.getTextPos(),Pa=K(),oi=Fa(d.getTokenValue()),Fi=at(J.createIdentifier(oi,void 0,Pa),ga,ha);return Ln(),Fi}}})(xf=p.JSDocParser||(p.JSDocParser={}))})(E||(E={}));var ae;(function(p){function d(Oe,te,Te,be){if(be=be||e.Debug.shouldAssert(2),J(Oe,te,Te,be),e.textChangeRangeIsUnchanged(Te))return Oe;if(Oe.statements.length===0)return E.parseSourceFile(Oe.fileName,te,Oe.languageVersion,void 0,!0,Oe.scriptKind);var Ce=Oe;e.Debug.assert(!Ce.hasBeenIncrementallyParsed),Ce.hasBeenIncrementallyParsed=!0,E.fixupParentReferences(Ce);var Ue=Oe.text,Se=C(Oe),$e=me(Oe,Te);J(Oe,te,$e,be),e.Debug.assert($e.span.start<=Te.span.start),e.Debug.assert(e.textSpanEnd($e.span)===e.textSpanEnd(Te.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan($e))===e.textSpanEnd(e.textChangeRangeNewSpan(Te)));var ce=e.textChangeRangeNewSpan($e).length-$e.span.length;R(Ce,$e.span.start,e.textSpanEnd($e.span),e.textSpanEnd(e.textChangeRangeNewSpan($e)),ce,Ue,te,be);var Le=E.parseSourceFile(Oe.fileName,te,Oe.languageVersion,Se,!0,Oe.scriptKind);return Le.commentDirectives=T(Oe.commentDirectives,Le.commentDirectives,$e.span.start,e.textSpanEnd($e.span),ce,Ue,te,be),Le}p.updateSourceFile=d;function T(Oe,te,Te,be,Ce,Ue,Se,$e){if(!Oe)return te;for(var ce,Le=!1,qe=0,pe=Oe;qe<pe.length;qe++){var Me=pe[qe],fn=Me.range,Ye=Me.type;if(fn.end<Te)ce=e.append(ce,Me);else if(fn.pos>be){je();var Ne={range:{pos:fn.pos+Ce,end:fn.end+Ce},type:Ye};ce=e.append(ce,Ne),$e&&e.Debug.assert(Ue.substring(fn.pos,fn.end)===Se.substring(Ne.range.pos,Ne.range.end))}}return je(),ce;function je(){if(Le)return;Le=!0,ce?te&&ce.push.apply(ce,te):ce=te}}function m(Oe,te,Te,be,Ce,Ue){te?$e(Oe):Se(Oe);return;function Se(ce){var Le="";if(Ue&&k(ce)&&(Le=be.substring(ce.pos,ce.end)),ce._children&&(ce._children=void 0),e.setTextRangePosEnd(ce,ce.pos+Te,ce.end+Te),Ue&&k(ce)&&e.Debug.assert(Le===Ce.substring(ce.pos,ce.end)),de(ce,Se,$e),e.hasJSDocNodes(ce))for(var qe=0,pe=ce.jsDoc;qe<pe.length;qe++){var Me=pe[qe];Se(Me)}D(ce,Ue)}function $e(ce){ce._children=void 0,e.setTextRangePosEnd(ce,ce.pos+Te,ce.end+Te);for(var Le=0,qe=ce;Le<qe.length;Le++){var pe=qe[Le];Se(pe)}}}function k(Oe){switch(Oe.kind){case 10:case 8:case 79:return!0}return!1}function N(Oe,te,Te,be,Ce){e.Debug.assert(Oe.end>=te,"Adjusting an element that was entirely before the change range"),e.Debug.assert(Oe.pos<=Te,"Adjusting an element that was entirely after the change range"),e.Debug.assert(Oe.pos<=Oe.end);var Ue=Math.min(Oe.pos,be),Se=Oe.end>=Te?Oe.end+Ce:Math.min(Oe.end,be);e.Debug.assert(Ue<=Se),Oe.parent&&(e.Debug.assertGreaterThanOrEqual(Ue,Oe.parent.pos),e.Debug.assertLessThanOrEqual(Se,Oe.parent.end)),e.setTextRangePosEnd(Oe,Ue,Se)}function D(Oe,te){if(te){var Te=Oe.pos,be=function($e){e.Debug.assert($e.pos>=Te),Te=$e.end};if(e.hasJSDocNodes(Oe))for(var Ce=0,Ue=Oe.jsDoc;Ce<Ue.length;Ce++){var Se=Ue[Ce];be(Se)}de(Oe,be),e.Debug.assert(Te<=Oe.end)}}function R(Oe,te,Te,be,Ce,Ue,Se,$e){ce(Oe);return;function ce(qe){if(e.Debug.assert(qe.pos<=qe.end),qe.pos>Te){m(qe,!1,Ce,Ue,Se,$e);return}var pe=qe.end;if(pe>=te){if(qe.intersectsChange=!0,qe._children=void 0,N(qe,te,Te,be,Ce),de(qe,ce,Le),e.hasJSDocNodes(qe))for(var Me=0,fn=qe.jsDoc;Me<fn.length;Me++){var Ye=fn[Me];ce(Ye)}D(qe,$e);return}e.Debug.assert(pe<te)}function Le(qe){if(e.Debug.assert(qe.pos<=qe.end),qe.pos>Te){m(qe,!0,Ce,Ue,Se,$e);return}var pe=qe.end;if(pe>=te){qe.intersectsChange=!0,qe._children=void 0,N(qe,te,Te,be,Ce);for(var Me=0,fn=qe;Me<fn.length;Me++){var Ye=fn[Me];ce(Ye)}return}e.Debug.assert(pe<te)}}function me(Oe,te){for(var Te=1,be=te.span.start,Ce=0;be>0&&Ce<=Te;Ce++){var Ue=q(Oe,be);e.Debug.assert(Ue.pos<=be);var Se=Ue.pos;be=Math.max(0,Se-1)}var $e=e.createTextSpanFromBounds(be,e.textSpanEnd(te.span)),ce=te.newLength+(te.span.start-be);return e.createTextChangeRange($e,ce)}function q(Oe,te){var Te=Oe,be;if(de(Oe,Se),be){var Ce=Ue(be);Ce.pos>Te.pos&&(Te=Ce)}return Te;function Ue($e){for(;;){var ce=e.getLastChild($e);if(ce)$e=ce;else return $e}}function Se($e){if(e.nodeIsMissing($e))return;if($e.pos<=te){if($e.pos>=Te.pos&&(Te=$e),te<$e.end)return de($e,Se),!0;e.Debug.assert($e.end<=te),be=$e}else return e.Debug.assert($e.pos>te),!0}}function J(Oe,te,Te,be){var Ce=Oe.text;if(Te&&(e.Debug.assert(Ce.length-Te.span.length+Te.newLength===te.length),be||e.Debug.shouldAssert(3))){var Ue=Ce.substr(0,Te.span.start),Se=te.substr(0,Te.span.start);e.Debug.assert(Ue===Se);var $e=Ce.substring(e.textSpanEnd(Te.span),Ce.length),ce=te.substring(e.textSpanEnd(e.textChangeRangeNewSpan(Te)),te.length);e.Debug.assert($e===ce)}}function C(Oe){var te=Oe.statements,Te=0;e.Debug.assert(Te<te.length);var be=te[Te],Ce=-1;return{currentNode:function(Se){return Se!==Ce&&(be&&be.end===Se&&Te<te.length-1&&(Te++,be=te[Te]),(!be||be.pos!==Se)&&Ue(Se)),Ce=Se,e.Debug.assert(!be||be.pos===Se),be}};function Ue(Se){te=void 0,Te=-1,be=void 0,de(Oe,$e,ce);return;function $e(Le){return Se>=Le.pos&&Se<Le.end?(de(Le,$e,ce),!0):!1}function ce(Le){if(Se>=Le.pos&&Se<Le.end)for(var qe=0;qe<Le.length;qe++){var pe=Le[qe];if(pe){if(pe.pos===Se)return te=Le,Te=qe,be=pe,!0;if(pe.pos<Se&&Se<pe.end)return de(pe,$e,ce),!0}}return!1}}}p.createSyntaxCursor=C;var we;(function(Oe){Oe[Oe.Value=-1]="Value"})(we||(we={}))})(ae||(ae={}));function X(p){return e.fileExtensionIs(p,".d.ts")}e.isDeclarationFileName=X;function ie(p,d){for(var T=[],m=0,k=e.getLeadingCommentRanges(d,0)||e.emptyArray;m<k.length;m++){var N=k[m],D=d.substring(N.pos,N.end);A(T,N,D)}p.pragmas=new e.Map;for(var R=0,me=T;R<me.length;R++){var q=me[R];if(p.pragmas.has(q.name)){var J=p.pragmas.get(q.name);J instanceof Array?J.push(q.args):p.pragmas.set(q.name,[J,q.args]);continue}p.pragmas.set(q.name,q.args)}}e.processCommentPragmas=ie;function le(p,d){p.checkJsDirective=void 0,p.referencedFiles=[],p.typeReferenceDirectives=[],p.libReferenceDirectives=[],p.amdDependencies=[],p.hasNoDefaultLib=!1,p.pragmas.forEach(function(T,m){switch(m){case"reference":{var k=p.referencedFiles,N=p.typeReferenceDirectives,D=p.libReferenceDirectives;e.forEach(e.toArray(T),function(J){var C=J.arguments,we=C.types,Oe=C.lib,te=C.path;J.arguments["no-default-lib"]?p.hasNoDefaultLib=!0:we?N.push({pos:we.pos,end:we.end,fileName:we.value}):Oe?D.push({pos:Oe.pos,end:Oe.end,fileName:Oe.value}):te?k.push({pos:te.pos,end:te.end,fileName:te.value}):d(J.range.pos,J.range.end-J.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{p.amdDependencies=e.map(e.toArray(T),function(J){return{name:J.arguments.name,path:J.arguments.path}});break}case"amd-module":{if(T instanceof Array)for(var R=0,me=T;R<me.length;R++){var q=me[R];p.moduleName&&d(q.range.pos,q.range.end-q.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),p.moduleName=q.arguments.name}else p.moduleName=T.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(T),function(J){(!p.checkJsDirective||J.range.pos>p.checkJsDirective.pos)&&(p.checkJsDirective={enabled:m==="ts-check",end:J.range.end,pos:J.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=le;var P=new e.Map;function I(p){if(P.has(p))return P.get(p);var d=new RegExp("(\\s"+p+`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return P.set(p,d),d}var re=/^\/\/\/\s*<(\S+)\s.*?\/>/im,B=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function A(p,d,T){var m=d.kind===2&&re.exec(T);if(m){var k=m[1].toLowerCase(),N=e.commentPragmas[k];if(!N||!(N.kind&1))return;if(N.args){for(var D={},R=0,me=N.args;R<me.length;R++){var q=me[R],J=I(q.name),C=J.exec(T);if(!C&&!q.optional)return;if(C){var we=C[2]||C[3];if(q.captureSpan){var Oe=d.pos+C.index+C[1].length+1;D[q.name]={value:we,pos:Oe,end:Oe+we.length}}else D[q.name]=we}}p.push({name:k,args:{arguments:D,range:d}})}else p.push({name:k,args:{arguments:{},range:d}});return}var te=d.kind===2&&B.exec(T);if(te)return f(p,d,2,te);if(d.kind===3)for(var Te=/@(\S+)(\s+.*)?$/gim,be=void 0;be=Te.exec(T);)f(p,d,4,be)}function f(p,d,T,m){if(!m)return;var k=m[1].toLowerCase(),N=e.commentPragmas[k];if(!N||!(N.kind&T))return;var D=m[2],R=F(N,D);if(R==="fail")return;p.push({name:k,args:{arguments:R,range:d}});return}function F(p,d){if(!d)return{};if(!p.args)return{};for(var T=e.trimString(d).split(/\s+/),m={},k=0;k<p.args.length;k++){var N=p.args[k];if(!T[k]&&!N.optional)return"fail";if(N.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");m[N.name]=T[k]}return m}function g(p,d){return p.kind!==d.kind?!1:p.kind===79?p.escapedText===d.escapedText:p.kind===108?!0:p.name.escapedText===d.name.escapedText&&g(p.expression,d.expression)}e.tagNamesAreEquivalent=g})(mn||(mn={}));var mn;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var s=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(s.entries(),function(Xe){var Dn=Xe[0],rn=Xe[1];return[""+rn,Dn]})));var ue=[["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"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.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"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2021.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=ue.map(function(Xe){return Xe[0]}),e.libMap=new e.Map(ue),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Fe},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Fe},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"n/a"},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:"false"},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:"false"},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:"true"},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:"false"},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:"ES3"};var ee=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.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:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:"false"},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:"false"},{name:"jsx",type:s,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.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,defaultValueDescription:"n/a"},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files,defaultValueDescription:"n/a"},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:"false"},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:"false"},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:"false"},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:"false"},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:"false"},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:"false"},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:"false"},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.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:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:"false"},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:"n/a"},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:"false"},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:"false"},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,defaultValueDescription:"n/a",description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:"false"},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:"false"},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:"false"},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:"false"},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:"false"},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:"false"},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:"false"},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:"n/a"},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files,defaultValueDescription:"n/a"},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:"false"},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:"undefined"},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:"undefined"},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:"false"},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:"false"},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:"false"},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.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,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:"false"},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:"false"},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:"false"},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];e.optionDeclarations=Mt(Mt([],e.commonOptionsWithBuild,!0),ee,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsSourceFile||!!Xe.affectsModuleResolution||!!Xe.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(Xe){return!!Xe.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(Xe){return e.hasProperty(Xe,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}],e.buildOpts=Mt(Mt([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean"}];function Y(Xe){var Dn=new e.Map,rn=new e.Map;return e.forEach(Xe,function(qn){Dn.set(qn.name.toLowerCase(),qn),qn.shortName&&rn.set(qn.shortName,qn.name)}),{optionsNameMap:Dn,shortOptionNames:rn}}e.createOptionNameMap=Y;var V;function ne(){return V||(V=Y(e.optionDeclarations))}e.getOptionsNameMap=ne;var _e={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:E};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function O(Xe){return Xe&&Xe.enableAutoDiscovery!==void 0&&Xe.enable===void 0?{enable:Xe.enableAutoDiscovery,include:Xe.include||[],exclude:Xe.exclude||[]}:Xe}e.convertEnableAutoDiscoveryToEnable=O;function w(Xe){return b(Xe,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=w;function b(Xe,Dn){var rn=e.arrayFrom(Xe.type.keys()).map(function(qn){return"'"+qn+"'"}).join(", ");return Dn(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+Xe.name,rn)}function de(Xe,Dn,rn){return $t(Xe,e.trimString(Dn||""),rn)}e.parseCustomTypeOption=de;function fe(Xe,Dn,rn){if(Dn===void 0&&(Dn=""),Dn=e.trimString(Dn),e.startsWith(Dn,"-"))return;if(Dn==="")return[];var qn=Dn.split(",");switch(Xe.element.type){case"number":return e.mapDefined(qn,function(it){return Gt(Xe.element,parseInt(it),rn)});case"string":return e.mapDefined(qn,function(it){return Gt(Xe.element,it||"",rn)});default:return e.mapDefined(qn,function(it){return de(Xe.element,it,rn)})}}e.parseListTypeOption=fe;function _(Xe){return Xe.name}function U(Xe,Dn,rn,qn){var it;if((it=Dn.alternateMode)===null||it===void 0?void 0:it.getOptionsNameMap().optionsNameMap.has(Xe.toLowerCase()))return rn(Dn.alternateMode.diagnostic,Xe);var ht=e.getSpellingSuggestion(Xe,Dn.optionDeclarations,_);return ht?rn(Dn.unknownDidYouMeanDiagnostic,qn||Xe,ht.name):rn(Dn.unknownOptionDiagnostic,qn||Xe)}function Z(Xe,Dn,rn){var qn={},it,ht=[],Et=[];return zt(Dn),{options:qn,watchOptions:it,fileNames:ht,errors:Et};function zt(br){for(var Jt=0;Jt<br.length;){var mr=br[Jt];if(Jt++,mr.charCodeAt(0)===64)fr(mr.slice(1));else if(mr.charCodeAt(0)===45){var Ht=mr.slice(mr.charCodeAt(1)===45?2:1),Xr=$(Xe.getOptionsNameMap,Ht,!0);if(Xr)Jt=v(br,Jt,Xe,Xr,qn,Et);else{var At=$(d.getOptionsNameMap,Ht,!0);At?Jt=v(br,Jt,d,At,it||(it={}),Et):Et.push(U(Ht,Xe,e.createCompilerDiagnostic,mr))}}else ht.push(mr)}}function fr(br){var Jt=A(br,rn||function(At){return e.sys.readFile(At)});if(!e.isString(Jt)){Et.push(Jt);return}for(var mr=[],Ht=0;;){for(;Ht<Jt.length&&Jt.charCodeAt(Ht)<=32;)Ht++;if(Ht>=Jt.length)break;var Xr=Ht;if(Jt.charCodeAt(Xr)===34){for(Ht++;Ht<Jt.length&&Jt.charCodeAt(Ht)!==34;)Ht++;Ht<Jt.length?(mr.push(Jt.substring(Xr+1,Ht)),Ht++):Et.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,br))}else{for(;Jt.charCodeAt(Ht)>32;)Ht++;mr.push(Jt.substring(Xr,Ht))}}zt(mr)}}e.parseCommandLineWorker=Z;function v(Xe,Dn,rn,qn,it,ht){if(qn.isTSConfigOnly){var Et=Xe[Dn];Et==="null"?(it[qn.name]=void 0,Dn++):qn.type==="boolean"?Et==="false"?(it[qn.name]=Gt(qn,!1,ht),Dn++):(Et==="true"&&Dn++,ht.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,qn.name))):(ht.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,qn.name)),Et&&!e.startsWith(Et,"-")&&Dn++)}else if(!Xe[Dn]&&qn.type!=="boolean"&&ht.push(e.createCompilerDiagnostic(rn.optionTypeMismatchDiagnostic,qn.name,Oe(qn))),Xe[Dn]!=="null")switch(qn.type){case"number":it[qn.name]=Gt(qn,parseInt(Xe[Dn]),ht),Dn++;break;case"boolean":var Et=Xe[Dn];it[qn.name]=Gt(qn,Et!=="false",ht),(Et==="false"||Et==="true")&&Dn++;break;case"string":it[qn.name]=Gt(qn,Xe[Dn]||"",ht),Dn++;break;case"list":var zt=fe(qn,Xe[Dn],ht);it[qn.name]=zt||[],zt&&Dn++;break;default:it[qn.name]=de(qn,Xe[Dn],ht),Dn++;break}else it[qn.name]=void 0,Dn++;return Dn}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:_e,getOptionsNameMap:ne,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function W(Xe,Dn){return Z(e.compilerOptionsDidYouMeanDiagnostics,Xe,Dn)}e.parseCommandLine=W;function x(Xe,Dn){return $(ne,Xe,Dn)}e.getOptionFromName=x;function $(Xe,Dn,rn){rn===void 0&&(rn=!1),Dn=Dn.toLowerCase();var qn=Xe(),it=qn.optionsNameMap,ht=qn.shortOptionNames;if(rn){var Et=ht.get(Dn);Et!==void 0&&(Dn=Et)}return it.get(Dn)}var L;function E(){return L||(L=Y(e.buildOpts))}var ae={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:ne},X={alternateMode:ae,getOptionsNameMap:E,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function ie(Xe){var Dn=Z(X,Xe),rn=Dn.options,qn=Dn.watchOptions,it=Dn.fileNames,ht=Dn.errors,Et=rn;return it.length===0&&it.push("."),Et.clean&&Et.force&&ht.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),Et.clean&&Et.verbose&&ht.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),Et.clean&&Et.watch&&ht.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),Et.watch&&Et.dry&&ht.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:Et,watchOptions:qn,projects:it,errors:ht}}e.parseBuildCommand=ie;function le(Xe){for(var Dn=[],rn=1;rn<arguments.length;rn++)Dn[rn-1]=arguments[rn];var qn=e.createCompilerDiagnostic.apply(void 0,arguments);return qn.messageText}e.getDiagnosticText=le;function P(Xe,Dn,rn,qn,it,ht){var Et=A(Xe,function(br){return rn.readFile(br)});if(!e.isString(Et)){rn.onUnRecoverableConfigFileDiagnostic(Et);return}var zt=e.parseJsonText(Xe,Et),fr=rn.getCurrentDirectory();return zt.path=e.toPath(Xe,fr,e.createGetCanonicalFileName(rn.useCaseSensitiveFileNames)),zt.resolvedPath=zt.path,zt.originalFileName=zt.fileName,Ne(zt,rn,e.getNormalizedAbsolutePath(e.getDirectoryPath(Xe),fr),Dn,e.getNormalizedAbsolutePath(Xe,fr),void 0,ht,qn,it)}e.getParsedCommandLineOfConfigFile=P;function I(Xe,Dn){var rn=A(Xe,Dn);return e.isString(rn)?re(Xe,rn):{config:{},error:rn}}e.readConfigFile=I;function re(Xe,Dn){var rn=e.parseJsonText(Xe,Dn);return{config:J(rn,rn.parseDiagnostics,!1,void 0),error:rn.parseDiagnostics.length?rn.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=re;function B(Xe,Dn){var rn=A(Xe,Dn);return e.isString(rn)?e.parseJsonText(Xe,rn):{fileName:Xe,parseDiagnostics:[rn]}}e.readJsonConfigFile=B;function A(Xe,Dn){var rn;try{rn=Dn(Xe)}catch(qn){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,Xe,qn.message)}return rn===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,Xe):rn}e.tryReadFile=A;function f(Xe){return e.arrayToMap(Xe,_)}var F={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},g;function p(){return g||(g=Y(e.optionsForWatch))}var d={getOptionsNameMap:p,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1},T;function m(){return T||(T=f(e.optionDeclarations))}var k;function N(){return k||(k=f(e.optionsForWatch))}var D;function R(){return D||(D=f(e.typeAcquisitionDeclarations))}var me;function q(){return me===void 0&&(me={name:void 0,type:"object",elementOptions:f([{name:"compilerOptions",type:"object",elementOptions:m(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:N(),extraKeyDiagnostics:d},{name:"typingOptions",type:"object",elementOptions:R(),extraKeyDiagnostics:F},{name:"typeAcquisition",type:"object",elementOptions:R(),extraKeyDiagnostics:F},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),me}function J(Xe,Dn,rn,qn){var it,ht=(it=Xe.statements[0])===null||it===void 0?void 0:it.expression,Et=rn?q():void 0;if(ht&&ht.kind!==203){if(Dn.push(e.createDiagnosticForNodeInSourceFile(Xe,ht,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(Xe.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(ht)){var zt=e.find(ht.elements,e.isObjectLiteralExpression);if(zt)return we(Xe,zt,Dn,!0,Et,qn)}return{}}return we(Xe,ht,Dn,!0,Et,qn)}function C(Xe,Dn){var rn;return we(Xe,(rn=Xe.statements[0])===null||rn===void 0?void 0:rn.expression,Dn,!0,void 0,void 0)}e.convertToObject=C;function we(Xe,Dn,rn,qn,it,ht){if(!Dn)return qn?{}:void 0;return br(Dn,it);function Et(mr){return it&&it.elementOptions===mr}function zt(mr,Ht,Xr,At){for(var Wr=qn?{}:void 0,Or=function(Va){if(Va.kind!==291)return rn.push(e.createDiagnosticForNodeInSourceFile(Xe,Va,e.Diagnostics.Property_assignment_expected)),"continue";Va.questionToken&&rn.push(e.createDiagnosticForNodeInSourceFile(Xe,Va.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),Jt(Va.name)||rn.push(e.createDiagnosticForNodeInSourceFile(Xe,Va.name,e.Diagnostics.String_literal_with_double_quotes_expected));var la=e.isComputedNonLiteralName(Va.name)?void 0:e.getTextOfPropertyName(Va.name),wt=la&&e.unescapeLeadingUnderscores(la),rr=wt&&Ht?Ht.get(wt):void 0;wt&&Xr&&!rr&&(Ht?rn.push(U(wt,Xr,function(ra,Lt,xt){return e.createDiagnosticForNodeInSourceFile(Xe,Va.name,ra,Lt,xt)})):rn.push(e.createDiagnosticForNodeInSourceFile(Xe,Va.name,Xr.unknownOptionDiagnostic,wt)));var Wt=br(Va.initializer,rr);if(typeof wt!="undefined"&&(qn&&(Wr[wt]=Wt),ht&&(At||Et(Ht)))){var Pr=te(rr,Wt);At?Pr&&ht.onSetValidOptionKeyValueInParent(At,rr,Wt):Et(Ht)&&(Pr?ht.onSetValidOptionKeyValueInRoot(wt,Va.name,Wt,Va.initializer):rr||ht.onSetUnknownOptionKeyValueInRoot(wt,Va.name,Wt,Va.initializer))}},Ja=0,qa=mr.properties;Ja<qa.length;Ja++){var eo=qa[Ja];Or(eo)}return Wr}function fr(mr,Ht){if(!qn){mr.forEach(function(Xr){return br(Xr,Ht)});return}return e.filter(mr.map(function(Xr){return br(Xr,Ht)}),function(Xr){return Xr!==void 0})}function br(mr,Ht){var Xr;switch(mr.kind){case 110:return wt(Ht&&Ht.type!=="boolean"),la(!0);case 95:return wt(Ht&&Ht.type!=="boolean"),la(!1);case 104:return wt(Ht&&Ht.name==="extends"),la(null);case 10:Jt(mr)||rn.push(e.createDiagnosticForNodeInSourceFile(Xe,mr,e.Diagnostics.String_literal_with_double_quotes_expected)),wt(Ht&&e.isString(Ht.type)&&Ht.type!=="string");var At=mr.text;if(Ht&&!e.isString(Ht.type)){var Wr=Ht;Wr.type.has(At.toLowerCase())||(rn.push(b(Wr,function(rr,Wt,Pr){return e.createDiagnosticForNodeInSourceFile(Xe,mr,rr,Wt,Pr)})),Xr=!0)}return la(At);case 8:return wt(Ht&&Ht.type!=="number"),la(Number(mr.text));case 217:if(mr.operator!==40||mr.operand.kind!==8)break;return wt(Ht&&Ht.type!=="number"),la(-Number(mr.operand.text));case 203:wt(Ht&&Ht.type!=="object");var Or=mr;if(Ht){var Ja=Ht,qa=Ja.elementOptions,eo=Ja.extraKeyDiagnostics,Va=Ja.name;return la(zt(Or,qa,eo,Va))}else return la(zt(Or,void 0,void 0,void 0));case 202:return wt(Ht&&Ht.type!=="list"),la(fr(mr.elements,Ht&&Ht.element))}Ht?wt(!0):rn.push(e.createDiagnosticForNodeInSourceFile(Xe,mr,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function la(rr){var Wt;if(!Xr){var Pr=(Wt=Ht==null?void 0:Ht.extraValidation)===null||Wt===void 0?void 0:Wt.call(Ht,rr);if(Pr){rn.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,Mt([Xe,mr],Pr,!1)));return}}return rr}function wt(rr){rr&&(rn.push(e.createDiagnosticForNodeInSourceFile(Xe,mr,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Ht.name,Oe(Ht))),Xr=!0)}}function Jt(mr){return e.isStringLiteral(mr)&&e.isStringDoubleQuoted(mr,Xe)}}e.convertToObjectWorker=we;function Oe(Xe){return Xe.type==="list"?"Array":e.isString(Xe.type)?Xe.type:"string"}function te(Xe,Dn){if(Xe){if(xn(Dn))return!0;if(Xe.type==="list")return e.isArray(Dn);var rn=e.isString(Xe.type)?Xe.type:"string";return typeof Dn===rn}return!1}function Te(Xe,Dn,rn){var qn,it,ht,Et=e.createGetCanonicalFileName(rn.useCaseSensitiveFileNames),zt=e.map(e.filter(Xe.fileNames,((it=(qn=Xe.options.configFile)===null||qn===void 0?void 0:qn.configFileSpecs)===null||it===void 0?void 0:it.validatedIncludeSpecs)?Ue(Dn,Xe.options.configFile.configFileSpecs.validatedIncludeSpecs,Xe.options.configFile.configFileSpecs.validatedExcludeSpecs,rn):e.returnTrue),function(mr){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(Dn,rn.getCurrentDirectory()),e.getNormalizedAbsolutePath(mr,rn.getCurrentDirectory()),Et)}),fr=ce(Xe.options,{configFilePath:e.getNormalizedAbsolutePath(Dn,rn.getCurrentDirectory()),useCaseSensitiveFileNames:rn.useCaseSensitiveFileNames}),br=Xe.watchOptions&&Le(Xe.watchOptions),Jt=pr(pr({compilerOptions:pr(pr({},be(fr)),{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:br&&be(br),references:e.map(Xe.projectReferences,function(mr){return pr(pr({},mr),{path:mr.originalPath?mr.originalPath:"",originalPath:void 0})}),files:e.length(zt)?zt:void 0},((ht=Xe.options.configFile)===null||ht===void 0?void 0:ht.configFileSpecs)?{include:Ce(Xe.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:Xe.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:Xe.compileOnSave?!0:void 0});return Jt}e.convertToTSConfig=Te;function be(Xe){return pr({},e.arrayFrom(Xe.entries()).reduce(function(Dn,rn){var qn;return pr(pr({},Dn),(qn={},qn[rn[0]]=rn[1],qn))},{}))}function Ce(Xe){return e.length(Xe)?e.length(Xe)!==1?Xe:Xe[0]==="**/*"?void 0:Xe:void 0}function Ue(Xe,Dn,rn,qn){if(!Dn)return e.returnTrue;var it=e.getFileMatcherPatterns(Xe,rn,Dn,qn.useCaseSensitiveFileNames,qn.getCurrentDirectory()),ht=it.excludePattern&&e.getRegexFromPattern(it.excludePattern,qn.useCaseSensitiveFileNames),Et=it.includeFilePattern&&e.getRegexFromPattern(it.includeFilePattern,qn.useCaseSensitiveFileNames);return Et?ht?function(zt){return!(Et.test(zt)&&!ht.test(zt))}:function(zt){return!Et.test(zt)}:ht?function(zt){return ht.test(zt)}:e.returnTrue}function Se(Xe){return Xe.type==="string"||Xe.type==="number"||Xe.type==="boolean"||Xe.type==="object"?void 0:Xe.type==="list"?Se(Xe.element):Xe.type}function $e(Xe,Dn){return e.forEachEntry(Dn,function(rn,qn){if(rn===Xe)return qn})}function ce(Xe,Dn){return qe(Xe,ne(),Dn)}function Le(Xe){return qe(Xe,p())}function qe(Xe,Dn,rn){var qn=Dn.optionsNameMap,it=new e.Map,ht=rn&&e.createGetCanonicalFileName(rn.useCaseSensitiveFileNames),Et=function(fr){if(e.hasProperty(Xe,fr)){if(qn.has(fr)&&(qn.get(fr).category===e.Diagnostics.Command_line_Options||qn.get(fr).category===e.Diagnostics.Output_Formatting))return"continue";var br=Xe[fr],Jt=qn.get(fr.toLowerCase());if(Jt){var mr=Se(Jt);mr?Jt.type==="list"?it.set(fr,br.map(function(Ht){return $e(Ht,mr)})):it.set(fr,$e(br,mr)):rn&&Jt.isFilePath?it.set(fr,e.getRelativePathFromFile(rn.configFilePath,e.getNormalizedAbsolutePath(br,e.getDirectoryPath(rn.configFilePath)),ht)):it.set(fr,br)}}};for(var zt in Xe)Et(zt);return it}function pe(Xe,Dn,rn){var qn=e.extend(Xe,e.defaultInitCompilerOptions),it=ce(qn);return fr();function ht(br){switch(br.type){case"number":return 1;case"boolean":return!0;case"string":return br.isFilePath?"./":"";case"list":return[];case"object":return{};default:var Jt=br.type.keys().next();return Jt.done?e.Debug.fail("Expected 'option.type' to have entries."):Jt.value}}function Et(br){return Array(br+1).join(" ")}function zt(br){var Jt=br.category,mr=br.name,Ht=br.isCommandLineOnly,Xr=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!Ht&&Jt!==void 0&&(!Xr.includes(Jt)||it.has(mr))}function fr(){for(var br=e.createMultiMap(),Jt=0,mr=e.optionDeclarations;Jt<mr.length;Jt++){var Ht=mr[Jt],Xr=Ht.category;zt(Ht)&&br.add(e.getLocaleSpecificMessage(Xr),Ht)}var At=0,Wr=0,Or=[];br.forEach(function(ra,Lt){Or.length!==0&&Or.push({value:""}),Or.push({value:"/* "+Lt+" */"});for(var xt=0,Yt=ra;xt<Yt.length;xt++){var Qt=Yt[xt],sr=void 0;it.has(Qt.name)?sr='"'+Qt.name+'": '+JSON.stringify(it.get(Qt.name))+((Wr+=1)===it.size?"":","):sr='// "'+Qt.name+'": '+JSON.stringify(ht(Qt))+",",Or.push({value:sr,description:"/* "+(Qt.description&&e.getLocaleSpecificMessage(Qt.description)||Qt.name)+" */"}),At=Math.max(sr.length,At)}});var Ja=Et(2),qa=[];qa.push("{"),qa.push(Ja+'"compilerOptions": {'),qa.push(""+Ja+Ja+"/* "+e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),qa.push("");for(var eo=0,Va=Or;eo<Va.length;eo++){var la=Va[eo],wt=la.value,rr=la.description,Wt=rr===void 0?"":rr;qa.push(wt&&""+Ja+Ja+wt+(Wt&&Et(At-wt.length+2)+Wt))}if(Dn.length){qa.push(Ja+"},"),qa.push(Ja+'"files": [');for(var Pr=0;Pr<Dn.length;Pr++)qa.push(""+Ja+Ja+JSON.stringify(Dn[Pr])+(Pr===Dn.length-1?"":","));qa.push(Ja+"]")}else qa.push(Ja+"}");return qa.push("}"),qa.join(rn)+rn}}e.generateTSConfig=pe;function Me(Xe,Dn){var rn={},qn=ne().optionsNameMap;for(var it in Xe)e.hasProperty(Xe,it)&&(rn[it]=fn(qn.get(it.toLowerCase()),Xe[it],Dn));return rn.configFilePath&&(rn.configFilePath=Dn(rn.configFilePath)),rn}e.convertToOptionsWithAbsolutePaths=Me;function fn(Xe,Dn,rn){if(Xe&&!xn(Dn)){if(Xe.type==="list"){var qn=Dn;if(Xe.element.isFilePath&&qn.length)return qn.map(rn)}else if(Xe.isFilePath)return rn(Dn)}return Dn}function Ye(Xe,Dn,rn,qn,it,ht,Et,zt,fr){return dn(Xe,void 0,Dn,rn,qn,fr,it,ht,Et,zt)}e.parseJsonConfigFileContent=Ye;function Ne(Xe,Dn,rn,qn,it,ht,Et,zt,fr){return dn(void 0,Xe,Dn,rn,qn,fr,it,ht,Et,zt)}e.parseJsonSourceFileConfigFileContent=Ne;function je(Xe,Dn){Dn&&Object.defineProperty(Xe,"configFile",{enumerable:!1,writable:!1,value:Dn})}e.setConfigFileInOptions=je;function xn(Xe){return Xe==null}function Wn(Xe,Dn){return e.getDirectoryPath(e.getNormalizedAbsolutePath(Xe,Dn))}function dn(Xe,Dn,rn,qn,it,ht,Et,zt,fr,br){it===void 0&&(it={}),zt===void 0&&(zt=[]),fr===void 0&&(fr=[]),e.Debug.assert(Xe===void 0&&Dn!==void 0||Xe!==void 0&&Dn===void 0);var Jt=[],mr=Un(Xe,Dn,rn,qn,Et,zt,Jt,br),Ht=mr.raw,Xr=e.extend(it,mr.options||{}),At=ht&&mr.watchOptions?e.extend(ht,mr.watchOptions):mr.watchOptions||ht;Xr.configFilePath=Et&&e.normalizeSlashes(Et);var Wr=Ja();Dn&&(Dn.configFileSpecs=Wr),je(Xr,Dn);var Or=e.normalizePath(Et?Wn(Et,qn):qn);return{options:Xr,watchOptions:At,fileNames:qa(Or),projectReferences:eo(Or),typeAcquisition:mr.typeAcquisition||hn(),raw:Ht,errors:Jt,wildcardDirectories:Bn(Wr,Or,rn.useCaseSensitiveFileNames),compileOnSave:!!Ht.compileOnSave};function Ja(){var Wt=wt("references",function(Mi){return typeof Mi=="object"},"object"),Pr=Va(la("files"));if(Pr){var ra=Wt==="no-prop"||e.isArray(Wt)&&Wt.length===0,Lt=e.hasProperty(Ht,"extends");if(Pr.length===0&&ra&&!Lt)if(Dn){var xt=Et||"tsconfig.json",Yt=e.Diagnostics.The_files_list_in_config_file_0_is_empty,Qt=e.firstDefined(e.getTsConfigPropArray(Dn,"files"),function(Mi){return Mi.initializer}),sr=Qt?e.createDiagnosticForNodeInSourceFile(Dn,Qt,Yt,xt):e.createCompilerDiagnostic(Yt,xt);Jt.push(sr)}else rr(e.Diagnostics.The_files_list_in_config_file_0_is_empty,Et||"tsconfig.json")}var at=Va(la("include")),ea=la("exclude"),Fa=Va(ea);if(ea==="no-prop"&&Ht.compilerOptions){var li=Ht.compilerOptions.outDir,Si=Ht.compilerOptions.declarationDir;(li||Si)&&(Fa=[li,Si].filter(function(Mi){return!!Mi}))}Pr===void 0&&at===void 0&&(at=["**/*"]);var Qr,ci;return at&&(Qr=lt(at,Jt,!0,Dn,"include")),Fa&&(ci=lt(Fa,Jt,!1,Dn,"exclude")),{filesSpecs:Pr,includeSpecs:at,excludeSpecs:Fa,validatedFilesSpec:e.filter(Pr,e.isString),validatedIncludeSpecs:Qr,validatedExcludeSpecs:ci,pathPatterns:void 0}}function qa(Wt){var Pr=Re(Wr,Wt,Xr,rn,fr);return Cn(Pr,z(Ht),zt)&&Jt.push(o(Wr,Et)),Pr}function eo(Wt){var Pr,ra=wt("references",function(Qt){return typeof Qt=="object"},"object");if(e.isArray(ra))for(var Lt=0,xt=ra;Lt<xt.length;Lt++){var Yt=xt[Lt];typeof Yt.path!="string"?rr(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Pr||(Pr=[])).push({path:e.getNormalizedAbsolutePath(Yt.path,Wt),originalPath:Yt.path,prepend:Yt.prepend,circular:Yt.circular})}return Pr}function Va(Wt){return e.isArray(Wt)?Wt:void 0}function la(Wt){return wt(Wt,e.isString,"string")}function wt(Wt,Pr,ra){if(e.hasProperty(Ht,Wt)&&!xn(Ht[Wt]))if(e.isArray(Ht[Wt])){var Lt=Ht[Wt];return!Dn&&!e.every(Lt,Pr)&&Jt.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Wt,ra)),Lt}else return rr(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Wt,"Array"),"not-array";return"no-prop"}function rr(Wt,Pr,ra){Dn||Jt.push(e.createCompilerDiagnostic(Wt,Pr,ra))}}function vn(Xe){return Xe.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function o(Xe,Dn){var rn=Xe.includeSpecs,qn=Xe.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,Dn||"tsconfig.json",JSON.stringify(rn||[]),JSON.stringify(qn||[]))}function Cn(Xe,Dn,rn){return Xe.length===0&&Dn&&(!rn||rn.length===0)}function z(Xe){return!e.hasProperty(Xe,"files")&&!e.hasProperty(Xe,"references")}e.canJsonReportNoInputFiles=z;function tn(Xe,Dn,rn,qn,it){var ht=qn.length;return Cn(Xe,it)?qn.push(o(rn,Dn)):e.filterMutate(qn,function(Et){return!vn(Et)}),ht!==qn.length}e.updateErrorForNoInputFiles=tn;function $n(Xe){return!!Xe.options}function Un(Xe,Dn,rn,qn,it,ht,Et,zt){var fr;qn=e.normalizeSlashes(qn);var br=e.getNormalizedAbsolutePath(it||"",qn);if(ht.indexOf(br)>=0)return Et.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Mt(Mt([],ht,!0),[br],!1).join(" -> "))),{raw:Xe||C(Dn,Et)};var Jt=Xe?oe(Xe,rn,qn,it,Et):Pe(Dn,rn,qn,it,Et);if(((fr=Jt.options)===null||fr===void 0?void 0:fr.paths)&&(Jt.options.pathsBasePath=qn),Jt.extendedConfigPath){ht=ht.concat([br]);var mr=Qe(Dn,Jt.extendedConfigPath,rn,ht,Et,zt);if(mr&&$n(mr)){var Ht=mr.raw,Xr=Jt.raw,At,Wr=function(Or){!Xr[Or]&&Ht[Or]&&(Xr[Or]=e.map(Ht[Or],function(Ja){return e.isRootedDiskPath(Ja)?Ja:e.combinePaths(At||(At=e.convertToRelativePath(e.getDirectoryPath(Jt.extendedConfigPath),qn,e.createGetCanonicalFileName(rn.useCaseSensitiveFileNames))),Ja)}))};Wr("include"),Wr("exclude"),Wr("files"),Xr.compileOnSave===void 0&&(Xr.compileOnSave=Ht.compileOnSave),Jt.options=e.assign({},mr.options,Jt.options),Jt.watchOptions=Jt.watchOptions&&mr.watchOptions?e.assign({},mr.watchOptions,Jt.watchOptions):Jt.watchOptions||mr.watchOptions}}return Jt}function oe(Xe,Dn,rn,qn,it){e.hasProperty(Xe,"excludes")&&it.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var ht=Be(Xe.compilerOptions,rn,it,qn),Et=Kn(Xe.typeAcquisition||Xe.typingOptions,rn,it,qn),zt=Je(Xe.watchOptions,rn,it);Xe.compileOnSave=gn(Xe,rn,it);var fr;if(Xe.extends)if(!e.isString(Xe.extends))it.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var br=qn?Wn(qn,rn):rn;fr=ke(Xe.extends,Dn,br,it,e.createCompilerDiagnostic)}return{raw:Xe,options:ht,watchOptions:zt,typeAcquisition:Et,extendedConfigPath:fr}}function Pe(Xe,Dn,rn,qn,it){var ht=wn(qn),Et,zt,fr,br,Jt={onSetValidOptionKeyValueInParent:function(Ht,Xr,At){var Wr;switch(Ht){case"compilerOptions":Wr=ht;break;case"watchOptions":Wr=fr||(fr={});break;case"typeAcquisition":Wr=Et||(Et=hn(qn));break;case"typingOptions":Wr=zt||(zt=hn(qn));break;default:e.Debug.fail("Unknown option")}Wr[Xr.name]=ct(Xr,rn,At)},onSetValidOptionKeyValueInRoot:function(Ht,Xr,At,Wr){switch(Ht){case"extends":var Or=qn?Wn(qn,rn):rn;br=ke(At,Dn,Or,it,function(Ja,qa){return e.createDiagnosticForNodeInSourceFile(Xe,Wr,Ja,qa)});return}},onSetUnknownOptionKeyValueInRoot:function(Ht,Xr,At,Wr){Ht==="excludes"&&it.push(e.createDiagnosticForNodeInSourceFile(Xe,Xr,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},mr=J(Xe,it,!0,Jt);return Et||(zt?Et=zt.enableAutoDiscovery!==void 0?{enable:zt.enableAutoDiscovery,include:zt.include,exclude:zt.exclude}:zt:Et=hn(qn)),{raw:mr,options:ht,watchOptions:fr,typeAcquisition:Et,extendedConfigPath:br}}function ke(Xe,Dn,rn,qn,it){if(Xe=e.normalizeSlashes(Xe),e.isRootedDiskPath(Xe)||e.startsWith(Xe,"./")||e.startsWith(Xe,"../")){var ht=e.getNormalizedAbsolutePath(Xe,rn);if(!Dn.fileExists(ht)&&!e.endsWith(ht,".json")&&(ht=ht+".json",!Dn.fileExists(ht))){qn.push(it(e.Diagnostics.File_0_not_found,Xe));return}return ht}var Et=e.nodeModuleNameResolver(Xe,e.combinePaths(rn,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},Dn,void 0,void 0,!0);if(Et.resolvedModule)return Et.resolvedModule.resolvedFileName;qn.push(it(e.Diagnostics.File_0_not_found,Xe));return}function Qe(Xe,Dn,rn,qn,it,ht){var Et,zt=rn.useCaseSensitiveFileNames?Dn:e.toFileNameLowerCase(Dn),fr,br,Jt;if(ht&&(fr=ht.get(zt))?(br=fr.extendedResult,Jt=fr.extendedConfig):(br=B(Dn,function(mr){return rn.readFile(mr)}),br.parseDiagnostics.length||(Jt=Un(void 0,br,rn,e.getDirectoryPath(Dn),e.getBaseFileName(Dn),qn,it,ht)),ht&&ht.set(zt,{extendedResult:br,extendedConfig:Jt})),Xe&&(Xe.extendedSourceFiles=[br.fileName],br.extendedSourceFiles&&(Et=Xe.extendedSourceFiles).push.apply(Et,br.extendedSourceFiles)),br.parseDiagnostics.length){it.push.apply(it,br.parseDiagnostics);return}return Jt}function gn(Xe,Dn,rn){if(!e.hasProperty(Xe,e.compileOnSaveCommandLineOption.name))return!1;var qn=Nn(e.compileOnSaveCommandLineOption,Xe.compileOnSave,Dn,rn);return typeof qn=="boolean"&&qn}function xe(Xe,Dn,rn){var qn=[],it=Be(Xe,Dn,qn,rn);return{options:it,errors:qn}}e.convertCompilerOptionsFromJson=xe;function Ze(Xe,Dn,rn){var qn=[],it=Kn(Xe,Dn,qn,rn);return{options:it,errors:qn}}e.convertTypeAcquisitionFromJson=Ze;function wn(Xe){var Dn=Xe&&e.getBaseFileName(Xe)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return Dn}function Be(Xe,Dn,rn,qn){var it=wn(qn);return En(m(),Xe,Dn,it,e.compilerOptionsDidYouMeanDiagnostics,rn),qn&&(it.configFilePath=e.normalizeSlashes(qn)),it}function hn(Xe){return{enable:!!Xe&&e.getBaseFileName(Xe)==="jsconfig.json",include:[],exclude:[]}}function Kn(Xe,Dn,rn,qn){var it=hn(qn),ht=O(Xe);return En(R(),ht,Dn,it,F,rn),it}function Je(Xe,Dn,rn){return En(N(),Xe,Dn,void 0,d,rn)}function En(Xe,Dn,rn,qn,it,ht){if(!Dn)return;for(var Et in Dn){var zt=Xe.get(Et);zt?(qn||(qn={}))[zt.name]=Nn(zt,Dn[Et],rn,ht):ht.push(U(Et,it,e.createCompilerDiagnostic))}return qn}function Nn(Xe,Dn,rn,qn){if(te(Xe,Dn)){var it=Xe.type;if(it==="list"&&e.isArray(Dn))return Ke(Xe,Dn,rn,qn);if(!e.isString(it))return $t(Xe,Dn,qn);var ht=Gt(Xe,Dn,qn);return xn(ht)?ht:yt(Xe,rn,ht)}else qn.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Xe.name,Oe(Xe)))}e.convertJsonOption=Nn;function ct(Xe,Dn,rn){if(xn(rn))return;if(Xe.type==="list"){var qn=Xe;return qn.element.isFilePath||!e.isString(qn.element.type)?e.filter(e.map(rn,function(it){return ct(qn.element,Dn,it)}),function(it){return!!it}):rn}else if(!e.isString(Xe.type))return Xe.type.get(e.isString(rn)?rn.toLowerCase():rn);return yt(Xe,Dn,rn)}function yt(Xe,Dn,rn){return Xe.isFilePath&&(rn=e.getNormalizedAbsolutePath(rn,Dn),rn===""&&(rn=".")),rn}function Gt(Xe,Dn,rn){var qn;if(xn(Dn))return;var it=(qn=Xe.extraValidation)===null||qn===void 0?void 0:qn.call(Xe,Dn);if(!it)return Dn;rn.push(e.createCompilerDiagnostic.apply(void 0,it));return}function $t(Xe,Dn,rn){if(xn(Dn))return;var qn=Dn.toLowerCase(),it=Xe.type.get(qn);if(it!==void 0)return Gt(Xe,it,rn);rn.push(w(Xe))}function Ke(Xe,Dn,rn,qn){return e.filter(e.map(Dn,function(it){return Nn(Xe.element,it,rn,qn)}),function(it){return!!it})}var Vn=/(^|\/)\*\*\/?$/,Zn=/^[^*?]*(?=\/[^/]*[*?])/;function Re(Xe,Dn,rn,qn,it){it===void 0&&(it=e.emptyArray),Dn=e.normalizePath(Dn);var ht=e.createGetCanonicalFileName(qn.useCaseSensitiveFileNames),Et=new e.Map,zt=new e.Map,fr=new e.Map,br=Xe.validatedFilesSpec,Jt=Xe.validatedIncludeSpecs,mr=Xe.validatedExcludeSpecs,Ht=e.getSupportedExtensions(rn,it),Xr=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(rn,Ht);if(br)for(var At=0,Wr=br;At<Wr.length;At++){var Or=Wr[At],Ja=e.getNormalizedAbsolutePath(Or,Dn);Et.set(ht(Ja),Ja)}var qa;if(Jt&&Jt.length>0)for(var eo=function(Wt){if(e.fileExtensionIs(Wt,".json")){if(!qa){var Pr=Jt.filter(function(Qt){return e.endsWith(Qt,".json")}),ra=e.map(e.getRegularExpressionsForWildcards(Pr,Dn,"files"),function(Qt){return"^"+Qt+"$"});qa=ra?ra.map(function(Qt){return e.getRegexFromPattern(Qt,qn.useCaseSensitiveFileNames)}):e.emptyArray}var Lt=e.findIndex(qa,function(Qt){return Qt.test(Wt)});if(Lt!==-1){var xt=ht(Wt);!Et.has(xt)&&!fr.has(xt)&&fr.set(xt,Wt)}return"continue"}if(An(Wt,Et,zt,Ht,ht))return"continue";Fn(Wt,zt,Ht,ht);var Yt=ht(Wt);!Et.has(Yt)&&!zt.has(Yt)&&zt.set(Yt,Wt)},Va=0,la=qn.readDirectory(Dn,Xr,mr,Jt,void 0);Va<la.length;Va++){var Ja=la[Va];eo(Ja)}var wt=e.arrayFrom(Et.values()),rr=e.arrayFrom(zt.values());return wt.concat(rr,e.arrayFrom(fr.values()))}e.getFileNamesFromConfigSpecs=Re;function Pn(Xe,Dn,rn,qn,it){var ht=Dn.validatedFilesSpec,Et=Dn.validatedIncludeSpecs,zt=Dn.validatedExcludeSpecs;if(!e.length(Et)||!e.length(zt))return!1;rn=e.normalizePath(rn);var fr=e.createGetCanonicalFileName(qn);if(ht)for(var br=0,Jt=ht;br<Jt.length;br++){var mr=Jt[br];if(fr(e.getNormalizedAbsolutePath(mr,rn))===Xe)return!1}return gt(Xe,zt,qn,it,rn)}e.isExcludedFile=Pn;function rt(Xe){var Dn=e.startsWith(Xe,"**/")?0:Xe.indexOf("/**/");if(Dn===-1)return!1;var rn=e.endsWith(Xe,"/..")?Xe.length:Xe.lastIndexOf("/../");return rn>Dn}function Yn(Xe,Dn,rn,qn){return gt(Xe,e.filter(Dn,function(it){return!rt(it)}),rn,qn)}e.matchesExclude=Yn;function gt(Xe,Dn,rn,qn,it){var ht=e.getRegularExpressionForWildcard(Dn,e.combinePaths(e.normalizePath(qn),it),"exclude"),Et=ht&&e.getRegexFromPattern(ht,rn);return Et?Et.test(Xe)?!0:!e.hasExtension(Xe)&&Et.test(e.ensureTrailingDirectorySeparator(Xe)):!1}function lt(Xe,Dn,rn,qn,it){return Xe.filter(function(Et){if(!e.isString(Et))return!1;var zt=Fe(Et,rn);return zt!==void 0&&Dn.push(ht.apply(void 0,zt)),zt===void 0});function ht(Et,zt){var fr=e.getTsConfigPropArrayElementValue(qn,it,zt);return fr?e.createDiagnosticForNodeInSourceFile(qn,fr,Et,zt):e.createCompilerDiagnostic(Et,zt)}}function Fe(Xe,Dn){if(Dn&&Vn.test(Xe))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Xe];if(rt(Xe))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Xe]}function Bn(Xe,Dn,rn){var qn=Xe.validatedIncludeSpecs,it=Xe.validatedExcludeSpecs,ht=e.getRegularExpressionForWildcard(it,Dn,"exclude"),Et=ht&&new RegExp(ht,rn?"":"i"),zt={};if(qn!==void 0){for(var fr=[],br=0,Jt=qn;br<Jt.length;br++){var mr=Jt[br],Ht=e.normalizePath(e.combinePaths(Dn,mr));if(Et&&Et.test(Ht))continue;var Xr=K(Ht,rn);if(Xr){var At=Xr.key,Wr=Xr.flags,Or=zt[At];(Or===void 0||Or<Wr)&&(zt[At]=Wr,Wr===1&&fr.push(At))}}for(var At in zt)if(e.hasProperty(zt,At))for(var Ja=0,qa=fr;Ja<qa.length;Ja++){var eo=qa[Ja];At!==eo&&e.containsPath(eo,At,Dn,!rn)&&delete zt[At]}}return zt}function K(Xe,Dn){var rn=Zn.exec(Xe);if(rn){var qn=Xe.indexOf("?"),it=Xe.indexOf("*"),ht=Xe.lastIndexOf(e.directorySeparator);return{key:Dn?rn[0]:e.toFileNameLowerCase(rn[0]),flags:qn!==-1&&qn<ht||it!==-1&&it<ht?1:0}}return e.isImplicitGlob(Xe)?{key:Dn?Xe:e.toFileNameLowerCase(Xe),flags:1}:void 0}function An(Xe,Dn,rn,qn,it){for(var ht=e.getExtensionPriority(Xe,qn),Et=e.adjustExtensionPriority(ht,qn),zt=0;zt<Et;zt++){var fr=qn[zt],br=it(e.changeExtension(Xe,fr));if(Dn.has(br)||rn.has(br))return!0}return!1}function Fn(Xe,Dn,rn,qn){for(var it=e.getExtensionPriority(Xe,rn),ht=e.getNextLowestExtensionPriority(it,rn),Et=ht;Et<rn.length;Et++){var zt=rn[Et],fr=qn(e.changeExtension(Xe,zt));Dn.delete(fr)}}function ln(Xe){var Dn={};for(var rn in Xe)if(Xe.hasOwnProperty(rn)){var qn=x(rn);qn!==void 0&&(Dn[rn]=Ln(Xe[rn],qn))}return Dn}e.convertCompilerOptionsForTelemetry=ln;function Ln(Xe,Dn){switch(Dn.type){case"object":return"";case"string":return"";case"number":return typeof Xe=="number"?Xe:"";case"boolean":return typeof Xe=="boolean"?Xe:"";case"list":var rn=Dn.element;return e.isArray(Xe)?Xe.map(function(qn){return Ln(qn,rn)}):"";default:return e.forEachEntry(Dn.type,function(qn,it){if(qn===Xe)return it})}}})(mn||(mn={}));var mn;(function(e){function s(ke){ke.trace(e.formatMessage.apply(void 0,arguments))}e.trace=s;function ue(ke,Qe){return!!ke.traceResolution&&Qe.trace!==void 0}e.isTraceEnabled=ue;function ee(ke,Qe){var gn;if(Qe&&ke){var xe=ke.packageJsonContent;typeof xe.name=="string"&&typeof xe.version=="string"&&(gn={name:xe.name,subModuleName:Qe.path.slice(ke.packageDirectory.length+e.directorySeparator.length),version:xe.version})}return Qe&&{path:Qe.path,extension:Qe.ext,packageId:gn}}function Y(ke){return ee(void 0,ke)}function V(ke){if(ke)return e.Debug.assert(ke.packageId===void 0),{path:ke.path,ext:ke.extension}}var ne;(function(ke){ke[ke.TypeScript=0]="TypeScript",ke[ke.JavaScript=1]="JavaScript",ke[ke.Json=2]="Json",ke[ke.TSConfig=3]="TSConfig",ke[ke.DtsOnly=4]="DtsOnly"})(ne||(ne={}));function _e(ke){return ke?(e.Debug.assert(e.extensionIsTS(ke.extension)),{fileName:ke.path,packageId:ke.packageId}):void 0}function O(ke,Qe,gn,xe){var Ze;return xe?((Ze=xe.failedLookupLocations).push.apply(Ze,gn),xe):{resolvedModule:ke&&{resolvedFileName:ke.path,originalPath:ke.originalPath===!0?void 0:ke.originalPath,extension:ke.extension,isExternalLibraryImport:Qe,packageId:ke.packageId},failedLookupLocations:gn}}function w(ke,Qe,gn,xe){if(!e.hasProperty(ke,Qe)){xe.traceEnabled&&s(xe.host,e.Diagnostics.package_json_does_not_have_a_0_field,Qe);return}var Ze=ke[Qe];if(typeof Ze!==gn||Ze===null){xe.traceEnabled&&s(xe.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,Qe,gn,Ze===null?"null":typeof Ze);return}return Ze}function b(ke,Qe,gn,xe){var Ze=w(ke,Qe,"string",xe);if(Ze===void 0)return;if(!Ze){xe.traceEnabled&&s(xe.host,e.Diagnostics.package_json_had_a_falsy_0_field,Qe);return}var wn=e.normalizePath(e.combinePaths(gn,Ze));return xe.traceEnabled&&s(xe.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,Qe,Ze,wn),wn}function de(ke,Qe,gn){return b(ke,"typings",Qe,gn)||b(ke,"types",Qe,gn)}function fe(ke,Qe,gn){return b(ke,"tsconfig",Qe,gn)}function _(ke,Qe,gn){return b(ke,"main",Qe,gn)}function U(ke,Qe){var gn=w(ke,"typesVersions","object",Qe);return gn===void 0?void 0:(Qe.traceEnabled&&s(Qe.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),gn)}function Z(ke,Qe){var gn=U(ke,Qe);if(gn===void 0)return;if(Qe.traceEnabled)for(var xe in gn)e.hasProperty(gn,xe)&&!e.VersionRange.tryParse(xe)&&s(Qe.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,xe);var Ze=W(gn);if(!Ze){Qe.traceEnabled&&s(Qe.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var wn=Ze.version,Be=Ze.paths;if(typeof Be!="object"){Qe.traceEnabled&&s(Qe.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+wn+"']","object",typeof Be);return}return Ze}var v;function W(ke){v||(v=new e.Version(e.version));for(var Qe in ke){if(!e.hasProperty(ke,Qe))continue;var gn=e.VersionRange.tryParse(Qe);if(gn===void 0)continue;if(gn.test(v))return{version:Qe,paths:ke[Qe]}}}e.getPackageJsonTypesVersionsPaths=W;function x(ke,Qe){if(ke.typeRoots)return ke.typeRoots;var gn;if(ke.configFilePath?gn=e.getDirectoryPath(ke.configFilePath):Qe.getCurrentDirectory&&(gn=Qe.getCurrentDirectory()),gn!==void 0)return $(gn,Qe)}e.getEffectiveTypeRoots=x;function $(ke,Qe){if(!Qe.directoryExists)return[e.combinePaths(ke,L)];var gn;return e.forEachAncestorDirectory(e.normalizePath(ke),function(xe){var Ze=e.combinePaths(xe,L);Qe.directoryExists(Ze)&&(gn||(gn=[])).push(Ze);return}),gn}var L=e.combinePaths("node_modules","@types");function E(ke,Qe,gn,xe,Ze,wn){var Be=ue(gn,xe);Ze&&(gn=Ze.commandLine.options);var hn=Qe?e.getDirectoryPath(Qe):void 0,Kn=hn?wn&&wn.getOrCreateCacheForDirectory(hn,Ze):void 0,Je=Kn&&Kn.get(ke);if(Je)return Be&&(s(xe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,ke,Qe),Ze&&s(xe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Ze.sourceFile.fileName),s(xe,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,ke,hn),Re(Je)),Je;var En=x(gn,xe);Be&&(Qe===void 0?En===void 0?s(xe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,ke):s(xe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,ke,En):En===void 0?s(xe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,ke,Qe):s(xe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,ke,Qe,En),Ze&&s(xe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Ze.sourceFile.fileName));var Nn=[],ct={compilerOptions:gn,host:xe,traceEnabled:Be,failedLookupLocations:Nn,packageJsonInfoCache:wn},yt=Pn(),Gt=!0;yt||(yt=rt(),Gt=!1);var $t;if(yt){var Ke=yt.fileName,Vn=yt.packageId,Zn=gn.preserveSymlinks?Ke:C(Ke,xe,Be);$t={primary:Gt,resolvedFileName:Zn,originalPath:Ke===Zn?void 0:Ke,packageId:Vn,isExternalLibraryImport:Oe(Ke)}}return Je={resolvedTypeReferenceDirective:$t,failedLookupLocations:Nn},Kn==null||Kn.set(ke,Je),Be&&Re(Je),Je;function Re(Yn){var gt;((gt=Yn.resolvedTypeReferenceDirective)===null||gt===void 0?void 0:gt.resolvedFileName)?Yn.resolvedTypeReferenceDirective.packageId?s(xe,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,ke,Yn.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(Yn.resolvedTypeReferenceDirective.packageId),Yn.resolvedTypeReferenceDirective.primary):s(xe,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,ke,Yn.resolvedTypeReferenceDirective.resolvedFileName,Yn.resolvedTypeReferenceDirective.primary):s(xe,e.Diagnostics.Type_reference_directive_0_was_not_resolved,ke)}function Pn(){if(En&&En.length)return Be&&s(xe,e.Diagnostics.Resolving_with_primary_search_path_0,En.join(", ")),e.firstDefined(En,function(Yn){var gt=e.combinePaths(Yn,ke),lt=e.getDirectoryPath(gt),Fe=e.directoryProbablyExists(lt,xe);return!Fe&&Be&&s(xe,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,lt),_e($e(ne.DtsOnly,gt,!Fe,ct))});Be&&s(xe,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function rt(){var Yn=Qe&&e.getDirectoryPath(Qe);if(Yn!==void 0){Be&&s(xe,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,Yn);var gt;if(e.isExternalModuleNameRelative(ke)){var Fe=e.normalizePathAndParts(e.combinePaths(Yn,ke)).path;gt=we(ne.DtsOnly,Fe,!1,ct,!0)}else{var lt=fn(ne.DtsOnly,ke,Yn,ct,void 0,void 0);gt=lt&<.value}return _e(gt)}else Be&&s(xe,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=E;function ae(ke,Qe){if(ke.types)return ke.types;var gn=[];if(Qe.directoryExists&&Qe.getDirectories){var xe=x(ke,Qe);if(xe)for(var Ze=0,wn=xe;Ze<wn.length;Ze++){var Be=wn[Ze];if(Qe.directoryExists(Be))for(var hn=0,Kn=Qe.getDirectories(Be);hn<Kn.length;hn++){var Je=Kn[hn],En=e.normalizePath(Je),Nn=e.combinePaths(Be,En,"package.json"),ct=Qe.fileExists(Nn)&&e.readJson(Nn,Qe).typings===null;if(!ct){var yt=e.getBaseFileName(En);yt.charCodeAt(0)!==46&&gn.push(yt)}}}}return gn}e.getAutomaticTypeDirectiveNames=ae;function X(ke){var Qe=new e.Map,gn=new e.Map;return{getOwnMap:xe,redirectsMap:gn,getOrCreateMapOfCacheRedirects:Be,clear:hn,setOwnOptions:Ze,setOwnMap:wn};function xe(){return Qe}function Ze(Kn){ke=Kn}function wn(Kn){Qe=Kn}function Be(Kn){if(!Kn)return Qe;var Je=Kn.sourceFile.path,En=gn.get(Je);return En||(En=!ke||e.optionsHaveModuleResolutionChanges(ke,Kn.commandLine.options)?new e.Map:Qe,gn.set(Je,En)),En}function hn(){Qe.clear(),gn.clear()}}e.createCacheWithRedirects=X;function ie(ke,Qe){var gn;return{getPackageJsonInfo:xe,setPackageJsonInfo:Ze,clear:wn,entries:Be};function xe(hn){return gn==null?void 0:gn.get(e.toPath(hn,ke,Qe))}function Ze(hn,Kn){(gn||(gn=new e.Map)).set(e.toPath(hn,ke,Qe),Kn)}function wn(){gn=void 0}function Be(){var hn=gn==null?void 0:gn.entries();return hn?e.arrayFrom(hn):[]}}function le(ke,Qe,gn,xe){var Ze=ke.getOrCreateMapOfCacheRedirects(Qe),wn=Ze.get(gn);return wn||(wn=xe(),Ze.set(gn,wn)),wn}function P(ke,Qe,gn){if(!ke.configFile)return;if(Qe.redirectsMap.size===0)e.Debug.assert(!gn||gn.redirectsMap.size===0),e.Debug.assert(Qe.getOwnMap().size===0),e.Debug.assert(!gn||gn.getOwnMap().size===0),Qe.redirectsMap.set(ke.configFile.path,Qe.getOwnMap()),gn==null||gn.redirectsMap.set(ke.configFile.path,gn.getOwnMap());else{e.Debug.assert(!gn||gn.redirectsMap.size>0);var xe={sourceFile:ke.configFile,commandLine:{options:ke}};Qe.setOwnMap(Qe.getOrCreateMapOfCacheRedirects(xe)),gn==null||gn.setOwnMap(gn.getOrCreateMapOfCacheRedirects(xe))}Qe.setOwnOptions(ke),gn==null||gn.setOwnOptions(ke)}function I(ke,Qe,gn){return{getOrCreateCacheForDirectory:wn,clear:xe,update:Ze};function xe(){gn.clear()}function Ze(Be){P(Be,gn)}function wn(Be,hn){var Kn=e.toPath(Be,ke,Qe);return le(gn,hn,Kn,function(){return new e.Map})}}function re(ke,Qe,gn,xe,Ze){var wn=I(ke,Qe,xe||(xe=X(gn)));Ze||(Ze=X(gn));var Be=ie(ke,Qe);return pr(pr(pr({},Be),wn),{getOrCreateCacheForModuleName:Je,clear:hn,update:Kn,getPackageJsonInfoCache:function(){return Be}});function hn(){wn.clear(),Ze.clear(),Be.clear()}function Kn(Nn){P(Nn,xe,Ze)}function Je(Nn,ct){return e.Debug.assert(!e.isExternalModuleNameRelative(Nn)),le(Ze,ct,Nn,En)}function En(){var Nn=new e.Map;return{get:ct,set:yt};function ct($t){return Nn.get(e.toPath($t,ke,Qe))}function yt($t,Ke){var Vn=e.toPath($t,ke,Qe);if(Nn.has(Vn))return;Nn.set(Vn,Ke);for(var Zn=Ke.resolvedModule&&(Ke.resolvedModule.originalPath||Ke.resolvedModule.resolvedFileName),Re=Zn&&Gt(Vn,Zn),Pn=Vn;Pn!==Re;){var rt=e.getDirectoryPath(Pn);if(rt===Pn||Nn.has(rt))break;Nn.set(rt,Ke),Pn=rt}}function Gt($t,Ke){for(var Vn=e.toPath(e.getDirectoryPath(Ke),ke,Qe),Zn=0,Re=Math.min($t.length,Vn.length);Zn<Re&&$t.charCodeAt(Zn)===Vn.charCodeAt(Zn);)Zn++;if(Zn===$t.length&&(Vn.length===Zn||Vn[Zn]===e.directorySeparator))return $t;var Pn=e.getRootLength($t);if(Zn<Pn)return;var rt=$t.lastIndexOf(e.directorySeparator,Zn-1);return rt===-1?void 0:$t.substr(0,Math.max(rt,Pn))}}}e.createModuleResolutionCache=re;function B(ke,Qe,gn,xe,Ze){var wn=I(ke,Qe,Ze||(Ze=X(gn)));return xe||(xe=ie(ke,Qe)),pr(pr(pr({},xe),wn),{clear:Be});function Be(){wn.clear(),xe.clear()}}e.createTypeReferenceDirectiveResolutionCache=B;function A(ke,Qe,gn){var xe=e.getDirectoryPath(Qe),Ze=gn&&gn.getOrCreateCacheForDirectory(xe);return Ze&&Ze.get(ke)}e.resolveModuleNameFromCache=A;function f(ke,Qe,gn,xe,Ze,wn){var Be=ue(gn,xe);wn&&(gn=wn.commandLine.options),Be&&(s(xe,e.Diagnostics.Resolving_module_0_from_1,ke,Qe),wn&&s(xe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,wn.sourceFile.fileName));var hn=e.getDirectoryPath(Qe),Kn=Ze&&Ze.getOrCreateCacheForDirectory(hn,wn),Je=Kn&&Kn.get(ke);if(Je)Be&&s(xe,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,ke,hn);else{var En=gn.moduleResolution;En===void 0?(En=e.getEmitModuleKind(gn)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,Be&&s(xe,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[En])):Be&&s(xe,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[En]),e.perfLogger.logStartResolveModule(ke);switch(En){case e.ModuleResolutionKind.NodeJs:Je=q(ke,Qe,gn,xe,Ze,wn);break;case e.ModuleResolutionKind.Classic:Je=Un(ke,Qe,gn,xe,Ze,wn);break;default:return e.Debug.fail("Unexpected moduleResolution: "+En)}Je&&Je.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+ke+'" resolved to "'+Je.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(Je&&Je.resolvedModule?""+Je.resolvedModule.resolvedFileName:"null"),Kn&&(Kn.set(ke,Je),e.isExternalModuleNameRelative(ke)||Ze.getOrCreateCacheForModuleName(ke,wn).set(hn,Je))}return Be&&(Je.resolvedModule?Je.resolvedModule.packageId?s(xe,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,ke,Je.resolvedModule.resolvedFileName,e.packageIdToString(Je.resolvedModule.packageId)):s(xe,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,ke,Je.resolvedModule.resolvedFileName):s(xe,e.Diagnostics.Module_name_0_was_not_resolved,ke)),Je}e.resolveModuleName=f;function F(ke,Qe,gn,xe,Ze){var wn=g(ke,Qe,xe,Ze);return wn?wn.value:e.isExternalModuleNameRelative(Qe)?p(ke,Qe,gn,xe,Ze):d(ke,Qe,xe,Ze)}function g(ke,Qe,gn,xe){var Ze,wn=xe.compilerOptions,Be=wn.baseUrl,hn=wn.paths,Kn=wn.configFile;if(hn&&!e.pathIsRelative(Qe)){xe.traceEnabled&&(Be&&s(xe.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Be,Qe),s(xe.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,Qe));var Je=e.getPathsBasePath(xe.compilerOptions,xe.host),En=(Kn==null?void 0:Kn.configFileSpecs)?(Ze=Kn.configFileSpecs).pathPatterns||(Ze.pathPatterns=e.tryParsePatterns(hn)):void 0;return Wn(ke,Qe,Je,hn,En,gn,!1,xe)}}function p(ke,Qe,gn,xe,Ze){if(!Ze.compilerOptions.rootDirs)return;Ze.traceEnabled&&s(Ze.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,Qe);for(var wn=e.normalizePath(e.combinePaths(gn,Qe)),Be,hn,Kn=0,Je=Ze.compilerOptions.rootDirs;Kn<Je.length;Kn++){var En=Je[Kn],Nn=e.normalizePath(En);e.endsWith(Nn,e.directorySeparator)||(Nn+=e.directorySeparator);var ct=e.startsWith(wn,Nn)&&(hn===void 0||hn.length<Nn.length);Ze.traceEnabled&&s(Ze.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,Nn,wn,ct),ct&&(hn=Nn,Be=En)}if(hn){Ze.traceEnabled&&s(Ze.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,wn,hn);var yt=wn.substr(hn.length);Ze.traceEnabled&&s(Ze.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,yt,hn,wn);var Gt=xe(ke,wn,!e.directoryProbablyExists(gn,Ze.host),Ze);if(Gt)return Gt;Ze.traceEnabled&&s(Ze.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var $t=0,Ke=Ze.compilerOptions.rootDirs;$t<Ke.length;$t++){var En=Ke[$t];if(En===Be)continue;var Vn=e.combinePaths(e.normalizePath(En),yt);Ze.traceEnabled&&s(Ze.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,yt,En,Vn);var Zn=e.getDirectoryPath(Vn),Re=xe(ke,Vn,!e.directoryProbablyExists(Zn,Ze.host),Ze);if(Re)return Re}Ze.traceEnabled&&s(Ze.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}function d(ke,Qe,gn,xe){var Ze=xe.compilerOptions.baseUrl;if(!Ze)return;xe.traceEnabled&&s(xe.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Ze,Qe);var wn=e.normalizePath(e.combinePaths(Ze,Qe));return xe.traceEnabled&&s(xe.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,Qe,Ze,wn),gn(ke,wn,!e.directoryProbablyExists(e.getDirectoryPath(wn),xe.host),xe)}function T(ke,Qe,gn){var xe=me(ke,Qe,gn),Ze=xe.resolvedModule,wn=xe.failedLookupLocations;if(!Ze)throw new Error("Could not resolve JS module '"+ke+"' starting at '"+Qe+"'. Looked in: "+wn.join(", "));return Ze.resolvedFileName}e.resolveJSModule=T;function m(ke,Qe,gn){var xe=me(ke,Qe,gn).resolvedModule;return xe&&xe.resolvedFileName}e.tryResolveJSModule=m;var k=[ne.JavaScript],N=[ne.TypeScript,ne.JavaScript],D=Mt(Mt([],N,!0),[ne.Json],!1),R=[ne.TSConfig];function me(ke,Qe,gn){return J(ke,Qe,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},gn,void 0,k,void 0)}function q(ke,Qe,gn,xe,Ze,wn,Be){return J(ke,e.getDirectoryPath(Qe),gn,xe,Ze,Be?R:gn.resolveJsonModule?D:N,wn)}e.nodeModuleNameResolver=q;function J(ke,Qe,gn,xe,Ze,wn,Be){var hn,Kn,Je=ue(gn,xe),En=[],Nn={compilerOptions:gn,host:xe,traceEnabled:Je,failedLookupLocations:En,packageJsonInfoCache:Ze},ct=e.forEach(wn,function(Gt){return yt(Gt)});return O((hn=ct==null?void 0:ct.value)===null||hn===void 0?void 0:hn.resolved,(Kn=ct==null?void 0:ct.value)===null||Kn===void 0?void 0:Kn.isExternalLibraryImport,En,Nn.resultFromCache);function yt(Gt){var $t=function(Fe,Bn,K,An){return we(Fe,Bn,K,An,!0)},Ke=F(Gt,ke,Qe,$t,Nn);if(Ke)return Pe({resolved:Ke,isExternalLibraryImport:Oe(Ke.path)});if(e.isExternalModuleNameRelative(ke)){var rt=e.normalizePathAndParts(e.combinePaths(Qe,ke)),Yn=rt.path,gt=rt.parts,lt=we(Gt,Yn,!1,Nn,!0);return lt&&Pe({resolved:lt,isExternalLibraryImport:e.contains(gt,"node_modules")})}else{Je&&s(xe,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,ke,ne[Gt]);var Vn=fn(Gt,ke,Qe,Nn,Ze,Be);if(!Vn)return;var Zn=Vn.value;if(!gn.preserveSymlinks&&Zn&&!Zn.originalPath){var Re=C(Zn.path,xe,Je),Pn=Re===Zn.path?void 0:Zn.path;Zn=pr(pr({},Zn),{path:Re,originalPath:Pn})}return{value:Zn&&{resolved:Zn,isExternalLibraryImport:!0}}}}}function C(ke,Qe,gn){if(!Qe.realpath)return ke;var xe=e.normalizePath(Qe.realpath(ke));return gn&&s(Qe,e.Diagnostics.Resolving_real_path_for_0_result_1,ke,xe),e.Debug.assert(Qe.fileExists(xe),ke+" linked to nonexistent file "+xe),xe}function we(ke,Qe,gn,xe,Ze){if(xe.traceEnabled&&s(xe.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,Qe,ne[ke]),!e.hasTrailingDirectorySeparator(Qe)){if(!gn){var wn=e.getDirectoryPath(Qe);e.directoryProbablyExists(wn,xe.host)||(xe.traceEnabled&&s(xe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,wn),gn=!0)}var Be=Ce(ke,Qe,gn,xe);if(Be){var hn=Ze?te(Be.path):void 0,Kn=hn?ce(hn,!1,xe):void 0;return ee(Kn,Be)}}if(!gn){var Je=e.directoryProbablyExists(Qe,xe.host);Je||(xe.traceEnabled&&s(xe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Qe),gn=!0)}return $e(ke,Qe,gn,xe,Ze)}e.nodeModulesPathPart="/node_modules/";function Oe(ke){return e.stringContains(ke,e.nodeModulesPathPart)}e.pathContainsNodeModules=Oe;function te(ke){var Qe=e.normalizePath(ke),gn=Qe.lastIndexOf(e.nodeModulesPathPart);if(gn===-1)return;var xe=gn+e.nodeModulesPathPart.length,Ze=Te(Qe,xe);return Qe.charCodeAt(xe)===64&&(Ze=Te(Qe,Ze)),Qe.slice(0,Ze)}e.parseNodeModuleFromPath=te;function Te(ke,Qe){var gn=ke.indexOf(e.directorySeparator,Qe+1);return gn===-1?Qe:gn}function be(ke,Qe,gn,xe){return Y(Ce(ke,Qe,gn,xe))}function Ce(ke,Qe,gn,xe){if(ke===ne.Json||ke===ne.TSConfig){var Ze=e.tryRemoveExtension(Qe,".json");return Ze===void 0&&ke===ne.Json?void 0:Ue(Ze||Qe,ke,gn,xe)}var wn=Ue(Qe,ke,gn,xe);if(wn)return wn;if(e.hasJSFileExtension(Qe)){var Be=e.removeFileExtension(Qe);if(xe.traceEnabled){var hn=Qe.substring(Be.length);s(xe.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,Qe,hn)}return Ue(Be,ke,gn,xe)}}function Ue(ke,Qe,gn,xe){if(!gn){var Ze=e.getDirectoryPath(ke);Ze&&(gn=!e.directoryProbablyExists(Ze,xe.host))}switch(Qe){case ne.DtsOnly:return wn(".d.ts");case ne.TypeScript:return wn(".ts")||wn(".tsx")||wn(".d.ts");case ne.JavaScript:return wn(".js")||wn(".jsx");case ne.TSConfig:case ne.Json:return wn(".json")}function wn(Be){var hn=Se(ke+Be,gn,xe);return hn===void 0?void 0:{path:hn,ext:Be}}}function Se(ke,Qe,gn){if(!Qe){if(gn.host.fileExists(ke))return gn.traceEnabled&&s(gn.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,ke),ke;gn.traceEnabled&&s(gn.host,e.Diagnostics.File_0_does_not_exist,ke)}gn.failedLookupLocations.push(ke);return}function $e(ke,Qe,gn,xe,Ze){Ze===void 0&&(Ze=!0);var wn=Ze?ce(Qe,gn,xe):void 0,Be=wn&&wn.packageJsonContent,hn=wn&&wn.versionPaths;return ee(wn,Le(ke,Qe,gn,xe,Be,hn))}function ce(ke,Qe,gn){var xe,Ze,wn,Be=gn.host,hn=gn.traceEnabled,Kn=e.combinePaths(ke,"package.json");if(Qe){gn.failedLookupLocations.push(Kn);return}var Je=(xe=gn.packageJsonInfoCache)===null||xe===void 0?void 0:xe.getPackageJsonInfo(Kn);if(Je!==void 0){if(typeof Je!="boolean")return hn&&s(Be,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,Kn),Je;Je&&hn&&s(Be,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,Kn),gn.failedLookupLocations.push(Kn);return}var En=e.directoryProbablyExists(ke,Be);if(En&&Be.fileExists(Kn)){var Nn=e.readJson(Kn,Be);hn&&s(Be,e.Diagnostics.Found_package_json_at_0,Kn);var ct=Z(Nn,gn),yt={packageDirectory:ke,packageJsonContent:Nn,versionPaths:ct};return(Ze=gn.packageJsonInfoCache)===null||Ze===void 0||Ze.setPackageJsonInfo(Kn,yt),yt}else En&&hn&&s(Be,e.Diagnostics.File_0_does_not_exist,Kn),(wn=gn.packageJsonInfoCache)===null||wn===void 0||wn.setPackageJsonInfo(Kn,En),gn.failedLookupLocations.push(Kn)}function Le(ke,Qe,gn,xe,Ze,wn){var Be;if(Ze)switch(ke){case ne.JavaScript:case ne.Json:Be=_(Ze,Qe,xe);break;case ne.TypeScript:Be=de(Ze,Qe,xe)||_(Ze,Qe,xe);break;case ne.DtsOnly:Be=de(Ze,Qe,xe);break;case ne.TSConfig:Be=fe(Ze,Qe,xe);break;default:return e.Debug.assertNever(ke)}var hn=function(Gt,$t,Ke,Vn){var Zn=Se($t,Ke,Vn);if(Zn){var Re=qe(Gt,Zn);if(Re)return Y(Re);Vn.traceEnabled&&s(Vn.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,Zn)}var Pn=Gt===ne.DtsOnly?ne.TypeScript:Gt;return we(Pn,$t,Ke,Vn,!1)},Kn=Be?!e.directoryProbablyExists(e.getDirectoryPath(Be),xe.host):void 0,Je=gn||!e.directoryProbablyExists(Qe,xe.host),En=e.combinePaths(Qe,ke===ne.TSConfig?"tsconfig":"index");if(wn&&(!Be||e.containsPath(Qe,Be))){var Nn=e.getRelativePathFromDirectory(Qe,Be||En,!1);xe.traceEnabled&&s(xe.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,wn.version,e.version,Nn);var ct=Wn(ke,Nn,Qe,wn.paths,void 0,hn,Kn||Je,xe);if(ct)return V(ct.value)}var yt=Be&&V(hn(ke,Be,Kn,xe));return yt||Ce(ke,En,Je,xe)}function qe(ke,Qe){var gn=e.tryGetExtensionFromPath(Qe);return gn!==void 0&&pe(ke,gn)?{path:Qe,ext:gn}:void 0}function pe(ke,Qe){switch(ke){case ne.JavaScript:return Qe===".js"||Qe===".jsx";case ne.TSConfig:case ne.Json:return Qe===".json";case ne.TypeScript:return Qe===".ts"||Qe===".tsx"||Qe===".d.ts";case ne.DtsOnly:return Qe===".d.ts"}}function Me(ke){var Qe=ke.indexOf(e.directorySeparator);return ke[0]==="@"&&(Qe=ke.indexOf(e.directorySeparator,Qe+1)),Qe===-1?{packageName:ke,rest:""}:{packageName:ke.slice(0,Qe),rest:ke.slice(Qe+1)}}e.parsePackageName=Me;function fn(ke,Qe,gn,xe,Ze,wn){return Ne(ke,Qe,gn,xe,!1,Ze,wn)}function Ye(ke,Qe,gn){return Ne(ne.DtsOnly,ke,Qe,gn,!0,void 0,void 0)}function Ne(ke,Qe,gn,xe,Ze,wn,Be){var hn=wn&&wn.getOrCreateCacheForModuleName(Qe,Be);return e.forEachAncestorDirectory(e.normalizeSlashes(gn),function(Kn){if(e.getBaseFileName(Kn)!=="node_modules"){var Je=$n(hn,Qe,Kn,xe);return Je||Pe(je(ke,Qe,Kn,xe,Ze))}})}function je(ke,Qe,gn,xe,Ze){var wn=e.combinePaths(gn,"node_modules"),Be=e.directoryProbablyExists(wn,xe.host);!Be&&xe.traceEnabled&&s(xe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,wn);var hn=Ze?void 0:xn(ke,Qe,wn,Be,xe);if(hn)return hn;if(ke===ne.TypeScript||ke===ne.DtsOnly){var Kn=e.combinePaths(wn,"@types"),Je=Be;return Be&&!e.directoryProbablyExists(Kn,xe.host)&&(xe.traceEnabled&&s(xe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Kn),Je=!1),xn(ne.DtsOnly,vn(Qe,xe),Kn,Je,xe)}}function xn(ke,Qe,gn,xe,Ze){var wn=e.normalizePath(e.combinePaths(gn,Qe)),Be=ce(wn,!xe,Ze);if(Be){var hn=Ce(ke,wn,!xe,Ze);if(hn)return Y(hn);var Kn=Le(ke,wn,!xe,Ze,Be.packageJsonContent,Be.versionPaths);return ee(Be,Kn)}var Je=function(Ke,Vn,Zn,Re){var Pn=Ce(Ke,Vn,Zn,Re)||Le(Ke,Vn,Zn,Re,Be&&Be.packageJsonContent,Be&&Be.versionPaths);return ee(Be,Pn)},En=Me(Qe),Nn=En.packageName,ct=En.rest;if(ct!==""){var yt=e.combinePaths(gn,Nn);if(Be=ce(yt,!xe,Ze),Be&&Be.versionPaths){Ze.traceEnabled&&s(Ze.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Be.versionPaths.version,e.version,ct);var Gt=xe&&e.directoryProbablyExists(yt,Ze.host),$t=Wn(ke,ct,yt,Be.versionPaths.paths,void 0,Je,!Gt,Ze);if($t)return $t.value}}return Je(ke,wn,!xe,Ze)}function Wn(ke,Qe,gn,xe,Ze,wn,Be,hn){Ze||(Ze=e.tryParsePatterns(xe));var Kn=e.matchPatternOrExact(Ze,Qe);if(Kn){var Je=e.isString(Kn)?void 0:e.matchedText(Kn,Qe),En=e.isString(Kn)?Kn:e.patternText(Kn);hn.traceEnabled&&s(hn.host,e.Diagnostics.Module_name_0_matched_pattern_1,Qe,En);var Nn=e.forEach(xe[En],function(ct){var yt=Je?ct.replace("*",Je):ct,Gt=e.normalizePath(e.combinePaths(gn,yt));hn.traceEnabled&&s(hn.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,ct,yt);var $t=e.tryGetExtensionFromPath(ct);if($t!==void 0){var Ke=Se(Gt,Be,hn);if(Ke!==void 0)return Y({path:Ke,ext:$t})}return wn(ke,Gt,Be||!e.directoryProbablyExists(e.getDirectoryPath(Gt),hn.host),hn)});return{value:Nn}}}var dn="__";function vn(ke,Qe){var gn=Cn(ke);return Qe.traceEnabled&&gn!==ke&&s(Qe.host,e.Diagnostics.Scoped_package_detected_looking_in_0,gn),gn}function o(ke){return"@types/"+Cn(ke)}e.getTypesPackageName=o;function Cn(ke){if(e.startsWith(ke,"@")){var Qe=ke.replace(e.directorySeparator,dn);if(Qe!==ke)return Qe.slice(1)}return ke}e.mangleScopedPackageName=Cn;function z(ke){var Qe=e.removePrefix(ke,"@types/");return Qe!==ke?tn(Qe):ke}e.getPackageNameFromTypesPackageName=z;function tn(ke){return e.stringContains(ke,dn)?"@"+ke.replace(dn,e.directorySeparator):ke}e.unmangleScopedPackageName=tn;function $n(ke,Qe,gn,xe){var Ze=ke&&ke.get(gn);if(Ze)return xe.traceEnabled&&s(xe.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Qe,gn),xe.resultFromCache=Ze,{value:Ze.resolvedModule&&{path:Ze.resolvedModule.resolvedFileName,originalPath:Ze.resolvedModule.originalPath||!0,extension:Ze.resolvedModule.extension,packageId:Ze.resolvedModule.packageId}}}function Un(ke,Qe,gn,xe,Ze,wn){var Be=ue(gn,xe),hn=[],Kn={compilerOptions:gn,host:xe,traceEnabled:Be,failedLookupLocations:hn,packageJsonInfoCache:Ze},Je=e.getDirectoryPath(Qe),En=Nn(ne.TypeScript)||Nn(ne.JavaScript);return O(En&&En.value,!1,hn,Kn.resultFromCache);function Nn(ct){var yt=F(ct,ke,Je,be,Kn);if(yt)return{value:yt};if(e.isExternalModuleNameRelative(ke)){var Ke=e.normalizePath(e.combinePaths(Je,ke));return Pe(be(ct,Ke,!1,Kn))}else{var Gt=Ze&&Ze.getOrCreateCacheForModuleName(ke,wn),$t=e.forEachAncestorDirectory(Je,function(Vn){var Zn=$n(Gt,ke,Vn,Kn);if(Zn)return Zn;var Re=e.normalizePath(e.combinePaths(Vn,ke));return Pe(be(ct,Re,!1,Kn))});if($t)return $t;if(ct===ne.TypeScript)return Ye(ke,Je,Kn)}}}e.classicNameResolver=Un;function oe(ke,Qe,gn,xe,Ze,wn){var Be=ue(gn,xe);Be&&s(xe,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,Qe,ke,Ze);var hn=[],Kn={compilerOptions:gn,host:xe,traceEnabled:Be,failedLookupLocations:hn,packageJsonInfoCache:wn},Je=je(ne.DtsOnly,ke,Ze,Kn,!1);return O(Je,!0,hn,Kn.resultFromCache)}e.loadModuleFromGlobalCache=oe;function Pe(ke){return ke!==void 0?{value:ke}:void 0}})(mn||(mn={}));var mn;(function(e){var s;(function(v){v[v.NonInstantiated=0]="NonInstantiated",v[v.Instantiated=1]="Instantiated",v[v.ConstEnumOnly=2]="ConstEnumOnly"})(s=e.ModuleInstanceState||(e.ModuleInstanceState={}));function ue(v,W){return v.body&&!v.body.parent&&(e.setParent(v.body,v),e.setParentRecursive(v.body,!1)),v.body?ee(v.body,W):1}e.getModuleInstanceState=ue;function ee(v,W){W===void 0&&(W=new e.Map);var x=e.getNodeId(v);if(W.has(x))return W.get(x)||0;W.set(x,void 0);var $=Y(v,W);return W.set(x,$),$}function Y(v,W){switch(v.kind){case 256:case 257:return 0;case 258:if(e.isEnumConst(v))return 2;break;case 264:case 263:if(!e.hasSyntacticModifier(v,1))return 0;break;case 270:var x=v;if(!x.moduleSpecifier&&x.exportClause&&x.exportClause.kind===271){for(var $=0,L=0,E=x.exportClause.elements;L<E.length;L++){var ae=E[L],X=V(ae,W);if(X>$&&($=X),$===1)return $}return $}break;case 260:{var ie=0;return e.forEachChild(v,function(le){var P=ee(le,W);switch(P){case 0:return;case 2:ie=2;return;case 1:return ie=1,!0;default:e.Debug.assertNever(P)}}),ie}case 259:return ue(v,W);case 79:if(v.isInJSDocNamespace)return 0}return 1}function V(v,W){for(var x=v.propertyName||v.name,$=v.parent;$;){if(e.isBlock($)||e.isModuleBlock($)||e.isSourceFile($)){for(var L=$.statements,E=void 0,ae=0,X=L;ae<X.length;ae++){var ie=X[ae];if(e.nodeHasName(ie,x)){ie.parent||(e.setParent(ie,$),e.setParentRecursive(ie,!1));var le=ee(ie,W);if((E===void 0||le>E)&&(E=le),E===1)return E}}if(E!==void 0)return E}$=$.parent}return 1}var ne;(function(v){v[v.None=0]="None",v[v.IsContainer=1]="IsContainer",v[v.IsBlockScopedContainer=2]="IsBlockScopedContainer",v[v.IsControlFlowContainer=4]="IsControlFlowContainer",v[v.IsFunctionLike=8]="IsFunctionLike",v[v.IsFunctionExpression=16]="IsFunctionExpression",v[v.HasLocals=32]="HasLocals",v[v.IsInterface=64]="IsInterface",v[v.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"})(ne||(ne={}));function _e(v){return e.Debug.attachFlowNodeDebugInfo(v),v}var O=b();function w(v,W){e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:v.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+v.fileName),O(v,W),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}e.bindSourceFile=w;function b(){var v,W,x,$,L,E,ae,X,ie,le,P,I,re,B,A,f,F,g,p,d,T,m,k=!1,N=0,D,R,me={flags:1},q={flags:1},J=Ln();function C(he,Jn,Ee,Mn,dr){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(he)||v,he,Jn,Ee,Mn,dr)}function we(he,Jn){v=he,W=Jn,x=e.getEmitScriptTarget(W),m=Oe(v,Jn),R=new e.Set,N=0,D=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(me),e.Debug.attachFlowNodeDebugInfo(q),v.locals||(Ca(v),v.symbolCount=N,v.classifiableNames=R,Yt()),v=void 0,W=void 0,x=void 0,$=void 0,L=void 0,E=void 0,ae=void 0,X=void 0,ie=void 0,le=!1,P=void 0,I=void 0,re=void 0,B=void 0,A=void 0,f=void 0,F=void 0,p=void 0,d=!1,k=!1,T=0}return we;function Oe(he,Jn){return e.getStrictOptionValue(Jn,"alwaysStrict")&&!he.isDeclarationFile?!0:!!he.externalModuleIndicator}function te(he,Jn){return N++,new D(he,Jn)}function Te(he,Jn,Ee){he.flags|=Ee,Jn.symbol=he,he.declarations=e.appendIfUnique(he.declarations,Jn),Ee&(32|384|1536|3)&&!he.exports&&(he.exports=e.createSymbolTable()),Ee&(32|64|2048|4096)&&!he.members&&(he.members=e.createSymbolTable()),he.constEnumOnlyModule&&he.flags&(16|32|256)&&(he.constEnumOnlyModule=!1),Ee&111551&&e.setValueDeclaration(he,Jn)}function be(he){if(he.kind===269)return he.isExportEquals?"export=":"default";var Jn=e.getNameOfDeclaration(he);if(Jn){if(e.isAmbientModule(he)){var Ee=e.getTextOfIdentifierOrLiteral(Jn);return e.isGlobalScopeAugmentation(he)?"__global":'"'+Ee+'"'}if(Jn.kind===160){var Mn=Jn.expression;if(e.isStringOrNumericLiteralLike(Mn))return e.escapeLeadingUnderscores(Mn.text);if(e.isSignedNumericLiteral(Mn))return e.tokenToString(Mn.operator)+Mn.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(Jn)){var dr=e.getContainingClass(he);if(!dr)return;var Yr=dr.symbol;return e.getSymbolNameForPrivateIdentifier(Yr,Jn.escapedText)}return e.isPropertyNameLiteral(Jn)?e.getEscapedTextOfIdentifierOrLiteral(Jn):void 0}switch(he.kind){case 169:return"__constructor";case 177:case 172:case 318:return"__call";case 178:case 173:return"__new";case 174:return"__index";case 270:return"__export";case 300:return"export=";case 219:if(e.getAssignmentDeclarationKind(he)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 312:return e.isJSDocConstructSignature(he)?"__new":"__call";case 162:e.Debug.assert(he.parent.kind===312,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[he.parent.kind]:he.parent.kind)+", expected JSDocFunctionType"});var da=he.parent,ya=da.parameters.indexOf(he);return"arg"+ya}}function Ce(he){return e.isNamedDeclaration(he)?e.declarationNameToString(he.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(be(he)))}function Ue(he,Jn,Ee,Mn,dr,Yr,da){e.Debug.assert(da||!e.hasDynamicName(Ee));var ya=e.hasSyntacticModifier(Ee,512)||e.isExportSpecifier(Ee)&&Ee.name.escapedText==="default",bo=da?"__computed":ya&&Jn?"default":be(Ee),On;if(bo===void 0)On=te(0,"__missing");else if(On=he.get(bo),Mn&2885600&&R.add(bo),!On)he.set(bo,On=te(0,bo)),Yr&&(On.isReplaceableByMethod=!0);else{if(Yr&&!On.isReplaceableByMethod)return On;if(On.flags&dr){if(On.isReplaceableByMethod)he.set(bo,On=te(0,bo));else if(!(Mn&3&&On.flags&67108864)){e.isNamedDeclaration(Ee)&&e.setParent(Ee.name,Ee);var Bo=On.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,ps=!0;(On.flags&384||Mn&384)&&(Bo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,ps=!1);var ms=!1;e.length(On.declarations)&&((ya||On.declarations&&On.declarations.length&&Ee.kind===269&&!Ee.isExportEquals)&&(Bo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,ps=!1,ms=!0));var _l=[];e.isTypeAliasDeclaration(Ee)&&e.nodeIsMissing(Ee.type)&&e.hasSyntacticModifier(Ee,1)&&On.flags&(2097152|788968|1920)&&_l.push(C(Ee,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(Ee.name.escapedText)+" }"));var Gi=e.getNameOfDeclaration(Ee)||Ee;e.forEach(On.declarations,function(pl,Ec){var lc=e.getNameOfDeclaration(pl)||pl,Pc=C(lc,Bo,ps?Ce(pl):void 0);v.bindDiagnostics.push(ms?e.addRelatedInfo(Pc,C(Gi,Ec===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):Pc),ms&&_l.push(C(lc,e.Diagnostics.The_first_export_default_is_here))});var qs=C(Gi,Bo,ps?Ce(Ee):void 0);v.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,Mt([qs],_l,!1))),On=te(0,bo)}}}return Te(On,Ee,Mn),On.parent?e.Debug.assert(On.parent===Jn,"Existing symbol parent should match new one"):On.parent=Jn,On}function Se(he,Jn,Ee){var Mn=!!(e.getCombinedModifierFlags(he)&1)||$e(he);if(Jn&2097152)return he.kind===273||he.kind===263&&Mn?Ue(L.symbol.exports,L.symbol,he,Jn,Ee):Ue(L.locals,void 0,he,Jn,Ee);if(e.isJSDocTypeAlias(he)&&e.Debug.assert(e.isInJSFile(he)),!e.isAmbientModule(he)&&(Mn||L.flags&64)){if(!L.locals||e.hasSyntacticModifier(he,512)&&!be(he))return Ue(L.symbol.exports,L.symbol,he,Jn,Ee);var dr=Jn&111551?1048576:0,Yr=Ue(L.locals,void 0,he,dr,Ee);return Yr.exportSymbol=Ue(L.symbol.exports,L.symbol,he,Jn,Ee),he.localSymbol=Yr,Yr}else return Ue(L.locals,void 0,he,Jn,Ee)}function $e(he){if(he.parent&&e.isModuleDeclaration(he)&&(he=he.parent),!e.isJSDocTypeAlias(he))return!1;if(!e.isJSDocEnumTag(he)&&!!he.fullName)return!0;var Jn=e.getNameOfDeclaration(he);return Jn?e.isPropertyAccessEntityNameExpression(Jn.parent)&&wa(Jn.parent)?!0:!!(e.isDeclaration(Jn.parent)&&e.getCombinedModifierFlags(Jn.parent)&1):!1}function ce(he,Jn){var Ee=L,Mn=E,dr=ae;if(Jn&1?(he.kind!==212&&(E=L),L=ae=he,Jn&32&&(L.locals=e.createSymbolTable()),Wr(L)):Jn&2&&(ae=he,ae.locals=void 0),Jn&4){var Yr=P,da=I,ya=re,bo=B,On=F,Bo=p,ps=d,ms=Jn&16&&!e.hasSyntacticModifier(he,256)&&!he.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(he);ms||(P=_e({flags:2}),Jn&(16|128)&&(P.node=he)),B=ms||he.kind===169||he.kind===168||e.isInJSFile(he)&&(he.kind===254||he.kind===211)?vn():void 0,F=void 0,I=void 0,re=void 0,p=void 0,d=!1,Me(he),he.flags&=~2816,!(P.flags&1)&&Jn&8&&e.nodeIsPresent(he.body)&&(he.flags|=256,d&&(he.flags|=512),he.endFlowNode=P),he.kind===300&&(he.flags|=T,he.endFlowNode=P),B&&(tn(B,P),P=ke(B),(he.kind===169||he.kind===168||e.isInJSFile(he)&&(he.kind===254||he.kind===211))&&(he.returnFlowNode=P)),ms||(P=Yr),I=da,re=ya,B=bo,F=On,p=Bo,d=ps}else Jn&64?(le=!1,Me(he),he.flags=le?he.flags|128:he.flags&~128):Me(he);L=Ee,E=Mn,ae=dr}function Le(he){qe(he,function(Jn){return Jn.kind===254?Ca(Jn):void 0}),qe(he,function(Jn){return Jn.kind!==254?Ca(Jn):void 0})}function qe(he,Jn){if(Jn===void 0&&(Jn=Ca),he===void 0)return;e.forEach(he,Jn)}function pe(he){e.forEachChild(he,Ca,qe)}function Me(he){var Jn=k;if(k=!1,nl(he)){pe(he),ai(he),k=Jn;return}he.kind>=235&&he.kind<=251&&!W.allowUnreachableCode&&(he.flowNode=P);switch(he.kind){case 239:Je(he);break;case 238:En(he);break;case 240:Nn(he);break;case 241:case 242:ct(he);break;case 237:yt(he);break;case 245:case 249:Gt(he);break;case 244:case 243:Vn(he);break;case 250:Zn(he);break;case 247:Re(he);break;case 261:Pn(he);break;case 287:rt(he);break;case 236:Yn(he);break;case 248:lt(he);break;case 217:An(he);break;case 218:Fn(he);break;case 219:if(e.isDestructuringAssignment(he)){k=Jn,ln(he);return}J(he);break;case 213:Xe(he);break;case 220:Dn(he);break;case 252:qn(he);break;case 204:case 205:Ht(he);break;case 206:Xr(he);break;case 228:mr(he);break;case 340:case 333:case 334:ht(he);break;case 300:{Le(he.statements),Ca(he.endOfFileToken);break}case 233:case 260:Le(he.statements);break;case 201:it(he);break;case 203:case 202:case 291:case 223:k=Jn;default:pe(he);break}ai(he),k=Jn}function fn(he){switch(he.kind){case 79:case 80:case 108:case 204:case 205:return Ne(he);case 206:return je(he);case 210:case 228:return fn(he.expression);case 219:return Wn(he);case 217:return he.operator===53&&fn(he.operand);case 214:return fn(he.expression)}return!1}function Ye(he){return e.isDottedName(he)||(e.isPropertyAccessExpression(he)||e.isNonNullExpression(he)||e.isParenthesizedExpression(he))&&Ye(he.expression)||e.isBinaryExpression(he)&&he.operatorToken.kind===27&&Ye(he.right)||e.isElementAccessExpression(he)&&e.isStringOrNumericLiteralLike(he.argumentExpression)&&Ye(he.expression)||e.isAssignmentExpression(he)&&Ye(he.left)}function Ne(he){return Ye(he)||e.isOptionalChain(he)&&Ne(he.expression)}function je(he){if(he.arguments)for(var Jn=0,Ee=he.arguments;Jn<Ee.length;Jn++){var Mn=Ee[Jn];if(Ne(Mn))return!0}return!!(he.expression.kind===204&&Ne(he.expression.expression))}function xn(he,Jn){return e.isTypeOfExpression(he)&&dn(he.expression)&&e.isStringLiteralLike(Jn)}function Wn(he){switch(he.operatorToken.kind){case 63:case 75:case 76:case 77:return Ne(he.left);case 34:case 35:case 36:case 37:return dn(he.left)||dn(he.right)||xn(he.right,he.left)||xn(he.left,he.right);case 102:return dn(he.left);case 101:return fn(he.right);case 27:return fn(he.right)}return!1}function dn(he){switch(he.kind){case 210:return dn(he.expression);case 219:switch(he.operatorToken.kind){case 63:return dn(he.left);case 27:return dn(he.right)}}return Ne(he)}function vn(){return _e({flags:4,antecedents:void 0})}function o(){return _e({flags:8,antecedents:void 0})}function Cn(he,Jn,Ee){return _e({flags:1024,target:he,antecedents:Jn,antecedent:Ee})}function z(he){he.flags|=he.flags&2048?4096:2048}function tn(he,Jn){!(Jn.flags&1)&&!e.contains(he.antecedents,Jn)&&((he.antecedents||(he.antecedents=[])).push(Jn),z(Jn))}function $n(he,Jn,Ee){return Jn.flags&1?Jn:Ee?(Ee.kind===110&&he&64||Ee.kind===95&&he&32)&&!e.isExpressionOfOptionalChainRoot(Ee)&&!e.isNullishCoalesce(Ee.parent)?me:fn(Ee)?(z(Jn),_e({flags:he,antecedent:Jn,node:Ee})):Jn:he&32?Jn:me}function Un(he,Jn,Ee,Mn){return z(he),_e({flags:128,antecedent:he,switchStatement:Jn,clauseStart:Ee,clauseEnd:Mn})}function oe(he,Jn,Ee){z(Jn);var Mn=_e({flags:he,antecedent:Jn,node:Ee});return F&&tn(F,Mn),Mn}function Pe(he,Jn){return z(he),_e({flags:512,antecedent:he,node:Jn})}function ke(he){var Jn=he.antecedents;return Jn?Jn.length===1?Jn[0]:he:me}function Qe(he){var Jn=he.parent;switch(Jn.kind){case 237:case 239:case 238:return Jn.expression===he;case 240:case 220:return Jn.condition===he}return!1}function gn(he){for(;;)if(he.kind===210)he=he.expression;else if(he.kind===217&&he.operator===53)he=he.operand;else return he.kind===219&&(he.operatorToken.kind===55||he.operatorToken.kind===56||he.operatorToken.kind===60)}function xe(he){return he=e.skipParentheses(he),e.isBinaryExpression(he)&&e.isLogicalOrCoalescingAssignmentOperator(he.operatorToken.kind)}function Ze(he){for(;e.isParenthesizedExpression(he.parent)||e.isPrefixUnaryExpression(he.parent)&&he.parent.operator===53;)he=he.parent;return!Qe(he)&&!xe(he.parent)&&!gn(he.parent)&&!(e.isOptionalChain(he.parent)&&he.parent.expression===he)}function wn(he,Jn,Ee,Mn){var dr=A,Yr=f;A=Ee,f=Mn,he(Jn),A=dr,f=Yr}function Be(he,Jn,Ee){wn(Ca,he,Jn,Ee),(!he||!xe(he)&&!gn(he)&&!(e.isOptionalChain(he)&&e.isOutermostOptionalChain(he)))&&(tn(Jn,$n(32,P,he)),tn(Ee,$n(64,P,he)))}function hn(he,Jn,Ee){var Mn=I,dr=re;I=Jn,re=Ee,Ca(he),I=Mn,re=dr}function Kn(he,Jn){for(var Ee=p;Ee&&he.parent.kind===248;)Ee.continueTarget=Jn,Ee=Ee.next,he=he.parent;return Jn}function Je(he){var Jn=Kn(he,o()),Ee=vn(),Mn=vn();tn(Jn,P),P=Jn,Be(he.expression,Ee,Mn),P=ke(Ee),hn(he.statement,Mn,Jn),tn(Jn,P),P=ke(Mn)}function En(he){var Jn=o(),Ee=Kn(he,vn()),Mn=vn();tn(Jn,P),P=Jn,hn(he.statement,Mn,Ee),tn(Ee,P),P=ke(Ee),Be(he.expression,Jn,Mn),P=ke(Mn)}function Nn(he){var Jn=Kn(he,o()),Ee=vn(),Mn=vn();Ca(he.initializer),tn(Jn,P),P=Jn,Be(he.condition,Ee,Mn),P=ke(Ee),hn(he.statement,Mn,Jn),Ca(he.incrementor),tn(Jn,P),P=ke(Mn)}function ct(he){var Jn=Kn(he,o()),Ee=vn();Ca(he.expression),tn(Jn,P),P=Jn,he.kind===242&&Ca(he.awaitModifier),tn(Ee,P),Ca(he.initializer),he.initializer.kind!==253&&Bn(he.initializer),hn(he.statement,Ee,Jn),tn(Jn,P),P=ke(Ee)}function yt(he){var Jn=vn(),Ee=vn(),Mn=vn();Be(he.expression,Jn,Ee),P=ke(Jn),Ca(he.thenStatement),tn(Mn,P),P=ke(Ee),Ca(he.elseStatement),tn(Mn,P),P=ke(Mn)}function Gt(he){Ca(he.expression),he.kind===245&&(d=!0,B&&tn(B,P)),P=me}function $t(he){for(var Jn=p;Jn;Jn=Jn.next)if(Jn.name===he)return Jn;return}function Ke(he,Jn,Ee){var Mn=he.kind===244?Jn:Ee;Mn&&(tn(Mn,P),P=me)}function Vn(he){if(Ca(he.label),he.label){var Jn=$t(he.label.escapedText);Jn&&(Jn.referenced=!0,Ke(he,Jn.breakTarget,Jn.continueTarget))}else Ke(he,I,re)}function Zn(he){var Jn=B,Ee=F,Mn=vn(),dr=vn(),Yr=vn();if(he.finallyBlock&&(B=dr),tn(Yr,P),F=Yr,Ca(he.tryBlock),tn(Mn,P),he.catchClause&&(P=ke(Yr),Yr=vn(),tn(Yr,P),F=Yr,Ca(he.catchClause),tn(Mn,P)),B=Jn,F=Ee,he.finallyBlock){var da=vn();da.antecedents=e.concatenate(e.concatenate(Mn.antecedents,Yr.antecedents),dr.antecedents),P=da,Ca(he.finallyBlock),P.flags&1?P=me:(B&&dr.antecedents&&tn(B,Cn(da,dr.antecedents,P)),F&&Yr.antecedents&&tn(F,Cn(da,Yr.antecedents,P)),P=Mn.antecedents?Cn(da,Mn.antecedents,P):me)}else P=ke(Mn)}function Re(he){var Jn=vn();Ca(he.expression);var Ee=I,Mn=g;I=Jn,g=P,Ca(he.caseBlock),tn(Jn,P);var dr=e.forEach(he.caseBlock.clauses,function(Yr){return Yr.kind===288});he.possiblyExhaustive=!dr&&!Jn.antecedents,dr||tn(Jn,Un(g,he,0,0)),I=Ee,g=Mn,P=ke(Jn)}function Pn(he){for(var Jn=he.clauses,Ee=fn(he.parent.expression),Mn=me,dr=0;dr<Jn.length;dr++){for(var Yr=dr;!Jn[dr].statements.length&&dr+1<Jn.length;)Ca(Jn[dr]),dr++;var da=vn();tn(da,Ee?Un(g,he.parent,Yr,dr+1):g),tn(da,Mn),P=ke(da);var ya=Jn[dr];Ca(ya),Mn=P,!(P.flags&1)&&dr!==Jn.length-1&&W.noFallthroughCasesInSwitch&&(ya.fallthroughFlowNode=P)}}function rt(he){var Jn=P;P=g,Ca(he.expression),P=Jn,qe(he.statements)}function Yn(he){Ca(he.expression),gt(he.expression)}function gt(he){if(he.kind===206){var Jn=he;Jn.expression.kind!==106&&e.isDottedName(Jn.expression)&&(P=Pe(P,Jn))}}function lt(he){var Jn=vn();p={next:p,name:he.label.escapedText,breakTarget:Jn,continueTarget:void 0,referenced:!1},Ca(he.label),Ca(he.statement),!p.referenced&&!W.allowUnusedLabels&&mo(e.unusedLabelIsError(W),he.label,e.Diagnostics.Unused_label),p=p.next,tn(Jn,P),P=ke(Jn)}function Fe(he){he.kind===219&&he.operatorToken.kind===63?Bn(he.left):Bn(he)}function Bn(he){if(Ye(he))P=oe(16,P,he);else if(he.kind===202)for(var Jn=0,Ee=he.elements;Jn<Ee.length;Jn++){var Mn=Ee[Jn];Mn.kind===223?Bn(Mn.expression):Fe(Mn)}else if(he.kind===203)for(var dr=0,Yr=he.properties;dr<Yr.length;dr++){var da=Yr[dr];da.kind===291?Fe(da.initializer):da.kind===292?Bn(da.name):da.kind===293&&Bn(da.expression)}}function K(he,Jn,Ee){var Mn=vn();he.operatorToken.kind===55||he.operatorToken.kind===76?Be(he.left,Mn,Ee):Be(he.left,Jn,Mn),P=ke(Mn),Ca(he.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(he.operatorToken.kind)?(wn(Ca,he.right,Jn,Ee),Bn(he.left),tn(Jn,$n(32,P,he)),tn(Ee,$n(64,P,he))):Be(he.right,Jn,Ee)}function An(he){if(he.operator===53){var Jn=A;A=f,f=Jn,pe(he),f=A,A=Jn}else pe(he),(he.operator===45||he.operator===46)&&Bn(he.operand)}function Fn(he){pe(he),(he.operator===45||he.operator===46)&&Bn(he.operand)}function ln(he){k?(k=!1,Ca(he.operatorToken),Ca(he.right),k=!0,Ca(he.left)):(k=!0,Ca(he.left),k=!1,Ca(he.operatorToken),Ca(he.right)),Bn(he.left)}function Ln(){return e.createBinaryExpressionTrampoline(he,Jn,Ee,Mn,dr,void 0);function he(da,ya){if(ya){ya.stackIndex++,e.setParent(da,$);var bo=m;Lo(da);var On=$;$=da,ya.skip=!1,ya.inStrictModeStack[ya.stackIndex]=bo,ya.parentStack[ya.stackIndex]=On}else ya={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var Bo=da.operatorToken.kind;if(Bo===55||Bo===56||Bo===60||e.isLogicalOrCoalescingAssignmentOperator(Bo)){if(Ze(da)){var ps=vn();K(da,ps,ps),P=ke(ps)}else K(da,A,f);ya.skip=!0}return ya}function Jn(da,ya,bo){if(!ya.skip)return Yr(da)}function Ee(da,ya,bo){ya.skip||(da.kind===27&>(bo.left),Ca(da))}function Mn(da,ya,bo){if(!ya.skip)return Yr(da)}function dr(da,ya){if(!ya.skip){var bo=da.operatorToken.kind;if(e.isAssignmentOperator(bo)&&!e.isAssignmentTarget(da)&&(Bn(da.left),bo===63&&da.left.kind===205)){var On=da.left;dn(On.expression)&&(P=oe(256,P,da))}}var Bo=ya.inStrictModeStack[ya.stackIndex],ps=ya.parentStack[ya.stackIndex];Bo!==void 0&&(m=Bo),ps!==void 0&&($=ps),ya.skip=!1,ya.stackIndex--}function Yr(da){if(da&&e.isBinaryExpression(da)&&!e.isDestructuringAssignment(da))return da;Ca(da)}}function Xe(he){pe(he),he.expression.kind===204&&Bn(he.expression)}function Dn(he){var Jn=vn(),Ee=vn(),Mn=vn();Be(he.condition,Jn,Ee),P=ke(Jn),Ca(he.questionToken),Ca(he.whenTrue),tn(Mn,P),P=ke(Ee),Ca(he.colonToken),Ca(he.whenFalse),tn(Mn,P),P=ke(Mn)}function rn(he){var Jn=e.isOmittedExpression(he)?void 0:he.name;if(e.isBindingPattern(Jn))for(var Ee=0,Mn=Jn.elements;Ee<Mn.length;Ee++){var dr=Mn[Ee];rn(dr)}else P=oe(16,P,he)}function qn(he){pe(he),(he.initializer||e.isForInOrOfStatement(he.parent.parent))&&rn(he)}function it(he){e.isBindingPattern(he.name)?(qe(he.decorators),qe(he.modifiers),Ca(he.dotDotDotToken),Ca(he.propertyName),Ca(he.initializer),Ca(he.name)):pe(he)}function ht(he){Ca(he.tagName),he.kind!==334&&he.fullName&&(e.setParent(he.fullName,he),e.setParentRecursive(he.fullName,!1)),typeof he.comment!="string"&&qe(he.comment)}function Et(he){pe(he);var Jn=e.getHostSignatureFromJSDoc(he);Jn&&Jn.kind!==167&&Te(Jn.symbol,Jn,32)}function zt(he,Jn,Ee){wn(Ca,he,Jn,Ee),(!e.isOptionalChain(he)||e.isOutermostOptionalChain(he))&&(tn(Jn,$n(32,P,he)),tn(Ee,$n(64,P,he)))}function fr(he){switch(he.kind){case 204:Ca(he.questionDotToken),Ca(he.name);break;case 205:Ca(he.questionDotToken),Ca(he.argumentExpression);break;case 206:Ca(he.questionDotToken),qe(he.typeArguments),qe(he.arguments);break}}function br(he,Jn,Ee){var Mn=e.isOptionalChainRoot(he)?vn():void 0;zt(he.expression,Mn||Jn,Ee),Mn&&(P=ke(Mn)),wn(fr,he,Jn,Ee),e.isOutermostOptionalChain(he)&&(tn(Jn,$n(32,P,he)),tn(Ee,$n(64,P,he)))}function Jt(he){if(Ze(he)){var Jn=vn();br(he,Jn,Jn),P=ke(Jn)}else br(he,A,f)}function mr(he){e.isOptionalChain(he)?Jt(he):pe(he)}function Ht(he){e.isOptionalChain(he)?Jt(he):pe(he)}function Xr(he){if(e.isOptionalChain(he))Jt(he);else{var Jn=e.skipParentheses(he.expression);Jn.kind===211||Jn.kind===212?(qe(he.typeArguments),qe(he.arguments),Ca(he.expression)):(pe(he),he.expression.kind===106&&(P=Pe(P,he)))}if(he.expression.kind===204){var Ee=he.expression;e.isIdentifier(Ee.name)&&dn(Ee.expression)&&e.isPushOrUnshiftIdentifier(Ee.name)&&(P=oe(256,P,he))}}function At(he){switch(he.kind){case 224:case 255:case 258:case 203:case 180:case 317:case 284:return 1;case 256:return 1|64;case 259:case 257:case 193:return 1|32;case 300:return 1|4|32;case 167:if(e.isObjectLiteralOrClassExpressionMethod(he))return 1|4|32|8|128;case 169:case 254:case 166:case 170:case 171:case 172:case 318:case 312:case 177:case 173:case 174:case 178:case 168:return 1|4|32|8;case 211:case 212:return 1|4|32|8|16;case 260:return 4;case 165:return he.initializer?4:0;case 290:case 240:case 241:case 242:case 261:return 2;case 233:return e.isFunctionLike(he.parent)||e.isClassStaticBlockDeclaration(he.parent)?0:2}return 0}function Wr(he){X&&(X.nextContainer=he),X=he}function Or(he,Jn,Ee){switch(L.kind){case 259:return Se(he,Jn,Ee);case 300:return qa(he,Jn,Ee);case 224:case 255:return Ja(he,Jn,Ee);case 258:return Ue(L.symbol.exports,L.symbol,he,Jn,Ee);case 180:case 317:case 203:case 256:case 284:return Ue(L.symbol.members,L.symbol,he,Jn,Ee);case 177:case 178:case 172:case 173:case 318:case 174:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 312:case 340:case 333:case 168:case 257:case 193:return Ue(L.locals,void 0,he,Jn,Ee)}}function Ja(he,Jn,Ee){return e.isStatic(he)?Ue(L.symbol.exports,L.symbol,he,Jn,Ee):Ue(L.symbol.members,L.symbol,he,Jn,Ee)}function qa(he,Jn,Ee){return e.isExternalModule(v)?Se(he,Jn,Ee):Ue(v.locals,void 0,he,Jn,Ee)}function eo(he){var Jn=e.isSourceFile(he)?he:e.tryCast(he.body,e.isModuleBlock);return!!Jn&&Jn.statements.some(function(Ee){return e.isExportDeclaration(Ee)||e.isExportAssignment(Ee)})}function Va(he){he.flags&8388608&&!eo(he)?he.flags|=64:he.flags&=~64}function la(he){if(Va(he),e.isAmbientModule(he))if(e.hasSyntacticModifier(he,1)&&Qi(he,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(he))wt(he);else{var Jn=void 0;if(he.name.kind===10){var Ee=he.name.text;Jn=e.tryParsePattern(Ee),Jn===void 0&&Qi(he.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Ee)}var Mn=Or(he,512,110735);v.patternAmbientModules=e.append(v.patternAmbientModules,Jn&&!e.isString(Jn)?{pattern:Jn,symbol:Mn}:void 0)}else{var dr=wt(he);if(dr!==0){var Mn=he.symbol;Mn.constEnumOnlyModule=!(Mn.flags&(16|32|256))&&dr===2&&Mn.constEnumOnlyModule!==!1}}}function wt(he){var Jn=ue(he),Ee=Jn!==0;return Or(he,Ee?512:1024,Ee?110735:0),Jn}function rr(he){var Jn=te(131072,be(he));Te(Jn,he,131072);var Ee=te(2048,"__type");Te(Ee,he,2048),Ee.members=e.createSymbolTable(),Ee.members.set(Jn.escapedName,Jn)}function Wt(he){var Jn;if(function(Bo){Bo[Bo.Property=1]="Property",Bo[Bo.Accessor=2]="Accessor"}(Jn||(Jn={})),m&&!e.isAssignmentTarget(he))for(var Ee=new e.Map,Mn=0,dr=he.properties;Mn<dr.length;Mn++){var Yr=dr[Mn];if(Yr.kind===293||Yr.name.kind!==79)continue;var da=Yr.name,ya=Yr.kind===291||Yr.kind===292||Yr.kind===167?1:2,bo=Ee.get(da.escapedText);if(!bo){Ee.set(da.escapedText,ya);continue}if(ya===1&&bo===1){var On=e.getErrorSpanForNode(v,da);v.bindDiagnostics.push(e.createFileDiagnostic(v,On.start,On.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}return Lt(he,4096,"__object")}function Pr(he){return Lt(he,4096,"__jsxAttributes")}function ra(he,Jn,Ee){return Or(he,Jn,Ee)}function Lt(he,Jn,Ee){var Mn=te(Jn,Ee);return Jn&(8|106500)&&(Mn.parent=L.symbol),Te(Mn,he,Jn),Mn}function xt(he,Jn,Ee){switch(ae.kind){case 259:Se(he,Jn,Ee);break;case 300:if(e.isExternalOrCommonJsModule(L)){Se(he,Jn,Ee);break}default:ae.locals||(ae.locals=e.createSymbolTable(),Wr(ae)),Ue(ae.locals,void 0,he,Jn,Ee)}}function Yt(){if(!ie)return;for(var he=L,Jn=X,Ee=ae,Mn=$,dr=P,Yr=0,da=ie;Yr<da.length;Yr++){var ya=da[Yr],bo=ya.parent.parent;L=e.findAncestor(bo.parent,function(ms){return!!(At(ms)&1)})||v,ae=e.getEnclosingBlockScopeContainer(bo)||v,P=_e({flags:2}),$=ya,Ca(ya.typeExpression);var On=e.getNameOfDeclaration(ya);if((e.isJSDocEnumTag(ya)||!ya.fullName)&&On&&e.isPropertyAccessEntityNameExpression(On.parent)){var Bo=wa(On.parent);if(Bo){_r(v.symbol,On.parent,Bo,!!e.findAncestor(On,function(ms){return e.isPropertyAccessExpression(ms)&&ms.name.escapedText==="prototype"}),!1);var ps=L;switch(e.getAssignmentDeclarationPropertyAccessKind(On.parent)){case 1:case 2:e.isExternalOrCommonJsModule(v)?L=v:L=void 0;break;case 4:L=On.parent.expression;break;case 3:L=On.parent.expression.name;break;case 5:L=U(v,On.parent.expression)?v:e.isPropertyAccessExpression(On.parent.expression)?On.parent.expression.name:On.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}L&&Se(ya,524288,788968),L=ps}}else e.isJSDocEnumTag(ya)||!ya.fullName||ya.fullName.kind===79?($=ya.parent,xt(ya,524288,788968)):Ca(ya.fullName)}L=he,X=Jn,ae=Ee,$=Mn,P=dr}function Qt(he){!v.parseDiagnostics.length&&!(he.flags&8388608)&&!(he.flags&4194304)&&!e.isIdentifierName(he)&&(m&&he.originalKeywordKind>=117&&he.originalKeywordKind<=125?v.bindDiagnostics.push(C(he,sr(he),e.declarationNameToString(he))):he.originalKeywordKind===131?e.isExternalModule(v)&&e.isInTopLevelContext(he)?v.bindDiagnostics.push(C(he,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(he))):he.flags&32768&&v.bindDiagnostics.push(C(he,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(he))):he.originalKeywordKind===125&&he.flags&8192&&v.bindDiagnostics.push(C(he,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(he))))}function sr(he){return e.getContainingClass(he)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:v.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function at(he){he.escapedText==="#constructor"&&(v.parseDiagnostics.length||v.bindDiagnostics.push(C(he,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(he))))}function ea(he){m&&e.isLeftHandSideExpression(he.left)&&e.isAssignmentOperator(he.operatorToken.kind)&&Qr(he,he.left)}function Fa(he){m&&he.variableDeclaration&&Qr(he,he.variableDeclaration.name)}function li(he){if(m&&he.expression.kind===79){var Jn=e.getErrorSpanForNode(v,he.expression);v.bindDiagnostics.push(e.createFileDiagnostic(v,Jn.start,Jn.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Si(he){return e.isIdentifier(he)&&(he.escapedText==="eval"||he.escapedText==="arguments")}function Qr(he,Jn){if(Jn&&Jn.kind===79){var Ee=Jn;if(Si(Ee)){var Mn=e.getErrorSpanForNode(v,Jn);v.bindDiagnostics.push(e.createFileDiagnostic(v,Mn.start,Mn.length,ci(he),e.idText(Ee)))}}}function ci(he){return e.getContainingClass(he)?e.Diagnostics.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:v.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Mi(he){m&&Qr(he,he.name)}function ro(he){return e.getContainingClass(he)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:v.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function xi(he){if(x<2&&(ae.kind!==300&&ae.kind!==259&&!e.isFunctionLikeOrClassStaticBlockDeclaration(ae))){var Jn=e.getErrorSpanForNode(v,he);v.bindDiagnostics.push(e.createFileDiagnostic(v,Jn.start,Jn.length,ro(he)))}}function ui(he){m&&he.numericLiteralFlags&32&&v.bindDiagnostics.push(C(he,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function lo(he){m&&Qr(he,he.operand)}function xo(he){m&&((he.operator===45||he.operator===46)&&Qr(he,he.operand))}function Vi(he){m&&Qi(he,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function os(he){m&&W.target>=2&&((e.isDeclarationStatement(he.statement)||e.isVariableStatement(he.statement))&&Qi(he.label,e.Diagnostics.A_label_is_not_allowed_here))}function Qi(he,Jn,Ee,Mn,dr){var Yr=e.getSpanOfTokenAtPosition(v,he.pos);v.bindDiagnostics.push(e.createFileDiagnostic(v,Yr.start,Yr.length,Jn,Ee,Mn,dr))}function mo(he,Jn,Ee){Rs(he,Jn,Jn,Ee)}function Rs(he,Jn,Ee,Mn){Ls(he,{pos:e.getTokenPosOfNode(Jn,v),end:Ee.end},Mn)}function Ls(he,Jn,Ee){var Mn=e.createFileDiagnostic(v,Jn.pos,Jn.end-Jn.pos,Ee);he?v.bindDiagnostics.push(Mn):v.bindSuggestionDiagnostics=e.append(v.bindSuggestionDiagnostics,pr(pr({},Mn),{category:e.DiagnosticCategory.Suggestion}))}function Ca(he){if(!he)return;e.setParent(he,$);var Jn=m;if(Lo(he),he.kind>158){var Ee=$;$=he;var Mn=At(he);Mn===0?Me(he):ce(he,Mn),$=Ee}else{var Ee=$;he.kind===1&&($=he),ai(he),$=Ee}m=Jn}function ai(he){if(e.hasJSDocNodes(he))if(e.isInJSFile(he))for(var Jn=0,Ee=he.jsDoc;Jn<Ee.length;Jn++){var Mn=Ee[Jn];Ca(Mn)}else for(var dr=0,Yr=he.jsDoc;dr<Yr.length;dr++){var Mn=Yr[dr];e.setParent(Mn,he),e.setParentRecursive(Mn,!1)}}function Pi(he){if(!m)for(var Jn=0,Ee=he;Jn<Ee.length;Jn++){var Mn=Ee[Jn];if(!e.isPrologueDirective(Mn))return;if(wo(Mn)){m=!0;return}}}function wo(he){var Jn=e.getSourceTextOfNodeFromSourceFile(v,he.expression);return Jn==='"use strict"'||Jn==="'use strict'"}function Lo(he){switch(he.kind){case 79:if(he.isInJSDocNamespace){for(var Jn=he.parent;Jn&&!e.isJSDocTypeAlias(Jn);)Jn=Jn.parent;xt(Jn,524288,788968);break}case 108:return P&&(e.isExpression(he)||$.kind===292)&&(he.flowNode=P),Qt(he);case 159:P&&e.isPartOfTypeQuery(he)&&(he.flowNode=P);break;case 229:case 106:he.flowNode=P;break;case 80:return at(he);case 204:case 205:var Ee=he;P&&Ye(Ee)&&(Ee.flowNode=P),e.isSpecialPropertyDeclaration(Ee)&&De(Ee),e.isInJSFile(Ee)&&v.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(Ee)&&!Z(ae,"module")&&Ue(v.locals,void 0,Ee.expression,1|134217728,111550);break;case 219:var Mn=e.getAssignmentDeclarationKind(he);switch(Mn){case 1:Za(he);break;case 2:Ga(he);break;case 3:jn(he.left,he);break;case 6:Ve(he);break;case 4:se(he);break;case 5:var dr=he.left.expression;if(e.isInJSFile(he)&&e.isIdentifier(dr)){var Yr=Z(ae,dr.escapedText);if(e.isThisInitializedDeclaration(Yr==null?void 0:Yr.valueDeclaration)){se(he);break}}St(he);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return ea(he);case 290:return Fa(he);case 213:return li(he);case 8:return ui(he);case 218:return lo(he);case 217:return xo(he);case 246:return Vi(he);case 248:return os(he);case 190:le=!0;return;case 175:break;case 161:return Pl(he);case 162:return yl(he);case 252:return gl(he);case 201:return he.flowNode=P,gl(he);case 165:case 164:return _s(he);case 291:case 292:return vs(he,4,0);case 294:return vs(he,8,900095);case 172:case 173:case 174:return Or(he,131072,0);case 167:case 166:return vs(he,8192|(he.questionToken?16777216:0),e.isObjectLiteralMethod(he)?0:103359);case 254:return Ol(he);case 169:return Or(he,16384,0);case 170:return vs(he,32768,46015);case 171:return vs(he,65536,78783);case 177:case 312:case 318:case 178:return rr(he);case 180:case 317:case 193:return Oi(he);case 327:return Et(he);case 203:return Wt(he);case 211:case 212:return ac(he);case 206:var da=e.getAssignmentDeclarationKind(he);switch(da){case 7:return mt(he);case 8:return oa(he);case 9:return un(he);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(he)&&No(he);break;case 224:case 255:return m=!0,Ks(he);case 256:return xt(he,64,788872);case 257:return xt(he,524288,788968);case 258:return Js(he);case 259:return la(he);case 284:return Pr(he);case 283:return ra(he,4,0);case 263:case 266:case 268:case 273:return Or(he,2097152,2097152);case 262:return Ms(he);case 265:return _t(he);case 270:return yn(he);case 269:return Mo(he);case 300:return Pi(he.statements),Io();case 233:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(he.parent))return;case 260:return Pi(he.statements);case 335:if(he.parent.kind===318)return yl(he);if(he.parent.kind!==317)break;case 342:var ya=he,bo=ya.isBracketed||ya.typeExpression&&ya.typeExpression.type.kind===311?4|16777216:4;return Or(ya,bo,0);case 340:case 333:case 334:return(ie||(ie=[])).push(he)}}function _s(he){return vs(he,4|(he.questionToken?16777216:0),0)}function Oi(he){return Lt(he,2048,"__type")}function Io(){if(Va(v),e.isExternalModule(v))fs();else if(e.isJsonSourceFile(v)){fs();var he=v.symbol;Ue(v.symbol.exports,v.symbol,v,4,67108863),v.symbol=he}}function fs(){Lt(v,512,'"'+e.removeFileExtension(v.fileName)+'"')}function Mo(he){if(!L.symbol||!L.symbol.exports)Lt(he,111551,be(he));else{var Jn=e.exportAssignmentIsAlias(he)?2097152:4,Ee=Ue(L.symbol.exports,L.symbol,he,Jn,67108863);he.isExportEquals&&e.setValueDeclaration(Ee,he)}}function Ms(he){he.modifiers&&he.modifiers.length&&v.bindDiagnostics.push(C(he,e.Diagnostics.Modifiers_cannot_appear_here));var Jn=e.isSourceFile(he.parent)?e.isExternalModule(he.parent)?he.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;Jn?v.bindDiagnostics.push(C(he,Jn)):(v.symbol.globalExports=v.symbol.globalExports||e.createSymbolTable(),Ue(v.symbol.globalExports,v.symbol,he,2097152,2097152))}function yn(he){!L.symbol||!L.symbol.exports?Lt(he,8388608,be(he)):he.exportClause?e.isNamespaceExport(he.exportClause)&&(e.setParent(he.exportClause,he),Ue(L.symbol.exports,L.symbol,he.exportClause,2097152,2097152)):Ue(L.symbol.exports,L.symbol,he,8388608,0)}function _t(he){he.name&&Or(he,2097152,2097152)}function tr(he){return v.externalModuleIndicator?!1:(v.commonJsModuleIndicator||(v.commonJsModuleIndicator=he,fs()),!0)}function oa(he){if(!tr(he))return;var Jn=Ss(he.arguments[0],void 0,function(Mn,dr){return dr&&Te(dr,Mn,1536|67108864),dr});if(Jn){var Ee=4|1048576;Ue(Jn.exports,Jn,he,Ee,0)}}function Za(he){if(!tr(he))return;var Jn=Ss(he.left.expression,void 0,function(dr,Yr){return Yr&&Te(Yr,dr,1536|67108864),Yr});if(Jn){var Ee=e.isAliasableExpression(he.right)&&(e.isExportsIdentifier(he.left.expression)||e.isModuleExportsAccessExpression(he.left.expression)),Mn=Ee?2097152:4|1048576;e.setParent(he.left,he),Ue(Jn.exports,Jn,he.left,Mn,0)}}function Ga(he){if(!tr(he))return;var Jn=e.getRightMostAssignedExpression(he.right);if(e.isEmptyObjectLiteral(Jn)||L===v&&U(v,Jn))return;if(e.isObjectLiteralExpression(Jn)&&e.every(Jn.properties,e.isShorthandPropertyAssignment)){e.forEach(Jn.properties,He);return}var Ee=e.exportAssignmentIsAlias(he)?2097152:4|1048576|512,Mn=Ue(v.symbol.exports,v.symbol,he,Ee|67108864,0);e.setValueDeclaration(Mn,he)}function He(he){Ue(v.symbol.exports,v.symbol,he,2097152|67108864,0)}function se(he){e.Debug.assert(e.isInJSFile(he));var Jn=e.isBinaryExpression(he)&&e.isPropertyAccessExpression(he.left)&&e.isPrivateIdentifier(he.left.name)||e.isPropertyAccessExpression(he)&&e.isPrivateIdentifier(he.name);if(Jn)return;var Ee=e.getThisContainer(he,!1);switch(Ee.kind){case 254:case 211:var Mn=Ee.symbol;if(e.isBinaryExpression(Ee.parent)&&Ee.parent.operatorToken.kind===63){var dr=Ee.parent.left;e.isBindableStaticAccessExpression(dr)&&e.isPrototypeAccess(dr.expression)&&(Mn=co(dr.expression.expression,E))}Mn&&Mn.valueDeclaration&&(Mn.members=Mn.members||e.createSymbolTable(),e.hasDynamicName(he)?pn(he,Mn,Mn.members):Ue(Mn.members,Mn,he,4|67108864,0&~4),Te(Mn,Mn.valueDeclaration,32));break;case 169:case 165:case 167:case 170:case 171:var Yr=Ee.parent,da=e.isStatic(Ee)?Yr.symbol.exports:Yr.symbol.members;e.hasDynamicName(he)?pn(he,Yr.symbol,da):Ue(da,Yr.symbol,he,4|67108864,0,!0);break;case 300:if(e.hasDynamicName(he))break;Ee.commonJsModuleIndicator?Ue(Ee.symbol.exports,Ee.symbol,he,4|1048576,0):Or(he,1,111550);break;default:e.Debug.failBadSyntaxKind(Ee)}}function pn(he,Jn,Ee){Ue(Ee,Jn,he,4,0,!0,!0),j(he,Jn)}function j(he,Jn){Jn&&(Jn.assignmentDeclarationMembers||(Jn.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(he),he)}function De(he){he.expression.kind===108?se(he):e.isBindableStaticAccessExpression(he)&&he.parent.parent.kind===300&&(e.isPrototypeAccess(he.expression)?jn(he,he.parent):ir(he))}function Ve(he){e.setParent(he.left,he),e.setParent(he.right,he),za(he.left.expression,he.left,!1,!0)}function un(he){var Jn=co(he.arguments[0].expression);Jn&&Jn.valueDeclaration&&Te(Jn,Jn.valueDeclaration,32),na(he,Jn,!0)}function jn(he,Jn){var Ee=he.expression,Mn=Ee.expression;e.setParent(Mn,Ee),e.setParent(Ee,he),e.setParent(he,Jn),za(Mn,he,!0,!0)}function mt(he){var Jn=co(he.arguments[0]),Ee=he.parent.parent.kind===300;Jn=_r(Jn,he.arguments[0],Ee,!1,!1),na(he,Jn,!1)}function St(he){var Jn,Ee=co(he.left.expression,L)||co(he.left.expression,ae);if(!e.isInJSFile(he)&&!e.isFunctionSymbol(Ee))return;var Mn=e.getLeftmostAccessExpression(he.left);if(e.isIdentifier(Mn)&&((Jn=Z(L,Mn.escapedText))===null||Jn===void 0?void 0:Jn.flags)&2097152)return;if(e.setParent(he.left,he),e.setParent(he.right,he),e.isIdentifier(he.left.expression)&&L===v&&U(v,he.left.expression))Za(he);else if(e.hasDynamicName(he)){Lt(he,4|67108864,"__computed");var dr=_r(Ee,he.left.expression,wa(he.left),!1,!1);j(he,dr)}else ir(e.cast(he.left,e.isBindableStaticNameExpression))}function ir(he){e.Debug.assert(!e.isIdentifier(he)),e.setParent(he.expression,he),za(he.expression,he,!1,!1)}function _r(he,Jn,Ee,Mn,dr){if((he==null?void 0:he.flags)&2097152)return he;if(Ee&&!Mn){var Yr=1536|67108864,da=110735&~67108864;he=Ss(Jn,he,function(ya,bo,On){if(bo)return Te(bo,ya,Yr),bo;var Bo=On?On.exports:v.jsGlobalAugmentations||(v.jsGlobalAugmentations=e.createSymbolTable());return Ue(Bo,On,ya,Yr,da)})}return dr&&he&&he.valueDeclaration&&Te(he,he.valueDeclaration,32),he}function na(he,Jn,Ee){if(!Jn||!bi(Jn))return;var Mn=Ee?Jn.members||(Jn.members=e.createSymbolTable()):Jn.exports||(Jn.exports=e.createSymbolTable()),dr=0,Yr=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(he))?(dr=8192,Yr=103359):e.isCallExpression(he)&&e.isBindableObjectDefinePropertyCall(he)&&(e.some(he.arguments[2].properties,function(da){var ya=e.getNameOfDeclaration(da);return!!ya&&e.isIdentifier(ya)&&e.idText(ya)==="set"})&&(dr|=65536|4,Yr|=78783),e.some(he.arguments[2].properties,function(da){var ya=e.getNameOfDeclaration(da);return!!ya&&e.isIdentifier(ya)&&e.idText(ya)==="get"})&&(dr|=32768|4,Yr|=46015)),dr===0&&(dr=4,Yr=0),Ue(Mn,Jn,he,dr|67108864,Yr&~67108864)}function wa(he){return e.isBinaryExpression(he.parent)?Xi(he.parent).parent.kind===300:he.parent.parent.kind===300}function za(he,Jn,Ee,Mn){var dr=co(he,L)||co(he,ae),Yr=wa(Jn);dr=_r(dr,Jn.expression,Yr,Ee,Mn),na(Jn,dr,Ee)}function bi(he){if(he.flags&(16|32|1024))return!0;var Jn=he.valueDeclaration;if(Jn&&e.isCallExpression(Jn))return!!e.getAssignedExpandoInitializer(Jn);var Ee=Jn?e.isVariableDeclaration(Jn)?Jn.initializer:e.isBinaryExpression(Jn)?Jn.right:e.isPropertyAccessExpression(Jn)&&e.isBinaryExpression(Jn.parent)?Jn.parent.right:void 0:void 0;if(Ee=Ee&&e.getRightMostAssignedExpression(Ee),Ee){var Mn=e.isPrototypeAccess(e.isVariableDeclaration(Jn)?Jn.name:e.isBinaryExpression(Jn)?Jn.left:Jn);return!!e.getExpandoInitializer(e.isBinaryExpression(Ee)&&(Ee.operatorToken.kind===56||Ee.operatorToken.kind===60)?Ee.right:Ee,Mn)}return!1}function Xi(he){for(;e.isBinaryExpression(he.parent);)he=he.parent;return he.parent}function co(he,Jn){if(Jn===void 0&&(Jn=L),e.isIdentifier(he))return Z(Jn,he.escapedText);var Ee=co(he.expression);return Ee&&Ee.exports&&Ee.exports.get(e.getElementOrPropertyAccessName(he))}function Ss(he,Jn,Ee){if(U(v,he))return v.symbol;if(e.isIdentifier(he))return Ee(he,co(he),Jn);var Mn=Ss(he.expression,Jn,Ee),dr=e.getNameOrArgument(he);return e.isPrivateIdentifier(dr)&&e.Debug.fail("unexpected PrivateIdentifier"),Ee(dr,Mn&&Mn.exports&&Mn.exports.get(e.getElementOrPropertyAccessName(he)),Mn)}function No(he){!v.commonJsModuleIndicator&&e.isRequireCall(he,!1)&&tr(he)}function Ks(he){if(he.kind===255)xt(he,32,899503);else{var Jn=he.name?he.name.escapedText:"__class";Lt(he,32,Jn),he.name&&R.add(he.name.escapedText)}var Ee=he.symbol,Mn=te(4|4194304,"prototype"),dr=Ee.exports.get(Mn.escapedName);dr&&(he.name&&e.setParent(he.name,he),v.bindDiagnostics.push(C(dr.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(Mn)))),Ee.exports.set(Mn.escapedName,Mn),Mn.parent=Ee}function Js(he){return e.isEnumConst(he)?xt(he,128,899967):xt(he,256,899327)}function gl(he){m&&Qr(he,he.name),e.isBindingPattern(he.name)||(e.isInJSFile(he)&&e.isRequireVariableDeclaration(he)&&!e.getJSDocTypeTag(he)?Or(he,2097152,2097152):e.isBlockOrCatchScoped(he)?xt(he,2,111551):e.isParameterDeclaration(he)?Or(he,1,111551):Or(he,1,111550))}function yl(he){if(he.kind===335&&L.kind!==318)return;if(m&&!(he.flags&8388608)&&Qr(he,he.name),e.isBindingPattern(he.name)?Lt(he,1,"__"+he.parent.parameters.indexOf(he)):Or(he,1,111551),e.isParameterPropertyDeclaration(he,he.parent)){var Jn=he.parent.parent;Ue(Jn.symbol.members,Jn.symbol,he,4|(he.questionToken?16777216:0),0)}}function Ol(he){!v.isDeclarationFile&&!(he.flags&8388608)&&(e.isAsyncFunction(he)&&(T|=2048)),Mi(he),m?(xi(he),xt(he,16,110991)):Or(he,16,110991)}function ac(he){!v.isDeclarationFile&&!(he.flags&8388608)&&(e.isAsyncFunction(he)&&(T|=2048)),P&&(he.flowNode=P),Mi(he);var Jn=he.name?he.name.escapedText:"__function";return Lt(he,16,Jn)}function vs(he,Jn,Ee){return!v.isDeclarationFile&&!(he.flags&8388608)&&e.isAsyncFunction(he)&&(T|=2048),P&&e.isObjectLiteralOrClassExpressionMethod(he)&&(he.flowNode=P),e.hasDynamicName(he)?Lt(he,Jn,"__computed"):Or(he,Jn,Ee)}function ic(he){var Jn=e.findAncestor(he,function(Ee){return Ee.parent&&e.isConditionalTypeNode(Ee.parent)&&Ee.parent.extendsType===Ee});return Jn&&Jn.parent}function Pl(he){if(e.isJSDocTemplateTag(he.parent)){var Jn=e.find(he.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(he.parent);Jn?(Jn.locals||(Jn.locals=e.createSymbolTable()),Ue(Jn.locals,void 0,he,262144,526824)):Or(he,262144,526824)}else if(he.parent.kind===188){var Ee=ic(he.parent);Ee?(Ee.locals||(Ee.locals=e.createSymbolTable()),Ue(Ee.locals,void 0,he,262144,526824)):Lt(he,262144,be(he))}else Or(he,262144,526824)}function cl(he){var Jn=ue(he);return Jn===1||Jn===2&&e.shouldPreserveConstEnums(W)}function nl(he){if(!(P.flags&1))return!1;if(P===me){var Jn=e.isStatementButNotDeclaration(he)&&he.kind!==234||he.kind===255||he.kind===259&&cl(he);if(Jn&&(P=q,!W.allowUnreachableCode)){var Ee=e.unreachableCodeIsError(W)&&!(he.flags&8388608)&&(!e.isVariableStatement(he)||!!(e.getCombinedNodeFlags(he.declarationList)&3)||he.declarationList.declarations.some(function(Mn){return!!Mn.initializer}));de(he,function(Mn,dr){return Rs(Ee,Mn,dr,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function de(v,W){if(e.isStatement(v)&&fe(v)&&e.isBlock(v.parent)){var x=v.parent.statements,$=e.sliceAfter(x,v);e.getRangesWhere($,fe,function(L,E){return W($[L],$[E-1])})}else W(v,v)}function fe(v){return!e.isFunctionDeclaration(v)&&!_(v)&&!e.isEnumDeclaration(v)&&!(e.isVariableStatement(v)&&!(e.getCombinedNodeFlags(v)&(1|2))&&v.declarationList.declarations.some(function(W){return!W.initializer}))}function _(v){switch(v.kind){case 256:case 257:return!0;case 259:return ue(v)!==1;case 258:return e.hasSyntacticModifier(v,2048);default:return!1}}function U(v,W){for(var x=0,$=[W];$.length&&x<100;){if(x++,W=$.shift(),e.isExportsIdentifier(W)||e.isModuleExportsAccessExpression(W))return!0;if(e.isIdentifier(W)){var L=Z(v,W.escapedText);if(!!L&&!!L.valueDeclaration&&e.isVariableDeclaration(L.valueDeclaration)&&!!L.valueDeclaration.initializer){var E=L.valueDeclaration.initializer;$.push(E),e.isAssignmentExpression(E,!0)&&($.push(E.left),$.push(E.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=U;function Z(v,W){var x=v.locals&&v.locals.get(W);return x?x.exportSymbol||x:e.isSourceFile(v)&&v.jsGlobalAugmentations&&v.jsGlobalAugmentations.has(W)?v.jsGlobalAugmentations.get(W):v.symbol&&v.symbol.exports&&v.symbol.exports.get(W)}})(mn||(mn={}));var mn;(function(e){function s(ue,ee,Y,V,ne,_e,O,w,b,de){return fe;function fe(_){_===void 0&&(_=function(){return!0});var U=[],Z=[];return{walkType:function(I){try{return v(I),{visitedTypes:e.getOwnValues(U),visitedSymbols:e.getOwnValues(Z)}}finally{e.clear(U),e.clear(Z)}},walkSymbol:function(I){try{return P(I),{visitedTypes:e.getOwnValues(U),visitedSymbols:e.getOwnValues(Z)}}finally{e.clear(U),e.clear(Z)}}};function v(I){if(!I)return;if(U[I.id])return;U[I.id]=I;var re=P(I.symbol);if(re)return;if(I.flags&524288){var B=I,A=B.objectFlags;A&4&&W(I),A&32&&ae(I),A&(1|2)&&ie(I),A&(8|16)&&le(B)}I.flags&262144&&x(I),I.flags&3145728&&$(I),I.flags&4194304&&L(I),I.flags&8388608&&E(I)}function W(I){v(I.target),e.forEach(de(I),v)}function x(I){v(w(I))}function $(I){e.forEach(I.types,v)}function L(I){v(I.type)}function E(I){v(I.objectType),v(I.indexType),v(I.constraint)}function ae(I){v(I.typeParameter),v(I.constraintType),v(I.templateType),v(I.modifiersType)}function X(I){var re=ee(I);re&&v(re.type),e.forEach(I.typeParameters,v);for(var B=0,A=I.parameters;B<A.length;B++){var f=A[B];P(f)}v(ue(I)),v(Y(I))}function ie(I){le(I),e.forEach(I.typeParameters,v),e.forEach(V(I),v),v(I.thisType)}function le(I){for(var re=ne(I),B=0,A=re.indexInfos;B<A.length;B++){var f=A[B];v(f.keyType),v(f.type)}for(var F=0,g=re.callSignatures;F<g.length;F++){var p=g[F];X(p)}for(var d=0,T=re.constructSignatures;d<T.length;d++){var p=T[d];X(p)}for(var m=0,k=re.properties;m<k.length;m++){var N=k[m];P(N)}}function P(I){if(!I)return!1;var re=e.getSymbolId(I);if(Z[re])return!1;if(Z[re]=I,!_(I))return!0;var B=_e(I);return v(B),I.exports&&I.exports.forEach(P),e.forEach(I.declarations,function(A){if(A.type&&A.type.kind===179){var f=A.type,F=O(b(f.exprName));P(F)}}),!1}}}e.createGetSymbolWalker=s})(mn||(mn={}));var mn;(function(e){var s=/^".+"$/,ue="(anonymous)",ee=1,Y=1,V=1,ne=1,_e;(function(D){D[D.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",D[D.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",D[D.AllowsStringInputFlag=4]="AllowsStringInputFlag",D[D.ForOfFlag=8]="ForOfFlag",D[D.YieldStarFlag=16]="YieldStarFlag",D[D.SpreadFlag=32]="SpreadFlag",D[D.DestructuringFlag=64]="DestructuringFlag",D[D.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",D[D.Element=1]="Element",D[D.Spread=33]="Spread",D[D.Destructuring=65]="Destructuring",D[D.ForOf=13]="ForOf",D[D.ForAwaitOf=15]="ForAwaitOf",D[D.YieldStar=17]="YieldStar",D[D.AsyncYieldStar=19]="AsyncYieldStar",D[D.GeneratorReturnType=1]="GeneratorReturnType",D[D.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(_e||(_e={}));var O;(function(D){D[D.Yield=0]="Yield",D[D.Return=1]="Return",D[D.Next=2]="Next"})(O||(O={}));var w;(function(D){D[D.Normal=0]="Normal",D[D.FunctionReturn=1]="FunctionReturn",D[D.GeneratorNext=2]="GeneratorNext",D[D.GeneratorYield=3]="GeneratorYield"})(w||(w={}));var b;(function(D){D[D.None=0]="None",D[D.TypeofEQString=1]="TypeofEQString",D[D.TypeofEQNumber=2]="TypeofEQNumber",D[D.TypeofEQBigInt=4]="TypeofEQBigInt",D[D.TypeofEQBoolean=8]="TypeofEQBoolean",D[D.TypeofEQSymbol=16]="TypeofEQSymbol",D[D.TypeofEQObject=32]="TypeofEQObject",D[D.TypeofEQFunction=64]="TypeofEQFunction",D[D.TypeofEQHostObject=128]="TypeofEQHostObject",D[D.TypeofNEString=256]="TypeofNEString",D[D.TypeofNENumber=512]="TypeofNENumber",D[D.TypeofNEBigInt=1024]="TypeofNEBigInt",D[D.TypeofNEBoolean=2048]="TypeofNEBoolean",D[D.TypeofNESymbol=4096]="TypeofNESymbol",D[D.TypeofNEObject=8192]="TypeofNEObject",D[D.TypeofNEFunction=16384]="TypeofNEFunction",D[D.TypeofNEHostObject=32768]="TypeofNEHostObject",D[D.EQUndefined=65536]="EQUndefined",D[D.EQNull=131072]="EQNull",D[D.EQUndefinedOrNull=262144]="EQUndefinedOrNull",D[D.NEUndefined=524288]="NEUndefined",D[D.NENull=1048576]="NENull",D[D.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",D[D.Truthy=4194304]="Truthy",D[D.Falsy=8388608]="Falsy",D[D.All=16777215]="All",D[D.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",D[D.BaseStringFacts=12582401]="BaseStringFacts",D[D.StringStrictFacts=16317953]="StringStrictFacts",D[D.StringFacts=16776705]="StringFacts",D[D.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",D[D.EmptyStringFacts=12582401]="EmptyStringFacts",D[D.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",D[D.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",D[D.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",D[D.BaseNumberFacts=12582146]="BaseNumberFacts",D[D.NumberStrictFacts=16317698]="NumberStrictFacts",D[D.NumberFacts=16776450]="NumberFacts",D[D.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",D[D.ZeroNumberFacts=12582146]="ZeroNumberFacts",D[D.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",D[D.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",D[D.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",D[D.BaseBigIntFacts=12581636]="BaseBigIntFacts",D[D.BigIntStrictFacts=16317188]="BigIntStrictFacts",D[D.BigIntFacts=16775940]="BigIntFacts",D[D.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",D[D.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",D[D.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",D[D.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",D[D.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",D[D.BaseBooleanFacts=12580616]="BaseBooleanFacts",D[D.BooleanStrictFacts=16316168]="BooleanStrictFacts",D[D.BooleanFacts=16774920]="BooleanFacts",D[D.FalseStrictFacts=12121864]="FalseStrictFacts",D[D.FalseFacts=12580616]="FalseFacts",D[D.TrueStrictFacts=7927560]="TrueStrictFacts",D[D.TrueFacts=16774920]="TrueFacts",D[D.SymbolStrictFacts=7925520]="SymbolStrictFacts",D[D.SymbolFacts=16772880]="SymbolFacts",D[D.ObjectStrictFacts=7888800]="ObjectStrictFacts",D[D.ObjectFacts=16736160]="ObjectFacts",D[D.FunctionStrictFacts=7880640]="FunctionStrictFacts",D[D.FunctionFacts=16728e3]="FunctionFacts",D[D.UndefinedFacts=9830144]="UndefinedFacts",D[D.NullFacts=9363232]="NullFacts",D[D.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",D[D.AllTypeofNE=556800]="AllTypeofNE",D[D.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(b||(b={}));var de=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),fe=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),_;(function(D){D[D.Type=0]="Type",D[D.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",D[D.DeclaredType=2]="DeclaredType",D[D.ResolvedReturnType=3]="ResolvedReturnType",D[D.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",D[D.EnumTagType=5]="EnumTagType",D[D.ResolvedTypeArguments=6]="ResolvedTypeArguments",D[D.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(_||(_={}));var U;(function(D){D[D.Normal=0]="Normal",D[D.Contextual=1]="Contextual",D[D.Inferential=2]="Inferential",D[D.SkipContextSensitive=4]="SkipContextSensitive",D[D.SkipGenericFunctions=8]="SkipGenericFunctions",D[D.IsForSignatureHelp=16]="IsForSignatureHelp"})(U||(U={}));var Z;(function(D){D[D.BivariantCallback=1]="BivariantCallback",D[D.StrictCallback=2]="StrictCallback",D[D.IgnoreReturnTypes=4]="IgnoreReturnTypes",D[D.StrictArity=8]="StrictArity",D[D.Callback=3]="Callback"})(Z||(Z={}));var v;(function(D){D[D.None=0]="None",D[D.Source=1]="Source",D[D.Target=2]="Target",D[D.PropertyCheck=4]="PropertyCheck",D[D.UnionIntersectionCheck=8]="UnionIntersectionCheck",D[D.InPropertyCheck=16]="InPropertyCheck"})(v||(v={}));var W;(function(D){D[D.IncludeReadonly=1]="IncludeReadonly",D[D.ExcludeReadonly=2]="ExcludeReadonly",D[D.IncludeOptional=4]="IncludeOptional",D[D.ExcludeOptional=8]="ExcludeOptional"})(W||(W={}));var x;(function(D){D[D.None=0]="None",D[D.Source=1]="Source",D[D.Target=2]="Target",D[D.Both=3]="Both"})(x||(x={}));var $;(function(D){D.resolvedExports="resolvedExports",D.resolvedMembers="resolvedMembers"})($||($={}));var L;(function(D){D[D.Local=0]="Local",D[D.Parameter=1]="Parameter"})(L||(L={}));var E=e.and(p,g),ae;(function(D){D[D.GetAccessor=1]="GetAccessor",D[D.SetAccessor=2]="SetAccessor",D[D.PropertyAssignment=4]="PropertyAssignment",D[D.Method=8]="Method",D[D.PrivateStatic=16]="PrivateStatic",D[D.GetOrSetAccessor=3]="GetOrSetAccessor",D[D.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(ae||(ae={}));var X;(function(D){D[D.None=0]="None",D[D.ExportValue=1]="ExportValue",D[D.ExportType=2]="ExportType",D[D.ExportNamespace=4]="ExportNamespace"})(X||(X={}));var ie;(function(D){D[D.None=0]="None",D[D.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",D[D.VoidIsNonOptional=2]="VoidIsNonOptional"})(ie||(ie={}));var le;(function(D){D[D.Uppercase=0]="Uppercase",D[D.Lowercase=1]="Lowercase",D[D.Capitalize=2]="Capitalize",D[D.Uncapitalize=3]="Uncapitalize"})(le||(le={}));var P=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function I(){}function re(){this.flags=0}function B(D){return D.id||(D.id=Y,Y++),D.id}e.getNodeId=B;function A(D){return D.id||(D.id=ee,ee++),D.id}e.getSymbolId=A;function f(D,R){var me=e.getModuleInstanceState(D);return me===1||R&&me===2}e.isInstantiatedModule=f;function F(D,R){var me=e.memoize(function(){var n=new e.Set;return D.getSourceFiles().forEach(function(t){if(!t.resolvedModules)return;e.forEachEntry(t.resolvedModules,function(r){r&&r.packageId&&n.add(r.packageId.name)})}),n}),q,J,C,we=e.objectAllocator.getSymbolConstructor(),Oe=e.objectAllocator.getTypeConstructor(),te=e.objectAllocator.getSignatureConstructor(),Te=0,be=0,Ce=0,Ue=0,Se=0,$e=0,ce,Le=e.createSymbolTable(),qe=[1],pe=D.getCompilerOptions(),Me=e.getEmitScriptTarget(pe),fn=e.getEmitModuleKind(pe),Ye=e.getUseDefineForClassFields(pe),Ne=e.getAllowSyntheticDefaultImports(pe),je=e.getStrictOptionValue(pe,"strictNullChecks"),xn=e.getStrictOptionValue(pe,"strictFunctionTypes"),Wn=e.getStrictOptionValue(pe,"strictBindCallApply"),dn=e.getStrictOptionValue(pe,"strictPropertyInitialization"),vn=e.getStrictOptionValue(pe,"noImplicitAny"),o=e.getStrictOptionValue(pe,"noImplicitThis"),Cn=e.getStrictOptionValue(pe,"useUnknownInCatchVariables"),z=!!pe.keyofStringsOnly,tn=pe.suppressExcessPropertyErrors?0:16384,$n=pe.exactOptionalPropertyTypes,Un=Q2(),oe=dP(),Pe=fd(),ke=e.createSymbolTable(),Qe=oo(4,"undefined");Qe.declarations=[];var gn=oo(1536,"globalThis",8);gn.exports=ke,gn.declarations=[],ke.set(gn.escapedName,gn);var xe=oo(4,"arguments"),Ze=oo(4,"require"),wn,Be={getNodeCount:function(){return e.sum(D.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(D.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(D.getSourceFiles(),"symbolCount")+be},getTypeCount:function(){return Te},getInstantiationCount:function(){return Ue},getRelationCacheSizes:function(){return{assignable:Tt.size,identity:Zr.size,subtype:cn.size,strictSubtype:Sn.size}},isUndefinedSymbol:function(n){return n===Qe},isArgumentsSymbol:function(n){return n===xe},isUnknownSymbol:function(n){return n===Yn},getMergedSymbol:To,getDiagnostics:DA,getGlobalDiagnostics:DO,getRecursionIdentity:vy,getUnmatchedProperties:dE,getTypeOfSymbolAtLocation:function(n,t){var r=e.getParseTreeNode(t);return r?yk(n,r):K},getSymbolsOfParameterPropertyDeclaration:function(n,t){var r=e.getParseTreeNode(n,e.isParameter);return r===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):yi(r,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:ls,getPropertiesOfType:So,getPropertyOfType:function(n,t){return Rn(n,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(n,t,r){var i=e.getParseTreeNode(r);if(!i)return;var l=e.escapeLeadingUnderscores(t),u=HE(l,i);return u?KE(n,u):void 0},getTypeOfPropertyOfType:function(n,t){return js(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(n,t){return go(n,t===0?ht:Et)},getIndexInfosOfType:vi,getSignaturesOfType:qt,getIndexTypeOfType:function(n,t){return Bs(n,t===0?ht:Et)},getBaseTypes:Ac,getBaseTypeOfLiteralType:ed,getWidenedType:bc,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?La(t):K},getParameterType:wu,getParameterIdentifierNameAtPosition:C2,getPromisedTypeOfPromise:By,getAwaitedType:function(n){return Hu(n)},getReturnTypeOfSignature:_o,isNullableType:$_,getNullableType:eE,getNonNullableType:kf,getNonOptionalType:nE,getTypeArguments:Oo,typeToTypeNode:Pe.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Pe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Pe.signatureToSignatureDeclaration,symbolToEntityName:Pe.symbolToEntityName,symbolToExpression:Pe.symbolToExpression,symbolToTypeParameterDeclarations:Pe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Pe.symbolToParameterDeclaration,typeParameterToDeclaration:Pe.typeParameterToDeclaration,getSymbolsInScope:function(n,t){var r=e.getParseTreeNode(n);return r?CO(r,t):[]},getSymbolAtLocation:function(n){var t=e.getParseTreeNode(n);return t?tu(t,!0):void 0},getIndexInfosAtLocation:function(n){var t=e.getParseTreeNode(n);return t?RO(t):void 0},getShorthandAssignmentValueSymbol:function(n){var t=e.getParseTreeNode(n);return t?MO(t):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?FO(t):void 0},getExportSymbolOfSymbol:function(n){return To(n.exportSymbol||n)},getTypeAtLocation:function(n){var t=e.getParseTreeNode(n);return t?cm(t):K},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&&Lv(t)||K},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?GO(t):void 0},signatureToString:function(n,t,r,i){return jc(n,e.getParseTreeNode(t),r,i)},typeToString:function(n,t,r){return Ar(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,i){return Xa(n,e.getParseTreeNode(t),r,i)},typePredicateToString:function(n,t,r){return wc(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,i,l){return jc(n,e.getParseTreeNode(t),r,i,l)},writeType:function(n,t,r,i){return Ar(n,e.getParseTreeNode(t),r,i)},writeSymbol:function(n,t,r,i,l){return Xa(n,e.getParseTreeNode(t),r,i,l)},writeTypePredicate:function(n,t,r,i){return wc(n,e.getParseTreeNode(t),r,i)},getAugmentedPropertiesOfType:OT,getRootSymbols:OA,getSymbolOfExpando:lv,getContextualType:function(n,t){var r=e.getParseTreeNode(n,e.isExpression);if(!r)return;var i=e.findAncestor(r,e.isCallLikeExpression),l=i&&pa(i).resolvedSignature;if(t&4&&i){var u=r;do pa(u).skipDirectInference=!0,u=u.parent;while(u&&u!==i);pa(i).resolvedSignature=void 0}var S=xu(r,t);if(t&4&&i){var u=r;do pa(u).skipDirectInference=void 0,u=u.parent;while(u&&u!==i);pa(i).resolvedSignature=l}return S},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?IE(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&LE(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&mw(t)},isContextSensitive:Bu,getTypeOfPropertyOfContextualType:om,getFullyQualifiedName:uu,getResolvedSignature:function(n,t,r){return hn(n,t,r,0)},getResolvedSignatureForSignatureHelp:function(n,t,r){return hn(n,t,r,16)},getExpandedParameters:Yh,hasEffectiveRestParameter:rd,containsArgumentsReference:rg,getConstantValue:function(n){var t=e.getParseTreeNode(n,GA);return t?RT(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&WL(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var i=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!i&&jw(i,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?Eu(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?MA(t):void 0},getImmediateAliasedSymbol:vw,getAliasedSymbol:ks,getEmitResolver:Fo,getExportsOfModule:sc,getExportsAndPropertiesOfModule:Pd,forEachExportAndPropertyOfModule:dp,getSymbolWalker:e.createGetSymbolWalker(ab,Mc,_o,Ac,Fu,Ir,Vu,Cc,e.getFirstIdentifier,Oo),getAmbientModules:rR,getJsxIntrinsicTagNamesAt:wL,isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return t?Jd(t):!1},tryGetMemberInModuleExports:function(n,t){return Ju(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return Xc(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModule:function(n){return Yp(n,!0)},tryFindAmbientModuleWithoutAugmentations:function(n){return Yp(n,!1)},getApparentType:Ul,getUnionType:Ea,isTypeAssignableTo:yo,createAnonymousType:ns,createSignature:Ru,createSymbol:oo,createIndexInfo:Qu,getAnyType:function(){return lt},getStringType:function(){return ht},getNumberType:function(){return Et},createPromiseType:Ry,createArrayType:Ll,getElementTypeOfArrayType:zb,getBooleanType:function(){return Ht},getFalseType:function(n){return n?fr:br},getTrueType:function(n){return n?Jt:mr},getVoidType:function(){return At},getUndefinedType:function(){return Ln},getNullType:function(){return qn},getESSymbolType:function(){return Xr},getNeverType:function(){return Wr},getOptionalType:function(){return Dn},isSymbolAccessible:ud,isArrayType:zl,isTupleType:Ki,isArrayLikeType:op,isTypeInvalidDueToUnionDiscriminant:qv,getAllPossiblePropertiesOfTypes:zv,getSuggestedSymbolForNonexistentProperty:qE,getSuggestionForNonexistentProperty:zE,getSuggestedSymbolForNonexistentJSXAttribute:Uw,getSuggestedSymbolForNonexistentSymbol:function(n,t,r){return XE(n,e.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentSymbol:function(n,t,r){return UL(n,e.escapeLeadingUnderscores(t),r)},getSuggestedSymbolForNonexistentModule:ev,getSuggestionForNonexistentExport:VL,getSuggestedSymbolForNonexistentClassMember:Bw,getBaseConstraintOfType:tc,getDefaultFromTypeParameter:function(n){return n&&n.flags&262144?Zf(n):void 0},resolveName:function(n,t,r,i){return Zi(t,e.escapeLeadingUnderscores(n),r,void 0,void 0,!1,i)},getJsxNamespace:function(n){return e.unescapeLeadingUnderscores(Eo(n))},getJsxFragmentFactory:function(n){var t=FT(n);return t&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(t).escapedText)},getAccessibleSymbolChain:pf,getTypePredicateOfSignature:Mc,resolveExternalModuleName:function(n){var t=e.getParseTreeNode(n,e.isExpression);return t&&Ko(t,t,!0)},resolveExternalModuleSymbol:wr,tryGetThisTypeAt:function(n,t){var r=e.getParseTreeNode(n);return r&&wE(r,t)},getTypeArgumentConstraint:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t&&wI(t)},getSuggestionDiagnostics:function(n,t){var r=e.getParseTreeNode(n,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(r,pe,D))return e.emptyArray;var i;try{return q=t,IT(r),e.Debug.assert(!!(pa(r).flags&1)),i=e.addRange(i,wi.getDiagnostics(r.fileName)),X1(AA(r),function(l,u,S){!e.containsParseError(l)&&!wA(u,!!(l.flags&8388608))&&(i||(i=[])).push(pr(pr({},S),{category:e.DiagnosticCategory.Suggestion}))}),i||e.emptyArray}finally{q=void 0}},runWithCancellationToken:function(n,t){try{return q=n,t(Be)}finally{q=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Lr,isDeclarationVisible:mu};function hn(n,t,r,i){var l=e.getParseTreeNode(n,e.isCallLikeExpression);wn=r;var u=l?Oh(l,t,i):void 0;return wn=void 0,u}var Kn=new e.Map,Je=new e.Map,En=new e.Map,Nn=new e.Map,ct=new e.Map,yt=new e.Map,Gt=new e.Map,$t=new e.Map,Ke=new e.Map,Vn=new e.Map,Zn=new e.Map,Re=new e.Map,Pn=[],rt=new e.Map,Yn=oo(4,"unknown"),gt=oo(0,"__resolving__"),lt=Ns(1,"any"),Fe=Ns(1,"any"),Bn=Ns(1,"any"),K=Ns(1,"error"),An=Ns(1,"any",131072),Fn=Ns(1,"intrinsic"),ln=Ns(2,"unknown"),Ln=Ns(32768,"undefined"),Xe=je?Ln:Ns(32768,"undefined",131072),Dn=Ns(32768,"undefined"),rn=$n?Ns(32768,"undefined"):Ln,qn=Ns(65536,"null"),it=je?qn:Ns(65536,"null",131072),ht=Ns(4,"string"),Et=Ns(8,"number"),zt=Ns(64,"bigint"),fr=Ns(512,"false"),br=Ns(512,"false"),Jt=Ns(512,"true"),mr=Ns(512,"true");Jt.regularType=mr,Jt.freshType=Jt,mr.regularType=mr,mr.freshType=Jt,fr.regularType=br,fr.freshType=fr,br.regularType=br,br.freshType=fr;var Ht=Ea([br,mr]),Xr=Ns(4096,"symbol"),At=Ns(16384,"void"),Wr=Ns(131072,"never"),Or=Ns(131072,"never"),Ja=Ns(131072,"never",524288),qa=Ns(131072,"never"),eo=Ns(131072,"never"),Va=Ns(67108864,"object"),la=Ea([ht,Et]),wt=Ea([ht,Et,Xr]),rr=z?ht:wt,Wt=Ea([Et,zt]),Pr=Ea([ht,Et,Ht,zt,qn,Ln]),ra=em(function(n){return n.flags&262144?CC(n):n}),Lt=em(function(n){return n.flags&262144?Bn:n}),xt=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Yt=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);Yt.objectFlags|=2048;var Qt=oo(2048,"__type");Qt.members=e.createSymbolTable();var sr=ns(Qt,Le,e.emptyArray,e.emptyArray,e.emptyArray),at=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);at.instantiations=new e.Map;var ea=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);ea.objectFlags|=524288;var Fa=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),li=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Si=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Qr=Yc(),ci=Yc();ci.constraint=Qr;var Mi=Yc(),ro=Qp(1,"<<unresolved>>",0,lt),xi=Ru(void 0,void 0,void 0,e.emptyArray,lt,void 0,0,0),ui=Ru(void 0,void 0,void 0,e.emptyArray,K,void 0,0,0),lo=Ru(void 0,void 0,void 0,e.emptyArray,lt,void 0,0,0),xo=Ru(void 0,void 0,void 0,e.emptyArray,Or,void 0,0,0),Vi=Qu(Et,ht,!0),os=new e.Map,Qi={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},mo=af(lt,lt,lt),Rs=af(lt,lt,ln),Ls=af(Wr,lt,Ln),Ca={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:vD,getGlobalIterableType:_D,getGlobalIterableIteratorType:bD,getGlobalGeneratorType:ED,resolveIterationType:Hu,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ai={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:TD,getGlobalIterableType:pS,getGlobalIterableIteratorType:SD,getGlobalGeneratorType:xD,resolveIterationType:function(n,t){return n},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Pi,wo=new e.Map,Lo=!1,_s,Oi,Io,fs,Mo,Ms,yn,_t,tr,oa,Za,Ga,He,se,pn,j,De,Ve,un,jn,mt,St,ir,_r,na,wa,za,bi,Xi,co,Ss,No,Ks,Js,gl,yl,Ol,ac,vs,ic,Pl,cl,nl=new e.Map,he=0,Jn=0,Ee=0,Mn=!1,dr=0,Yr,da,ya,bo=nu(""),On=Xd(0),Bo=Cb({negative:!1,base10Value:"0"}),ps=[],ms=[],_l=[],Gi=0,qs=10,pl=[],Ec=[],lc=[],Pc=[],oc=[],au=[],cc=[],Zl=[],kn=[],ot=[],Nt=[],or=[],Sr=[],Er=[],Gr=[],$r=[],zr=e.createDiagnosticCollection(),wi=e.createDiagnosticCollection(),Ta=new e.Map(e.getEntries({string:ht,number:Et,bigint:zt,boolean:Ht,symbol:Xr,undefined:Ln})),Oa=fp(),ji,Ri,ye,cn=new e.Map,Sn=new e.Map,Tt=new e.Map,Vt=new e.Map,Zr=new e.Map,Da=new e.Map,gi=e.createSymbolTable();return gi.set(Qe.escapedName,Qe),fP(),Be;function Eo(n){if(n){var t=e.getSourceFileOfNode(n);if(t)if(e.isJsxOpeningFragment(n)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var r=t.pragmas.get("jsxfrag");if(r){var i=e.isArray(r)?r[0]:r;if(t.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,Me),e.visitNode(t.localJsxFragmentFactory,S),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=e.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}var l=FT(n);if(l)return t.localJsxFragmentFactory=l,t.localJsxFragmentNamespace=e.getFirstIdentifier(l).escapedText}else{if(t.localJsxNamespace)return t.localJsxNamespace;var u=t.pragmas.get("jsx");if(u){var i=e.isArray(u)?u[0]:u;if(t.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,Me),e.visitNode(t.localJsxFactory,S),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}}return ji||(ji="React",pe.jsxFactory?(Ri=e.parseIsolatedEntityName(pe.jsxFactory,Me),e.visitNode(Ri,S),Ri&&(ji=e.getFirstIdentifier(Ri).escapedText)):pe.reactNamespace&&(ji=e.escapeLeadingUnderscores(pe.reactNamespace))),Ri||(Ri=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(ji)),"createElement")),ji;function S(M){return e.setTextRangePosEnd(M,-1,-1),e.visitEachChild(M,S,e.nullTransformationContext)}}function Fo(n,t){return DA(n,t),oe}function bs(n,t,r,i,l,u){var S=n?e.createDiagnosticForNode(n,t,r,i,l,u):e.createCompilerDiagnostic(t,r,i,l,u),M=zr.lookup(S);return M||(zr.add(S),S)}function Li(n,t,r,i,l,u,S){var M=Hn(t,r,i,l,u,S);return M.skippedOn=n,M}function Uo(n,t,r,i,l,u){return n?e.createDiagnosticForNode(n,t,r,i,l,u):e.createCompilerDiagnostic(t,r,i,l,u)}function Hn(n,t,r,i,l,u){var S=Uo(n,t,r,i,l,u);return zr.add(S),S}function Zo(n,t){n?zr.add(t):wi.add(pr(pr({},t),{category:e.DiagnosticCategory.Suggestion}))}function Ds(n,t,r,i,l,u,S){if(t.pos<0||t.end<0){if(!n)return;var M=e.getSourceFileOfNode(t);Zo(n,"message"in r?e.createFileDiagnostic(M,0,0,r,i,l,u,S):e.createDiagnosticForFileFromMessageChain(M,r));return}Zo(n,"message"in r?e.createDiagnosticForNode(t,r,i,l,u,S):e.createDiagnosticForNodeFromMessageChain(t,r))}function Vs(n,t,r,i,l,u,S){var M=Hn(n,r,i,l,u,S);if(t){var ge=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(M,ge)}return M}function iu(n,t){var r=Array.isArray(n)?e.forEach(n,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(n);return r&&e.addRelatedInfo(t,e.createDiagnosticForNode(r,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),wi.add(t),t}function fc(n,t,r){var i=e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,r);return iu(t,i)}function ou(n,t,r,i){var l=r?e.createDiagnosticForNode(n,e.Diagnostics.The_signature_0_of_1_is_deprecated,i,r):e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,i);return iu(t,l)}function oo(n,t,r){be++;var i=new we(n|33554432,t);return i.checkFlags=r||0,i}function tl(n){var t=0;return n&2&&(t|=111551),n&1&&(t|=111550),n&4&&(t|=0),n&8&&(t|=900095),n&16&&(t|=110991),n&32&&(t|=899503),n&64&&(t|=788872),n&256&&(t|=899327),n&128&&(t|=899967),n&512&&(t|=110735),n&8192&&(t|=103359),n&32768&&(t|=46015),n&65536&&(t|=78783),n&262144&&(t|=526824),n&524288&&(t|=788968),n&2097152&&(t|=2097152),t}function su(n,t){t.mergeId||(t.mergeId=V,V++),pl[t.mergeId]=n}function Au(n){var t=oo(n.flags,n.escapedName);return t.declarations=n.declarations?n.declarations.slice():[],t.parent=n.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),n.members&&(t.members=new e.Map(n.members)),n.exports&&(t.exports=new e.Map(n.exports)),su(t,n),t}function lu(n,t,r){if(r===void 0&&(r=!1),!(n.flags&tl(t.flags))||(t.flags|n.flags)&67108864){if(t===n)return n;if(!(n.flags&33554432)){var i=Ho(n);if(i===Yn)return t;n=Au(i)}t.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&e.setValueDeclaration(n,t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),Wl(n.members,t.members,r)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),Wl(n.exports,t.exports,r)),r||su(n,t)}else if(n.flags&1024)n!==gn&&Hn(t.declarations&&e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Xa(n));else{var l=!!(n.flags&384||t.flags&384),u=!!(n.flags&2||t.flags&2),S=l?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:u?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,M=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),ge=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),Ge=Xa(t);if(M&&ge&&Pi&&!l&&M!==ge){var We=e.comparePaths(M.path,ge.path)===-1?M:ge,ze=We===M?ge:M,an=e.getOrUpdate(Pi,We.path+"|"+ze.path,function(){return{firstFile:We,secondFile:ze,conflictingSymbols:new e.Map}}),Tn=e.getOrUpdate(an.conflictingSymbols,Ge,function(){return{isBlockScoped:u,firstFileLocations:[],secondFileLocations:[]}});et(Tn.firstFileLocations,t),et(Tn.secondFileLocations,n)}else Du(t,S,Ge,n),Du(n,S,Ge,t)}return n;function et(st,Ct){if(Ct.declarations)for(var Dt=0,Bt=Ct.declarations;Dt<Bt.length;Dt++){var cr=Bt[Dt];e.pushIfUnique(st,cr)}}}function Du(n,t,r,i){e.forEach(n.declarations,function(l){cu(l,t,r,i.declarations)})}function cu(n,t,r,i){for(var l=(e.getExpandoInitializer(n,!1)?e.getNameOfExpando(n):e.getNameOfDeclaration(n))||n,u=bs(l,t,r),S=function(We){var ze=(e.getExpandoInitializer(We,!1)?e.getNameOfExpando(We):e.getNameOfDeclaration(We))||We;if(ze===l)return"continue";u.relatedInformation=u.relatedInformation||[];var an=e.createDiagnosticForNode(ze,e.Diagnostics._0_was_also_declared_here,r),Tn=e.createDiagnosticForNode(ze,e.Diagnostics.and_here);if(e.length(u.relatedInformation)>=5||e.some(u.relatedInformation,function(et){return e.compareDiagnostics(et,Tn)===0||e.compareDiagnostics(et,an)===0}))return"continue";e.addRelatedInfo(u,e.length(u.relatedInformation)?Tn:an)},M=0,ge=i||e.emptyArray;M<ge.length;M++){var Ge=ge[M];S(Ge)}}function Of(n,t){if(!(n==null?void 0:n.size))return t;if(!(t==null?void 0:t.size))return n;var r=e.createSymbolTable();return Wl(r,n),Wl(r,t),r}function Wl(n,t,r){r===void 0&&(r=!1),t.forEach(function(i,l){var u=n.get(l);n.set(l,u?lu(u,i,r):i)})}function ad(n){var t,r,i,l=n.parent;if(((t=l.symbol.declarations)===null||t===void 0?void 0:t[0])!==l){e.Debug.assert(l.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(l))Wl(ke,l.symbol.exports);else{var u=n.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,S=mi(n,n,u,!0);if(!S)return;if(S=wr(S),S.flags&1920)if(e.some(Oi,function(et){return S===et.symbol})){var M=lu(l.symbol,S,!0);Io||(Io=new e.Map),Io.set(n.text,M)}else{if(((r=S.exports)===null||r===void 0?void 0:r.get("__export"))&&((i=l.symbol.exports)===null||i===void 0?void 0:i.size))for(var ge=zp(S,"resolvedExports"),Ge=0,We=e.arrayFrom(l.symbol.exports.entries());Ge<We.length;Ge++){var ze=We[Ge],an=ze[0],Tn=ze[1];ge.has(an)&&!S.exports.has(an)&&lu(ge.get(an),Tn)}lu(S,l.symbol)}else Hn(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function id(n,t,r){t.forEach(function(l,u){var S=n.get(u);S?e.forEach(S.declarations,i(e.unescapeLeadingUnderscores(u),r)):n.set(u,l)});function i(l,u){return function(S){return zr.add(e.createDiagnosticForNode(S,u,l))}}}function $a(n){if(n.flags&33554432)return n;var t=A(n);return Ec[t]||(Ec[t]=new I)}function pa(n){var t=B(n);return lc[t]||(lc[t]=new re)}function Tc(n){return n.kind===300&&!e.isExternalOrCommonJsModule(n)}function Vo(n,t,r){if(r){var i=To(n.get(t));if(i){if(e.Debug.assert((e.getCheckFlags(i)&1)===0,"Should never get an instantiated symbol here."),i.flags&r)return i;if(i.flags&2097152){var l=ks(i);if(l===Yn||l.flags&r)return i}}}}function yi(n,t){var r=n.parent,i=n.parent.parent,l=Vo(r.locals,t,111551),u=Vo(eu(i.symbol),t,111551);return l&&u?[l,u]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function pc(n,t){var r=e.getSourceFileOfNode(n),i=e.getSourceFileOfNode(t),l=e.getEnclosingBlockScopeContainer(n);if(r!==i){if(fn&&(r.externalModuleIndicator||i.externalModuleIndicator)||!e.outFile(pe)||Ah(t)||n.flags&8388608)return!0;if(Ge(t,n))return!0;var u=D.getSourceFiles();return u.indexOf(r)<=u.indexOf(i)}if(n.pos<=t.pos&&!(e.isPropertyDeclaration(n)&&e.isThisProperty(t.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===201){var S=e.getAncestor(t,201);return S?e.findAncestor(S,e.isBindingElement)!==e.findAncestor(n,e.isBindingElement)||n.pos<S.pos:pc(e.getAncestor(n,252),t)}else{if(n.kind===252)return!ge(n,t);if(e.isClassDeclaration(n))return!e.findAncestor(t,function(ze){return e.isComputedPropertyName(ze)&&ze.parent.parent===n});if(e.isPropertyDeclaration(n))return!We(n,t,!1);if(e.isParameterPropertyDeclaration(n,n.parent))return!(pe.target===99&&Ye&&e.getContainingClass(n)===e.getContainingClass(t)&&Ge(t,n))}return!0}if(t.parent.kind===273||t.parent.kind===269&&t.parent.isExportEquals)return!0;if(t.kind===269&&t.isExportEquals)return!0;if(!!(t.flags&4194304)||Ah(t)||M())return!0;if(Ge(t,n))return pe.target===99&&Ye&&e.getContainingClass(n)&&(e.isPropertyDeclaration(n)||e.isParameterPropertyDeclaration(n,n.parent))?!We(n,t,!0):!0;return!1;function M(){return!!e.findAncestor(t,function(ze){return e.isInterfaceDeclaration(ze)||e.isTypeAliasDeclaration(ze)})}function ge(ze,an){switch(ze.parent.parent.kind){case 235:case 240:case 242:if($o(an,ze,l))return!0;break}var Tn=ze.parent.parent;return e.isForInOrOfStatement(Tn)&&$o(an,Tn.expression,l)}function Ge(ze,an){return!!e.findAncestor(ze,function(Tn){if(Tn===l)return"quit";if(e.isFunctionLike(Tn))return!0;if(e.isClassStaticBlockDeclaration(Tn))return an.pos<ze.pos;var et=e.tryCast(Tn.parent,e.isPropertyDeclaration);if(et){var st=et.initializer===Tn;if(st)if(e.isStatic(Tn.parent)){if(an.kind===167)return!0;if(e.isPropertyDeclaration(an)&&e.getContainingClass(ze)===e.getContainingClass(an)){var Ct=an.name;if(e.isIdentifier(Ct)||e.isPrivateIdentifier(Ct)){var Dt=Ir(Rr(an)),Bt=e.filter(an.parent.members,e.isClassStaticBlockDeclaration);if(QN(Ct,Dt,Bt,an.parent.pos,Tn.pos))return!0}}}else{var cr=an.kind===165&&!e.isStatic(an);if(!cr||e.getContainingClass(ze)!==e.getContainingClass(an))return!0}}return!1})}function We(ze,an,Tn){if(an.end>ze.end)return!1;var et=e.findAncestor(an,function(st){if(st===ze)return"quit";switch(st.kind){case 212:return!0;case 165:return Tn&&(e.isPropertyDeclaration(ze)&&st.parent===ze.parent||e.isParameterPropertyDeclaration(ze,ze.parent)&&st.parent===ze.parent.parent)?"quit":!0;case 233:switch(st.parent.kind){case 170:case 167:case 171:return!0;default:return!1}default:return!1}});return et===void 0}}function rl(n,t,r){var i=e.getEmitScriptTarget(pe),l=t;if(e.isParameter(r)&&l.body&&n.valueDeclaration&&n.valueDeclaration.pos>=l.body.pos&&n.valueDeclaration.end<=l.body.end&&i>=2){var u=pa(l);return u.declarationRequiresScopeChange===void 0&&(u.declarationRequiresScopeChange=e.forEach(l.parameters,S)||!1),!u.declarationRequiresScopeChange}return!1;function S(ge){return M(ge.name)||!!ge.initializer&&M(ge.initializer)}function M(ge){switch(ge.kind){case 212:case 211:case 254:case 169:return!1;case 167:case 170:case 171:case 291:return M(ge.name);case 165:return e.hasStaticModifier(ge)?i<99||!Ye:M(ge.name);default:return e.isNullishCoalesce(ge)||e.isOptionalChain(ge)?i<7:e.isBindingElement(ge)&&ge.dotDotDotToken&&e.isObjectBindingPattern(ge.parent)?i<4:e.isTypeNode(ge)?!1:e.forEachChild(ge,M)||!1}}}function Zi(n,t,r,i,l,u,S,M){return S===void 0&&(S=!1),vl(n,t,r,i,l,u,S,Vo,M)}function vl(n,t,r,i,l,u,S,M,ge){var Ge,We=n,ze,an,Tn,et,st,Ct=!1,Dt=n,Bt,cr=!1;e:for(;n;){if(n.locals&&!Tc(n)&&(ze=M(n.locals,t,r))){var Vr=!0;if(e.isFunctionLike(n)&&an&&an!==n.body?(r&ze.flags&788968&&an.kind!==315&&(Vr=ze.flags&262144?an===n.type||an.kind===162||an.kind===161:!1),r&ze.flags&3&&(rl(ze,n,an)?Vr=!1:ze.flags&1&&(Vr=an.kind===162||an===n.type&&!!e.findAncestor(ze.valueDeclaration,e.isParameter)))):n.kind===187&&(Vr=an===n.trueType),Vr)break e;ze=void 0}Ct=Ct||Cu(n,an);switch(n.kind){case 300:if(!e.isExternalOrCommonJsModule(n))break;cr=!0;case 259:var yr=Rr(n).exports||Le;if(n.kind===300||e.isModuleDeclaration(n)&&n.flags&8388608&&!e.isGlobalScopeAugmentation(n)){if(ze=yr.get("default")){var ba=e.getLocalSymbolForExportDefault(ze);if(ba&&ze.flags&r&&ba.escapedName===t)break e;ze=void 0}var ca=yr.get(t);if(ca&&ca.flags===2097152&&(e.getDeclarationOfKind(ca,273)||e.getDeclarationOfKind(ca,272)))break}if(t!=="default"&&(ze=M(yr,t,r&2623475)))if(e.isSourceFile(n)&&n.commonJsModuleIndicator&&!((Ge=ze.declarations)===null||Ge===void 0?void 0:Ge.some(e.isJSDocTypeAlias)))ze=void 0;else break e;break;case 258:if(ze=M(Rr(n).exports,t,r&8))break e;break;case 165:if(!e.isStatic(n)){var fi=Vc(n.parent);fi&&fi.locals&&(M(fi.locals,t,r&111551)&&(et=n))}break;case 255:case 224:case 256:if(ze=M(Rr(n).members||Le,t,r&788968)){if(!Ae(ze,n)){ze=void 0;break}if(an&&e.isStatic(an)){Hn(Dt,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(n.kind===224&&r&32){var ei=n.name;if(ei&&t===ei.escapedText){ze=n.symbol;break e}}break;case 226:if(an===n.expression&&n.parent.token===94){var Ji=n.parent.parent;if(e.isClassLike(Ji)&&(ze=M(Rr(Ji).members,t,r&788968))){i&&Hn(Dt,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 160:if(Bt=n.parent.parent,(e.isClassLike(Bt)||Bt.kind===256)&&(ze=M(Rr(Bt).members,t,r&788968))){Hn(Dt,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 212:if(pe.target>=2)break;case 167:case 169:case 170:case 171:case 254:if(r&3&&t==="arguments"){ze=xe;break e}break;case 211:if(r&3&&t==="arguments"){ze=xe;break e}if(r&16){var ni=n.name;if(ni&&t===ni.escapedText){ze=n.symbol;break e}}break;case 163:n.parent&&n.parent.kind===162&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||n.parent.kind===255)&&(n=n.parent);break;case 340:case 333:case 334:var vo=e.getJSDocRoot(n);vo&&(n=vo.parent);break;case 162:an&&(an===n.initializer||an===n.name&&e.isBindingPattern(an))&&(st||(st=n));break;case 201:an&&(an===n.initializer||an===n.name&&e.isBindingPattern(an))&&(e.isParameterDeclaration(n)&&!st&&(st=n));break;case 188:if(r&262144){var Po=n.typeParameter.name;if(Po&&t===Po.escapedText){ze=n.typeParameter.symbol;break e}}break}a(n)&&(Tn=n),an=n,n=n.parent}if(u&&ze&&(!Tn||ze!==Tn.symbol)&&(ze.isReferenced|=r),!ze){if(an&&(e.Debug.assert(an.kind===300),an.commonJsModuleIndicator&&t==="exports"&&r&an.symbol.flags))return an.symbol;S||(ze=M(ke,t,r))}if(!ze&&(We&&e.isInJSFile(We)&&We.parent&&e.isRequireCall(We.parent,!1)))return Ze;if(!ze){if(i&&(!Dt||!nn(Dt,t,l)&&!In(Dt)&&!bt(Dt,t,r)&&!Pt(Dt,t)&&!er(Dt,t,r)&&!Wi(Dt,t,r)&&!pt(Dt,t,r))){var Xt=void 0;if(ge&&Gi<qs){Xt=XE(We,t,r);var Ot=(Xt==null?void 0:Xt.valueDeclaration)&&e.isAmbientModule(Xt.valueDeclaration)&&e.isGlobalScopeAugmentation(Xt.valueDeclaration);if(Ot&&(Xt=void 0),Xt){var xa=Xa(Xt),Ra=Rw(We,Xt,!1),ta=Ra?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,ri=Uo(Dt,ta,H(l),xa);Zo(!Ra,ri),Xt.valueDeclaration&&e.addRelatedInfo(ri,e.createDiagnosticForNode(Xt.valueDeclaration,e.Diagnostics._0_is_declared_here,xa))}}if(!Xt&&l){var Hr=GL(l);Hr?Hn(Dt,i,H(l),Hr):Hn(Dt,i,H(l))}Gi++}return}if(i){if(et&&!(pe.target===99&&Ye)){var qi=et.name;Hn(Dt,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(qi),H(l));return}if(Dt&&(r&2||(r&32||r&384)&&(r&111551)===111551)){var Ui=pu(ze);(Ui.flags&2||Ui.flags&32||Ui.flags&384)&&uo(Ui,Dt)}if(ze&&cr&&(r&111551)===111551&&!(We.flags&4194304)){var nt=To(ze);e.length(nt.declarations)&&e.every(nt.declarations,function(hr){return e.isNamespaceExportDeclaration(hr)||e.isSourceFile(hr)&&!!hr.symbol.globalExports})&&Ds(!pe.allowUmdGlobalAccess,Dt,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(ze&&st&&!Ct&&(r&111551)===111551){var _n=To(Xp(ze)),vo=e.getRootDeclaration(st);_n===Rr(st)?Hn(Dt,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(st.name)):_n.valueDeclaration&&_n.valueDeclaration.pos>st.pos&&vo.parent.locals&&M(vo.parent.locals,_n.escapedName,r)===_n&&Hn(Dt,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(st.name),e.declarationNameToString(Dt))}ze&&Dt&&r&111551&&ze.flags&2097152&&al(ze,t,Dt)}return ze}function al(n,t,r){if(!e.isValidTypeOnlyAliasUseSite(r)){var i=hc(n);if(i){var l=e.typeOnlyDeclarationIsExport(i),u=l?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,S=l?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,M=e.unescapeLeadingUnderscores(t);e.addRelatedInfo(Hn(r,u,M),e.createDiagnosticForNode(i,S,M))}}}function Cu(n,t){return n.kind!==212&&n.kind!==211?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||n.kind===165&&!e.isStatic(n))&&(!t||t!==n.name):t&&t===n.name?!1:n.asteriskToken||e.hasSyntacticModifier(n,256)?!0:!e.getImmediatelyInvokedFunctionExpression(n)}function a(n){switch(n.kind){case 254:case 255:case 256:case 258:case 257:case 259:return!0;default:return!1}}function H(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function Ae(n,t){if(n.declarations)for(var r=0,i=n.declarations;r<i.length;r++){var l=i[r];if(l.kind===161){var u=e.isJSDocTemplateTag(l.parent)?e.getJSDocHost(l.parent):l.parent;if(u===t)return!(e.isJSDocTemplateTag(l.parent)&&e.find(l.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function nn(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||kA(n)||Ah(n))return!1;for(var i=e.getThisContainer(n,!1),l=i;l;){if(e.isClassLike(l.parent)){var u=Rr(l.parent);if(!u)break;var S=Ir(u);if(Rn(S,t))return Hn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,H(r),Xa(u)),!0;if(l===i&&!e.isStatic(l)){var M=ls(u).thisType;if(Rn(M,t))return Hn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,H(r)),!0}}l=l.parent}return!1}function In(n){var t=Gn(n);return t&&rs(t,64,!0)?(Hn(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),!0):!1}function Gn(n){switch(n.kind){case 79:case 204:return n.parent?Gn(n.parent):void 0;case 226:if(e.isEntityNameExpression(n.expression))return n.expression;default:return}}function bt(n,t,r){var i=1920|(e.isInJSFile(n)?111551:0);if(r===i){var l=Ho(Zi(n,t,788968&~i,void 0,void 0,!1)),u=n.parent;if(l){if(e.isQualifiedName(u)){e.Debug.assert(u.left===n,"Should only be resolving left side of qualified name as a namespace");var S=u.right.escapedText,M=Rn(ls(l),S);if(M)return Hn(u,e.Diagnostics.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,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(S)),!0}return Hn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}function pt(n,t,r){if(r&(788968&~1920)){var i=Ho(Zi(n,t,~788968&111551,void 0,void 0,!1));if(i&&!(i.flags&1920))return Hn(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(t)),!0}return!1}function It(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function Pt(n,t){return It(t)&&n.parent.kind===273?(Hn(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0):!1}function er(n,t,r){if(r&(111551&~1024)){if(It(t))return Hn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var i=Ho(Zi(n,t,788968&~111551,void 0,void 0,!1));if(i&&!(i.flags&1024)){var l=e.unescapeLeadingUnderscores(t);return Qa(t)?Hn(n,e.Diagnostics._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,l):jr(n,i)?Hn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,l,l==="K"?"P":"K"):Hn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,l),!0}}return!1}function jr(n,t){var r=e.findAncestor(n.parent,function(l){return e.isComputedPropertyName(l)||e.isPropertySignature(l)?!1:e.isTypeLiteralNode(l)||"quit"});if(r&&r.members.length===1){var i=ls(t);return!!(i.flags&1048576)&&kg(i,384,!0)}return!1}function Qa(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Wi(n,t,r){if(r&(111551&~1024&~788968)){var i=Ho(Zi(n,t,1024&~111551,void 0,void 0,!1));if(i)return Hn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(r&(788968&~1024&~111551)){var i=Ho(Zi(n,t,(512|1024)&~788968,void 0,void 0,!1));if(i)return Hn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}function uo(n,t){var r;if(e.Debug.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&(16|1|67108864)&&n.flags&32)return;var i=(r=n.declarations)===null||r===void 0?void 0:r.find(function(S){return e.isBlockOrCatchScoped(S)||e.isClassLike(S)||S.kind===258});if(i===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(i.flags&8388608)&&!pc(i,t)){var l=void 0,u=e.declarationNameToString(e.getNameOfDeclaration(i));n.flags&2?l=Hn(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,u):n.flags&32?l=Hn(t,e.Diagnostics.Class_0_used_before_its_declaration,u):n.flags&256?l=Hn(t,e.Diagnostics.Enum_0_used_before_its_declaration,u):(e.Debug.assert(!!(n.flags&128)),e.shouldPreserveConstEnums(pe)&&(l=Hn(t,e.Diagnostics.Enum_0_used_before_its_declaration,u))),l&&e.addRelatedInfo(l,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,u))}}function $o(n,t,r){return!!t&&!!e.findAncestor(n,function(i){return i===r||e.isFunctionLike(i)?"quit":i===t})}function hs(n){switch(n.kind){case 263:return n;case 265:return n.parent;case 266:return n.parent.parent;case 268:return n.parent.parent.parent;default:return}}function es(n){return n.declarations&&e.findLast(n.declarations,qr)}function qr(n){return n.kind===263||n.kind===262||n.kind===265&&!!n.name||n.kind===266||n.kind===272||n.kind===268||n.kind===273||n.kind===269&&e.exportAssignmentIsAlias(n)||e.isBinaryExpression(n)&&e.getAssignmentDeclarationKind(n)===2&&e.exportAssignmentIsAlias(n)||e.isAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63&&pi(n.parent.right)||n.kind===292||n.kind===291&&pi(n.initializer)||e.isRequireVariableDeclaration(n)}function pi(n){return e.isAliasableExpression(n)||e.isFunctionExpression(n)&&Wu(n)}function Ya(n,t){var r=bd(n);if(r){var i=e.getLeftmostAccessExpression(r.expression).arguments[0];return e.isIdentifier(r.name)?Ho(Rn(ag(i),r.name.escapedText)):void 0}if(e.isVariableDeclaration(n)||n.moduleReference.kind===275){var l=Ko(n,e.getExternalModuleRequireArgument(n)||e.getExternalModuleImportEqualsDeclarationExpression(n)),u=wr(l);return El(n,l,u,!1),u}var S=Sd(n.moduleReference,t);return ki(n,S),S}function ki(n,t){if(El(n,void 0,t,!1)&&!n.isTypeOnly){var r=hc(Rr(n)),i=e.typeOnlyDeclarationIsExport(r),l=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,u=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,S=e.unescapeLeadingUnderscores(r.name.escapedText);e.addRelatedInfo(Hn(n.moduleReference,l),e.createDiagnosticForNode(r,u,S))}}function Hi(n,t,r,i){var l=n.exports.get("export="),u=l?Rn(Ir(l),t):n.exports.get(t),S=Ho(u,i);return El(r,u,S,!1),S}function Ci(n){return e.isExportAssignment(n)&&!n.isExportEquals||e.hasSyntacticModifier(n,512)||e.isExportSpecifier(n)}function jo(n,t,r){if(!Ne)return!1;if(!n||n.isDeclarationFile){var i=Hi(t,"default",void 0,!0);return i&&e.some(i.declarations,Ci)?!1:!Hi(t,e.escapeLeadingUnderscores("__esModule"),void 0,r)}return e.isSourceFileJS(n)?!n.externalModuleIndicator&&!Hi(t,e.escapeLeadingUnderscores("__esModule"),void 0,r):Rl(t)}function Gs(n,t){var r,i=Ko(n,n.parent.moduleSpecifier);if(i){var l=void 0;e.isShorthandAmbientModuleSymbol(i)?l=i:l=Hi(i,"default",n,t);var u=(r=i.declarations)===null||r===void 0?void 0:r.find(e.isSourceFile),S=jo(u,i,t);if(!l&&!S)if(Rl(i)){var M=fn>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",ge=i.exports.get("export="),Ge=ge.valueDeclaration,We=Hn(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Xa(i),M);Ge&&e.addRelatedInfo(We,e.createDiagnosticForNode(Ge,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,M))}else Cs(i,n);else if(S){var ze=wr(i,t)||Ho(i,t);return El(n,i,ze,!1),ze}return El(n,l,void 0,!1),l}}function Cs(n,t){var r,i,l;if((r=n.exports)===null||r===void 0?void 0:r.has(t.symbol.escapedName))Hn(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Xa(n),Xa(t.symbol));else{var u=Hn(t.name,e.Diagnostics.Module_0_has_no_default_export,Xa(n)),S=(i=n.exports)===null||i===void 0?void 0:i.get("__export");if(S){var M=(l=S.declarations)===null||l===void 0?void 0:l.find(function(ge){var Ge,We;return!!(e.isExportDeclaration(ge)&&ge.moduleSpecifier&&((We=(Ge=Ko(ge,ge.moduleSpecifier))===null||Ge===void 0?void 0:Ge.exports)===null||We===void 0?void 0:We.has("default")))});M&&e.addRelatedInfo(u,e.createDiagnosticForNode(M,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function ho(n,t){var r=n.parent.parent.moduleSpecifier,i=Ko(n,r),l=Is(i,r,t,!1);return El(n,i,l,!1),l}function qc(n,t){var r=n.parent.moduleSpecifier,i=r&&Ko(n,r),l=r&&Is(i,r,t,!1);return El(n,i,l,!1),l}function Pf(n,t){if(n===Yn&&t===Yn)return Yn;if(n.flags&(788968|1920))return n;var r=oo(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),n.exports&&(r.exports=new e.Map(n.exports)),r}function cf(n,t,r,i){if(n.flags&1536){var l=ul(n).get(t.escapedText),u=Ho(l,i);return El(r,l,u,!1),u}}function Rf(n,t){if(n.flags&3){var r=n.valueDeclaration.type;if(r)return Ho(Rn(La(r),t))}}function Mf(n,t,r){var i,l;r===void 0&&(r=!1);var u=e.getExternalModuleRequireArgument(n)||n.moduleSpecifier,S=Ko(n,u),M=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(!e.isIdentifier(M))return;var ge=M.escapedText==="default"&&!!(pe.allowSyntheticDefaultImports||pe.esModuleInterop),Ge=Is(S,u,!1,ge);if(Ge&&M.escapedText){if(e.isShorthandAmbientModuleSymbol(S))return S;var We=void 0;S&&S.exports&&S.exports.get("export=")?We=Rn(Ir(Ge),M.escapedText,!0):We=Rf(Ge,M.escapedText),We=Ho(We,r);var ze=cf(Ge,M,t,r);if(ze===void 0&&M.escapedText==="default"){var an=(i=S.declarations)===null||i===void 0?void 0:i.find(e.isSourceFile);jo(an,S,r)&&(ze=wr(S,r)||Ho(S,r))}var Tn=ze&&We&&ze!==We?Pf(We,ze):ze||We;if(!Tn){var et=uu(S,n),st=e.declarationNameToString(M),Ct=ev(M,Ge);if(Ct!==void 0){var Dt=Xa(Ct),Bt=Hn(M,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,et,st,Dt);Ct.valueDeclaration&&e.addRelatedInfo(Bt,e.createDiagnosticForNode(Ct.valueDeclaration,e.Diagnostics._0_is_declared_here,Dt))}else((l=S.exports)===null||l===void 0?void 0:l.has("default"))?Hn(M,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,et,st):Ff(n,M,st,S,et)}return Tn}}function Ff(n,t,r,i,l){var u,S,M=(S=(u=i.valueDeclaration)===null||u===void 0?void 0:u.locals)===null||S===void 0?void 0:S.get(t.escapedText),ge=i.exports;if(M){var Ge=ge==null?void 0:ge.get("export=");if(Ge)xc(Ge,M)?cp(n,t,r,l):Hn(t,e.Diagnostics.Module_0_has_no_exported_member_1,l,r);else{var We=ge?e.find(bu(ge),function(an){return!!xc(an,M)}):void 0,ze=We?Hn(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,l,r,Xa(We)):Hn(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,l,r);M.declarations&&e.addRelatedInfo.apply(void 0,Mt([ze],e.map(M.declarations,function(an,Tn){return e.createDiagnosticForNode(an,Tn===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,r)}),!1))}}else Hn(t,e.Diagnostics.Module_0_has_no_exported_member_1,l,r)}function cp(n,t,r,i){if(fn>=e.ModuleKind.ES2015){var l=pe.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Hn(t,l,r)}else if(e.isInJSFile(n)){var l=pe.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Hn(t,l,r)}else{var l=pe.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Hn(t,l,r,r,i)}}function uf(n,t){var r=e.isBindingElement(n)?e.getRootDeclaration(n):n.parent.parent.parent,i=bd(r),l=Mf(r,i||n,t),u=n.propertyName||n.name;return i&&l&&e.isIdentifier(u)?Ho(Rn(Ir(l),u.escapedText),t):(El(n,void 0,l,!1),l)}function bd(n){if(e.isVariableDeclaration(n)&&n.initializer&&e.isPropertyAccessExpression(n.initializer))return n.initializer}function bl(n,t){var r=wr(n.parent.symbol,t);return El(n,void 0,r,!1),r}function mc(n,t,r){var i=n.parent.parent.moduleSpecifier?Mf(n.parent.parent,n,r):rs(n.propertyName||n.name,t,!1,r);return El(n,void 0,i,!1),i}function od(n,t){var r=e.isExportAssignment(n)?n.expression:n.right,i=Ku(r,t);return El(n,void 0,i,!1),i}function Ku(n,t){if(e.isClassExpression(n))return ml(n).symbol;if(!e.isEntityName(n)&&!e.isEntityNameExpression(n))return;var r=rs(n,111551|788968|1920,!0,t);return r||(ml(n),pa(n).resolvedSymbol)}function Mp(n,t){var r=n.initializer;return Ku(r,t)}function df(n,t){return e.isBinaryExpression(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63?Ku(n.parent.right,t):void 0}function Ed(n,t){t===void 0&&(t=!1);switch(n.kind){case 263:case 252:return Ya(n,t);case 265:return Gs(n,t);case 266:return ho(n,t);case 272:return qc(n,t);case 268:case 201:return uf(n,t);case 273:return mc(n,111551|788968|1920,t);case 269:case 219:return od(n,t);case 262:return bl(n,t);case 292:return rs(n.name,111551|788968|1920,!0,t);case 291:return Mp(n,t);case 205:case 204:return df(n,t);default:return e.Debug.fail()}}function ku(n,t){return t===void 0&&(t=111551|788968|1920),n?(n.flags&(2097152|t))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Ho(n,t){return!t&&ku(n)?ks(n):n}function ks(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var t=$a(n);if(t.target)t.target===gt&&(t.target=Yn);else{t.target=gt;var r=es(n);if(!r)return e.Debug.fail();var i=Ed(r);t.target===gt?t.target=i||Yn:Hn(r,e.Diagnostics.Circular_definition_of_import_alias_0,Xa(n))}return t.target}function Lu(n){var t=$a(n);return t.target!==gt?ks(n):void 0}function El(n,t,r,i){if(!n||e.isPropertyAccessExpression(n))return!1;var l=Rr(n);if(e.isTypeOnlyImportOrExportDeclaration(n)){var u=$a(l);return u.typeOnlyDeclaration=n,!0}var S=$a(l);return Fp(S,t,i)||Fp(S,r,i)}function Fp(n,t,r){var i,l,u;if(t&&(n.typeOnlyDeclaration===void 0||r&&n.typeOnlyDeclaration===!1)){var S=(l=(i=t.exports)===null||i===void 0?void 0:i.get("export="))!==null&&l!==void 0?l:t,M=S.declarations&&e.find(S.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=(u=M!=null?M:$a(S).typeOnlyDeclaration)!==null&&u!==void 0?u:!1}return!!n.typeOnlyDeclaration}function hc(n){if(!(n.flags&2097152))return;var t=$a(n);return t.typeOnlyDeclaration||void 0}function Td(n){var t=Rr(n),r=ks(t);if(r){var i=r===Yn||r.flags&111551&&!Fg(r)&&!hc(t);i&&Sc(t)}}function Sc(n){var t=$a(n);if(!t.referenced){t.referenced=!0;var r=es(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var i=Ho(n);(i===Yn||i.flags&111551)&&ml(r.moduleReference)}}}function qo(n){var t=$a(n);t.constEnumReferenced||(t.constEnumReferenced=!0)}function Sd(n,t){return n.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind===79||n.parent.kind===159?rs(n,1920,!1,t):(e.Debug.assert(n.parent.kind===263),rs(n,111551|788968|1920,!1,t))}function uu(n,t){return n.parent?uu(n.parent,t)+"."+Xa(n):Xa(n,t,void 0,16|4)}function rs(n,t,r,i,l){if(e.nodeIsMissing(n))return;var u=1920|(e.isInJSFile(n)?t&111551:0),S;if(n.kind===79){var M=t===u||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:Px(e.getFirstIdentifier(n)),ge=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?zc(n,t):void 0;if(S=To(Zi(l||n,n.escapedText,t,r||ge?void 0:M,n,!0)),!S)return To(ge)}else if(n.kind===159||n.kind===204){var Ge=n.kind===159?n.left:n.expression,We=n.kind===159?n.right:n.name,ze=rs(Ge,u,r,!1,l);if(!ze||e.nodeIsMissing(We))return;if(ze===Yn)return ze;if(ze.valueDeclaration&&e.isInJSFile(ze.valueDeclaration)&&e.isVariableDeclaration(ze.valueDeclaration)&&ze.valueDeclaration.initializer&&u1(ze.valueDeclaration.initializer)){var an=ze.valueDeclaration.initializer.arguments[0],Tn=Ko(an,an);if(Tn){var et=wr(Tn);et&&(ze=et)}}if(S=To(Vo(ul(ze),We.escapedText,t)),!S){if(!r){var st=uu(ze),Ct=e.declarationNameToString(We),Dt=ev(We,ze);Dt?Hn(We,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,st,Ct,Xa(Dt)):Hn(We,e.Diagnostics.Namespace_0_has_no_exported_member_1,st,Ct)}return}}else throw e.Debug.assertNever(n,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(S)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(n)&&e.isEntityName(n)&&(S.flags&2097152||n.parent.kind===269)&&El(e.getAliasDeclarationFromName(n),S,void 0,!0),S.flags&t||i?S:ks(S)}function zc(n,t){if(f_(n.parent)){var r=Gf(n.parent);if(r)return Zi(r,n.escapedText,t,void 0,n,!0)}}function Gf(n){var t=e.findAncestor(n,function(u){return e.isJSDocNode(u)||u.flags&4194304?e.isJSDocTypeAlias(u):"quit"});if(t)return;var r=e.getJSDocHost(n);if(r&&e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&e.getAssignmentDeclarationKind(r.expression)===3){var i=Rr(r.expression.left);if(i)return up(i)}if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6){var i=Rr(r.parent.parent.left);if(i)return up(i)}var l=e.getEffectiveJSDocHost(n);if(l&&e.isFunctionLike(l)){var i=Rr(l);return i&&i.valueDeclaration}}function up(n){var t=n.parent.valueDeclaration;if(!t)return;var r=e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0;return r||t}function Ur(n){var t=n.valueDeclaration;if(!t||!e.isInJSFile(t)||n.flags&524288||e.getExpandoInitializer(t,!1))return;var r=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(r){var i=Rr(r);if(i)return nT(i,n)}}function Ko(n,t,r){var i=e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.Classic,l=i?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return mi(n,t,r?void 0:l)}function mi(n,t,r,i){return i===void 0&&(i=!1),e.isStringLiteralLike(t)?du(n,t.text,r,t,i):void 0}function du(n,t,r,i,l){if(l===void 0&&(l=!1),e.startsWith(t,"@types/")){var u=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,S=e.removePrefix(t,"@types/");Hn(i,u,S,t)}var M=Yp(t,!0);if(M)return M;var ge=e.getSourceFileOfNode(n),Ge=e.getResolvedModule(ge,t),We=Ge&&e.getResolutionDiagnostic(pe,Ge),ze=Ge&&!We&&D.getSourceFile(Ge.resolvedFileName);if(ze){if(ze.symbol)return Ge.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(Ge.extension)&&Bf(!1,i,Ge,t),To(ze.symbol);r&&Hn(i,e.Diagnostics.File_0_is_not_a_module,ze.fileName);return}if(Oi){var an=e.findBestPatternMatch(Oi,function(cr){return cr.pattern},t);if(an){var Tn=Io&&Io.get(t);return To(Tn||an.symbol)}}if(Ge&&!e.resolutionExtensionIsTSOrJson(Ge.extension)&&We===void 0||We===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(l){var u=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Hn(i,u,t,Ge.resolvedFileName)}else Bf(vn&&!!r,i,Ge,t);return}if(r){if(Ge){var et=D.getProjectReferenceRedirect(Ge.resolvedFileName);if(et){Hn(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,et,Ge.resolvedFileName);return}}if(We)Hn(i,We,t,Ge.resolvedFileName);else{var st=e.tryExtractTSExtension(t);if(st){var u=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,Ct=e.removeExtension(t,st),Dt=Ct,Bt=e.getEmitModuleKind(pe);Bt>=e.ModuleKind.ES2015&&(Dt+=".js"),Hn(i,u,st,Dt)}else!pe.resolveJsonModule&&e.fileExtensionIs(t,".json")&&e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(pe)?Hn(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):Hn(i,r,t)}}return}function Bf(n,t,r,i){var l=r.packageId,u=r.resolvedFileName,S=!e.isExternalModuleNameRelative(i)&&l?Iu(l.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.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,l.name,e.mangleScopedPackageName(l.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(l.name)):void 0;Ds(n,t,e.chainDiagnosticMessages(S,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,u))}function Iu(n){return me().has(e.getTypesPackageName(n))}function wr(n,t){if(n==null?void 0:n.exports){var r=Ho(n.exports.get("export="),t),i=xd(To(r),To(n));return To(i)||n}return}function xd(n,t){if(!n||n===Yn||n===t||t.exports.size===1||n.flags&2097152)return n;var r=$a(n);if(r.cjsExportMerged)return r.cjsExportMerged;var i=n.flags&33554432?n:Au(n);return i.flags=i.flags|512,i.exports===void 0&&(i.exports=e.createSymbolTable()),t.exports.forEach(function(l,u){if(u==="export=")return;i.exports.set(u,i.exports.has(u)?lu(i.exports.get(u),l):l)}),$a(i).cjsExportMerged=i,r.cjsExportMerged=i}function Is(n,t,r,i){var l=wr(n,r);if(!r&&l){if(!i&&!(l.flags&(1536|3))&&!e.getDeclarationOfKind(l,300)){var u=fn>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Hn(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,u),l}if(pe.esModuleInterop){var S=t.parent;if(e.isImportDeclaration(S)&&e.getNamespaceDeclarationNode(S)||e.isImportCall(S)){var M=Ir(l),ge=Ft(M,0);if((!ge||!ge.length)&&(ge=Ft(M,1)),ge&&ge.length){var Ge=c1(M,l,n),We=oo(l.flags,l.escapedName);We.declarations=l.declarations?l.declarations.slice():[],We.parent=l.parent,We.target=l,We.originatingImport=S,l.valueDeclaration&&(We.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(We.constEnumOnlyModule=!0),l.members&&(We.members=new e.Map(l.members)),l.exports&&(We.exports=new e.Map(l.exports));var ze=Fu(Ge);return We.type=ns(We,ze.members,e.emptyArray,e.emptyArray,ze.indexInfos),We}}}}return l}function Rl(n){return n.exports.get("export=")!==void 0}function sc(n){return bu(Bc(n))}function Pd(n){var t=sc(n),r=wr(n);if(r!==n){var i=Ir(r);Rd(i)&&e.addRange(t,So(i))}return t}function dp(n,t){var r=Bc(n);r.forEach(function(u,S){Sl(S)||t(u,S)});var i=wr(n);if(i!==n){var l=Ir(i);Rd(l)&&So(l).forEach(function(u){t(u,u.escapedName)})}}function Ju(n,t){var r=Bc(t);if(r)return r.get(n)}function Xc(n,t){var r=Ju(n,t);if(r)return r;var i=wr(t);if(i===t)return;var l=Ir(i);return Rd(l)?Rn(l,n):void 0}function Rd(n){return!(n.flags&131068||e.getObjectFlags(n)&1||zl(n)||Ki(n))}function ul(n){return n.flags&6256?zp(n,"resolvedExports"):n.flags&1536?Bc(n):n.exports||Le}function Bc(n){var t=$a(n);return t.resolvedExports||(t.resolvedExports=wd(n))}function Uf(n,t,r,i){if(!t)return;t.forEach(function(l,u){if(u==="default")return;var S=n.get(u);if(!S)n.set(u,l),r&&i&&r.set(u,{specifierText:e.getTextOfNode(i.moduleSpecifier)});else if(r&&i&&S&&Ho(S)!==Ho(l)){var M=r.get(u);M.exportsWithDuplicate?M.exportsWithDuplicate.push(i):M.exportsWithDuplicate=[i]}})}function wd(n){var t=[];return n=wr(n),r(n)||Le;function r(i){if(!(i&&i.exports&&e.pushIfUnique(t,i)))return;var l=new e.Map(i.exports),u=i.exports.get("__export");if(u){var S=e.createSymbolTable(),M=new e.Map;if(u.declarations)for(var ge=0,Ge=u.declarations;ge<Ge.length;ge++){var We=Ge[ge],ze=Ko(We,We.moduleSpecifier),an=r(ze);Uf(S,an,M,We)}M.forEach(function(Tn,et){var st=Tn.exportsWithDuplicate;if(et==="export="||!(st&&st.length)||l.has(et))return;for(var Ct=0,Dt=st;Ct<Dt.length;Ct++){var Bt=Dt[Ct];zr.add(e.createDiagnosticForNode(Bt,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,M.get(et).specifierText,e.unescapeLeadingUnderscores(et)))}}),Uf(l,S)}return l}}function To(n){var t;return n&&n.mergeId&&(t=pl[n.mergeId])?t:n}function Rr(n){return To(n.symbol&&Xp(n.symbol))}function $l(n){return To(n.parent&&Xp(n.parent))}function Gp(n,t){var r=e.getSourceFileOfNode(t),i=B(r),l=$a(n),u;if(l.extendedContainersByFile&&(u=l.extendedContainersByFile.get(i)))return u;if(r&&r.imports){for(var S=0,M=r.imports;S<M.length;S++){var ge=M[S];if(e.nodeIsSynthesized(ge))continue;var Ge=Ko(t,ge,!0);if(!Ge)continue;var We=Md(Ge,n);if(!We)continue;u=e.append(u,Ge)}if(e.length(u))return(l.extendedContainersByFile||(l.extendedContainersByFile=new e.Map)).set(i,u),u}if(l.extendedContainers)return l.extendedContainers;for(var ze=D.getSourceFiles(),an=0,Tn=ze;an<Tn.length;an++){var et=Tn[an];if(!e.isExternalModule(et))continue;var st=Rr(et),We=Md(st,n);if(!We)continue;u=e.append(u,st)}return l.extendedContainers=u||e.emptyArray}function sd(n,t,r){var i=$l(n);if(i&&!(n.flags&262144)){var l=e.mapDefined(i.declarations,We),u=t&&Gp(n,t),S=fu(i,r);if(t&&i.flags&cd(r)&&pf(i,t,1920,!1))return e.append(e.concatenate(e.concatenate([i],l),u),S);var M=!(i.flags&cd(r))&&i.flags&788968&&ls(i).flags&524288&&r===111551?Nu(t,function(ze){return e.forEachEntry(ze,function(an){if(an.flags&cd(r)&&Ir(an)===ls(i))return an})}):void 0,ge=M?Mt(Mt([M],l,!0),[i],!1):Mt(Mt([],l,!0),[i],!1);return ge=e.append(ge,S),ge=e.addRange(ge,u),ge}var Ge=e.mapDefined(n.declarations,function(ze){if(!e.isAmbientModule(ze)&&ze.parent&&dd(ze.parent))return Rr(ze.parent);if(e.isClassExpression(ze)&&e.isBinaryExpression(ze.parent)&&ze.parent.operatorToken.kind===63&&e.isAccessExpression(ze.parent.left)&&e.isEntityNameExpression(ze.parent.left.expression))return e.isModuleExportsAccessExpression(ze.parent.left)||e.isExportsIdentifier(ze.parent.left.expression)?Rr(e.getSourceFileOfNode(ze)):(ml(ze.parent.left.expression),pa(ze.parent.left.expression).resolvedSymbol)});if(!e.length(Ge))return;return e.mapDefined(Ge,function(ze){return Md(ze,n)?ze:void 0});function We(ze){return i&&Vf(ze,i)}}function fu(n,t){var r=!!e.length(n.declarations)&&e.first(n.declarations);if(t&111551&&r&&r.parent&&e.isVariableDeclaration(r.parent)&&(e.isObjectLiteralExpression(r)&&r===r.parent.initializer||e.isTypeLiteralNode(r)&&r===r.parent.type))return Rr(r.parent)}function Vf(n,t){var r=hf(n),i=r&&r.exports&&r.exports.get("export=");return i&&xc(i,t)?r:void 0}function Md(n,t){if(n===$l(t))return t;var r=n.exports&&n.exports.get("export=");if(r&&xc(r,t))return n;var i=ul(n),l=i.get(t.escapedName);return l&&xc(l,t)?l:e.forEachEntry(i,function(u){if(xc(u,t))return u})}function xc(n,t){if(To(Ho(To(n)))===To(Ho(To(t))))return n}function pu(n){return To(n&&(n.flags&1048576)!==0?n.exportSymbol:n)}function Uc(n){return!!(n.flags&111551||n.flags&2097152&&ks(n).flags&111551&&!hc(n))}function Vc(n){for(var t=n.members,r=0,i=t;r<i.length;r++){var l=i[r];if(l.kind===169&&e.nodeIsPresent(l.body))return l}}function Hl(n){var t=new Oe(Be,n);return Te++,t.id=Te,R&&(e.tracing===null||e.tracing===void 0||e.tracing.recordType(t)),t}function zs(n){return new Oe(Be,n)}function Ns(n,t,r){r===void 0&&(r=0);var i=Hl(n);return i.intrinsicName=t,i.objectFlags=r,i}function Tl(n,t){var r=Hl(524288);return r.objectFlags=n,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.indexInfos=void 0,r}function fp(){return Ea(e.arrayFrom(de.keys(),nu))}function Yc(n){var t=Hl(262144);return n&&(t.symbol=n),t}function Sl(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function ld(n){var t;return n.forEach(function(r,i){!Sl(i)&&Uc(r)&&(t||(t=[])).push(r)}),t||e.emptyArray}function ff(n){var t=ld(n),r=ob(n);return r?e.concatenate(t,[r]):t}function sl(n,t,r,i,l){var u=n;return u.members=t,u.properties=e.emptyArray,u.callSignatures=r,u.constructSignatures=i,u.indexInfos=l,t!==Le&&(u.properties=ld(t)),u}function ns(n,t,r,i,l){return sl(Tl(16,n),t,r,i,l)}function pp(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;var t=e.filter(n.constructSignatures,function(i){return!(i.flags&4)});if(n.constructSignatures===t)return n;var r=ns(n.symbol,n.members,n.callSignatures,e.some(t)?t:e.emptyArray,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=r,r.objectTypeWithoutAbstractConstructSignatures=r,r}function Nu(n,t){for(var r,i=function(S){if(S.locals&&!Tc(S)&&(r=t(S.locals,void 0,!0,S)))return{value:r};switch(S.kind){case 300:if(!e.isExternalOrCommonJsModule(S))break;case 259:var M=Rr(S);if(r=t((M==null?void 0:M.exports)||Le,void 0,!0,S))return{value:r};break;case 255:case 224:case 256:var ge;if((Rr(S).members||Le).forEach(function(Ge,We){Ge.flags&(788968&~67108864)&&(ge||(ge=e.createSymbolTable())).set(We,Ge)}),ge&&(r=t(ge,void 0,!1,S)))return{value:r};break}},l=n;l;l=l.parent){var u=i(l);if(typeof u=="object")return u.value}return t(ke,void 0,!0)}function cd(n){return n===111551?111551:1920}function pf(n,t,r,i,l){if(l===void 0&&(l=new e.Map),!(n&&!mp(n)))return;var u=$a(n),S=u.accessibleChainCache||(u.accessibleChainCache=new e.Map),M=Nu(t,function(Dt,Bt,cr,Vr){return Vr}),ge=(i?0:1)+"|"+(M&&B(M))+"|"+r;if(S.has(ge))return S.get(ge);var Ge=A(n),We=l.get(Ge);We||l.set(Ge,We=[]);var ze=Nu(t,an);return S.set(ge,ze),ze;function an(Dt,Bt,cr){if(!e.pushIfUnique(We,Dt))return;var Vr=st(Dt,Bt,cr);return We.pop(),Vr}function Tn(Dt,Bt){return!jf(Dt,t,Bt)||!!pf(Dt.parent,t,cd(Bt),i,l)}function et(Dt,Bt,cr){return(n===(Bt||Dt)||To(n)===To(Bt||Dt))&&!e.some(Dt.declarations,dd)&&(cr||Tn(To(Dt),r))}function st(Dt,Bt,cr){if(et(Dt.get(n.escapedName),void 0,Bt))return[n];var Vr=e.forEachEntry(Dt,function(yr){if(yr.flags&2097152&&yr.escapedName!=="export="&&yr.escapedName!=="default"&&!(e.isUMDExportSymbol(yr)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!i||e.some(yr.declarations,e.isExternalModuleImportEqualsDeclaration))&&(cr?!e.some(yr.declarations,e.isNamespaceReexportDeclaration):!0)&&(Bt||!e.getDeclarationOfKind(yr,273))){var ba=ks(yr),ca=Ct(yr,ba,Bt);if(ca)return ca}if(yr.escapedName===n.escapedName&&yr.exportSymbol&&et(To(yr.exportSymbol),void 0,Bt))return[n]});return Vr||(Dt===ke?Ct(gn,gn,Bt):void 0)}function Ct(Dt,Bt,cr){if(et(Dt,Bt,cr))return[Dt];var Vr=ul(Bt),yr=Vr&&an(Vr,!0);if(yr&&Tn(Dt,cd(r)))return[Dt].concat(yr)}}function jf(n,t,r){var i=!1;return Nu(t,function(l){var u=To(l.get(n.escapedName));return u?u===n?!0:(u=u.flags&2097152&&!e.getDeclarationOfKind(u,273)?ks(u):u,u.flags&r?(i=!0,!0):!1):!1}),i}function mp(n){if(n.declarations&&n.declarations.length){for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];switch(i.kind){case 165:case 167:case 170:case 171:continue;default:return!1}}return!0}return!1}function mf(n,t){var r=Ad(n,t,788968,!1,!0);return r.accessibility===0}function Ou(n,t){var r=Ad(n,t,111551,!1,!0);return r.accessibility===0}function Wf(n,t,r){var i=Ad(n,t,r,!1,!1);return i.accessibility===0}function Fd(n,t,r,i,l,u){if(!e.length(n))return;for(var S,M=!1,ge=0,Ge=n;ge<Ge.length;ge++){var We=Ge[ge],ze=pf(We,t,i,!1);if(ze){S=We;var an=Hf(ze[0],l);if(an)return an}if(u&&e.some(We.declarations,dd)){if(l){M=!0;continue}return{accessibility:0}}var Tn=sd(We,t,i),et=Fd(Tn,t,r,r===We?cd(i):i,l,u);if(et)return et}if(M)return{accessibility:0};if(S)return{accessibility:1,errorSymbolName:Xa(r,t,i),errorModuleName:S!==r?Xa(S,t,1920):void 0}}function ud(n,t,r,i){return Ad(n,t,r,i,!0)}function Ad(n,t,r,i,l){if(n&&t){var u=Fd([n],t,n,r,i,l);if(u)return u;var S=e.forEach(n.declarations,hf);if(S){var M=hf(t);if(S!==M)return{accessibility:2,errorSymbolName:Xa(n,t,r),errorModuleName:Xa(S),errorNode:e.isInJSFile(t)?t:void 0}}return{accessibility:1,errorSymbolName:Xa(n,t,r)}}return{accessibility:0}}function hf(n){var t=e.findAncestor(n,gf);return t&&Rr(t)}function gf(n){return e.isAmbientModule(n)||n.kind===300&&e.isExternalOrCommonJsModule(n)}function dd(n){return e.isModuleWithStringLiteralName(n)||n.kind===300&&e.isExternalOrCommonJsModule(n)}function Hf(n,t){var r;if(!e.every(e.filter(n.declarations,function(u){return u.kind!==79}),i))return;return{accessibility:0,aliasesToMakeVisible:r};function i(u){var S,M;if(!mu(u)){var ge=hs(u);return ge&&!e.hasSyntacticModifier(ge,1)&&mu(ge.parent)?l(u,ge):e.isVariableDeclaration(u)&&e.isVariableStatement(u.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent,1)&&mu(u.parent.parent.parent)?l(u,u.parent.parent):e.isLateVisibilityPaintedStatement(u)&&!e.hasSyntacticModifier(u,1)&&mu(u.parent)?l(u,u):n.flags&2097152&&e.isBindingElement(u)&&e.isInJSFile(u)&&((S=u.parent)===null||S===void 0?void 0:S.parent)&&e.isVariableDeclaration(u.parent.parent)&&((M=u.parent.parent.parent)===null||M===void 0?void 0:M.parent)&&e.isVariableStatement(u.parent.parent.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent.parent.parent,1)&&u.parent.parent.parent.parent.parent&&mu(u.parent.parent.parent.parent.parent)?l(u,u.parent.parent.parent.parent):!1}return!0}function l(u,S){return t&&(pa(u).isVisible=!0,r=e.appendIfUnique(r,S)),!0}}function hp(n,t){var r;n.parent.kind===179||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||n.parent.kind===160?r=111551|1048576:n.kind===159||n.kind===204||n.parent.kind===263?r=1920:r=788968;var i=e.getFirstIdentifier(n),l=Zi(t,i.escapedText,r,void 0,void 0,!1);return l&&l.flags&262144&&r&788968?{accessibility:0}:l&&Hf(l,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function Xa(n,t,r,i,l){i===void 0&&(i=4);var u=70221824;i&2&&(u|=128),i&1&&(u|=512),i&8&&(u|=16384),i&16&&(u|=134217728);var S=i&4?Pe.symbolToExpression:Pe.symbolToEntityName;return l?M(l).getText():e.usingSingleLineStringWriter(M);function M(ge){var Ge=S(n,r,t,u),We=(t==null?void 0:t.kind)===300?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),ze=t&&e.getSourceFileOfNode(t);return We.writeNode(4,Ge,ze,ge),ge}}function jc(n,t,r,i,l){return r===void 0&&(r=0),l?u(l).getText():e.usingSingleLineStringWriter(u);function u(S){var M;r&262144?M=i===1?178:177:M=i===1?173:172;var ge=Pe.signatureToSignatureDeclaration(n,M,t,Bd(r)|70221824|512),Ge=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),We=t&&e.getSourceFileOfNode(t);return Ge.writeNode(4,ge,We,e.getTrailingSemicolonDeferringWriter(S)),S}}function Ar(n,t,r,i){r===void 0&&(r=1048576|16384),i===void 0&&(i=e.createTextWriter(""));var l=pe.noErrorTruncation||r&1,u=Pe.typeToTypeNode(n,t,Bd(r)|70221824|(l?1:0),i);if(u===void 0)return e.Debug.fail("should always get typenode");var S={removeComments:!0},M=e.createPrinter(S),ge=t&&e.getSourceFileOfNode(t);M.writeNode(4,u,ge,i);var Ge=i.getText(),We=l?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return We&&Ge&&Ge.length>=We?Ge.substr(0,We-"...".length)+"...":Ge}function Gd(n,t){var r=yf(n.symbol)?Ar(n,n.symbol.valueDeclaration):Ar(n),i=yf(t.symbol)?Ar(t,t.symbol.valueDeclaration):Ar(t);return r===i&&(r=qu(n),i=qu(t)),[r,i]}function qu(n){return Ar(n,void 0,64)}function yf(n){return n&&!!n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!Bu(n.valueDeclaration)}function Bd(n){return n===void 0&&(n=0),n&814775659}function _f(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===yc(n.symbol)||!!(n.flags&524288)&&!!(e.getObjectFlags(n)&16777216))}function fd(){return{typeToTypeNode:function(nt,_n,hr,gr){return n(_n,hr,gr,function(Mr){return i(nt,Mr)})},indexInfoToIndexSignatureDeclaration:function(nt,_n,hr,gr){return n(_n,hr,gr,function(Mr){return Ge(nt,Mr,void 0)})},signatureToSignatureDeclaration:function(nt,_n,hr,gr,Mr){return n(hr,gr,Mr,function(Br){return We(nt,_n,Br)})},symbolToEntityName:function(nt,_n,hr,gr,Mr){return n(hr,gr,Mr,function(Br){return fi(nt,Br,_n,!1)})},symbolToExpression:function(nt,_n,hr,gr,Mr){return n(hr,gr,Mr,function(Br){return ei(nt,Br,_n)})},symbolToTypeParameterDeclarations:function(nt,_n,hr,gr){return n(_n,hr,gr,function(Mr){return Dt(nt,Mr)})},symbolToParameterDeclaration:function(nt,_n,hr,gr){return n(_n,hr,gr,function(Mr){return Tn(nt,Mr)})},typeParameterToDeclaration:function(nt,_n,hr,gr){return n(_n,hr,gr,function(Mr){return an(nt,Mr)})},symbolTableToDeclarationStatements:function(nt,_n,hr,gr,Mr){return n(_n,hr,gr,function(Br){return Ui(nt,Br,Mr)})}};function n(nt,_n,hr,gr){var Mr,Br;e.Debug.assert(nt===void 0||(nt.flags&8)===0);var Kr={enclosingDeclaration:nt,flags:_n||0,tracker:hr&&hr.trackSymbol?hr:{trackSymbol:function(){return!1},moduleResolverHost:_n&134217728?{getCommonSourceDirectory:D.getCommonSourceDirectory?function(){return D.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return D.getCurrentDirectory()},getSymlinkCache:e.maybeBind(D,D.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(D,D.useCaseSensitiveFileNames),redirectTargetsMap:D.redirectTargetsMap,getProjectReferenceRedirect:function(Qn){return D.getProjectReferenceRedirect(Qn)},isSourceOfProjectReferenceRedirect:function(Qn){return D.isSourceOfProjectReferenceRedirect(Qn)},fileExists:function(Qn){return D.fileExists(Qn)},getFileIncludeReasons:function(){return D.getFileIncludeReasons()}}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Kr.tracker=t(Kr,Kr.tracker);var fa=gr(Kr);return Kr.truncating&&Kr.flags&1&&((Br=(Mr=Kr.tracker)===null||Mr===void 0?void 0:Mr.reportTruncationError)===null||Br===void 0||Br.call(Mr)),Kr.encounteredError?void 0:fa}function t(nt,_n){var hr=_n.trackSymbol;return pr(pr({},_n),{reportCyclicStructureError:gr(_n.reportCyclicStructureError),reportInaccessibleThisError:gr(_n.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:gr(_n.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:gr(_n.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:gr(_n.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:gr(_n.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:gr(_n.reportNonSerializableProperty),trackSymbol:hr&&function(){for(var Mr=[],Br=0;Br<arguments.length;Br++)Mr[Br]=arguments[Br];var Kr=hr.apply(void 0,Mr);return Kr&&(nt.reportedDiagnostic=!0),Kr}});function gr(Mr){return Mr&&function(){for(var Br=[],Kr=0;Kr<arguments.length;Kr++)Br[Kr]=arguments[Kr];return nt.reportedDiagnostic=!0,Mr.apply(void 0,Br)}}}function r(nt){return nt.truncating?nt.truncating:nt.truncating=nt.approximateLength>(nt.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function i(nt,_n){q&&q.throwIfCancellationRequested&&q.throwIfCancellationRequested();var hr=_n.flags&8388608;if(_n.flags&=~8388608,!nt){if(!(_n.flags&262144)){_n.encounteredError=!0;return}return _n.approximateLength+=3,e.factory.createKeywordTypeNode(129)}if(_n.flags&536870912||(nt=vu(nt)),nt.flags&1)return _n.approximateLength+=3,e.factory.createKeywordTypeNode(nt===Fn?137:129);if(nt.flags&2)return e.factory.createKeywordTypeNode(153);if(nt.flags&4)return _n.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(nt.flags&8)return _n.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(nt.flags&64)return _n.approximateLength+=6,e.factory.createKeywordTypeNode(156);if(nt.flags&16&&!nt.aliasSymbol)return _n.approximateLength+=7,e.factory.createKeywordTypeNode(132);if(nt.flags&1024&&!(nt.flags&1048576)){var gr=$l(nt.symbol),Mr=yr(gr,_n,788968);if(ls(gr)===nt)return Mr;var Br=e.symbolName(nt.symbol);return e.isIdentifierText(Br,0)?Ip(Mr,e.factory.createTypeReferenceNode(Br,void 0)):e.isImportTypeNode(Mr)?(Mr.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(Mr,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Br)))):e.isTypeReferenceNode(Mr)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(Mr.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Br))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(nt.flags&1056)return yr(nt.symbol,_n,788968);if(nt.flags&128)return _n.approximateLength+=nt.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(nt.value,!!(_n.flags&268435456)),16777216));if(nt.flags&256){var Kr=nt.value;return _n.approximateLength+=(""+Kr).length,e.factory.createLiteralTypeNode(Kr<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Kr)):e.factory.createNumericLiteral(Kr))}if(nt.flags&2048)return _n.approximateLength+=e.pseudoBigIntToString(nt.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(nt.value));if(nt.flags&512)return _n.approximateLength+=nt.intrinsicName.length,e.factory.createLiteralTypeNode(nt.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(nt.flags&8192){if(!(_n.flags&1048576)){if(Ou(nt.symbol,_n.enclosingDeclaration))return _n.approximateLength+=6,yr(nt.symbol,_n,111551);_n.tracker.reportInaccessibleUniqueSymbolError&&_n.tracker.reportInaccessibleUniqueSymbolError()}return _n.approximateLength+=13,e.factory.createTypeOperatorNode(152,e.factory.createKeywordTypeNode(149))}if(nt.flags&16384)return _n.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(nt.flags&32768)return _n.approximateLength+=9,e.factory.createKeywordTypeNode(151);if(nt.flags&65536)return _n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(nt.flags&131072)return _n.approximateLength+=5,e.factory.createKeywordTypeNode(142);if(nt.flags&4096)return _n.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(nt.flags&67108864)return _n.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(fy(nt))return _n.flags&4194304&&(!_n.encounteredError&&!(_n.flags&32768)&&(_n.encounteredError=!0),_n.tracker.reportInaccessibleThisError&&_n.tracker.reportInaccessibleThisError()),_n.approximateLength+=4,e.factory.createThisTypeNode();if(!hr&&nt.aliasSymbol&&(_n.flags&16384||mf(nt.aliasSymbol,_n.enclosingDeclaration))){var fa=M(nt.aliasTypeArguments,_n);return Sl(nt.aliasSymbol.escapedName)&&!(nt.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),fa):yr(nt.aliasSymbol,_n,788968,fa)}var Qn=e.getObjectFlags(nt);if(Qn&4)return e.Debug.assert(!!(nt.flags&524288)),nt.node?Qs(nt,el):el(nt);if(nt.flags&262144||Qn&3){if(nt.flags&262144&&e.contains(_n.inferTypeParameters,nt))return _n.approximateLength+=e.symbolName(nt.symbol).length+6,e.factory.createInferTypeNode(ze(nt,_n,void 0));if(_n.flags&4&&nt.flags&262144&&!mf(nt.symbol,_n.enclosingDeclaration)){var kt=ca(nt,_n);return _n.approximateLength+=e.idText(kt).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(kt)),void 0)}return nt.symbol?yr(nt.symbol,_n,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(nt.flags&1048576&&nt.origin&&(nt=nt.origin),nt.flags&(1048576|2097152)){var Kt=nt.flags&1048576?gc(nt.types):nt.types;if(e.length(Kt)===1)return i(Kt[0],_n);var nr=M(Kt,_n,!0);if(nr&&nr.length>0)return nt.flags&1048576?e.factory.createUnionTypeNode(nr):e.factory.createIntersectionTypeNode(nr);!_n.encounteredError&&!(_n.flags&262144)&&(_n.encounteredError=!0);return}if(Qn&(16|32))return e.Debug.assert(!!(nt.flags&524288)),dl(nt);if(nt.flags&4194304){var ur=nt.type;_n.approximateLength+=6;var Cr=i(ur,_n);return e.factory.createTypeOperatorNode(139,Cr)}if(nt.flags&134217728){var ma=nt.texts,Ia=nt.types,Ti=e.factory.createTemplateHead(ma[0]),Aa=e.factory.createNodeArray(e.map(Ia,function(Ua,zi){return e.factory.createTemplateLiteralTypeSpan(i(Ua,_n),(zi<Ia.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(ma[zi+1]))}));return _n.approximateLength+=2,e.factory.createTemplateLiteralType(Ti,Aa)}if(nt.flags&268435456){var fo=i(nt.type,_n);return yr(nt.symbol,_n,788968,[fo])}if(nt.flags&8388608){var zo=i(nt.objectType,_n),Cr=i(nt.indexType,_n);return _n.approximateLength+=2,e.factory.createIndexedAccessTypeNode(zo,Cr)}if(nt.flags&16777216)return Qs(nt,function(Ua){return Wo(Ua)});if(nt.flags&33554432)return i(nt.baseType,_n);return e.Debug.fail("Should be unreachable.");function Wo(Ua){var zi=i(Ua.checkType,_n),ws=_n.inferTypeParameters;_n.inferTypeParameters=Ua.root.inferTypeParameters;var Ao=i(Ua.extendsType,_n);_n.inferTypeParameters=ws;var tt=is(rp(Ua)),vt=is(ap(Ua));return _n.approximateLength+=15,e.factory.createConditionalTypeNode(zi,Ao,tt,vt)}function is(Ua){var zi,ws,Ao;return Ua.flags&1048576?((zi=_n.visitedTypes)===null||zi===void 0?void 0:zi.has(Su(Ua)))?(_n.flags&131072||(_n.encounteredError=!0,(Ao=(ws=_n.tracker)===null||ws===void 0?void 0:ws.reportCyclicStructureError)===null||Ao===void 0||Ao.call(ws)),l(_n)):Qs(Ua,function(tt){return i(tt,_n)}):i(Ua,_n)}function il(Ua){e.Debug.assert(!!(Ua.flags&524288));var zi=Ua.declaration.readonlyToken?e.factory.createToken(Ua.declaration.readonlyToken.kind):void 0,ws=Ua.declaration.questionToken?e.factory.createToken(Ua.declaration.questionToken.kind):void 0,Ao;$h(Ua)?Ao=e.factory.createTypeOperatorNode(139,i(eg(Ua),_n)):Ao=i(yu(Ua),_n);var tt=ze(Mu(Ua),_n,Ao),vt=Ua.declaration.nameType?i(Qf(Ua),_n):void 0,jt=i(jm(Kc(Ua),!!(_u(Ua)&4)),_n),ar=e.factory.createMappedTypeNode(zi,tt,vt,ws,jt);return _n.approximateLength+=10,e.setEmitFlags(ar,1)}function dl(Ua){var zi,ws=Ua.id,Ao=Ua.symbol;if(Ao){var tt=_f(Ua)?788968:111551;if(Wu(Ao.valueDeclaration))return yr(Ao,_n,tt);if(Ao.flags&32&&!Xs(Ao)&&!(Ao.valueDeclaration&&Ao.valueDeclaration.kind===224&&_n.flags&2048)||Ao.flags&(384|512)||jt())return yr(Ao,_n,tt);if((zi=_n.visitedTypes)===null||zi===void 0?void 0:zi.has(ws)){var vt=zu(Ua);return vt?yr(vt,_n,788968):l(_n)}else return Qs(Ua,of)}else return of(Ua);function jt(){var ar,Jr=!!(Ao.flags&8192)&&e.some(Ao.declarations,function(Tr){return e.isStatic(Tr)}),xr=!!(Ao.flags&16)&&(Ao.parent||e.forEach(Ao.declarations,function(Tr){return Tr.parent.kind===300||Tr.parent.kind===260}));if(Jr||xr)return(!!(_n.flags&4096)||((ar=_n.visitedTypes)===null||ar===void 0?void 0:ar.has(ws)))&&(!(_n.flags&8)||Ou(Ao,_n.enclosingDeclaration))}}function Qs(Ua,zi){var ws,Ao,tt=Ua.id,vt=e.getObjectFlags(Ua)&16&&Ua.symbol&&Ua.symbol.flags&32,jt=e.getObjectFlags(Ua)&4&&Ua.node?"N"+B(Ua.node):Ua.flags&16777216?"N"+B(Ua.root.node):Ua.symbol?(vt?"+":"")+A(Ua.symbol):void 0;_n.visitedTypes||(_n.visitedTypes=new e.Set),jt&&!_n.symbolDepth&&(_n.symbolDepth=new e.Map);var ar=_n.enclosingDeclaration&&pa(_n.enclosingDeclaration),Jr=Su(Ua)+"|"+_n.flags;ar&&(ar.serializedTypes||(ar.serializedTypes=new e.Map));var xr=(ws=ar==null?void 0:ar.serializedTypes)===null||ws===void 0?void 0:ws.get(Jr);if(xr)return xr.truncating&&(_n.truncating=!0),_n.approximateLength+=xr.addedLength,Ni(xr);var Tr;if(jt){if(Tr=_n.symbolDepth.get(jt)||0,Tr>10)return l(_n);_n.symbolDepth.set(jt,Tr+1)}_n.visitedTypes.add(tt);var kr=_n.approximateLength,Wa=zi(Ua),Ii=_n.approximateLength-kr;return!_n.reportedDiagnostic&&!_n.encounteredError&&(_n.truncating&&(Wa.truncating=!0),Wa.addedLength=Ii,(Ao=ar==null?void 0:ar.serializedTypes)===null||Ao===void 0||Ao.set(Jr,Wa)),_n.visitedTypes.delete(tt),jt&&_n.symbolDepth.set(jt,Tr),Wa;function Ni(ao){return!e.nodeIsSynthesized(ao)&&e.getParseTreeNode(ao)===ao?ao:e.setTextRange(e.factory.cloneNode(e.visitEachChild(ao,Ni,e.nullTransformationContext)),ao)}}function of(Ua){if(Dc(Ua)||Ua.containsError)return il(Ua);var zi=Fu(Ua);if(!zi.properties.length&&!zi.indexInfos.length){if(!zi.callSignatures.length&&!zi.constructSignatures.length)return _n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(zi.callSignatures.length===1&&!zi.constructSignatures.length){var ws=zi.callSignatures[0],Ao=We(ws,177,_n);return Ao}if(zi.constructSignatures.length===1&&!zi.callSignatures.length){var ws=zi.constructSignatures[0],Ao=We(ws,178,_n);return Ao}}var tt=e.filter(zi.constructSignatures,function(Tr){return!!(Tr.flags&4)});if(e.some(tt)){var vt=e.map(tt,mh),jt=zi.callSignatures.length+(zi.constructSignatures.length-tt.length)+zi.indexInfos.length+(_n.flags&2048?e.countWhere(zi.properties,function(Tr){return!(Tr.flags&4194304)}):e.length(zi.properties));return jt&&vt.push(pp(zi)),i(Go(vt),_n)}var ar=_n.flags;_n.flags|=4194304;var Jr=Wh(zi);_n.flags=ar;var xr=e.factory.createTypeLiteralNode(Jr);return _n.approximateLength+=2,e.setEmitFlags(xr,_n.flags&1024?0:1),xr}function el(Ua){var zi=Oo(Ua);if(Ua.target===_t||Ua.target===tr){if(_n.flags&2){var ws=i(zi[0],_n);return e.factory.createTypeReferenceNode(Ua.target===_t?"Array":"ReadonlyArray",[ws])}var Ao=i(zi[0],_n),tt=e.factory.createArrayTypeNode(Ao);return Ua.target===_t?tt:e.factory.createTypeOperatorNode(143,tt)}else if(Ua.target.objectFlags&8){if(zi=e.sameMap(zi,function(us,As){return jm(us,!!(Ua.target.elementFlags[As]&2))}),zi.length>0){var vt=ep(Ua),jt=M(zi.slice(0,vt),_n);if(jt){if(Ua.target.labeledElementDeclarations)for(var ar=0;ar<jt.length;ar++){var Jr=Ua.target.elementFlags[ar];jt[ar]=e.factory.createNamedTupleMember(Jr&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(uv(Ua.target.labeledElementDeclarations[ar]))),Jr&2?e.factory.createToken(57):void 0,Jr&4?e.factory.createArrayTypeNode(jt[ar]):jt[ar])}else for(var ar=0;ar<Math.min(vt,jt.length);ar++){var Jr=Ua.target.elementFlags[ar];jt[ar]=Jr&12?e.factory.createRestTypeNode(Jr&4?e.factory.createArrayTypeNode(jt[ar]):jt[ar]):Jr&2?e.factory.createOptionalTypeNode(jt[ar]):jt[ar]}var xr=e.setEmitFlags(e.factory.createTupleTypeNode(jt),1);return Ua.target.readonly?e.factory.createTypeOperatorNode(143,xr):xr}}if(_n.encounteredError||_n.flags&524288){var xr=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return Ua.target.readonly?e.factory.createTypeOperatorNode(143,xr):xr}_n.encounteredError=!0;return}else{if(_n.flags&2048&&Ua.symbol.valueDeclaration&&e.isClassLike(Ua.symbol.valueDeclaration)&&!Ou(Ua.symbol,_n.enclosingDeclaration))return dl(Ua);var Tr=Ua.target.outerTypeParameters,ar=0,kr=void 0;if(Tr)for(var Wa=Tr.length;ar<Wa;){var Ii=ar,Ni=QT(Tr[ar]);do ar++;while(ar<Wa&&QT(Tr[ar])===Ni);if(!e.rangeEquals(Tr,zi,Ii,ar)){var ao=M(zi.slice(Ii,ar),_n),$i=_n.flags;_n.flags|=16;var Hs=yr(Ni,_n,788968,ao);_n.flags=$i,kr=kr?Ip(kr,Hs):Hs}}var Ts=void 0;if(zi.length>0){var Zs=(Ua.target.typeParameters||e.emptyArray).length;Ts=M(zi.slice(ar,Zs),_n)}var Jr=_n.flags;_n.flags|=16;var cs=yr(Ua.symbol,_n,788968,Ts);return _n.flags=Jr,kr?Ip(kr,cs):cs}}function Ip(Ua,zi){if(e.isImportTypeNode(Ua)){var ws=Ua.typeArguments,Ao=Ua.qualifier;Ao&&(e.isIdentifier(Ao)?Ao=e.factory.updateIdentifier(Ao,ws):Ao=e.factory.updateQualifiedName(Ao,Ao.left,e.factory.updateIdentifier(Ao.right,ws))),ws=zi.typeArguments;for(var tt=Gg(zi),vt=0,jt=tt;vt<jt.length;vt++){var ar=jt[vt];Ao=Ao?e.factory.createQualifiedName(Ao,ar):ar}return e.factory.updateImportTypeNode(Ua,Ua.argument,Ao,ws,Ua.isTypeOf)}else{var ws=Ua.typeArguments,Jr=Ua.typeName;e.isIdentifier(Jr)?Jr=e.factory.updateIdentifier(Jr,ws):Jr=e.factory.updateQualifiedName(Jr,Jr.left,e.factory.updateIdentifier(Jr.right,ws)),ws=zi.typeArguments;for(var tt=Gg(zi),xr=0,Tr=tt;xr<Tr.length;xr++){var ar=Tr[xr];Jr=e.factory.createQualifiedName(Jr,ar)}return e.factory.updateTypeReferenceNode(Ua,Jr,ws)}}function Gg(Ua){for(var zi=Ua.typeName,ws=[];!e.isIdentifier(zi);)ws.unshift(zi.right),zi=zi.left;return ws.unshift(zi),ws}function Wh(Ua){if(r(_n))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var zi=[],ws=0,Ao=Ua.callSignatures;ws<Ao.length;ws++){var tt=Ao[ws];zi.push(We(tt,172,_n))}for(var vt=0,jt=Ua.constructSignatures;vt<jt.length;vt++){var tt=jt[vt];if(tt.flags&4)continue;zi.push(We(tt,173,_n))}for(var ar=0,Jr=Ua.indexInfos;ar<Jr.length;ar++){var xr=Jr[ar];zi.push(Ge(xr,_n,Ua.objectFlags&1024?l(_n):void 0))}var Tr=Ua.properties;if(!Tr)return zi;for(var kr=0,Wa=0,Ii=Tr;Wa<Ii.length;Wa++){var Ni=Ii[Wa];if(kr++,_n.flags&2048){if(Ni.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(Ni)&(8|16)&&_n.tracker.reportPrivateInBaseOfClassExpression&&_n.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(Ni.escapedName))}if(r(_n)&&kr+2<Tr.length-1){zi.push(e.factory.createPropertySignature(void 0,"... "+(Tr.length-kr)+" more ...",void 0,void 0)),S(Tr[Tr.length-1],_n,zi);break}S(Ni,_n,zi)}return zi.length?zi:void 0}}function l(nt){return nt.approximateLength+=3,nt.flags&1?e.factory.createKeywordTypeNode(129):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function u(nt,_n){var hr;return!!(e.getCheckFlags(nt)&8192)&&(e.contains(_n.reverseMappedStack,nt)||((hr=_n.reverseMappedStack)===null||hr===void 0?void 0:hr[0])&&!(e.getObjectFlags(e.last(_n.reverseMappedStack).propertyType)&16))}function S(nt,_n,hr){var gr,Mr,Br=!!(e.getCheckFlags(nt)&8192),Kr=u(nt,_n)?lt:kl(nt),fa=_n.enclosingDeclaration;if(_n.enclosingDeclaration=void 0,_n.tracker.trackSymbol&&e.getCheckFlags(nt)&4096&&wl(nt.escapedName))if(nt.declarations){var Qn=e.first(nt.declarations);if(Bl(Qn))if(e.isBinaryExpression(Qn)){var kt=e.getNameOfDeclaration(Qn);kt&&e.isElementAccessExpression(kt)&&e.isPropertyAccessEntityNameExpression(kt.argumentExpression)&&et(kt.argumentExpression,fa,_n)}else et(Qn.name.expression,fa,_n)}else((gr=_n.tracker)===null||gr===void 0?void 0:gr.reportNonSerializableProperty)&&_n.tracker.reportNonSerializableProperty(Xa(nt));_n.enclosingDeclaration=nt.valueDeclaration||((Mr=nt.declarations)===null||Mr===void 0?void 0:Mr[0])||fa;var Kt=vo(nt,_n);_n.enclosingDeclaration=fa,_n.approximateLength+=e.symbolName(nt).length+1;var nr=nt.flags&16777216?e.factory.createToken(57):void 0;if(nt.flags&(16|8192)&&!Kd(Kr).length&&!_d(nt))for(var ur=qt(Vl(Kr,function(is){return!(is.flags&32768)}),0),Cr=0,ma=ur;Cr<ma.length;Cr++){var Ia=ma[Cr],Ti=We(Ia,166,_n,{name:Kt,questionToken:nr});hr.push(Wo(Ti))}else{var Aa=void 0;u(nt,_n)?Aa=l(_n):(Br&&(_n.reverseMappedStack||(_n.reverseMappedStack=[]),_n.reverseMappedStack.push(nt)),Aa=Kr?ta(_n,Kr,nt,fa):e.factory.createKeywordTypeNode(129),Br&&_n.reverseMappedStack.pop());var fo=_d(nt)?[e.factory.createToken(143)]:void 0;fo&&(_n.approximateLength+=9);var zo=e.factory.createPropertySignature(fo,Kt,nr,Aa);hr.push(Wo(zo))}function Wo(is){var il;if(e.some(nt.declarations,function(of){return of.kind===342})){var dl=(il=nt.declarations)===null||il===void 0?void 0:il.find(function(of){return of.kind===342}),Qs=e.getTextOfJSDocComment(dl.comment);Qs&&e.setSyntheticLeadingComments(is,[{kind:3,text:`*
|
|
|
* `+Qs.replace(/\n/g,`
|
|
|
* `)+`
|
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else nt.valueDeclaration&&e.setCommentRange(is,nt.valueDeclaration);return is}}function M(nt,_n,hr){if(e.some(nt)){if(r(_n))if(hr){if(nt.length>2)return[i(nt[0],_n),e.factory.createTypeReferenceNode("... "+(nt.length-2)+" more ...",void 0),i(nt[nt.length-1],_n)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var gr=!(_n.flags&64),Mr=gr?e.createUnderscoreEscapedMultiMap():void 0,Br=[],Kr=0,fa=0,Qn=nt;fa<Qn.length;fa++){var kt=Qn[fa];if(Kr++,r(_n)&&Kr+2<nt.length-1){Br.push(e.factory.createTypeReferenceNode("... "+(nt.length-Kr)+" more ...",void 0));var Kt=i(nt[nt.length-1],_n);Kt&&Br.push(Kt);break}_n.approximateLength+=2;var nr=i(kt,_n);nr&&(Br.push(nr),Mr&&e.isIdentifierTypeReference(nr)&&Mr.add(nr.typeName.escapedText,[kt,Br.length-1]))}if(Mr){var ur=_n.flags;_n.flags|=64,Mr.forEach(function(Cr){if(!e.arrayIsHomogeneous(Cr,function(zo,Wo){var is=zo[0],il=Wo[0];return ge(is,il)}))for(var ma=0,Ia=Cr;ma<Ia.length;ma++){var Ti=Ia[ma],Aa=Ti[0],fo=Ti[1];Br[fo]=i(Aa,_n)}}),_n.flags=ur}return Br}}function ge(nt,_n){return nt===_n||!!nt.symbol&&nt.symbol===_n.symbol||!!nt.aliasSymbol&&nt.aliasSymbol===_n.aliasSymbol}function Ge(nt,_n,hr){var gr=e.getNameFromIndexInfo(nt)||"x",Mr=i(nt.keyType,_n),Br=e.factory.createParameterDeclaration(void 0,void 0,void 0,gr,void 0,Mr,void 0);return hr||(hr=i(nt.type||lt,_n)),!nt.type&&!(_n.flags&2097152)&&(_n.encounteredError=!0),_n.approximateLength+=gr.length+4,e.factory.createIndexSignature(void 0,nt.isReadonly?[e.factory.createToken(143)]:void 0,[Br],hr)}function We(nt,_n,hr,gr){var Mr,Br,Kr,fa,Qn=hr.flags&256;Qn&&(hr.flags&=~256),hr.approximateLength+=3;var kt,Kt;hr.flags&32&&nt.target&&nt.mapper&&nt.target.typeParameters?Kt=nt.target.typeParameters.map(function(dl){return i(si(dl,nt.mapper),hr)}):kt=nt.typeParameters&&nt.typeParameters.map(function(dl){return an(dl,hr)});var nr=Yh(nt,!0)[0],ur=(e.some(nr,function(dl){return dl!==nr[nr.length-1]&&!!(e.getCheckFlags(dl)&32768)})?nt.parameters:nr).map(function(dl){return Tn(dl,hr,_n===169,gr==null?void 0:gr.privateSymbolVisitor,gr==null?void 0:gr.bundledImports)});if(nt.thisParameter){var Cr=Tn(nt.thisParameter,hr);ur.unshift(Cr)}var ma,Ia=Mc(nt);if(Ia){var Ti=Ia.kind===2||Ia.kind===3?e.factory.createToken(128):void 0,Aa=Ia.kind===1||Ia.kind===3?e.setEmitFlags(e.factory.createIdentifier(Ia.parameterName),16777216):e.factory.createThisTypeNode(),fo=Ia.type&&i(Ia.type,hr);ma=e.factory.createTypePredicateNode(Ti,Aa,fo)}else{var zo=_o(nt);zo&&!(Qn&&no(zo))?ma=ri(hr,zo,nt,gr==null?void 0:gr.privateSymbolVisitor,gr==null?void 0:gr.bundledImports):Qn||(ma=e.factory.createKeywordTypeNode(129))}var Wo=gr==null?void 0:gr.modifiers;if(_n===178&&nt.flags&4){var is=e.modifiersToFlags(Wo);Wo=e.factory.createModifiersFromModifierFlags(is|128)}var il=_n===172?e.factory.createCallSignature(kt,ur,ma):_n===173?e.factory.createConstructSignature(kt,ur,ma):_n===166?e.factory.createMethodSignature(Wo,(Mr=gr==null?void 0:gr.name)!==null&&Mr!==void 0?Mr:e.factory.createIdentifier(""),gr==null?void 0:gr.questionToken,kt,ur,ma):_n===167?e.factory.createMethodDeclaration(void 0,Wo,void 0,(Br=gr==null?void 0:gr.name)!==null&&Br!==void 0?Br:e.factory.createIdentifier(""),void 0,kt,ur,ma,void 0):_n===169?e.factory.createConstructorDeclaration(void 0,Wo,ur,void 0):_n===170?e.factory.createGetAccessorDeclaration(void 0,Wo,(Kr=gr==null?void 0:gr.name)!==null&&Kr!==void 0?Kr:e.factory.createIdentifier(""),ur,ma,void 0):_n===171?e.factory.createSetAccessorDeclaration(void 0,Wo,(fa=gr==null?void 0:gr.name)!==null&&fa!==void 0?fa:e.factory.createIdentifier(""),ur,void 0):_n===174?e.factory.createIndexSignature(void 0,Wo,ur,ma):_n===312?e.factory.createJSDocFunctionType(ur,ma):_n===177?e.factory.createFunctionTypeNode(kt,ur,ma!=null?ma:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):_n===178?e.factory.createConstructorTypeNode(Wo,kt,ur,ma!=null?ma:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):_n===254?e.factory.createFunctionDeclaration(void 0,Wo,void 0,(gr==null?void 0:gr.name)?e.cast(gr.name,e.isIdentifier):e.factory.createIdentifier(""),kt,ur,ma,void 0):_n===211?e.factory.createFunctionExpression(Wo,void 0,(gr==null?void 0:gr.name)?e.cast(gr.name,e.isIdentifier):e.factory.createIdentifier(""),kt,ur,ma,e.factory.createBlock([])):_n===212?e.factory.createArrowFunction(Wo,kt,ur,ma,void 0,e.factory.createBlock([])):e.Debug.assertNever(_n);return Kt&&(il.typeArguments=e.factory.createNodeArray(Kt)),il}function ze(nt,_n,hr){var gr=_n.flags;_n.flags&=~512;var Mr=ca(nt,_n),Br=Zf(nt),Kr=Br&&i(Br,_n);return _n.flags=gr,e.factory.createTypeParameterDeclaration(Mr,hr,Kr)}function an(nt,_n,hr){hr===void 0&&(hr=Cc(nt));var gr=hr&&i(hr,_n);return ze(nt,_n,gr)}function Tn(nt,_n,hr,gr,Mr){var Br=e.getDeclarationOfKind(nt,162);!Br&&!e.isTransientSymbol(nt)&&(Br=e.getDeclarationOfKind(nt,335));var Kr=Ir(nt);Br&&FA(Br)&&(Kr=ef(Kr)),_n.flags&1073741824&&Br&&!e.isJSDocParameterTag(Br)&&$O(Br)&&(Kr=Dl(Kr,524288));var fa=ta(_n,Kr,nt,_n.enclosingDeclaration,gr,Mr),Qn=!(_n.flags&8192)&&hr&&Br&&Br.modifiers?Br.modifiers.map(e.factory.cloneNode):void 0,kt=Br&&e.isRestParameter(Br)||e.getCheckFlags(nt)&32768,Kt=kt?e.factory.createToken(25):void 0,nr=Br&&Br.name?Br.name.kind===79?e.setEmitFlags(e.factory.cloneNode(Br.name),16777216):Br.name.kind===159?e.setEmitFlags(e.factory.cloneNode(Br.name.right),16777216):Ia(Br.name):e.symbolName(nt),ur=Br&&Jd(Br)||e.getCheckFlags(nt)&16384,Cr=ur?e.factory.createToken(57):void 0,ma=e.factory.createParameterDeclaration(void 0,Qn,Kt,nr,Cr,fa,void 0);return _n.approximateLength+=e.symbolName(nt).length+3,ma;function Ia(Ti){return Aa(Ti);function Aa(fo){_n.tracker.trackSymbol&&e.isComputedPropertyName(fo)&&ys(fo)&&et(fo.expression,_n.enclosingDeclaration,_n);var zo=e.visitEachChild(fo,Aa,e.nullTransformationContext,void 0,Aa);return e.isBindingElement(zo)&&(zo=e.factory.updateBindingElement(zo,zo.dotDotDotToken,zo.propertyName,zo.name,void 0)),e.nodeIsSynthesized(zo)||(zo=e.factory.cloneNode(zo)),e.setEmitFlags(zo,1|16777216)}}}function et(nt,_n,hr){if(!hr.tracker.trackSymbol)return;var gr=e.getFirstIdentifier(nt),Mr=Zi(gr,gr.escapedText,111551|1048576,void 0,void 0,!0);Mr&&hr.tracker.trackSymbol(Mr,_n,111551)}function st(nt,_n,hr,gr){return _n.tracker.trackSymbol(nt,_n.enclosingDeclaration,hr),Ct(nt,_n,hr,gr)}function Ct(nt,_n,hr,gr){var Mr,Br=nt.flags&262144;return!Br&&(_n.enclosingDeclaration||_n.flags&64)&&!(_n.flags&134217728)?(Mr=e.Debug.checkDefined(Kr(nt,hr,!0)),e.Debug.assert(Mr&&Mr.length>0)):Mr=[nt],Mr;function Kr(fa,Qn,kt){var Kt=pf(fa,_n.enclosingDeclaration,Qn,!!(_n.flags&128)),nr;if(!Kt||jf(Kt[0],_n.enclosingDeclaration,Kt.length===1?Qn:cd(Qn))){var ur=sd(Kt?Kt[0]:fa,_n.enclosingDeclaration,Qn);if(e.length(ur)){nr=ur.map(function(Wo){return e.some(Wo.declarations,dd)?Vr(Wo,_n):void 0});var Cr=ur.map(function(Wo,is){return is});Cr.sort(zo);for(var ma=Cr.map(function(Wo){return ur[Wo]}),Ia=0,Ti=ma;Ia<Ti.length;Ia++){var Aa=Ti[Ia],fo=Kr(Aa,cd(Qn),!1);if(fo){if(Aa.exports&&Aa.exports.get("export=")&&xc(Aa.exports.get("export="),fa)){Kt=fo;break}Kt=fo.concat(Kt||[Md(Aa,fa)||fa]);break}}}}if(Kt)return Kt;if(kt||!(fa.flags&(2048|4096)))return!kt&&!gr&&!!e.forEach(fa.declarations,dd)?void 0:[fa];function zo(Wo,is){var il=nr[Wo],dl=nr[is];if(il&&dl){var Qs=e.pathIsRelative(dl);return e.pathIsRelative(il)===Qs?e.moduleSpecifiers.countPathComponents(il)-e.moduleSpecifiers.countPathComponents(dl):Qs?-1:1}return 0}}}function Dt(nt,_n){var hr,gr=$m(nt);return gr.flags&(32|64|524288)&&(hr=e.factory.createNodeArray(e.map(Lr(nt),function(Mr){return an(Mr,_n)}))),hr}function Bt(nt,_n,hr){var gr;e.Debug.assert(nt&&0<=_n&&_n<nt.length);var Mr=nt[_n],Br=A(Mr);if((gr=hr.typeParameterSymbolList)===null||gr===void 0?void 0:gr.has(Br))return;(hr.typeParameterSymbolList||(hr.typeParameterSymbolList=new e.Set)).add(Br);var Kr;if(hr.flags&512&&_n<nt.length-1){var fa=Mr,Qn=nt[_n+1];if(e.getCheckFlags(Qn)&1){var kt=Ei(fa.flags&2097152?ks(fa):fa);Kr=M(e.map(kt,function(Kt){return $p(Kt,Qn.mapper)}),hr)}else Kr=Dt(Mr,hr)}return Kr}function cr(nt){return e.isIndexedAccessTypeNode(nt.objectType)?cr(nt.objectType):nt}function Vr(nt,_n){var hr,gr=e.getDeclarationOfKind(nt,300);if(!gr){var Mr=e.firstDefined(nt.declarations,function(Ia){return Vf(Ia,nt)});Mr&&(gr=e.getDeclarationOfKind(Mr,300))}if(gr&&gr.moduleName!==void 0)return gr.moduleName;if(!gr){if(_n.tracker.trackReferencedAmbientModule){var Br=e.filter(nt.declarations,e.isAmbientModule);if(e.length(Br))for(var Kr=0,fa=Br;Kr<fa.length;Kr++){var Qn=fa[Kr];_n.tracker.trackReferencedAmbientModule(Qn,nt)}}if(s.test(nt.escapedName))return nt.escapedName.substring(1,nt.escapedName.length-1)}if(!_n.enclosingDeclaration||!_n.tracker.moduleResolverHost)return s.test(nt.escapedName)?nt.escapedName.substring(1,nt.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(nt)).fileName;var kt=e.getSourceFileOfNode(e.getOriginalNode(_n.enclosingDeclaration)),Kt=$a(nt),nr=Kt.specifierCache&&Kt.specifierCache.get(kt.path);if(!nr){var ur=!!e.outFile(pe),Cr=_n.tracker.moduleResolverHost,ma=ur?pr(pr({},pe),{baseUrl:Cr.getCommonSourceDirectory()}):pe;nr=e.first(e.moduleSpecifiers.getModuleSpecifiers(nt,Be,ma,kt,Cr,{importModuleSpecifierPreference:ur?"non-relative":"project-relative",importModuleSpecifierEnding:ur?"minimal":void 0})),(hr=Kt.specifierCache)!==null&&hr!==void 0||(Kt.specifierCache=new e.Map),Kt.specifierCache.set(kt.path,nr)}return nr}function yr(nt,_n,hr,gr){var Mr=st(nt,_n,hr,!(_n.flags&16384)),Br=hr===111551;if(e.some(Mr[0].declarations,dd)){var Kr=Mr.length>1?Ia(Mr,Mr.length-1,1):void 0,fa=gr||Bt(Mr,0,_n),Qn=Vr(Mr[0],_n);!(_n.flags&67108864)&&e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.NodeJs&&Qn.indexOf("/node_modules/")>=0&&(_n.encounteredError=!0,_n.tracker.reportLikelyUnsafeImportRequiredError&&_n.tracker.reportLikelyUnsafeImportRequiredError(Qn));var kt=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Qn));if(_n.tracker.trackExternalModuleSymbolOfImportTypeNode&&_n.tracker.trackExternalModuleSymbolOfImportTypeNode(Mr[0]),_n.approximateLength+=Qn.length+10,!Kr||e.isEntityName(Kr)){if(Kr){var Kt=e.isIdentifier(Kr)?Kr:Kr.right;Kt.typeArguments=void 0}return e.factory.createImportTypeNode(kt,Kr,fa,Br)}else{var nr=cr(Kr),ur=nr.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(kt,ur,fa,Br),nr.indexType)}}var Cr=Ia(Mr,Mr.length-1,0);if(e.isIndexedAccessTypeNode(Cr))return Cr;if(Br)return e.factory.createTypeQueryNode(Cr);var Kt=e.isIdentifier(Cr)?Cr:Cr.right,ma=Kt.typeArguments;return Kt.typeArguments=void 0,e.factory.createTypeReferenceNode(Cr,ma);function Ia(Ti,Aa,fo){var zo=Aa===Ti.length-1?gr:Bt(Ti,Aa,_n),Wo=Ti[Aa],is=Ti[Aa-1],il;if(Aa===0)_n.flags|=16777216,il=pd(Wo,_n),_n.approximateLength+=(il?il.length:0)+1,_n.flags^=16777216;else if(is&&ul(is)){var dl=ul(is);e.forEachEntry(dl,function(el,Ip){if(xc(el,Wo)&&!wl(Ip)&&Ip!=="export=")return il=e.unescapeLeadingUnderscores(Ip),!0})}if(il||(il=pd(Wo,_n)),_n.approximateLength+=il.length+1,!(_n.flags&16)&&is&&eu(is)&&eu(is).get(Wo.escapedName)&&xc(eu(is).get(Wo.escapedName),Wo)){var Qs=Ia(Ti,Aa-1,fo);return e.isIndexedAccessTypeNode(Qs)?e.factory.createIndexedAccessTypeNode(Qs,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(il))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(Qs,zo),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(il)))}var of=e.setEmitFlags(e.factory.createIdentifier(il,zo),16777216);if(of.symbol=Wo,Aa>fo){var Qs=Ia(Ti,Aa-1,fo);return e.isEntityName(Qs)?e.factory.createQualifiedName(Qs,of):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return of}}function ba(nt,_n,hr){var gr=Zi(_n.enclosingDeclaration,nt,788968,void 0,nt,!1);return gr?!(gr.flags&262144&&gr===hr.symbol):!1}function ca(nt,_n){var hr,gr;if(_n.flags&4&&_n.typeParameterNames){var Mr=_n.typeParameterNames.get(Su(nt));if(Mr)return Mr}var Br=fi(nt.symbol,_n,788968,!0);if(!(Br.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(_n.flags&4){for(var Kr=Br.escapedText,fa=((hr=_n.typeParameterNamesByTextNextNameCount)===null||hr===void 0?void 0:hr.get(Kr))||0,Qn=Kr;((gr=_n.typeParameterNamesByText)===null||gr===void 0?void 0:gr.has(Qn))||ba(Qn,_n,nt);)fa++,Qn=Kr+"_"+fa;Qn!==Kr&&(Br=e.factory.createIdentifier(Qn,Br.typeArguments)),(_n.typeParameterNamesByTextNextNameCount||(_n.typeParameterNamesByTextNextNameCount=new e.Map)).set(Kr,fa),(_n.typeParameterNames||(_n.typeParameterNames=new e.Map)).set(Su(nt),Br),(_n.typeParameterNamesByText||(_n.typeParameterNamesByText=new e.Set)).add(Kr)}return Br}function fi(nt,_n,hr,gr){var Mr=st(nt,_n,hr);return gr&&Mr.length!==1&&!_n.encounteredError&&!(_n.flags&65536)&&(_n.encounteredError=!0),Br(Mr,Mr.length-1);function Br(Kr,fa){var Qn=Bt(Kr,fa,_n),kt=Kr[fa];fa===0&&(_n.flags|=16777216);var Kt=pd(kt,_n);fa===0&&(_n.flags^=16777216);var nr=e.setEmitFlags(e.factory.createIdentifier(Kt,Qn),16777216);return nr.symbol=kt,fa>0?e.factory.createQualifiedName(Br(Kr,fa-1),nr):nr}}function ei(nt,_n,hr){var gr=st(nt,_n,hr);return Mr(gr,gr.length-1);function Mr(Br,Kr){var fa=Bt(Br,Kr,_n),Qn=Br[Kr];Kr===0&&(_n.flags|=16777216);var kt=pd(Qn,_n);Kr===0&&(_n.flags^=16777216);var Kt=kt.charCodeAt(0);if(e.isSingleOrDoubleQuote(Kt)&&e.some(Qn.declarations,dd))return e.factory.createStringLiteral(Vr(Qn,_n));var nr=Kt===35?kt.length>1&&e.isIdentifierStart(kt.charCodeAt(1),Me):e.isIdentifierStart(Kt,Me);if(Kr===0||nr){var ur=e.setEmitFlags(e.factory.createIdentifier(kt,fa),16777216);return ur.symbol=Qn,Kr>0?e.factory.createPropertyAccessExpression(Mr(Br,Kr-1),ur):ur}else{Kt===91&&(kt=kt.substring(1,kt.length-1),Kt=kt.charCodeAt(0));var Cr=void 0;return e.isSingleOrDoubleQuote(Kt)?Cr=e.factory.createStringLiteral(kt.substring(1,kt.length-1).replace(/\\./g,function(ma){return ma.substring(1)}),Kt===39):""+ +kt===kt&&(Cr=e.factory.createNumericLiteral(+kt)),Cr||(Cr=e.setEmitFlags(e.factory.createIdentifier(kt,fa),16777216),Cr.symbol=Qn),e.factory.createElementAccessExpression(Mr(Br,Kr-1),Cr)}}}function Ji(nt){var _n=e.getNameOfDeclaration(nt);return!!_n&&e.isStringLiteral(_n)}function ni(nt){var _n=e.getNameOfDeclaration(nt);return!!(_n&&e.isStringLiteral(_n)&&(_n.singleQuote||!e.nodeIsSynthesized(_n)&&e.startsWith(e.getTextOfNode(_n,!1),"'")))}function vo(nt,_n){var hr=!!e.length(nt.declarations)&&e.every(nt.declarations,ni),gr=Po(nt,_n,hr);if(gr)return gr;var Mr=e.unescapeLeadingUnderscores(nt.escapedName),Br=!!e.length(nt.declarations)&&e.every(nt.declarations,Ji);return Xt(Mr,Br,hr)}function Po(nt,_n,hr){var gr=$a(nt).nameType;if(gr){if(gr.flags&384){var Mr=""+gr.value;return!e.isIdentifierText(Mr,pe.target)&&!tf(Mr)?e.factory.createStringLiteral(Mr,!!hr):tf(Mr)&&e.startsWith(Mr,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+Mr)):Xt(Mr)}if(gr.flags&8192)return e.factory.createComputedPropertyName(ei(gr.symbol,_n,111551))}}function Xt(nt,_n,hr){return e.isIdentifierText(nt,pe.target)?e.factory.createIdentifier(nt):!_n&&tf(nt)&&+nt>=0?e.factory.createNumericLiteral(+nt):e.factory.createStringLiteral(nt,!!hr)}function Ot(nt){var _n=pr({},nt);return _n.typeParameterNames&&(_n.typeParameterNames=new e.Map(_n.typeParameterNames)),_n.typeParameterNamesByText&&(_n.typeParameterNamesByText=new e.Set(_n.typeParameterNamesByText)),_n.typeParameterSymbolList&&(_n.typeParameterSymbolList=new e.Set(_n.typeParameterSymbolList)),_n.tracker=t(_n,_n.tracker),_n}function xa(nt,_n){return nt.declarations&&e.find(nt.declarations,function(hr){return!!e.getEffectiveTypeAnnotationNode(hr)&&(!_n||!!e.findAncestor(hr,function(gr){return gr===_n}))})}function Ra(nt,_n){return!(e.getObjectFlags(_n)&4)||!e.isTypeReferenceNode(nt)||e.length(nt.typeArguments)>=Gu(_n.target.typeParameters)}function ta(nt,_n,hr,gr,Mr,Br){if(_n!==K&&gr){var Kr=xa(hr,gr);if(Kr&&!e.isFunctionLikeDeclaration(Kr)&&!e.isGetAccessorDeclaration(Kr)){var fa=e.getEffectiveTypeAnnotationNode(Kr);if(La(fa)===_n&&Ra(fa,_n)){var Qn=qi(nt,fa,Mr,Br);if(Qn)return Qn}}}var kt=nt.flags;_n.flags&8192&&_n.symbol===hr&&(!nt.enclosingDeclaration||e.some(hr.declarations,function(nr){return e.getSourceFileOfNode(nr)===e.getSourceFileOfNode(nt.enclosingDeclaration)}))&&(nt.flags|=1048576);var Kt=i(_n,nt);return nt.flags=kt,Kt}function ri(nt,_n,hr,gr,Mr){if(_n!==K&&nt.enclosingDeclaration){var Br=hr.declaration&&e.getEffectiveReturnTypeNode(hr.declaration);if(!!e.findAncestor(Br,function(kt){return kt===nt.enclosingDeclaration})&&Br){var Kr=La(Br),fa=Kr.flags&262144&&Kr.isThisType?si(Kr,hr.mapper):Kr;if(fa===_n&&Ra(Br,_n)){var Qn=qi(nt,Br,gr,Mr);if(Qn)return Qn}}}return i(_n,nt)}function Hr(nt,_n,hr){var gr,Mr,Br=!1,Kr=e.getFirstIdentifier(nt);if(e.isInJSFile(nt)&&(e.isExportsIdentifier(Kr)||e.isModuleExportsAccessExpression(Kr.parent)||e.isQualifiedName(Kr.parent)&&e.isModuleIdentifier(Kr.parent.left)&&e.isExportsIdentifier(Kr.parent.right)))return Br=!0,{introducesError:Br,node:nt};var fa=rs(Kr,67108863,!0,!0);if(fa&&(ud(fa,_n.enclosingDeclaration,67108863,!1).accessibility!==0?Br=!0:((Mr=(gr=_n.tracker)===null||gr===void 0?void 0:gr.trackSymbol)===null||Mr===void 0||Mr.call(gr,fa,_n.enclosingDeclaration,67108863),hr==null||hr(fa)),e.isIdentifier(nt))){var Qn=fa.flags&262144?ca(ls(fa),_n):e.factory.cloneNode(nt);return Qn.symbol=fa,{introducesError:Br,node:e.setEmitFlags(e.setOriginalNode(Qn,nt),16777216)}}return{introducesError:Br,node:nt}}function qi(nt,_n,hr,gr){q&&q.throwIfCancellationRequested&&q.throwIfCancellationRequested();var Mr=!1,Br=e.getSourceFileOfNode(_n),Kr=e.visitNode(_n,fa);if(Mr)return;return Kr===_n?e.setTextRange(e.factory.cloneNode(_n),_n):Kr;function fa(Qn){if(e.isJSDocAllType(Qn)||Qn.kind===314)return e.factory.createKeywordTypeNode(129);if(e.isJSDocUnknownType(Qn))return e.factory.createKeywordTypeNode(153);if(e.isJSDocNullableType(Qn))return e.factory.createUnionTypeNode([e.visitNode(Qn.type,fa),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(Qn))return e.factory.createUnionTypeNode([e.visitNode(Qn.type,fa),e.factory.createKeywordTypeNode(151)]);if(e.isJSDocNonNullableType(Qn))return e.visitNode(Qn.type,fa);if(e.isJSDocVariadicType(Qn))return e.factory.createArrayTypeNode(e.visitNode(Qn.type,fa));if(e.isJSDocTypeLiteral(Qn))return e.factory.createTypeLiteralNode(e.map(Qn.jsDocPropertyTags,function(Aa){var fo=e.isIdentifier(Aa.name)?Aa.name:Aa.name.right,zo=js(La(Qn),fo.escapedText),Wo=zo&&Aa.typeExpression&&La(Aa.typeExpression.type)!==zo?i(zo,nt):void 0;return e.factory.createPropertySignature(void 0,fo,Aa.isBracketed||Aa.typeExpression&&e.isJSDocOptionalType(Aa.typeExpression.type)?e.factory.createToken(57):void 0,Wo||Aa.typeExpression&&e.visitNode(Aa.typeExpression.type,fa)||e.factory.createKeywordTypeNode(129))}));if(e.isTypeReferenceNode(Qn)&&e.isIdentifier(Qn.typeName)&&Qn.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(129),Qn);if((e.isExpressionWithTypeArguments(Qn)||e.isTypeReferenceNode(Qn))&&e.isJSDocIndexSignature(Qn))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(Qn.typeArguments[0],fa))],e.visitNode(Qn.typeArguments[1],fa))]);if(e.isJSDocFunctionType(Qn))if(e.isJSDocConstructSignature(Qn)){var kt;return e.factory.createConstructorTypeNode(Qn.modifiers,e.visitNodes(Qn.typeParameters,fa),e.mapDefined(Qn.parameters,function(Aa,fo){return Aa.name&&e.isIdentifier(Aa.name)&&Aa.name.escapedText==="new"?(kt=Aa.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,ma(Aa),Ia(Aa,fo),Aa.questionToken,e.visitNode(Aa.type,fa),void 0)}),e.visitNode(kt||Qn.type,fa)||e.factory.createKeywordTypeNode(129))}else return e.factory.createFunctionTypeNode(e.visitNodes(Qn.typeParameters,fa),e.map(Qn.parameters,function(Aa,fo){return e.factory.createParameterDeclaration(void 0,void 0,ma(Aa),Ia(Aa,fo),Aa.questionToken,e.visitNode(Aa.type,fa),void 0)}),e.visitNode(Qn.type,fa)||e.factory.createKeywordTypeNode(129));if(e.isTypeReferenceNode(Qn)&&e.isInJSDoc(Qn)&&(!Ra(Qn,La(Qn))||iS(Qn)||Yn===yh(lg(Qn),788968,!0)))return e.setOriginalNode(i(La(Qn),nt),Qn);if(e.isLiteralImportTypeNode(Qn)){var Kt=pa(Qn).resolvedSymbol;return e.isInJSDoc(Qn)&&Kt&&(!Qn.isTypeOf&&!(Kt.flags&788968)||!(e.length(Qn.typeArguments)>=Gu(Lr(Kt))))?e.setOriginalNode(i(La(Qn),nt),Qn):e.factory.updateImportTypeNode(Qn,e.factory.updateLiteralTypeNode(Qn.argument,Ti(Qn,Qn.argument.literal)),Qn.qualifier,e.visitNodes(Qn.typeArguments,fa,e.isTypeNode),Qn.isTypeOf)}if(e.isEntityName(Qn)||e.isEntityNameExpression(Qn)){var nr=Hr(Qn,nt,hr),ur=nr.introducesError,Cr=nr.node;if(Mr=Mr||ur,Cr!==Qn)return Cr}return Br&&e.isTupleTypeNode(Qn)&&e.getLineAndCharacterOfPosition(Br,Qn.pos).line===e.getLineAndCharacterOfPosition(Br,Qn.end).line&&e.setEmitFlags(Qn,1),e.visitEachChild(Qn,fa,e.nullTransformationContext);function ma(Aa){return Aa.dotDotDotToken||(Aa.type&&e.isJSDocVariadicType(Aa.type)?e.factory.createToken(25):void 0)}function Ia(Aa,fo){return Aa.name&&e.isIdentifier(Aa.name)&&Aa.name.escapedText==="this"?"this":ma(Aa)?"args":"arg"+fo}function Ti(Aa,fo){if(gr){if(nt.tracker&&nt.tracker.moduleResolverHost){var zo=GT(Aa);if(zo){var Wo=e.createGetCanonicalFileName(!!D.useCaseSensitiveFileNames),is={getCanonicalFileName:Wo,getCurrentDirectory:function(){return nt.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return nt.tracker.moduleResolverHost.getCommonSourceDirectory()}},il=e.getResolvedExternalModuleName(is,zo);return e.factory.createStringLiteral(il)}}}else if(nt.tracker&&nt.tracker.trackExternalModuleSymbolOfImportTypeNode){var dl=mi(fo,fo,void 0);dl&&nt.tracker.trackExternalModuleSymbolOfImportTypeNode(dl)}return fo}}}function Ui(nt,_n,hr){var gr=Ii(e.factory.createPropertyDeclaration,167,!0),Mr=Ii(function(ut,Nr,va,ia,ua){return e.factory.createPropertySignature(Nr,va,ia,ua)},166,!1),Br=_n.enclosingDeclaration,Kr=[],fa=new e.Set,Qn=[],kt=_n;_n=pr(pr({},kt),{usedSymbolNames:new e.Set(kt.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:pr(pr({},kt.tracker),{trackSymbol:function(ut,Nr,va){var ia=ud(ut,Nr,va,!1);if(ia.accessibility===0){var ua=Ct(ut,_n,va);ut.flags&4||Qs(ua[0])}else if(kt.tracker&&kt.tracker.trackSymbol)return kt.tracker.trackSymbol(ut,Nr,va);return!1}})}),_n.tracker=t(_n,_n.tracker),e.forEachEntry(nt,function(ut,Nr){var va=e.unescapeLeadingUnderscores(Nr);void As(ut,va)});var Kt=!hr,nr=nt.get("export=");return nr&&nt.size>1&&nr.flags&2097152&&(nt=e.createSymbolTable(),nt.set("export=",nr)),is(nt),Aa(Kr);function ur(ut){return!!ut&&ut.kind===79}function Cr(ut){return e.isVariableStatement(ut)?e.filter(e.map(ut.declarationList.declarations,e.getNameOfDeclaration),ur):e.filter([e.getNameOfDeclaration(ut)],ur)}function ma(ut){var Nr=e.find(ut,e.isExportAssignment),va=e.findIndex(ut,e.isModuleDeclaration),ia=va!==-1?ut[va]:void 0;if(ia&&Nr&&Nr.isExportEquals&&e.isIdentifier(Nr.expression)&&e.isIdentifier(ia.name)&&e.idText(ia.name)===e.idText(Nr.expression)&&ia.body&&e.isModuleBlock(ia.body)){var ua=e.filter(ut,function(Ka){return!!(e.getEffectiveModifierFlags(Ka)&1)}),ti=ia.name,Ha=ia.body;if(e.length(ua)&&(ia=e.factory.updateModuleDeclaration(ia,ia.decorators,ia.modifiers,ia.name,Ha=e.factory.updateModuleBlock(Ha,e.factory.createNodeArray(Mt(Mt([],ia.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(ua,function(Ka){return Cr(Ka)}),function(Ka){return e.factory.createExportSpecifier(void 0,Ka)})),void 0)],!1)))),ut=Mt(Mt(Mt([],ut.slice(0,va),!0),[ia],!1),ut.slice(va+1),!0)),!e.find(ut,function(Ka){return Ka!==ia&&e.nodeHasName(Ka,ti)})){Kr=[];var Di=!e.some(Ha.statements,function(Ka){return e.hasSyntacticModifier(Ka,1)||e.isExportAssignment(Ka)||e.isExportDeclaration(Ka)});e.forEach(Ha.statements,function(Ka){el(Ka,Di?1:0)}),ut=Mt(Mt([],e.filter(ut,function(Ka){return Ka!==ia&&Ka!==Nr}),!0),Kr,!0)}}return ut}function Ia(ut){var Nr=e.filter(ut,function(Ba){return e.isExportDeclaration(Ba)&&!Ba.moduleSpecifier&&!!Ba.exportClause&&e.isNamedExports(Ba.exportClause)});if(e.length(Nr)>1){var va=e.filter(ut,function(Ba){return!e.isExportDeclaration(Ba)||!!Ba.moduleSpecifier||!Ba.exportClause});ut=Mt(Mt([],va,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Nr,function(Ba){return e.cast(Ba.exportClause,e.isNamedExports).elements})),void 0)],!1)}var ia=e.filter(ut,function(Ba){return e.isExportDeclaration(Ba)&&!!Ba.moduleSpecifier&&!!Ba.exportClause&&e.isNamedExports(Ba.exportClause)});if(e.length(ia)>1){var ua=e.group(ia,function(Ba){return e.isStringLiteral(Ba.moduleSpecifier)?">"+Ba.moduleSpecifier.text:">"});if(ua.length!==ia.length)for(var ti=function(Ba){Ba.length>1&&(ut=Mt(Mt([],e.filter(ut,function(po){return Ba.indexOf(po)===-1}),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Ba,function(po){return e.cast(po.exportClause,e.isNamedExports).elements})),Ba[0].moduleSpecifier)],!1))},Ha=0,Di=ua;Ha<Di.length;Ha++){var Ka=Di[Ha];ti(Ka)}}return ut}function Ti(ut){var Nr=e.findIndex(ut,function(ua){return e.isExportDeclaration(ua)&&!ua.moduleSpecifier&&!!ua.exportClause&&e.isNamedExports(ua.exportClause)});if(Nr>=0){var va=ut[Nr],ia=e.mapDefined(va.exportClause.elements,function(ua){if(!ua.propertyName){var ti=e.indicesOf(ut),Ha=e.filter(ti,function(po){return e.nodeHasName(ut[po],ua.name)});if(e.length(Ha)&&e.every(Ha,function(po){return fo(ut[po])})){for(var Di=0,Ka=Ha;Di<Ka.length;Di++){var Ba=Ka[Di];ut[Ba]=zo(ut[Ba])}return}}return ua});e.length(ia)?ut[Nr]=e.factory.updateExportDeclaration(va,va.decorators,va.modifiers,va.isTypeOnly,e.factory.updateNamedExports(va.exportClause,ia),va.moduleSpecifier):e.orderedRemoveItemAt(ut,Nr)}return ut}function Aa(ut){return ut=ma(ut),ut=Ia(ut),ut=Ti(ut),Br&&(e.isSourceFile(Br)&&e.isExternalOrCommonJsModule(Br)||e.isModuleDeclaration(Br))&&(!e.some(ut,e.isExternalModuleIndicator)||!e.hasScopeMarker(ut)&&e.some(ut,e.needsScopeMarker))&&ut.push(e.createEmptyExports(e.factory)),ut}function fo(ut){return e.isEnumDeclaration(ut)||e.isVariableStatement(ut)||e.isFunctionDeclaration(ut)||e.isClassDeclaration(ut)||e.isModuleDeclaration(ut)&&!e.isExternalModuleAugmentation(ut)&&!e.isGlobalScopeAugmentation(ut)||e.isInterfaceDeclaration(ut)||qy(ut)}function zo(ut){var Nr=(e.getEffectiveModifierFlags(ut)|1)&~2;return e.factory.updateModifiers(ut,Nr)}function Wo(ut){var Nr=e.getEffectiveModifierFlags(ut)&~1;return e.factory.updateModifiers(ut,Nr)}function is(ut,Nr,va){Nr||Qn.push(new e.Map),ut.forEach(function(ia){il(ia,!1,!!va)}),Nr||(Qn[Qn.length-1].forEach(function(ia){il(ia,!0,!!va)}),Qn.pop())}function il(ut,Nr,va){var ia=To(ut);if(fa.has(A(ia)))return;fa.add(A(ia));var ua=!Nr;if(ua||!!e.length(ut.declarations)&&e.some(ut.declarations,function(Di){return!!e.findAncestor(Di,function(Ka){return Ka===Br})})){var ti=_n;_n=Ot(_n);var Ha=dl(ut,Nr,va);return _n.reportedDiagnostic&&(kt.reportedDiagnostic=_n.reportedDiagnostic),_n=ti,Ha}}function dl(ut,Nr,va){var ia,ua,ti=e.unescapeLeadingUnderscores(ut.escapedName),Ha=ut.escapedName==="default";if(Nr&&!(_n.flags&131072)&&e.isStringANonContextualKeyword(ti)&&!Ha){_n.encounteredError=!0;return}var Di=Ha&&!!(ut.flags&-113||ut.flags&16&&e.length(So(Ir(ut))))&&!(ut.flags&2097152),Ka=!Di&&!Nr&&e.isStringANonContextualKeyword(ti)&&!Ha;(Di||Ka)&&(Nr=!0);var Ba=(Nr?0:1)|(Ha&&!Di?512:0),po=ut.flags&1536&&ut.flags&(2|1|4)&&ut.escapedName!=="export=",Jo=po&&Wa(Ir(ut),ut);if((ut.flags&(16|8192)||Jo)&&Ao(Ir(ut),ut,As(ut,ti),Ba),ut.flags&524288&&Ip(ut,ti,Ba),ut.flags&(2|1|4)&&ut.escapedName!=="export="&&!(ut.flags&4194304)&&!(ut.flags&32)&&!Jo)if(va){var ds=kr(ut);ds&&(Ka=!1,Di=!1)}else{var ts=Ir(ut),Xo=As(ut,ti);if(!(ut.flags&16)&&Wa(ts,ut))Ao(ts,ut,Xo,Ba);else{var ol=ut.flags&2?wy(ut)?2:1:void 0,Yl=Di||!(ut.flags&4)?Xo:cs(Xo,ut),Ql=ut.declarations&&e.find(ut.declarations,function(nh){return e.isVariableDeclaration(nh)});Ql&&e.isVariableDeclarationList(Ql.parent)&&Ql.parent.declarations.length===1&&(Ql=Ql.parent.parent);var Lc=(ia=ut.declarations)===null||ia===void 0?void 0:ia.find(e.isPropertyAccessExpression);if(Lc&&e.isBinaryExpression(Lc.parent)&&e.isIdentifier(Lc.parent.right)&&((ua=ts.symbol)===null||ua===void 0?void 0:ua.valueDeclaration)&&e.isSourceFile(ts.symbol.valueDeclaration)){var dm=Xo===Lc.parent.right.escapedText?void 0:Lc.parent.right;el(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(dm,Xo)])),0),_n.tracker.trackSymbol(ts.symbol,_n.enclosingDeclaration,111551)}else{var Np=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Yl,void 0,ta(_n,ts,ut,Br,Qs,hr))],ol)),Ql);el(Np,Yl!==Xo?Ba&~1:Ba),Yl!==Xo&&!Nr&&(el(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(Yl,Xo)])),0),Ka=!1,Di=!1)}}}if(ut.flags&384&&ws(ut,ti,Ba),ut.flags&32&&(ut.flags&4&&ut.valueDeclaration&&e.isBinaryExpression(ut.valueDeclaration.parent)&&e.isClassExpression(ut.valueDeclaration.parent.right)?xr(ut,As(ut,ti),Ba):Jr(ut,As(ut,ti),Ba)),(ut.flags&(512|1024)&&(!po||Ua(ut))||Jo)&&zi(ut,ti,Ba),ut.flags&64&&!(ut.flags&32)&&Gg(ut,ti,Ba),ut.flags&2097152&&xr(ut,As(ut,ti),Ba),ut.flags&4&&ut.escapedName==="export="&&kr(ut),ut.flags&8388608&&ut.declarations)for(var Op=0,Nf=ut.declarations;Op<Nf.length;Op++){var fm=Nf[Op],sf=Ko(fm,fm.moduleSpecifier);if(!sf)continue;el(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(Vr(sf,_n))),0)}Di?el(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(As(ut,ti))),0):Ka&&el(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(As(ut,ti),ti)])),0)}function Qs(ut){if(e.some(ut.declarations,e.isParameterDeclaration))return;e.Debug.assertIsDefined(Qn[Qn.length-1]),cs(e.unescapeLeadingUnderscores(ut.escapedName),ut);var Nr=!!(ut.flags&2097152)&&!e.some(ut.declarations,function(va){return!!e.findAncestor(va,e.isExportDeclaration)||e.isNamespaceExport(va)||e.isImportEqualsDeclaration(va)&&!e.isExternalModuleReference(va.moduleReference)});Qn[Nr?0:Qn.length-1].set(A(ut),ut)}function of(ut){return e.isSourceFile(ut)&&(e.isExternalOrCommonJsModule(ut)||e.isJsonSourceFile(ut))||e.isAmbientModule(ut)&&!e.isGlobalScopeAugmentation(ut)}function el(ut,Nr){if(e.canHaveModifiers(ut)){var va=0,ia=_n.enclosingDeclaration&&(e.isJSDocTypeAlias(_n.enclosingDeclaration)?e.getSourceFileOfNode(_n.enclosingDeclaration):_n.enclosingDeclaration);Nr&1&&ia&&(of(ia)||e.isModuleDeclaration(ia))&&fo(ut)&&(va|=1),Kt&&!(va&1)&&(!ia||!(ia.flags&8388608))&&(e.isEnumDeclaration(ut)||e.isVariableStatement(ut)||e.isFunctionDeclaration(ut)||e.isClassDeclaration(ut)||e.isModuleDeclaration(ut))&&(va|=2),Nr&512&&(e.isClassDeclaration(ut)||e.isInterfaceDeclaration(ut)||e.isFunctionDeclaration(ut))&&(va|=512),va&&(ut=e.factory.updateModifiers(ut,va|e.getEffectiveModifierFlags(ut)))}Kr.push(ut)}function Ip(ut,Nr,va){var ia,ua=Im(ut),ti=$a(ut).typeParameters,Ha=e.map(ti,function(ds){return an(ds,_n)}),Di=(ia=ut.declarations)===null||ia===void 0?void 0:ia.find(e.isJSDocTypeAlias),Ka=e.getTextOfJSDocComment(Di?Di.comment||Di.parent.comment:void 0),Ba=_n.flags;_n.flags|=8388608;var po=_n.enclosingDeclaration;_n.enclosingDeclaration=Di;var Jo=Di&&Di.typeExpression&&e.isJSDocTypeExpression(Di.typeExpression)&&qi(_n,Di.typeExpression.type,Qs,hr)||i(ua,_n);el(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,As(ut,Nr),Ha,Jo),Ka?[{kind:3,text:`*
|
|
|
* `+Ka.replace(/\n/g,`
|
|
|
* `)+`
|
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),va),_n.flags=Ba,_n.enclosingDeclaration=po}function Gg(ut,Nr,va){var ia=yc(ut),ua=Lr(ut),ti=e.map(ua,function(ts){return an(ts,_n)}),Ha=Ac(ia),Di=e.length(Ha)?Go(Ha):void 0,Ka=e.flatMap(So(ia),function(ts){return Ni(ts,Di)}),Ba=ao(0,ia,Di,172),po=ao(1,ia,Di,173),Jo=$i(ia,Di),ds=e.length(Ha)?[e.factory.createHeritageClause(94,e.mapDefined(Ha,function(ts){return Ts(ts,111551)}))]:void 0;el(e.factory.createInterfaceDeclaration(void 0,void 0,As(ut,Nr),ti,ds,Mt(Mt(Mt(Mt([],Jo,!0),po,!0),Ba,!0),Ka,!0)),va)}function Wh(ut){return ut.exports?e.filter(e.arrayFrom(ut.exports.values()),jt):[]}function Ua(ut){return e.every(Wh(ut),function(Nr){return!(Ho(Nr).flags&111551)})}function zi(ut,Nr,va){var ia=Wh(ut),ua=e.arrayToMultiMap(ia,function(po){return po.parent&&po.parent===ut?"real":"merged"}),ti=ua.get("real")||e.emptyArray,Ha=ua.get("merged")||e.emptyArray;if(e.length(ti)){var Di=As(ut,Nr);vt(ti,Di,va,!!(ut.flags&(16|67108864)))}if(e.length(Ha)){var Ka=e.getSourceFileOfNode(_n.enclosingDeclaration),Di=As(ut,Nr),Ba=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(Ha,function(Jo){return Jo.escapedName!=="export="}),function(Jo){var ds,ts,Xo=e.unescapeLeadingUnderscores(Jo.escapedName),ol=As(Jo,Xo),Yl=Jo.declarations&&es(Jo);if(Ka&&(Yl?Ka!==e.getSourceFileOfNode(Yl):!e.some(Jo.declarations,function(dm){return e.getSourceFileOfNode(dm)===Ka}))){(ts=(ds=_n.tracker)===null||ds===void 0?void 0:ds.reportNonlocalAugmentation)===null||ts===void 0||ts.call(ds,Ka,ut,Jo);return}var Ql=Yl&&Ed(Yl,!0);Qs(Ql||Jo);var Lc=Ql?As(Ql,e.unescapeLeadingUnderscores(Ql.escapedName)):ol;return e.factory.createExportSpecifier(Xo===Lc?void 0:Lc,Xo)})))]);el(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(Di),Ba,16),0)}}function ws(ut,Nr,va){el(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(cT(ut)?2048:0),As(ut,Nr),e.map(e.filter(So(Ir(ut)),function(ia){return!!(ia.flags&8)}),function(ia){var ua=ia.declarations&&ia.declarations[0]&&e.isEnumMember(ia.declarations[0])?RT(ia.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(ia.escapedName),ua===void 0?void 0:typeof ua=="string"?e.factory.createStringLiteral(ua):e.factory.createNumericLiteral(ua))})),va)}function Ao(ut,Nr,va,ia){for(var ua=qt(ut,0),ti=0,Ha=ua;ti<Ha.length;ti++){var Di=Ha[ti],Ka=We(Di,254,_n,{name:e.factory.createIdentifier(va),privateSymbolVisitor:Qs,bundledImports:hr});el(e.setTextRange(Ka,tt(Di)),ia)}if(!(Nr.flags&(512|1024)&&!!Nr.exports&&!!Nr.exports.size)){var Ba=e.filter(So(ut),jt);vt(Ba,va,ia,!0)}}function tt(ut){if(ut.declaration&&ut.declaration.parent){if(e.isBinaryExpression(ut.declaration.parent)&&e.getAssignmentDeclarationKind(ut.declaration.parent)===5)return ut.declaration.parent;if(e.isVariableDeclaration(ut.declaration.parent)&&ut.declaration.parent.parent)return ut.declaration.parent.parent}return ut.declaration}function vt(ut,Nr,va,ia){if(e.length(ut)){var ua=e.arrayToMultiMap(ut,function(Xo){return!e.length(Xo.declarations)||e.some(Xo.declarations,function(ol){return e.getSourceFileOfNode(ol)===e.getSourceFileOfNode(_n.enclosingDeclaration)})?"local":"remote"}),ti=ua.get("local")||e.emptyArray,Ha=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(Nr),e.factory.createModuleBlock([]),16);e.setParent(Ha,Br),Ha.locals=e.createSymbolTable(ut),Ha.symbol=ut[0].parent;var Di=Kr;Kr=[];var Ka=Kt;Kt=!1;var Ba=pr(pr({},_n),{enclosingDeclaration:Ha}),po=_n;_n=Ba,is(e.createSymbolTable(ti),ia,!0),_n=po,Kt=Ka;var Jo=Kr;Kr=Di;var ds=e.map(Jo,function(Xo){return e.isExportAssignment(Xo)&&!Xo.isExportEquals&&e.isIdentifier(Xo.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(Xo.expression,e.factory.createIdentifier("default"))])):Xo}),ts=e.every(ds,function(Xo){return e.hasSyntacticModifier(Xo,1)})?e.map(ds,Wo):ds;Ha=e.factory.updateModuleDeclaration(Ha,Ha.decorators,Ha.modifiers,Ha.name,e.factory.createModuleBlock(ts)),el(Ha,va)}}function jt(ut){return!!(ut.flags&(788968|1920|2097152))||!(ut.flags&4194304||ut.escapedName==="prototype"||ut.valueDeclaration&&e.isStatic(ut.valueDeclaration)&&e.isClassLike(ut.valueDeclaration.parent))}function ar(ut){var Nr=e.mapDefined(ut,function(va){var ia,ua=_n.enclosingDeclaration;_n.enclosingDeclaration=va;var ti=va.expression;if(e.isEntityNameExpression(ti)){if(e.isIdentifier(ti)&&e.idText(ti)==="")return Di(void 0);var Ha=void 0;if(ia=Hr(ti,_n,Qs),Ha=ia.introducesError,ti=ia.node,Ha)return Di(void 0)}return Di(e.factory.createExpressionWithTypeArguments(ti,e.map(va.typeArguments,function(Ka){return qi(_n,Ka,Qs,hr)||i(La(Ka),_n)})));function Di(Ka){return _n.enclosingDeclaration=ua,Ka}});return Nr.length===ut.length?Nr:void 0}function Jr(ut,Nr,va){var ia,ua,ti=(ia=ut.declarations)===null||ia===void 0?void 0:ia.find(e.isClassLike),Ha=_n.enclosingDeclaration;_n.enclosingDeclaration=ti||Ha;var Di=Lr(ut),Ka=e.map(Di,function(Ic){return an(Ic,_n)}),Ba=yc(ut),po=Ac(Ba),Jo=ti&&e.getEffectiveImplementsTypeNodes(ti),ds=Jo&&ar(Jo)||e.mapDefined(Jh(Ba),Zs),ts=Ir(ut),Xo=!!((ua=ts.symbol)===null||ua===void 0?void 0:ua.valueDeclaration)&&e.isClassLike(ts.symbol.valueDeclaration),ol=Xo?hd(ts):lt,Yl=Mt(Mt([],e.length(po)?[e.factory.createHeritageClause(94,e.map(po,function(Ic){return Hs(Ic,ol,Nr)}))]:[],!0),e.length(ds)?[e.factory.createHeritageClause(117,ds)]:[],!0),Ql=zN(Ba,po,So(Ba)),Lc=e.filter(Ql,function(Ic){var pm=Ic.valueDeclaration;return!!pm&&!(e.isNamedDeclaration(pm)&&e.isPrivateIdentifier(pm.name))}),dm=e.some(Ql,function(Ic){var pm=Ic.valueDeclaration;return!!pm&&e.isNamedDeclaration(pm)&&e.isPrivateIdentifier(pm.name)}),Np=dm?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,Op=e.flatMap(Lc,function(Ic){return gr(Ic,!1,po[0])}),Nf=e.flatMap(e.filter(So(ts),function(Ic){return!(Ic.flags&4194304)&&Ic.escapedName!=="prototype"&&!jt(Ic)}),function(Ic){return gr(Ic,!0,ol)}),fm=!Xo&&!!ut.valueDeclaration&&e.isInJSFile(ut.valueDeclaration)&&!e.some(qt(ts,1)),sf=fm?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:ao(1,ts,ol,169),nh=$i(Ba,po[0]);_n.enclosingDeclaration=Ha,el(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,Nr,Ka,Yl,Mt(Mt(Mt(Mt(Mt([],nh,!0),Nf,!0),sf,!0),Op,!0),Np,!0)),ut.declarations&&e.filter(ut.declarations,function(Ic){return e.isClassDeclaration(Ic)||e.isClassExpression(Ic)})[0]),va)}function xr(ut,Nr,va){var ia,ua,ti,Ha,Di,Ka=es(ut);if(!Ka)return e.Debug.fail();var Ba=To(Ed(Ka,!0));if(!Ba)return;var po=e.unescapeLeadingUnderscores(Ba.escapedName);po==="export="&&(pe.esModuleInterop||pe.allowSyntheticDefaultImports)&&(po="default");var Jo=As(Ba,po);Qs(Ba);switch(Ka.kind){case 201:if(((ua=(ia=Ka.parent)===null||ia===void 0?void 0:ia.parent)===null||ua===void 0?void 0:ua.kind)===252){var ds=Vr(Ba.parent||Ba,_n),ts=Ka.propertyName;el(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(ts&&e.isIdentifier(ts)?e.factory.createIdentifier(e.idText(ts)):void 0,e.factory.createIdentifier(Nr))])),e.factory.createStringLiteral(ds)),0);break}e.Debug.failBadSyntaxKind(((ti=Ka.parent)===null||ti===void 0?void 0:ti.parent)||Ka,"Unhandled binding element grandparent kind in declaration serialization");break;case 292:((Di=(Ha=Ka.parent)===null||Ha===void 0?void 0:Ha.parent)===null||Di===void 0?void 0:Di.kind)===219&&Tr(e.unescapeLeadingUnderscores(ut.escapedName),Jo);break;case 252:if(e.isPropertyAccessExpression(Ka.initializer)){var Xo=Ka.initializer,ol=e.factory.createUniqueName(Nr),Yl=Vr(Ba.parent||Ba,_n);el(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,ol,e.factory.createExternalModuleReference(e.factory.createStringLiteral(Yl))),0),el(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Nr),e.factory.createQualifiedName(ol,Xo.name)),va);break}case 263:if(Ba.escapedName==="export="&&e.some(Ba.declarations,e.isJsonSourceFile)){kr(ut);break}var Ql=!(Ba.flags&512)&&!e.isVariableDeclaration(Ka);el(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Nr),Ql?fi(Ba,_n,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(Vr(Ba,_n)))),Ql?va:0);break;case 262:el(e.factory.createNamespaceExportDeclaration(e.idText(Ka.name)),0);break;case 265:el(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(Nr),void 0),e.factory.createStringLiteral(Vr(Ba.parent||Ba,_n))),0);break;case 266:el(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Nr))),e.factory.createStringLiteral(Vr(Ba,_n))),0);break;case 272:el(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(Nr)),e.factory.createStringLiteral(Vr(Ba,_n))),0);break;case 268:el(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(Nr!==po?e.factory.createIdentifier(po):void 0,e.factory.createIdentifier(Nr))])),e.factory.createStringLiteral(Vr(Ba.parent||Ba,_n))),0);break;case 273:var Lc=Ka.parent.parent.moduleSpecifier;Tr(e.unescapeLeadingUnderscores(ut.escapedName),Lc?po:Jo,Lc&&e.isStringLiteralLike(Lc)?e.factory.createStringLiteral(Lc.text):void 0);break;case 269:kr(ut);break;case 219:case 204:case 205:ut.escapedName==="default"||ut.escapedName==="export="?kr(ut):Tr(Nr,Jo);break;default:return e.Debug.failBadSyntaxKind(Ka,"Unhandled alias declaration kind in symbol serializer!")}}function Tr(ut,Nr,va){el(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(ut!==Nr?Nr:void 0,ut)]),va),0)}function kr(ut){if(ut.flags&4194304)return!1;var Nr=e.unescapeLeadingUnderscores(ut.escapedName),va=Nr==="export=",ia=Nr==="default",ua=va||ia,ti=ut.declarations&&es(ut),Ha=ti&&Ed(ti,!0);if(Ha&&e.length(Ha.declarations)&&e.some(Ha.declarations,function(Xo){return e.getSourceFileOfNode(Xo)===e.getSourceFileOfNode(Br)})){var Di=ti&&(e.isExportAssignment(ti)||e.isBinaryExpression(ti)?e.getExportAssignmentExpression(ti):e.getPropertyAssignmentAliasLikeExpression(ti)),Ka=Di&&e.isEntityNameExpression(Di)?sO(Di):void 0,Ba=Ka&&rs(Ka,67108863,!0,!0,Br);(Ba||Ha)&&Qs(Ba||Ha);var po=_n.tracker.trackSymbol;if(_n.tracker.trackSymbol=function(){return!1},ua)Kr.push(e.factory.createExportAssignment(void 0,void 0,va,ei(Ha,_n,67108863)));else if(Ka===Di&&Ka)Tr(Nr,e.idText(Ka));else if(Di&&e.isClassExpression(Di))Tr(Nr,As(Ha,e.symbolName(Ha)));else{var Jo=cs(Nr,ut);el(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Jo),fi(Ha,_n,67108863,!1)),0),Tr(Nr,Jo)}return _n.tracker.trackSymbol=po,!0}else{var Jo=cs(Nr,ut),ds=bc(Ir(To(ut)));if(Wa(ds,ut))Ao(ds,ut,Jo,ua?0:1);else{var ts=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Jo,void 0,ta(_n,ds,ut,Br,Qs,hr))],2));el(ts,Ha&&Ha.flags&4&&Ha.escapedName==="export="?2:Nr===Jo?1:0)}return ua?(Kr.push(e.factory.createExportAssignment(void 0,void 0,va,e.factory.createIdentifier(Jo))),!0):Nr!==Jo?(Tr(Nr,Jo),!0):!1}}function Wa(ut,Nr){var va=e.getSourceFileOfNode(_n.enclosingDeclaration);return e.getObjectFlags(ut)&(16|32)&&!e.length(vi(ut))&&!_f(ut)&&!!(e.length(e.filter(So(ut),jt))||e.length(qt(ut,0)))&&!e.length(qt(ut,1))&&!xa(Nr,Br)&&!(ut.symbol&&e.some(ut.symbol.declarations,function(ia){return e.getSourceFileOfNode(ia)!==va}))&&!e.some(So(ut),function(ia){return wl(ia.escapedName)})&&!e.some(So(ut),function(ia){return e.some(ia.declarations,function(ua){return e.getSourceFileOfNode(ua)!==va})})&&e.every(So(ut),function(ia){return e.isIdentifierText(e.symbolName(ia),Me)})}function Ii(ut,Nr,va){return function(ua,ti,Ha){var Di,Ka,Ba,po,Jo,ds=e.getDeclarationModifierFlagsFromSymbol(ua),ts=!!(ds&8);if(ti&&ua.flags&(788968|1920|2097152))return[];if(ua.flags&4194304||Ha&&Rn(Ha,ua.escapedName)&&_d(Rn(Ha,ua.escapedName))===_d(ua)&&(ua.flags&16777216)===(Rn(Ha,ua.escapedName).flags&16777216)&&Yd(Ir(ua),js(Ha,ua.escapedName)))return[];var Xo=ds&~256|(ti?32:0),ol=vo(ua,_n),Yl=(Di=ua.declarations)===null||Di===void 0?void 0:Di.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(ua.flags&98304&&va){var Ql=[];if(ua.flags&65536&&Ql.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Xo),ol,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,ts?void 0:ta(_n,Ir(ua),ua,Br,Qs,hr))],void 0),((Ka=ua.declarations)===null||Ka===void 0?void 0:Ka.find(e.isSetAccessor))||Yl)),ua.flags&32768){var Lc=ds&8;Ql.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Xo),ol,[],Lc?void 0:ta(_n,Ir(ua),ua,Br,Qs,hr),void 0),((Ba=ua.declarations)===null||Ba===void 0?void 0:Ba.find(e.isGetAccessor))||Yl))}return Ql}else if(ua.flags&(4|3|98304))return e.setTextRange(ut(void 0,e.factory.createModifiersFromModifierFlags((_d(ua)?64:0)|Xo),ol,ua.flags&16777216?e.factory.createToken(57):void 0,ts?void 0:ta(_n,Ir(ua),ua,Br,Qs,hr),void 0),((po=ua.declarations)===null||po===void 0?void 0:po.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||Yl);if(ua.flags&(8192|16)){var dm=Ir(ua),Np=qt(dm,0);if(Xo&8)return e.setTextRange(ut(void 0,e.factory.createModifiersFromModifierFlags((_d(ua)?64:0)|Xo),ol,ua.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((Jo=ua.declarations)===null||Jo===void 0?void 0:Jo.find(e.isFunctionLikeDeclaration))||Np[0]&&Np[0].declaration||ua.declarations&&ua.declarations[0]);for(var Op=[],Nf=0,fm=Np;Nf<fm.length;Nf++){var sf=fm[Nf],nh=We(sf,Nr,_n,{name:ol,questionToken:ua.flags&16777216?e.factory.createToken(57):void 0,modifiers:Xo?e.factory.createModifiersFromModifierFlags(Xo):void 0}),Ic=sf.declaration&&e.isPrototypePropertyAssignment(sf.declaration.parent)?sf.declaration.parent:sf.declaration;Op.push(e.setTextRange(nh,Ic))}return Op}return e.Debug.fail("Unhandled class member kind! "+(ua.__debugFlags||ua.flags))}}function Ni(ut,Nr){return Mr(ut,!1,Nr)}function ao(ut,Nr,va,ia){var ua=qt(Nr,ut);if(ut===1){if(!va&&e.every(ua,function(Ql){return e.length(Ql.parameters)===0}))return[];if(va){var ti=qt(va,1);if(!e.length(ti)&&e.every(ua,function(Ql){return e.length(Ql.parameters)===0}))return[];if(ti.length===ua.length){for(var Ha=!1,Di=0;Di<ti.length;Di++)if(!by(ua[Di],ti[Di],!1,!1,!0,pg)){Ha=!0;break}if(!Ha)return[]}}for(var Ka=0,Ba=0,po=ua;Ba<po.length;Ba++){var Jo=po[Ba];Jo.declaration&&(Ka|=e.getSelectedEffectiveModifierFlags(Jo.declaration,8|16))}if(Ka)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Ka),[],void 0),ua[0].declaration)]}for(var ds=[],ts=0,Xo=ua;ts<Xo.length;ts++){var ol=Xo[ts],Yl=We(ol,ia,_n);ds.push(e.setTextRange(Yl,ol.declaration))}return ds}function $i(ut,Nr){for(var va=[],ia=0,ua=vi(ut);ia<ua.length;ia++){var ti=ua[ia];if(Nr){var Ha=go(Nr,ti.keyType);if(Ha&&Yd(ti.type,Ha.type))continue}va.push(Ge(ti,_n,void 0))}return va}function Hs(ut,Nr,va){var ia=Ts(ut,111551);if(ia)return ia;var ua=cs(va+"_base"),ti=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ua,void 0,i(Nr,_n))],2));return el(ti,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(ua),void 0)}function Ts(ut,Nr){var va,ia;if(ut.target&&Wf(ut.target.symbol,Br,Nr)?(va=e.map(Oo(ut),function(ua){return i(ua,_n)}),ia=ei(ut.target.symbol,_n,788968)):ut.symbol&&Wf(ut.symbol,Br,Nr)&&(ia=ei(ut.symbol,_n,788968)),ia)return e.factory.createExpressionWithTypeArguments(ia,va)}function Zs(ut){var Nr=Ts(ut,788968);if(Nr)return Nr;if(ut.symbol)return e.factory.createExpressionWithTypeArguments(ei(ut.symbol,_n,788968),void 0)}function cs(ut,Nr){var va,ia,ua=Nr?A(Nr):void 0;if(ua&&_n.remappedSymbolNames.has(ua))return _n.remappedSymbolNames.get(ua);Nr&&(ut=us(Nr,ut));for(var ti=0,Ha=ut;(va=_n.usedSymbolNames)===null||va===void 0?void 0:va.has(ut);)ti++,ut=Ha+"_"+ti;return(ia=_n.usedSymbolNames)===null||ia===void 0||ia.add(ut),ua&&_n.remappedSymbolNames.set(ua,ut),ut}function us(ut,Nr){if(Nr==="default"||Nr==="__class"||Nr==="__function"){var va=_n.flags;_n.flags|=16777216;var ia=pd(ut,_n);_n.flags=va,Nr=ia.length>0&&e.isSingleOrDoubleQuote(ia.charCodeAt(0))?e.stripQuotes(ia):ia}return Nr==="default"?Nr="_default":Nr==="export="&&(Nr="_exports"),Nr=e.isIdentifierText(Nr,Me)&&!e.isStringANonContextualKeyword(Nr)?Nr:"_"+Nr.replace(/[^a-zA-Z0-9]/g,"_"),Nr}function As(ut,Nr){var va=A(ut);return _n.remappedSymbolNames.has(va)?_n.remappedSymbolNames.get(va):(Nr=us(ut,Nr),_n.remappedSymbolNames.set(va,Nr),Nr)}}}function wc(n,t,r,i){return r===void 0&&(r=16384),i?l(i).getText():e.usingSingleLineStringWriter(l);function l(u){var S=e.factory.createTypePredicateNode(n.kind===2||n.kind===3?e.factory.createToken(128):void 0,n.kind===1||n.kind===3?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&Pe.typeToTypeNode(n.type,t,Bd(r)|70221824|512)),M=e.createPrinter({removeComments:!0}),ge=t&&e.getSourceFileOfNode(t);return M.writeNode(4,S,ge,u),u}}function gc(n){for(var t=[],r=0,i=0;i<n.length;i++){var l=n[i];if(r|=l.flags,!(l.flags&98304)){if(l.flags&(512|1024)){var u=l.flags&512?Ht:Om(l);if(u.flags&1048576){var S=u.types.length;if(i+S<=n.length&&_c(n[i+S-1])===_c(u.types[S-1])){t.push(u),i+=S-1;continue}}}t.push(l)}}return r&65536&&t.push(qn),r&32768&&t.push(Ln),t||n}function vf(n){return n===8?"private":n===16?"protected":"public"}function zu(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){var t=e.walkUpParenthesizedTypes(n.symbol.declarations[0].parent);if(t.kind===257)return Rr(t)}return}function gp(n){return n&&n.parent&&n.parent.kind===260&&e.isExternalModuleAugmentation(n.parent.parent)}function bf(n){return n.kind===300||e.isAmbientModule(n)}function Xu(n,t){var r=$a(n).nameType;if(r){if(r.flags&384){var i=""+r.value;return!e.isIdentifierText(i,pe.target)&&!tf(i)?'"'+e.escapeString(i,34)+'"':tf(i)&&e.startsWith(i,"-")?"["+i+"]":i}if(r.flags&8192)return"["+pd(r.symbol,t)+"]"}}function pd(n,t){if(t&&n.escapedName==="default"&&!(t.flags&16384)&&(!(t.flags&16777216)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],bf)!==e.findAncestor(t.enclosingDeclaration,bf)))return"default";if(n.declarations&&n.declarations.length){var r=e.firstDefined(n.declarations,function(M){return e.getNameOfDeclaration(M)?M:void 0}),i=r&&e.getNameOfDeclaration(r);if(r&&i){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(i)&&!(e.getCheckFlags(n)&4096)){var l=$a(n).nameType;if(l&&l.flags&384){var u=Xu(n,t);if(u!==void 0)return u}}return e.declarationNameToString(i)}if(r||(r=n.declarations[0]),r.parent&&r.parent.kind===252)return e.declarationNameToString(r.parent.name);switch(r.kind){case 224:case 211:case 212:return t&&!t.encounteredError&&!(t.flags&131072)&&(t.encounteredError=!0),r.kind===224?"(Anonymous class)":"(Anonymous function)"}}var S=Xu(n,t);return S!==void 0?S:e.symbolName(n)}function mu(n){if(n){var t=pa(n);return t.isVisible===void 0&&(t.isVisible=!!r()),t.isVisible}return!1;function r(){switch(n.kind){case 333:case 340:case 334:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 201:return mu(n.parent.parent);case 252:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 259:case 255:case 256:case 257:case 254:case 258:case 263:if(e.isExternalModuleAugmentation(n))return!0;var i=Ud(n);return!(e.getCombinedModifierFlags(n)&1)&&!(n.kind!==263&&i.kind!==300&&i.flags&8388608)?Tc(i):mu(i);case 165:case 164:case 170:case 171:case 167:case 166:if(e.hasEffectiveModifier(n,8|16))return!1;case 169:case 173:case 172:case 174:case 162:case 260:case 177:case 178:case 180:case 176:case 181:case 182:case 185:case 186:case 189:case 195:return mu(n.parent);case 265:case 266:case 268:return!1;case 161:case 300:case 262:return!0;case 269:return!1;default:return!1}}}function Kf(n,t){var r;n.parent&&n.parent.kind===269?r=Zi(n,n.escapedText,111551|788968|1920|2097152,void 0,n,!1):n.parent.kind===273&&(r=mc(n.parent,111551|788968|1920|2097152));var i,l;return r&&(l=new e.Set,l.add(A(r)),u(r.declarations)),i;function u(S){e.forEach(S,function(M){var ge=hs(M)||M;if(t?pa(M).isVisible=!0:(i=i||[],e.pushIfUnique(i,ge)),e.isInternalModuleImportEqualsDeclaration(M)){var Ge=M.moduleReference,We=e.getFirstIdentifier(Ge),ze=Zi(M,We.escapedText,111551|788968|1920,void 0,void 0,!1);ze&&l&&(e.tryAddToSet(l,A(ze))&&u(ze.declarations))}})}}function Qc(n,t){var r=Ef(n,t);if(r>=0){for(var i=ps.length,l=r;l<i;l++)ms[l]=!1;return!1}return ps.push(n),ms.push(!0),_l.push(t),!0}function Ef(n,t){for(var r=ps.length-1;r>=0;r--){if(Jf(ps[r],_l[r]))return-1;if(ps[r]===n&&_l[r]===t)return r}return-1}function Jf(n,t){switch(t){case 0:return!!$a(n).type;case 5:return!!pa(n).resolvedEnumType;case 2:return!!$a(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}return e.Debug.assertNever(t)}function Wc(){return ps.pop(),_l.pop(),ms.pop()}function Ud(n){return e.findAncestor(e.getRootDeclaration(n),function(t){switch(t.kind){case 252:case 253:case 268:case 267:case 266:case 265:return!1;default:return!0}}).parent}function Pu(n){var t=ls($l(n));return t.typeParameters?qd(t,e.map(t.typeParameters,function(r){return lt})):t}function js(n,t){var r=Rn(n,t);return r?Ir(r):void 0}function Bp(n,t){var r;return js(n,t)||((r=rc(n,t))===null||r===void 0?void 0:r.type)||ln}function no(n){return n&&(n.flags&1)!==0}function Vd(n){var t=Rr(n);return t&&$a(t).type||ss(n,!1)}function Tf(n,t,r){if(n=Vl(n,function(We){return!(We.flags&98304)}),n.flags&131072)return xt;if(n.flags&1048576)return Ws(n,function(We){return Tf(We,t,r)});var i=Ea(e.map(t,np));if(vm(n)||Fm(i)){if(i.flags&131072)return n;var l=CD();return l?sg(l,[n,i]):K}for(var u=e.createSymbolTable(),S=0,M=So(n);S<M.length;S++){var ge=M[S];!yo(Mm(ge,8576),i)&&!(e.getDeclarationModifierFlagsFromSymbol(ge)&(8|16))&&y_(ge)&&u.set(ge.escapedName,Db(ge,!1))}var Ge=ns(r,u,e.emptyArray,e.emptyArray,vi(n));return Ge.objectFlags|=8388608,Ge}function qf(n){return!!(n.flags&465829888)&&xs(tc(n)||ln,32768)}function zf(n){var t=Dh(n,qf)?Ws(n,function(r){return r.flags&465829888?uh(r):r}):n;return Dl(t,524288)}function Dd(n,t){var r=y(n);return r?im(r,t):t}function y(n){var t=en(n);if(t&&t.flowNode){var r=ft(n);if(r){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(r),n),l=e.isLeftHandSideExpression(t)?t:e.parseNodeFactory.createParenthesizedExpression(t),u=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(l,i),n);return e.setParent(i,u),e.setParent(u,n),l!==t&&e.setParent(l,u),u.flowNode=t.flowNode,u}}}function en(n){var t=n.parent.parent;switch(t.kind){case 201:case 291:return y(t);case 202:return y(n.parent);case 252:return t.initializer;case 219:return t.right}}function ft(n){var t=n.parent;return n.kind===201&&t.kind===199?Ut(n.propertyName||n.name):n.kind===291||n.kind===292?Ut(n.name):""+t.elements.indexOf(n)}function Ut(n){var t=np(n);return t.flags&(128|256)?""+t.value:void 0}function _a(n){var t=n.parent,r=Vd(t.parent);if(!r||no(r))return r;je&&n.flags&8388608&&e.isParameterDeclaration(n)?r=kf(r):je&&t.parent.initializer&&!(sp(Hx(t.parent.initializer))&65536)&&(r=Dl(r,524288));var i;if(t.kind===199)if(n.dotDotDotToken){if(r=vu(r),r.flags&2||!kh(r))return Hn(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),K;for(var l=[],u=0,S=t.elements;u<S.length;u++){var M=S[u];M.dotDotDotToken||l.push(M.propertyName||M.name)}i=Tf(r,l,n.symbol)}else{var ge=n.propertyName||n.name,Ge=np(ge),We=kc(r,Ge,32,ge);i=Dd(n,We)}else{var ze=If(65|(n.dotDotDotToken?0:128),r,Ln,t),an=t.elements.indexOf(n);if(n.dotDotDotToken)i=nf(r,Ki)?Ws(r,function(et){return ug(et,an)}):Ll(ze);else if(op(r)){var Ge=Xd(an),Tn=32|(Ch(n)?16:0),We=tp(r,Ge,Tn,n.name)||K;i=Dd(n,We)}else i=ze}return n.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(n))?je&&!(Jc(Gy(n))&32768)?zf(i):i:dT(n,Ea([zf(i),Gy(n)],2)):i}function Na(n){var t=e.getJSDocType(n);return t?La(t):void 0}function ja(n){var t=e.skipParentheses(n);return t.kind===104||t.kind===79&&Vu(t)===Qe}function ii(n){var t=e.skipParentheses(n);return t.kind===202&&t.elements.length===0}function Yi(n,t,r){return t===void 0&&(t=!1),r===void 0&&(r=!0),je&&r?ef(n,t):n}function ss(n,t){if(e.isVariableDeclaration(n)&&n.parent.parent.kind===241){var r=yd(WE(hi(n.parent.parent.expression)));return r.flags&(262144|4194304)?kS(r):ht}if(e.isVariableDeclaration(n)&&n.parent.parent.kind===242){var i=n.parent.parent;return Hy(i)||lt}if(e.isBindingPattern(n.parent))return _a(n);var l=e.isPropertyDeclaration(n)||e.isPropertySignature(n),u=t&&(l&&!!n.questionToken||e.isParameter(n)&&(!!n.questionToken||wf(n))||ph(n)),S=dt(n);if(S)return Yi(S,l,u);if((vn||e.isInJSFile(n))&&e.isVariableDeclaration(n)&&!e.isBindingPattern(n.name)&&!(e.getCombinedModifierFlags(n)&1)&&!(n.flags&8388608)){if(!(e.getCombinedNodeFlags(n)&2)&&(!n.initializer||ja(n.initializer)))return Fe;if(n.initializer&&ii(n.initializer))return j}if(e.isParameter(n)){var M=n.parent;if(M.kind===171&&Jl(M)){var ge=e.getDeclarationOfKind(Rr(n.parent),170);if(ge){var Ge=Eu(ge),We=VT(M);return We&&n===We?(e.Debug.assert(!We.type),Ir(Ge.thisParameter)):_o(Ge)}}if(e.isInJSFile(n)){var ze=e.getJSDocType(M);if(ze&&e.isFunctionTypeNode(ze)){var an=Eu(ze),Tn=M.parameters.indexOf(n);return n.dotDotDotToken?Rh(an,Tn):wu(an,Tn)}}var et=n.symbol.escapedName==="this"?cw(M):uw(n);if(et)return Yi(et,!1,u)}if(e.hasOnlyExpressionInitializer(n)&&!!n.initializer){if(e.isInJSFile(n)&&!e.isParameter(n)){var st=Up(n,Rr(n),e.getDeclaredExpandoInitializer(n));if(st)return st}var et=dT(n,Gy(n));return Yi(et,l,u)}if(e.isPropertyDeclaration(n)&&(vn||e.isInJSFile(n)))if(e.hasStaticModifier(n)){var Dt=e.filter(n.parent.members,e.isClassStaticBlockDeclaration),et=Dt.length?Zc(n.symbol,Dt):e.getEffectiveModifierFlags(n)&2?w_(n.symbol):void 0;return et&&Yi(et,!0,u)}else{var Ct=Vc(n.parent),et=Ct?Yu(n.symbol,Ct):e.getEffectiveModifierFlags(n)&2?w_(n.symbol):void 0;return et&&Yi(et,!0,u)}return e.isJsxAttribute(n)?Jt:e.isBindingPattern(n.name)?Sf(n.name,!1,!0):void 0}function gs(n){if(n.valueDeclaration&&e.isBinaryExpression(n.valueDeclaration)){var t=$a(n);return t.isConstructorDeclaredProperty===void 0&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Os(n)&&e.every(n.declarations,function(r){return e.isBinaryExpression(r)&&J_(r)&&(r.left.kind!==205||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!Vp(void 0,r,n,r)})),t.isConstructorDeclaredProperty}return!1}function xl(n){var t=n.valueDeclaration;return t&&e.isPropertyDeclaration(t)&&!e.getEffectiveTypeAnnotationNode(t)&&!t.initializer&&(vn||e.isInJSFile(t))}function Os(n){if(!n.declarations)return;for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t],l=e.getThisContainer(i,!1);if(l&&(l.kind===169||Wu(l)))return l}}function Ml(n){var t=e.getSourceFileOfNode(n.declarations[0]),r=e.unescapeLeadingUnderscores(n.escapedName),i=n.declarations.every(function(u){return e.isInJSFile(u)&&e.isAccessExpression(u)&&e.isModuleExportsAccessExpression(u.expression)}),l=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),r):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),r);return i&&e.setParent(l.expression.expression,l.expression),e.setParent(l.expression,l),e.setParent(l,t),l.flowNode=t.endFlowNode,im(l,Fe,Ln)}function Zc(n,t){for(var r=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),i=0,l=t;i<l.length;i++){var u=l[i],S=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(S.expression,S),e.setParent(S,u),S.flowNode=u.returnFlowNode;var M=Fl(S,n);if(vn&&(M===Fe||M===j)&&Hn(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Xa(n),Ar(M)),nf(M,$_))continue;return Rg(M)}}function Yu(n,t){var r=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(i.expression,i),e.setParent(i,t),i.flowNode=t.returnFlowNode;var l=Fl(i,n);return vn&&(l===Fe||l===j)&&Hn(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Xa(n),Ar(l)),nf(l,$_)?void 0:Rg(l)}function Fl(n,t){var r=(t==null?void 0:t.valueDeclaration)&&(!xl(t)||e.getEffectiveModifierFlags(t.valueDeclaration)&2)&&w_(t)||Ln;return im(n,Fe,r)}function $c(n,t){var r=e.getAssignedExpandoInitializer(n.valueDeclaration);if(r){var i=e.getJSDocTypeTag(r);if(i&&i.typeExpression)return La(i.typeExpression);var l=n.valueDeclaration&&Up(n.valueDeclaration,n,r);return l||wp(ml(r))}var u,S=!1,M=!1;if(gs(n)&&(u=Yu(n,Os(n))),!u){var ge=void 0;if(n.declarations){for(var Ge=void 0,We=0,ze=n.declarations;We<ze.length;We++){var an=ze[We],Tn=e.isBinaryExpression(an)||e.isCallExpression(an)?an:e.isAccessExpression(an)?e.isBinaryExpression(an.parent)?an.parent:an:void 0;if(!Tn)continue;var et=e.isAccessExpression(Tn)?e.getAssignmentDeclarationPropertyAccessKind(Tn):e.getAssignmentDeclarationKind(Tn);(et===4||e.isBinaryExpression(Tn)&&J_(Tn,et))&&(md(Tn)?S=!0:M=!0),e.isCallExpression(Tn)||(Ge=Vp(Ge,Tn,n,an)),Ge||(ge||(ge=[])).push(e.isBinaryExpression(Tn)||e.isCallExpression(Tn)?jp(n,t,Tn,et):Wr)}u=Ge}if(!u){if(!e.length(ge))return K;var st=S&&n.declarations?Lm(ge,n.declarations):void 0;if(M){var Ct=w_(n);Ct&&((st||(st=[])).push(Ct),S=!0)}var Dt=e.some(st,function(cr){return!!(cr.flags&~98304)})?st:ge;u=Ea(Dt,2)}}var Bt=bc(Yi(u,!1,M&&!S));return n.valueDeclaration&&Vl(Bt,function(cr){return!!(cr.flags&~98304)})===Wr?(Ap(n.valueDeclaration,lt),lt):Bt}function Up(n,t,r){var i,l;if(!e.isInJSFile(n)||!r||!e.isObjectLiteralExpression(r)||r.properties.length)return;for(var u=e.createSymbolTable();e.isBinaryExpression(n)||e.isPropertyAccessExpression(n);){var S=Rr(n);((i=S==null?void 0:S.exports)===null||i===void 0?void 0:i.size)&&Wl(u,S.exports),n=e.isBinaryExpression(n)?n.parent:n.parent.parent}var M=Rr(n);((l=M==null?void 0:M.exports)===null||l===void 0?void 0:l.size)&&Wl(u,M.exports);var ge=ns(t,u,e.emptyArray,e.emptyArray,e.emptyArray);return ge.objectFlags|=8192,ge}function Vp(n,t,r,i){var l,u=e.getEffectiveTypeAnnotationNode(t.parent);if(u){var S=bc(La(u));if(n)n!==K&&S!==K&&!Yd(n,S)&&eA(void 0,n,i,S);else return S}if((l=r.parent)===null||l===void 0?void 0:l.valueDeclaration){var M=e.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(M){var ge=Rn(La(M),r.escapedName);if(ge)return kl(ge)}}return n}function jp(n,t,r,i){if(e.isCallExpression(r)){if(t)return Ir(t);var l=ml(r.arguments[2]),u=js(l,"value");if(u)return u;var S=js(l,"get");if(S){var M=Am(S);if(M)return _o(M)}var ge=js(l,"set");if(ge){var Ge=Am(ge);if(Ge)return rT(Ge)}return lt}if(Wp(r.left,r.right))return lt;var We=t?Ir(t):wp(ml(r.right));if(We.flags&524288&&i===2&&n.escapedName==="export="){var ze=Fu(We),an=e.createSymbolTable();e.copyEntries(ze.members,an);var Tn=an.size;t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||n).exports.forEach(function(st,Ct){var Dt,Bt=an.get(Ct);if(Bt&&Bt!==st)if(st.flags&111551&&Bt.flags&111551){if(st.valueDeclaration&&Bt.valueDeclaration&&e.getSourceFileOfNode(st.valueDeclaration)!==e.getSourceFileOfNode(Bt.valueDeclaration)){var cr=e.unescapeLeadingUnderscores(st.escapedName),Vr=((Dt=e.tryCast(Bt.valueDeclaration,e.isNamedDeclaration))===null||Dt===void 0?void 0:Dt.name)||Bt.valueDeclaration;e.addRelatedInfo(Hn(st.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,cr),e.createDiagnosticForNode(Vr,e.Diagnostics._0_was_also_declared_here,cr)),e.addRelatedInfo(Hn(Vr,e.Diagnostics.Duplicate_identifier_0,cr),e.createDiagnosticForNode(st.valueDeclaration,e.Diagnostics._0_was_also_declared_here,cr))}var yr=oo(st.flags|Bt.flags,Ct);yr.type=Ea([Ir(st),Ir(Bt)]),yr.valueDeclaration=Bt.valueDeclaration,yr.declarations=e.concatenate(Bt.declarations,st.declarations),an.set(Ct,yr)}else an.set(Ct,lu(st,Bt));else an.set(Ct,st)});var et=ns(Tn!==an.size?void 0:ze.symbol,an,ze.callSignatures,ze.constructSignatures,ze.indexInfos);return et.objectFlags|=e.getObjectFlags(We)&8192,et.symbol&&et.symbol.flags&32&&We===yc(et.symbol)&&(et.objectFlags|=16777216),et}return Yb(We)?(Ap(r,pn),pn):We}function Wp(n,t){return e.isPropertyAccessExpression(n)&&n.expression.kind===108&&e.forEachChildRecursively(t,function(r){return Il(n,r)})}function md(n){var t=e.getThisContainer(n,!1);return t.kind===169||t.kind===254||t.kind===211&&!e.isPrototypePropertyAssignment(t.parent)}function Lm(n,t){return e.Debug.assert(n.length===t.length),n.filter(function(r,i){var l=t[i],u=e.isBinaryExpression(l)?l:e.isBinaryExpression(l.parent)?l.parent:void 0;return u&&md(u)})}function mm(n,t,r){if(n.initializer){var i=e.isBindingPattern(n.name)?Sf(n.name,!0,!1):ln;return Yi(dT(n,Gy(n,i)))}return e.isBindingPattern(n.name)?Sf(n.name,t,r):(r&&!Xn(n)&&Ap(n,lt),t?An:lt)}function th(n,t,r){var i=e.createSymbolTable(),l,u=128|262144;e.forEach(n.elements,function(M){var ge=M.propertyName||M.name;if(M.dotDotDotToken){l=Qu(ht,lt,!1);return}var Ge=np(ge);if(!Fi(Ge)){u|=512;return}var We=nc(Ge),ze=4|(M.initializer?16777216:0),an=oo(ze,We);an.type=mm(M,t,r),an.bindingElement=M,i.set(an.escapedName,an)});var S=ns(void 0,i,e.emptyArray,e.emptyArray,l?[l]:e.emptyArray);return S.objectFlags|=u,t&&(S.pattern=n,S.objectFlags|=262144),S}function Hp(n,t,r){var i=n.elements,l=e.lastOrUndefined(i),u=l&&l.kind===201&&l.dotDotDotToken?l:void 0;if(i.length===0||i.length===1&&u)return Me>=2?LD(lt):pn;var S=e.map(i,function(We){return e.isOmittedExpression(We)?lt:mm(We,t,r)}),M=e.findLastIndex(i,function(We){return!(We===u||e.isOmittedExpression(We)||Ch(We))},i.length-1)+1,ge=e.map(i,function(We,ze){return We===u?4:ze>=M?2:1}),Ge=Zu(S,ge);return t&&(Ge=ZT(Ge),Ge.pattern=n,Ge.objectFlags|=262144),Ge}function Sf(n,t,r){return t===void 0&&(t=!1),r===void 0&&(r=!1),n.kind===199?th(n,t,r):Hp(n,t,r)}function xf(n,t){return bn(ss(n,!0),n,t)}function Ie(n){var t=Rr(n),r=hD(!1);return r&&t&&t===r}function bn(n,t,r){return n?(n.flags&4096&&Ie(t.parent)&&(n=kb(t)),r&&I_(t,n),n.flags&8192&&(e.isBindingElement(t)||!t.type)&&n.symbol!==Rr(t)&&(n=Xr),bc(n)):(n=e.isParameter(t)&&t.dotDotDotToken?pn:lt,r&&(Xn(t)||Ap(t,n)),n)}function Xn(n){var t=e.getRootDeclaration(n),r=t.kind===162?t.parent:t;return hv(r)}function dt(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return La(t)}function Rt(n){var t=$a(n);if(!t.type){var r=lr(n);t.type||(t.type=r)}return t.type}function lr(n){if(n.flags&4194304)return Pu(n);if(n===Ze)return lt;if(n.flags&134217728&&n.valueDeclaration){var t=Rr(e.getSourceFileOfNode(n.valueDeclaration)),r=oo(t.flags,"exports");r.declarations=t.declarations?t.declarations.slice():[],r.parent=n,r.target=t,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports));var i=e.createSymbolTable();return i.set("exports",r),ns(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(n.valueDeclaration);var l=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(l)){var u=e.getEffectiveTypeAnnotationNode(l);if(u===void 0)return Cn?ln:lt;var S=cm(u);return no(S)||S===ln?S:K}if(e.isSourceFile(l)&&e.isJsonSourceFile(l))return l.statements.length?bc(wp(hi(l.statements[0].expression))):xt;if(!Qc(n,0))return n.flags&512&&!(n.flags&67108864)?Cl(n):Kl(n);var M;if(l.kind===269)M=bn(ml(l.expression),l);else if(e.isBinaryExpression(l)||e.isInJSFile(l)&&(e.isCallExpression(l)||(e.isPropertyAccessExpression(l)||e.isBindableStaticElementAccessExpression(l))&&e.isBinaryExpression(l.parent)))M=$c(n);else if(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isIdentifier(l)||e.isStringLiteralLike(l)||e.isNumericLiteral(l)||e.isClassDeclaration(l)||e.isFunctionDeclaration(l)||e.isMethodDeclaration(l)&&!e.isObjectLiteralMethod(l)||e.isMethodSignature(l)||e.isSourceFile(l)){if(n.flags&(16|8192|32|384|512))return Cl(n);M=e.isBinaryExpression(l.parent)?$c(n):dt(l)||lt}else if(e.isPropertyAssignment(l))M=dt(l)||L1(l);else if(e.isJsxAttribute(l))M=dt(l)||bw(l);else if(e.isShorthandPropertyAssignment(l))M=dt(l)||Fh(l.name,0);else if(e.isObjectLiteralMethod(l))M=dt(l)||I1(l,0);else if(e.isParameter(l)||e.isPropertyDeclaration(l)||e.isPropertySignature(l)||e.isVariableDeclaration(l)||e.isBindingElement(l)||e.isJSDocPropertyLikeTag(l))M=xf(l,!0);else if(e.isEnumDeclaration(l))M=Cl(n);else if(e.isEnumMember(l))M=Hc(n);else if(e.isAccessor(l))M=Es(n)||e.Debug.fail("Non-write accessor resolution must always produce a type");else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(l.kind)+" for "+e.Debug.formatSymbol(n));return Wc()?M:n.flags&512&&!(n.flags&67108864)?Cl(n):Kl(n)}function Fr(n){if(n)if(n.kind===170){var t=e.getEffectiveReturnTypeNode(n);return t}else{var r=e.getEffectiveSetAccessorTypeAnnotationNode(n);return r}return}function aa(n){var t=Fr(n);return t&&La(t)}function di(n){var t=VT(n);return t&&t.symbol}function ka(n){return Af(Eu(n))}function Co(n){var t=$a(n);return t.type||(t.type=ko(n)||e.Debug.fail("Read type of accessor must always produce a type"))}function Fs(n){var t=$a(n);return t.writeType||(t.writeType=ko(n,!0))}function ko(n,t){if(t===void 0&&(t=!1),!Qc(n,0))return K;var r=Es(n,t);if(!Wc()&&(r=lt,vn)){var i=e.getDeclarationOfKind(n,170);Hn(i,e.Diagnostics._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,Xa(n))}return r}function Es(n,t){t===void 0&&(t=!1);var r=e.getDeclarationOfKind(n,170),i=e.getDeclarationOfKind(n,171),l=aa(i);if(t&&l)return ge(l,n);if(r&&e.isInJSFile(r)){var u=Na(r);if(u)return ge(u,n)}var S=aa(r);if(S)return ge(S,n);if(l)return l;if(r&&r.body){var M=dv(r);return ge(M,n)}if(i)return hv(i)||Ds(vn,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xa(n)),lt;if(r)return e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),hv(r)||Ds(vn,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xa(n)),lt;return;function ge(Ge,We){if(e.getCheckFlags(We)&1){var ze=$a(We);return si(Ge,ze.mapper)}return Ge}}function Xs(n){var t=hd(yc(n));return t.flags&8650752?t:t.flags&2097152?e.find(t.types,function(r){return!!(r.flags&8650752)}):void 0}function Cl(n){var t=$a(n),r=t;if(!t.type){var i=n.valueDeclaration&&lv(n.valueDeclaration,!1);if(i){var l=nT(n,i);l&&(n=t=l)}r.type=t.type=Gl(n)}return t.type}function Gl(n){var t=n.valueDeclaration;if(n.flags&1536&&e.isShorthandAmbientModuleSymbol(n))return lt;if(t&&(t.kind===219||e.isAccessExpression(t)&&t.parent.kind===219))return $c(n);if(n.flags&512&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=wr(n);if(r!==n){if(!Qc(n,0))return K;var i=To(n.exports.get("export=")),l=$c(i,i===r?void 0:r);return Wc()?l:Kl(n)}}var u=Tl(16,n);if(n.flags&32){var S=Xs(n);return S?Go([u,S]):u}else return je&&n.flags&16777216?ef(u):u}function Hc(n){var t=$a(n);return t.type||(t.type=Xf(n))}function uc(n){var t=$a(n);if(!t.type){var r=ks(n),i=n.declarations&&Ed(es(n),!0);t.type=(i==null?void 0:i.declarations)&&Dv(i.declarations)&&n.declarations.length?Ml(i):Dv(n.declarations)?Fe:r.flags&111551?Ir(r):K}return t.type}function Cd(n){var t=$a(n);if(!t.type){if(!Qc(n,0))return t.type=K;var r=si(Ir(t.target),t.mapper);Wc()||(r=Kl(n)),t.type=r}return t.type}function Kl(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(Hn(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xa(n)),K):(vn&&(t.kind!==162||t.initializer)&&Hn(n.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xa(n)),lt)}function ec(n){var t=$a(n);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=t.deferralParent.flags&1048576?Ea(t.deferralConstituents):Go(t.deferralConstituents)),t.type}function jd(n){if(n.flags&98304){var t=Fs(n);if(t)return t}return Ir(n)}function Ir(n){var t=e.getCheckFlags(n);return t&65536?ec(n):t&1?Cd(n):t&262144?Jv(n):t&8192?O0(n):n.flags&(3|4)?Rt(n):n.flags&(16|8192|32|384|512)?Cl(n):n.flags&8?Hc(n):n.flags&98304?Co(n):n.flags&2097152?uc(n):K}function kl(n){return jm(Ir(n),!!(n.flags&16777216))}function h(n,t){return n!==void 0&&t!==void 0&&(e.getObjectFlags(n)&4)!==0&&n.target===t}function G(n){return e.getObjectFlags(n)&4?n.target:n}function ve(n,t){return r(n);function r(i){if(e.getObjectFlags(i)&(3|4)){var l=G(i);return l===t||e.some(Ac(l),r)}else if(i.flags&2097152)return e.some(i.types,r);return!1}}function on(n,t){for(var r=0,i=t;r<i.length;r++){var l=i[r];n=e.appendIfUnique(n,Hd(Rr(l)))}return n}function zn(n,t){for(;;){if(n=n.parent,n&&e.isBinaryExpression(n)){var r=e.getAssignmentDeclarationKind(n);if(r===6||r===3){var i=Rr(n.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,function(ge){return n===ge})&&(n=i.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 255:case 224:case 256:case 172:case 173:case 166:case 177:case 178:case 312:case 254:case 167:case 211:case 212:case 257:case 339:case 340:case 334:case 333:case 193:case 187:{var l=zn(n,t);if(n.kind===193)return e.append(l,Hd(Rr(n.typeParameter)));if(n.kind===187)return e.concatenate(l,BS(n));var u=on(l,e.getEffectiveTypeParameterDeclarations(n)),S=t&&(n.kind===255||n.kind===224||n.kind===256||Wu(n))&&yc(Rr(n)).thisType;return S?e.append(u,S):u}case 335:var M=e.getParameterSymbolFromJSDoc(n);M&&(n=M.valueDeclaration);break;case 315:{var l=zn(n,t);return n.tags?on(l,e.flatMap(n.tags,function(Ge){return e.isJSDocTemplateTag(Ge)?Ge.typeParameters:void 0})):l}}}}function Zt(n){var t=n.flags&32?n.valueDeclaration:e.getDeclarationOfKind(n,256);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),zn(t)}function Lr(n){if(!n.declarations)return;for(var t,r=0,i=n.declarations;r<i.length;r++){var l=i[r];if(l.kind===256||l.kind===255||l.kind===224||Wu(l)||e.isTypeAlias(l)){var u=l;t=on(t,e.getEffectiveTypeParameterDeclarations(u))}}return t}function Ei(n){return e.concatenate(Zt(n),Lr(n))}function as(n){var t=qt(n,1);if(t.length===1){var r=t[0];if(!r.typeParameters&&r.parameters.length===1&&k(r)){var i=wg(r.parameters[0]);return no(i)||zb(i)===lt}}return!1}function ll(n){if(qt(n,1).length>0)return!0;if(n.flags&8650752){var t=tc(n);return!!t&&as(t)}return!1}function hu(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function kd(n,t,r){var i=e.length(t),l=e.isInJSFile(r);return e.filter(qt(n,1),function(u){return(l||i>=Gu(u.typeParameters))&&i<=e.length(u.typeParameters)})}function Wd(n,t,r){var i=kd(n,t,r),l=e.map(t,La);return e.sameMap(i,function(u){return e.some(u.typeParameters)?ly(u,l,e.isInJSFile(r)):u})}function hd(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),i=hu(n);if(!i)return n.resolvedBaseConstructorType=Ln;if(!Qc(n,1))return K;var l=hi(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),hi(r.expression)),l.flags&(524288|2097152)&&Fu(l),!Wc())return Hn(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xa(n.symbol)),n.resolvedBaseConstructorType=K;if(!(l.flags&1)&&l!==it&&!ll(l)){var u=Hn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ar(l));if(l.flags&262144){var S=hh(l),M=ln;if(S){var ge=qt(S,1);ge[0]&&(M=_o(ge[0]))}l.symbol.declarations&&e.addRelatedInfo(u,e.createDiagnosticForNode(l.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Xa(l.symbol),Ar(M)))}return n.resolvedBaseConstructorType=K}n.resolvedBaseConstructorType=l}return n.resolvedBaseConstructorType}function Jh(n){var t=e.emptyArray;if(n.symbol.declarations)for(var r=0,i=n.symbol.declarations;r<i.length;r++){var l=i[r],u=e.getEffectiveImplementsTypeNodes(l);if(!u)continue;for(var S=0,M=u;S<M.length;S++){var ge=M[S],Ge=La(ge);Ge!==K&&(t===e.emptyArray?t=[Ge]:t.push(Ge))}}return t}function rh(n,t){Hn(n,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ar(t,void 0,2))}function Ac(n){if(!n.baseTypesResolved){if(Qc(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[ah(n)]:n.symbol.flags&(32|64)?(n.symbol.flags&32&&Vg(n),n.symbol.flags&64&&jg(n)):e.Debug.fail("type must be class or interface"),!Wc()&&n.symbol.declarations))for(var t=0,r=n.symbol.declarations;t<r.length;t++){var i=r[t];(i.kind===255||i.kind===256)&&rh(i,n)}n.baseTypesResolved=!0}return n.resolvedBaseTypes}function ah(n){var t=e.sameMap(n.typeParameters,function(r,i){return n.elementFlags[i]&8?kc(r,Et):r});return Ll(Ea(t||e.emptyArray),n.readonly)}function Vg(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=Ul(hd(n));if(!(t.flags&(524288|2097152|1)))return n.resolvedBaseTypes=e.emptyArray;var r=hu(n),i,l=t.symbol?ls(t.symbol):void 0;if(t.symbol&&t.symbol.flags&32&&qh(l))i=$T(r,t.symbol);else if(t.flags&1)i=t;else{var u=Wd(t,r.typeArguments,r);if(!u.length)return Hn(r.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;i=_o(u[0])}if(i===K)return n.resolvedBaseTypes=e.emptyArray;var S=vu(i);if(!Kp(S)){var M=sn(void 0,i),ge=e.chainDiagnosticMessages(M,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ar(S));return zr.add(e.createDiagnosticForNodeFromMessageChain(r.expression,ge)),n.resolvedBaseTypes=e.emptyArray}return n===S||ve(S,n)?(Hn(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ar(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray):(n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0),n.resolvedBaseTypes=[S])}function qh(n){var t=n.outerTypeParameters;if(t){var r=t.length-1,i=Oo(n);return t[r].symbol!==i[r].symbol}return!0}function Kp(n){if(n.flags&262144){var t=tc(n);if(t)return Kp(t)}return!!(n.flags&(524288|67108864|1)&&!Dc(n)||n.flags&2097152&&e.every(n.types,Kp))}function jg(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray,n.symbol.declarations)for(var t=0,r=n.symbol.declarations;t<r.length;t++){var i=r[t];if(i.kind===256&&e.getInterfaceBaseTypeNodes(i))for(var l=0,u=e.getInterfaceBaseTypeNodes(i);l<u.length;l++){var S=u[l],M=vu(La(S));M!==K&&(Kp(M)?n!==M&&!ve(M,n)?n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[M]:n.resolvedBaseTypes.push(M):rh(i,n):Hn(S,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function yp(n){if(!n.declarations)return!0;for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];if(i.kind===256){if(i.flags&128)return!1;var l=e.getInterfaceBaseTypeNodes(i);if(l)for(var u=0,S=l;u<S.length;u++){var M=S[u];if(e.isEntityNameExpression(M.expression)){var ge=rs(M.expression,788968,!0);if(!ge||!(ge.flags&64)||yc(ge).thisType)return!1}}}}return!0}function yc(n){var t=$a(n),r=t;if(!t.declaredType){var i=n.flags&32?1:2,l=nT(n,n.valueDeclaration&&_2(n.valueDeclaration));l&&(n=t=l);var u=r.declaredType=t.declaredType=Tl(i,n),S=Zt(n),M=Lr(n);(S||M||i===1||!yp(n))&&(u.objectFlags|=4,u.typeParameters=e.concatenate(S,M),u.outerTypeParameters=S,u.localTypeParameters=M,u.instantiations=new e.Map,u.instantiations.set(Tu(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=Yc(n),u.thisType.isThisType=!0,u.thisType.constraint=u)}return t.declaredType}function Im(n){var t,r=$a(n);if(!r.declaredType){if(!Qc(n,2))return K;var i=e.Debug.checkDefined((t=n.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),l=e.isJSDocTypeAlias(i)?i.typeExpression:i.type,u=l?La(l):K;if(Wc()){var S=Lr(n);S&&(r.typeParameters=S,r.instantiations=new e.Map,r.instantiations.set(Tu(S),u))}else u=K,i.kind===334?Hn(i.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Xa(n)):Hn(e.isNamedDeclaration(i)?i.name:i||i,e.Diagnostics.Type_alias_0_circularly_references_itself,Xa(n));r.declaredType=u}return r.declaredType}function hm(n){return e.isStringLiteralLike(n)?!0:n.kind===219?hm(n.left)&&hm(n.right):!1}function Nm(n){var t=n.initializer;if(!t)return!(n.flags&8388608);switch(t.kind){case 10:case 8:case 14:return!0;case 217:return t.operator===40&&t.operand.kind===8;case 79:return e.nodeIsMissing(t)||!!Rr(n.parent).exports.get(t.escapedText);case 219:return hm(t);default:return!1}}function gm(n){var t=$a(n);if(t.enumKind!==void 0)return t.enumKind;var r=!1;if(n.declarations)for(var i=0,l=n.declarations;i<l.length;i++){var u=l[i];if(u.kind===258)for(var S=0,M=u.members;S<M.length;S++){var ge=M[S];if(ge.initializer&&e.isStringLiteralLike(ge.initializer))return t.enumKind=1;Nm(ge)||(r=!0)}}return t.enumKind=r?0:1}function Om(n){return n.flags&1024&&!(n.flags&1048576)?ls($l(n.symbol)):n}function ih(n){var t=$a(n);if(t.declaredType)return t.declaredType;if(gm(n)===1){Ce++;var r=[];if(n.declarations)for(var i=0,l=n.declarations;i<l.length;i++){var u=l[i];if(u.kind===258)for(var S=0,M=u.members;S<M.length;S++){var ge=M[S],Ge=Ov(ge),We=Bm(bC(Ge!==void 0?Ge:0,Ce,Rr(ge)));$a(Rr(ge)).declaredType=We,r.push(_c(We))}}if(r.length){var ze=Ea(r,1,n,void 0);return ze.flags&1048576&&(ze.flags|=1024,ze.symbol=n),t.declaredType=ze}}var an=Hl(32);return an.symbol=n,t.declaredType=an}function Xf(n){var t=$a(n);if(!t.declaredType){var r=ih($l(n));t.declaredType||(t.declaredType=r)}return t.declaredType}function Hd(n){var t=$a(n);return t.declaredType||(t.declaredType=Yc(n))}function Wg(n){var t=$a(n);return t.declaredType||(t.declaredType=ls(ks(n)))}function ls(n){return zh(n)||K}function zh(n){return n.flags&(32|64)?yc(n):n.flags&524288?Im(n):n.flags&262144?Hd(n):n.flags&384?ih(n):n.flags&8?Xf(n):n.flags&2097152?Wg(n):void 0}function ym(n){switch(n.kind){case 129:case 153:case 148:case 145:case 156:case 132:case 149:case 146:case 114:case 151:case 142:case 194:return!0;case 181:return ym(n.elementType);case 176:return!n.typeArguments||n.typeArguments.every(ym)}return!1}function Jp(n){var t=e.getEffectiveConstraintOfTypeParameter(n);return!t||ym(t)}function oh(n){var t=e.getEffectiveTypeAnnotationNode(n);return t?ym(t):!e.hasInitializer(n)}function Yf(n){var t=e.getEffectiveReturnTypeNode(n),r=e.getEffectiveTypeParameterDeclarations(n);return(n.kind===169||!!t&&ym(t))&&n.parameters.every(oh)&&r.every(Jp)}function vr(n){if(n.declarations&&n.declarations.length===1){var t=n.declarations[0];if(t)switch(t.kind){case 165:case 164:return oh(t);case 167:case 166:case 169:case 170:case 171:return Yf(t)}}return!1}function ga(n,t,r){for(var i=e.createSymbolTable(),l=0,u=n;l<u.length;l++){var S=u[l];i.set(S.escapedName,r&&vr(S)?S:Ib(S,t))}return i}function ha(n,t){for(var r=0,i=t;r<i.length;r++){var l=i[r];!n.has(l.escapedName)&&!Pa(l)&&n.set(l.escapedName,l)}}function Pa(n){return!!n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration)&&e.isStatic(n.valueDeclaration)}function oi(n){if(!n.declaredProperties){var t=n.symbol,r=eu(t);n.declaredProperties=ld(r),n.declaredCallSignatures=e.emptyArray,n.declaredConstructSignatures=e.emptyArray,n.declaredIndexInfos=e.emptyArray,n.declaredCallSignatures=gd(r.get("__call")),n.declaredConstructSignatures=gd(r.get("__new")),n.declaredIndexInfos=zT(t)}return n}function Fi(n){return!!(n.flags&8576)}function ys(n){if(!e.isComputedPropertyName(n)&&!e.isElementAccessExpression(n))return!1;var t=e.isComputedPropertyName(n)?n.expression:n.argumentExpression;return e.isEntityNameExpression(t)&&Fi(e.isComputedPropertyName(n)?rf(n):ml(t))}function wl(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function Bl(n){var t=e.getNameOfDeclaration(n);return!!t&&ys(t)}function Jl(n){return!e.hasDynamicName(n)||Bl(n)}function gu(n){return e.isDynamicName(n)&&!ys(n)}function nc(n){return n.flags&8192?n.escapedName:n.flags&(128|256)?e.escapeLeadingUnderscores(""+n.value):e.Debug.fail()}function _p(n,t,r){e.Debug.assert(!!(e.getCheckFlags(n)&4096),"Expected a late-bound symbol."),n.flags|=r,$a(t.symbol).lateSymbol=n,n.declarations?t.symbol.isReplaceableByMethod||n.declarations.push(t):n.declarations=[t],r&111551&&((!n.valueDeclaration||n.valueDeclaration.kind!==t.kind)&&(n.valueDeclaration=t))}function qp(n,t,r,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var l=pa(i);if(!l.resolvedSymbol){l.resolvedSymbol=i.symbol;var u=e.isBinaryExpression(i)?i.left:i.name,S=e.isElementAccessExpression(u)?ml(u.argumentExpression):rf(u);if(Fi(S)){var M=nc(S),ge=i.symbol.flags,Ge=r.get(M);Ge||r.set(M,Ge=oo(0,M,4096));var We=t&&t.get(M);if(Ge.flags&tl(ge)||We){var ze=We?e.concatenate(We.declarations,Ge.declarations):Ge.declarations,an=!(S.flags&8192)&&e.unescapeLeadingUnderscores(M)||e.declarationNameToString(u);e.forEach(ze,function(Tn){return Hn(e.getNameOfDeclaration(Tn)||Tn,e.Diagnostics.Property_0_was_also_declared_here,an)}),Hn(u||i,e.Diagnostics.Duplicate_property_0,an),Ge=oo(0,M,4096)}return Ge.nameType=S,_p(Ge,i,ge),Ge.parent?e.Debug.assert(Ge.parent===n,"Existing symbol parent should match new one"):Ge.parent=n,l.resolvedSymbol=Ge}}return l.resolvedSymbol}function zp(n,t){var r=$a(n);if(!r[t]){var i=t==="resolvedExports",l=i?n.flags&1536?wd(n):n.exports:n.members;r[t]=l||Le;for(var u=e.createSymbolTable(),S=0,M=n.declarations||e.emptyArray;S<M.length;S++){var ge=M[S],Ge=e.getMembersOfDeclaration(ge);if(Ge)for(var We=0,ze=Ge;We<ze.length;We++){var an=ze[We];i===e.hasStaticModifier(an)&&Bl(an)&&qp(n,l,u,an)}}var Tn=n.assignmentDeclarationMembers;if(Tn)for(var et=e.arrayFrom(Tn.values()),st=0,Ct=et;st<Ct.length;st++){var an=Ct[st],Dt=e.getAssignmentDeclarationKind(an),Bt=Dt===3||e.isBinaryExpression(an)&&J_(an,Dt)||Dt===9||Dt===6;i===!Bt&&Bl(an)&&qp(n,l,u,an)}r[t]=Of(l,u)||Le}return r[t]}function eu(n){return n.flags&6256?zp(n,"resolvedMembers"):n.members||Le}function Xp(n){if(n.flags&106500&&n.escapedName==="__computed"){var t=$a(n);if(!t.lateSymbol&&e.some(n.declarations,Bl)){var r=To(n.parent);e.some(n.declarations,e.hasStaticModifier)?ul(r):eu(r)}return t.lateSymbol||(t.lateSymbol=n)}return n}function Rc(n,t,r){if(e.getObjectFlags(n)&4){var i=n.target,l=Oo(n);if(e.length(i.typeParameters)===e.length(l)){var u=qd(i,e.concatenate(l,[t||i.thisType]));return r?Ul(u):u}}else if(n.flags&2097152){var S=e.sameMap(n.types,function(M){return Rc(M,t,r)});return S!==n.types?Go(S):n}return r?Ul(n):n}function Yy(n,t,r,i){var l,u,S,M,ge;e.rangeEquals(r,i,0,r.length)?(u=t.symbol?eu(t.symbol):e.createSymbolTable(t.declaredProperties),S=t.declaredCallSignatures,M=t.declaredConstructSignatures,ge=t.declaredIndexInfos):(l=vc(r,i),u=ga(t.declaredProperties,l,r.length===1),S=b_(t.declaredCallSignatures,l),M=b_(t.declaredConstructSignatures,l),ge=KS(t.declaredIndexInfos,l));var Ge=Ac(t);if(Ge.length){t.symbol&&u===eu(t.symbol)&&(u=e.createSymbolTable(t.declaredProperties)),sl(n,u,S,M,ge);for(var We=e.lastOrUndefined(i),ze=0,an=Ge;ze<an.length;ze++){var Tn=an[ze],et=We?Rc(si(Tn,l),We):Tn;ha(u,So(et)),S=e.concatenate(S,qt(et,0)),M=e.concatenate(M,qt(et,1));var st=et!==lt?vi(et):[Qu(ht,lt,!1)];ge=e.concatenate(ge,e.filter(st,function(Ct){return!sa(ge,Ct.keyType)}))}}sl(n,u,S,M,ge)}function Fv(n){Yy(n,oi(n),e.emptyArray,e.emptyArray)}function Hg(n){var t=oi(n.target),r=e.concatenate(t.typeParameters,[t.thisType]),i=Oo(n),l=i.length===r.length?i:e.concatenate(i,[n]);Yy(n,t,r,l)}function Ru(n,t,r,i,l,u,S,M){var ge=new te(Be,M);return ge.declaration=n,ge.typeParameters=t,ge.parameters=i,ge.thisParameter=r,ge.resolvedReturnType=l,ge.resolvedTypePredicate=u,ge.minArgumentCount=S,ge.resolvedMinArgumentCount=void 0,ge.target=void 0,ge.mapper=void 0,ge.compositeSignatures=void 0,ge.compositeKind=void 0,ge}function _m(n){var t=Ru(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&39);return t.target=n.target,t.mapper=n.mapper,t.compositeSignatures=n.compositeSignatures,t.compositeKind=n.compositeKind,t}function Kg(n,t){var r=_m(n);return r.compositeSignatures=t,r.compositeKind=1048576,r.target=void 0,r.mapper=void 0,r}function Qy(n,t){if((n.flags&24)===t)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});var r=t===8?"inner":"outer";return n.optionalCallSignatureCache[r]||(n.optionalCallSignatureCache[r]=Xh(n,t))}function Xh(n,t){e.Debug.assert(t===8||t===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var r=_m(n);return r.flags|=t,r}function Yh(n,t){if(k(n)){var r=n.parameters.length-1,i=Ir(n.parameters[r]);if(Ki(i))return[l(i,r)];if(!t&&i.flags&1048576&&e.every(i.types,Ki))return e.map(i.types,function(u){return l(u,r)})}return[n.parameters];function l(u,S){var M=Oo(u),ge=u.target.labeledElementDeclarations,Ge=e.map(M,function(We,ze){var an=!!ge&&uv(ge[ze]),Tn=an||Ph(n,S+ze,u),et=u.target.elementFlags[ze],st=et&12?32768:et&2?16384:0,Ct=oo(1,Tn,st);return Ct.type=et&4?Ll(We):We,Ct});return e.concatenate(n.parameters.slice(0,S),Ge)}}function Zy(n){var t=hd(n),r=qt(t,1),i=e.getClassLikeDeclarationOfSymbol(n.symbol),l=!!i&&e.hasSyntacticModifier(i,128);if(r.length===0)return[Ru(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,l?4:0)];for(var u=hu(n),S=e.isInJSFile(u),M=cb(u),ge=e.length(M),Ge=[],We=0,ze=r;We<ze.length;We++){var an=ze[We],Tn=Gu(an.typeParameters),et=e.length(an.typeParameters);if(S||ge>=Tn&&ge<=et){var st=et?c_(an,$f(M,an.typeParameters,Tn,S)):_m(an);st.typeParameters=n.localTypeParameters,st.resolvedReturnType=n,st.flags=l?st.flags|4:st.flags&~4,Ge.push(st)}}return Ge}function Jg(n,t,r,i,l){for(var u=0,S=n;u<S.length;u++){var M=S[u];if(by(M,t,r,i,l,r?UC:pg))return M}}function $y(n,t,r){if(t.typeParameters){if(r>0)return;for(var i=1;i<n.length;i++)if(!Jg(n[i],t,!1,!1,!1))return;return[t]}for(var l,i=0;i<n.length;i++){var u=i===r?t:Jg(n[i],t,!0,!1,!0);if(!u)return;l=e.appendIfUnique(l,u)}return l}function sh(n){for(var t,r,i=0;i<n.length;i++){if(n[i].length===0)return e.emptyArray;n[i].length>1&&(r=r===void 0?i:-1);for(var l=0,u=n[i];l<u.length;l++){var S=u[l];if(!t||!Jg(t,S,!1,!1,!0)){var M=$y(n,S,i);if(M){var ge=S;if(M.length>1){var Ge=S.thisParameter,We=e.forEach(M,function(cr){return cr.thisParameter});if(We){var ze=Go(e.mapDefined(M,function(cr){return cr.thisParameter&&Ir(cr.thisParameter)}));Ge=wm(We,ze)}ge=Kg(S,M),ge.thisParameter=Ge}(t||(t=[])).push(ge)}}}}if(!e.length(t)&&r!==-1){for(var an=n[r!==void 0?r:0],Tn=an.slice(),et=function(cr){if(cr!==an){var Vr=cr[0];if(e.Debug.assert(!!Vr,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),Tn=!!Vr.typeParameters&&e.some(Tn,function(yr){return!!yr.typeParameters&&!qg(Vr.typeParameters,yr.typeParameters)})?void 0:e.map(Tn,function(yr){return Bv(yr,Vr)}),!Tn)return"break"}},st=0,Ct=n;st<Ct.length;st++){var Dt=Ct[st],Bt=et(Dt);if(Bt==="break")break}t=Tn}return t||e.emptyArray}function qg(n,t){if(e.length(n)!==e.length(t))return!1;if(!n||!t)return!0;for(var r=vc(t,n),i=0;i<n.length;i++){var l=n[i],u=t[i];if(l===u)continue;if(!Yd(hh(l)||ln,si(hh(u)||ln,r)))return!1}return!0}function Qh(n,t,r){if(!n||!t)return n||t;var i=Go([Ir(n),si(Ir(t),r)]);return wm(n,i)}function Gv(n,t,r){for(var i=dc(n),l=dc(t),u=i>=l?n:t,S=u===n?t:n,M=u===n?i:l,ge=rd(n)||rd(t),Ge=ge&&!rd(u),We=new Array(M+(Ge?1:0)),ze=0;ze<M;ze++){var an=sm(u,ze);u===t&&(an=si(an,r));var Tn=sm(S,ze)||ln;S===t&&(Tn=si(Tn,r));var et=Go([an,Tn]),st=ge&&!Ge&&ze===M-1,Ct=ze>=td(u)&&ze>=td(S),Dt=ze>=i?void 0:Ph(n,ze),Bt=ze>=l?void 0:Ph(t,ze),cr=Dt===Bt?Dt:Dt?Bt?void 0:Dt:Bt,Vr=oo(1|(Ct&&!st?16777216:0),cr||"arg"+ze);Vr.type=st?Ll(et):et,We[ze]=Vr}if(Ge){var yr=oo(1,"args");yr.type=Ll(wu(S,M)),S===t&&(yr.type=si(yr.type,r)),We[M]=yr}return We}function Bv(n,t){var r=n.typeParameters||t.typeParameters,i;n.typeParameters&&t.typeParameters&&(i=vc(t.typeParameters,n.typeParameters));var l=n.declaration,u=Gv(n,t,i),S=Qh(n.thisParameter,t.thisParameter,i),M=Math.max(n.minArgumentCount,t.minArgumentCount),ge=Ru(l,r,S,u,void 0,void 0,M,(n.flags|t.flags)&39);return ge.compositeKind=1048576,ge.compositeSignatures=e.concatenate(n.compositeKind!==2097152&&n.compositeSignatures||[n],[t]),i&&(ge.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?Tm(n.mapper,i):i),ge}function e_(n){var t=vi(n[0]);if(t){for(var r=[],i=function(M){var ge=M.keyType;e.every(n,function(Ge){return!!go(Ge,ge)})&&r.push(Qu(ge,Ea(e.map(n,function(Ge){return Bs(Ge,ge)})),e.some(n,function(Ge){return go(Ge,ge).isReadonly})))},l=0,u=t;l<u.length;l++){var S=u[l];i(S)}return r}return e.emptyArray}function Uv(n){var t=sh(e.map(n.types,function(l){return l===Mo?[ui]:qt(l,0)})),r=sh(e.map(n.types,function(l){return qt(l,1)})),i=e_(n.types);sl(n,Le,t,r,i)}function Pm(n,t){return n?t?Go([n,t]):n:t}function Zh(n){var t=e.countWhere(n,function(l){return qt(l,1).length>0}),r=e.map(n,as);if(t>0&&t===e.countWhere(r,function(l){return l})){var i=r.indexOf(!0);r[i]=!1}return r}function Vv(n,t,r,i){for(var l=[],u=0;u<t.length;u++)u===i?l.push(n):r[u]&&l.push(_o(qt(t[u],1)[0]));return Go(l)}function n_(n){for(var t,r,i,l=n.types,u=Zh(l),S=e.countWhere(u,function(Ge){return Ge}),M=function(Ge){var We=n.types[Ge];if(!u[Ge]){var ze=qt(We,1);ze.length&&S>0&&(ze=e.map(ze,function(an){var Tn=_m(an);return Tn.resolvedReturnType=Vv(_o(an),l,u,Ge),Tn})),r=zg(r,ze)}t=zg(t,qt(We,0)),i=e.reduceLeft(vi(We),function(an,Tn){return t_(an,Tn,!1)},i)},ge=0;ge<l.length;ge++)M(ge);sl(n,Le,t||e.emptyArray,r||e.emptyArray,i||e.emptyArray)}function zg(n,t){for(var r=function(S){(!n||e.every(n,function(M){return!by(M,S,!1,!1,!1,pg)}))&&(n=e.append(n,S))},i=0,l=t;i<l.length;i++){var u=l[i];r(u)}return n}function t_(n,t,r){if(n)for(var i=0;i<n.length;i++){var l=n[i];if(l.keyType===t.keyType)return n[i]=Qu(l.keyType,r?Ea([l.type,t.type]):Go([l.type,t.type]),r?l.isReadonly||t.isReadonly:l.isReadonly&&t.isReadonly),n}return e.append(n,t)}function jv(n){var t=To(n.symbol);if(n.target){sl(n,Le,e.emptyArray,e.emptyArray,e.emptyArray);var r=ga(Kd(n.target),n.mapper,!1),i=b_(qt(n.target,0),n.mapper),l=b_(qt(n.target,1),n.mapper),u=KS(vi(n.target),n.mapper);sl(n,r,i,l,u)}else if(t.flags&2048){sl(n,Le,e.emptyArray,e.emptyArray,e.emptyArray);var r=eu(t),i=gd(r.get("__call")),l=gd(r.get("__new")),u=zT(t);sl(n,r,i,l,u)}else{var r=Le,u=void 0;if(t.exports&&(r=ul(t),t===gn)){var S=new e.Map;r.forEach(function(et){et.flags&418||S.set(et.escapedName,et)}),r=S}var M=void 0;if(sl(n,r,e.emptyArray,e.emptyArray,e.emptyArray),t.flags&32){var ge=yc(t),Ge=hd(ge);Ge.flags&(524288|2097152|8650752)?(r=e.createSymbolTable(ff(r)),ha(r,So(Ge))):Ge===lt&&(M=Qu(ht,lt,!1))}var We=ob(r);if(We?u=XT(We):(M&&(u=e.append(u,M)),t.flags&384&&(ls(t).flags&32||e.some(n.properties,function(et){return!!(Ir(et).flags&296)}))&&(u=e.append(u,Vi))),sl(n,r,e.emptyArray,e.emptyArray,u||e.emptyArray),t.flags&(16|8192)&&(n.callSignatures=gd(t)),t.flags&32){var ze=yc(t),l=t.members?gd(t.members.get("__constructor")):e.emptyArray;t.flags&16&&(l=e.addRange(l.slice(),e.mapDefined(n.callSignatures,function(st){return Wu(st.declaration)?Ru(st.declaration,st.typeParameters,st.thisParameter,st.parameters,ze,void 0,st.minArgumentCount,st.flags&39):void 0}))),l.length||(l=Zy(ze)),n.constructSignatures=l}}}function Wv(n,t,r){return si(n,vc([t.indexType,t.objectType],[Xd(0),Zu([r])]))}function Hv(n){for(var t=go(n.source,ht),r=_u(n.mappedType),i=!(r&1),l=r&4?0:16777216,u=t?[Qu(ht,O_(t.type,n.mappedType,n.constraintType),i&&t.isReadonly)]:e.emptyArray,S=e.createSymbolTable(),M=0,ge=So(n.source);M<ge.length;M++){var Ge=ge[M],We=8192|(i&&_d(Ge)?8:0),ze=oo(4|Ge.flags&l,Ge.escapedName,We);if(ze.declarations=Ge.declarations,ze.nameType=$a(Ge).nameType,ze.propertyType=Ir(Ge),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){var an=n.constraintType.type.objectType,Tn=Wv(n.mappedType,n.constraintType.type,an);ze.mappedType=Tn,ze.constraintType=yd(an)}else ze.mappedType=n.mappedType,ze.constraintType=n.constraintType;S.set(Ge.escapedName,ze)}sl(n,S,e.emptyArray,e.emptyArray,u)}function lh(n){if(n.flags&4194304){var t=Ul(n.type);return xh(t)?bS(t):yd(t)}if(n.flags&16777216){if(n.root.isDistributive){var r=n.checkType,i=lh(r);if(i!==r)return Rb(n,Sm(n.root.checkType,i,n.mapper))}return n}return n.flags&1048576?Ws(n,lh):n.flags&2097152?Go(e.sameMap(n.types,lh)):n}function Xg(n){return e.getCheckFlags(n)&4096}function Kv(n){var t=e.createSymbolTable(),r;sl(n,Le,e.emptyArray,e.emptyArray,e.emptyArray);var i=Mu(n),l=yu(n),u=Qf(n.target||n),S=Kc(n.target||n),M=Ul(eg(n)),ge=_u(n),Ge=z?128:8576;if($h(n)){for(var We=0,ze=So(M);We<ze.length;We++){var an=ze[We];Ct(Mm(an,Ge))}if(M.flags&1)Ct(ht);else for(var Tn=0,et=vi(M);Tn<et.length;Tn++){var st=et[Tn];(!z||st.keyType.flags&(4|134217728))&&Ct(st.keyType)}}else Km(lh(l),Ct);sl(n,t,e.emptyArray,e.emptyArray,r||e.emptyArray);function Ct(Bt){var cr=u?si(u,hy(n.mapper,i,Bt)):Bt;Km(cr,function(Vr){return Dt(Bt,Vr)})}function Dt(Bt,cr){if(Fi(cr)){var Vr=nc(cr),yr=t.get(Vr);if(yr)yr.nameType=Ea([yr.nameType,cr]),yr.keyType=Ea([yr.keyType,Bt]);else{var ba=Fi(Bt)?Rn(M,nc(Bt)):void 0,ca=!!(ge&4||!(ge&8)&&ba&&ba.flags&16777216),fi=!!(ge&1||!(ge&2)&&ba&&_d(ba)),ei=je&&!ca&&ba&&ba.flags&16777216,Ji=ba?Xg(ba):0,ni=oo(4|(ca?16777216:0),Vr,Ji|262144|(fi?8:0)|(ei?524288:0));ni.mappedType=n,ni.nameType=cr,ni.keyType=Bt,ba&&(ni.syntheticOrigin=ba,ni.declarations=u?void 0:ba.declarations),t.set(Vr,ni)}}else if(u_(cr)||cr.flags&(1|32)){var vo=cr.flags&(1|4)?ht:cr.flags&(8|32)?Et:cr,Po=si(S,hy(n.mapper,i,Bt)),Xt=Qu(vo,Po,!!(ge&1));r=t_(r,Xt,!0)}}}function Jv(n){if(!n.type){var t=n.mappedType;if(!Qc(n,0))return t.containsError=!0,K;var r=Kc(t.target||t),i=hy(t.mapper,Mu(t),n.keyType),l=si(r,i),u=je&&n.flags&16777216&&!xs(l,32768|16384)?ef(l,!0):n.checkFlags&524288?tE(l):l;Wc()||(Hn(ce,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Xa(n),Ar(t)),u=K),n.type=u}return n.type}function Mu(n){return n.typeParameter||(n.typeParameter=Hd(Rr(n.declaration.typeParameter)))}function yu(n){return n.constraintType||(n.constraintType=Cc(Mu(n))||K)}function Qf(n){return n.declaration.nameType?n.nameType||(n.nameType=si(La(n.declaration.nameType),n.mapper)):void 0}function Kc(n){return n.templateType||(n.templateType=n.declaration.type?si(Yi(La(n.declaration.type),!0,!!(_u(n)&4)),n.mapper):K)}function Yg(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function $h(n){var t=Yg(n);return t.kind===191&&t.operator===139}function eg(n){if(!n.modifiersType)if($h(n))n.modifiersType=si(La(Yg(n).type),n.mapper);else{var t=Eb(n.declaration),r=yu(t),i=r&&r.flags&262144?Cc(r):r;n.modifiersType=i&&i.flags&4194304?si(i.type,n.mapper):ln}return n.modifiersType}function _u(n){var t=n.declaration;return(t.readonlyToken?t.readonlyToken.kind===40?2:1:0)|(t.questionToken?t.questionToken.kind===40?8:4:0)}function r_(n){var t=_u(n);return t&8?-1:t&4?1:0}function Rm(n){var t=r_(n),r=eg(n);return t||(Dc(r)?r_(r):0)}function a_(n){return!!(e.getObjectFlags(n)&32&&_u(n)&4)}function Dc(n){return!!(e.getObjectFlags(n)&32)&&Fm(yu(n))}function Fu(n){return n.members||(n.flags&524288?n.objectFlags&4?Hg(n):n.objectFlags&3?Fv(n):n.objectFlags&1024?Hv(n):n.objectFlags&16?jv(n):n.objectFlags&32&&Kv(n):n.flags&1048576?Uv(n):n.flags&2097152&&n_(n)),n}function Kd(n){return n.flags&524288?Fu(n).properties:e.emptyArray}function Ld(n,t){if(n.flags&524288){var r=Fu(n),i=r.members.get(t);if(i&&Uc(i))return i}}function ch(n){if(!n.resolvedProperties){for(var t=e.createSymbolTable(),r=0,i=n.types;r<i.length;r++){for(var l=i[r],u=0,S=So(l);u<S.length;u++){var M=S[u];if(!t.has(M.escapedName)){var ge=tg(n,M.escapedName);ge&&t.set(M.escapedName,ge)}}if(n.flags&1048576&&vi(l).length===0)break}n.resolvedProperties=ld(t)}return n.resolvedProperties}function So(n){return n=dh(n),n.flags&3145728?ch(n):Kd(n)}function qv(n,t){var r=t.properties;return r.some(function(i){var l=i.name&&np(i.name),u=l&&Fi(l)?nc(l):void 0,S=u===void 0?void 0:js(n,u);return!!S&&Vm(S)&&!yo(cm(i),S)})}function zv(n){var t=Ea(n);if(!(t.flags&1048576))return OT(t);for(var r=e.createSymbolTable(),i=0,l=n;i<l.length;i++)for(var u=l[i],S=0,M=OT(u);S<M.length;S++){var ge=M[S].escapedName;if(!r.has(ge)){var Ge=l_(t,ge);Ge&&r.set(ge,Ge)}}return e.arrayFrom(r.values())}function vp(n){return n.flags&262144?Cc(n):n.flags&8388608?Xv(n):n.flags&16777216?Yv(n):tc(n)}function Cc(n){return ey(n)?hh(n):void 0}function Xv(n){return ey(n)?Zg(n):void 0}function Qg(n){var t=zd(n,!1);return t!==n?t:vp(n)}function Zg(n){var t=Qg(n.indexType);if(t&&t!==n.indexType){var r=tp(n.objectType,t,n.accessFlags);if(r)return r}var i=Qg(n.objectType);return i&&i!==n.objectType?tp(i,n.indexType,n.accessFlags):void 0}function $g(n){if(!n.resolvedDefaultConstraint){var t=hC(n),r=ap(n);n.resolvedDefaultConstraint=no(t)?r:no(r)?t:Ea([t,r])}return n.resolvedDefaultConstraint}function i_(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){var t=zd(n.checkType,!1),r=t===n.checkType?vp(t):t;if(r&&r!==n.checkType){var i=Rb(n,Sm(n.root.checkType,r,n.mapper));if(!(i.flags&131072))return i}}return}function o_(n){return i_(n)||$g(n)}function Yv(n){return ey(n)?o_(n):void 0}function Qv(n,t){for(var r,i=!1,l=0,u=n;l<u.length;l++){var S=u[l];if(S.flags&465829888){for(var M=vp(S);M&&M.flags&(262144|4194304|16777216);)M=vp(M);M&&(r=e.append(r,M),t&&(r=e.append(r,S)))}else S.flags&469892092&&(i=!0)}if(r&&(t||i)){if(i)for(var ge=0,Ge=n;ge<Ge.length;ge++){var S=Ge[ge];S.flags&469892092&&(r=e.append(r,S))}return Go(r)}return}function tc(n){if(n.flags&(58982400|3145728|134217728|268435456)){var t=ny(n);return t!==Fa&&t!==li?t:void 0}return n.flags&4194304?rr:void 0}function uh(n){return tc(n)||n}function ey(n){return ny(n)!==li}function ny(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;var t=[];return n.resolvedBaseConstraint=Rc(r(n),n);function r(u){if(!u.immediateBaseConstraint){if(!Qc(u,4))return li;var S=void 0;if((t.length<10||t.length<50&&!Jb(u,t,t.length))&&(t.push(u),S=l(zd(u,!1)),t.pop()),!Wc()){if(u.flags&262144){var M=YT(u);if(M){var ge=Hn(M,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Ar(u));ce&&!e.isNodeDescendantOf(M,ce)&&!e.isNodeDescendantOf(ce,M)&&e.addRelatedInfo(ge,e.createDiagnosticForNode(ce,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}S=li}u.immediateBaseConstraint=S||Fa}return u.immediateBaseConstraint}function i(u){var S=r(u);return S!==Fa&&S!==li?S:void 0}function l(u){if(u.flags&262144){var S=hh(u);return u.isThisType||!S?S:i(S)}if(u.flags&3145728){for(var M=u.types,ge=[],Ge=!1,We=0,ze=M;We<ze.length;We++){var an=ze[We],Tn=i(an);Tn?(Tn!==an&&(Ge=!0),ge.push(Tn)):Ge=!0}return Ge?u.flags&1048576&&ge.length===M.length?Ea(ge):u.flags&2097152&&ge.length?Go(ge):void 0:u}if(u.flags&4194304)return rr;if(u.flags&134217728){var M=u.types,et=e.mapDefined(M,i);return et.length===M.length?vh(u.texts,et):ht}if(u.flags&268435456){var S=i(u.type);return S?h_(u.symbol,S):ht}if(u.flags&8388608){var st=i(u.objectType),Ct=i(u.indexType),Dt=st&&Ct&&tp(st,Ct,u.accessFlags);return Dt&&i(Dt)}if(u.flags&16777216){var S=o_(u);return S&&i(S)}return u.flags&33554432?i(u.substitute):u}}function s_(n){return n.resolvedApparentType||(n.resolvedApparentType=Rc(n,n,!0))}function ng(n){if(n.default)n.default===Si&&(n.default=li);else if(n.target){var t=ng(n.target);n.default=t?si(t,n.mapper):Fa}else{n.default=Si;var r=n.symbol&&e.forEach(n.symbol.declarations,function(l){return e.isTypeParameterDeclaration(l)&&l.default}),i=r?La(r):Fa;n.default===Si&&(n.default=i)}return n.default}function Zf(n){var t=ng(n);return t!==Fa&&t!==li?t:void 0}function Zv(n){return ng(n)!==li}function $v(n){return!!(n.symbol&&e.forEach(n.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}))}function ty(n){return n.resolvedApparentType||(n.resolvedApparentType=eb(n))}function eb(n){var t=Nb(n);if(t&&!n.declaration.nameType){var r=Cc(t);if(r&&(zl(r)||Ki(r)))return si(n,Sm(t,r,n.mapper))}return n}function Ul(n){var t=n.flags&465829888?tc(n)||ln:n;return e.getObjectFlags(t)&32?ty(t):t.flags&2097152?s_(t):t.flags&402653316?oa:t.flags&296?Za:t.flags&2112?kD(Me>=7):t.flags&528?Ga:t.flags&12288?fS(Me>=2):t.flags&67108864?xt:t.flags&4194304?rr:t.flags&2&&!je?xt:t}function dh(n){return vu(Ul(vu(n)))}function l_(n,t,r){for(var i,l,u,S,M,ge=n.flags&1048576,Ge=ge?0:16777216,We=4,ze=0,an=!1,Tn=0,et=n.types;Tn<et.length;Tn++){var st=et[Tn],Ct=Ul(st);if(!(Ct===K||Ct.flags&131072)){var Dt=Rn(Ct,t,r),Bt=Dt?e.getDeclarationModifierFlagsFromSymbol(Dt):0;if(Dt){if(ge?Ge|=Dt.flags&16777216:Ge&=Dt.flags,!u)u=Dt;else if(Dt!==u){var cr=($m(Dt)||Dt)===($m(u)||u);if(cr&&qb(u,Dt,function(Ra,ta){return Ra===ta?-1:0})===-1)an=!!u.parent&&!!e.length(Lr(u.parent));else{S||(S=new e.Map,S.set(A(u),u));var Vr=A(Dt);S.has(Vr)||S.set(Vr,Dt)}}ze|=(_d(Dt)?8:0)|(Bt&24?0:256)|(Bt&16?512:0)|(Bt&8?1024:0)|(Bt&32?2048:0),jE(Dt)||(We=2)}else if(ge){var yr=!wl(t)&&rc(Ct,t);yr?(ze|=32|(yr.isReadonly?8:0),M=e.append(M,Ki(Ct)?hg(Ct)||Ln:yr.type)):Dp(Ct)&&!(e.getObjectFlags(Ct)&4194304)?(ze|=32,M=e.append(M,Ln)):ze|=16}}}if(!u||ge&&(S||ze&48)&&ze&(1024|512))return;if(!S&&!(ze&16)&&!M)if(an){var ba=wm(u,u.type);return ba.parent=(l=(i=u.valueDeclaration)===null||i===void 0?void 0:i.symbol)===null||l===void 0?void 0:l.parent,ba.containingType=n,ba.mapper=u.mapper,ba}else return u;for(var ca=S?e.arrayFrom(S.values()):[u],fi,ei,Ji,ni=[],vo,Po=!1,Xt=0,Ot=ca;Xt<Ot.length;Xt++){var Dt=Ot[Xt];vo?Dt.valueDeclaration&&Dt.valueDeclaration!==vo&&(Po=!0):vo=Dt.valueDeclaration,fi=e.addRange(fi,Dt.declarations);var Ct=Ir(Dt);ei?Ct!==ei&&(ze|=64):(ei=Ct,Ji=$a(Dt).nameType),Vm(Ct)&&(ze|=128),Ct.flags&131072&&(ze|=131072),ni.push(Ct)}e.addRange(ni,M);var xa=oo(4|Ge,t,We|ze);return xa.containingType=n,!Po&&vo&&(xa.valueDeclaration=vo,vo.symbol.parent&&(xa.parent=vo.symbol.parent)),xa.declarations=fi,xa.nameType=Ji,ni.length>2?(xa.checkFlags|=65536,xa.deferralParent=n,xa.deferralConstituents=ni):xa.type=ge?Ea(ni):Go(ni),xa}function ry(n,t,r){var i,l,u=((i=n.propertyCacheWithoutObjectFunctionPropertyAugment)===null||i===void 0?void 0:i.get(t))||!r?(l=n.propertyCache)===null||l===void 0?void 0:l.get(t):void 0;if(!u&&(u=l_(n,t,r),u)){var S=r?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):n.propertyCache||(n.propertyCache=e.createSymbolTable());S.set(t,u)}return u}function tg(n,t,r){var i=ry(n,t,r);return i&&!(e.getCheckFlags(i)&16)?i:void 0}function vu(n){return n.flags&1048576&&n.objectFlags&33554432?n.resolvedReducedType||(n.resolvedReducedType=nb(n)):n.flags&2097152?(n.objectFlags&33554432||(n.objectFlags|=33554432|(e.some(ch(n),tb)?67108864:0)),n.objectFlags&67108864?Wr:n):n}function nb(n){var t=e.sameMap(n.types,vu);if(t===n.types)return n;var r=Ea(t);return r.flags&1048576&&(r.resolvedReducedType=r),r}function tb(n){return c(n)||Q(n)}function c(n){return!(n.flags&16777216)&&(e.getCheckFlags(n)&(192|131072))===192&&!!(Ir(n).flags&131072)}function Q(n){return!n.valueDeclaration&&!!(e.getCheckFlags(n)&1024)}function sn(n,t){if(t.flags&2097152&&e.getObjectFlags(t)&67108864){var r=e.find(ch(t),c);if(r)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ar(t,void 0,536870912),Xa(r));var i=e.find(ch(t),Q);if(i)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ar(t,void 0,536870912),Xa(i))}return n}function Rn(n,t,r){if(n=dh(n),n.flags&524288){var i=Fu(n),l=i.members.get(t);if(l&&Uc(l))return l;if(r)return;var u=i===ea?Mo:i.callSignatures.length?Ms:i.constructSignatures.length?yn:void 0;if(u){var S=Ld(u,t);if(S)return S}return Ld(fs,t)}return n.flags&3145728?tg(n,t,r):void 0}function Ft(n,t){if(n.flags&3670016){var r=Fu(n);return t===0?r.callSignatures:r.constructSignatures}return e.emptyArray}function qt(n,t){return Ft(dh(n),t)}function sa(n,t){return e.find(n,function(r){return r.keyType===t})}function Sa(n,t){for(var r,i,l,u=0,S=n;u<S.length;u++){var M=S[u];M.keyType===ht?r=M:_i(t,M.keyType)&&(i?(l||(l=[i])).push(M):i=M)}return l?Qu(ln,Go(e.map(l,function(ge){return ge.type})),e.reduceLeft(l,function(ge,Ge){return ge&&Ge.isReadonly},!0)):i||(r&&_i(t,ht)?r:void 0)}function _i(n,t){return yo(n,t)||t===ht&&yo(n,Et)||t===Et&&!!(n.flags&128)&&tf(n.value)}function Ai(n){if(n.flags&3670016){var t=Fu(n);return t.indexInfos}return e.emptyArray}function vi(n){return Ai(dh(n))}function go(n,t){return sa(vi(n),t)}function Bs(n,t){var r;return(r=go(n,t))===null||r===void 0?void 0:r.type}function Al(n,t){return vi(n).filter(function(r){return _i(t,r.keyType)})}function Us(n,t){return Sa(vi(n),t)}function rc(n,t){return Us(n,wl(t)?Xr:nu(e.unescapeLeadingUnderscores(t)))}function Ys(n){for(var t,r=0,i=e.getEffectiveTypeParameterDeclarations(n);r<i.length;r++){var l=i[r];t=e.appendIfUnique(t,Hd(l.symbol))}return t}function bu(n){var t=[];return n.forEach(function(r,i){Sl(i)||t.push(r)}),t}function wf(n){return e.isInJSFile(n)&&(n.type&&n.type.kind===311||e.getJSDocParameterTags(n).some(function(t){var r=t.isBracketed,i=t.typeExpression;return r||!!i&&i.type.kind===311}))}function Yp(n,t){if(e.isExternalModuleNameRelative(n))return;var r=Vo(ke,'"'+n+'"',512);return r&&t?To(r):r}function Jd(n){if(e.hasQuestionToken(n)||ph(n)||wf(n))return!0;if(n.initializer){var t=Eu(n.parent),r=n.parent.parameters.indexOf(n);return e.Debug.assert(r>=0),r>=td(t,1|2)}var i=e.getImmediatelyInvokedFunctionExpression(n.parent);return i?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=i.arguments.length:!1}function fh(n){return e.isPropertyDeclaration(n)&&n.questionToken}function ph(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&r.type.kind===311}function Qp(n,t,r,i){return{kind:n,parameterName:t,parameterIndex:r,type:i}}function Gu(n){var t=0;if(n)for(var r=0;r<n.length;r++)$v(n[r])||(t=r+1);return t}function $f(n,t,r,i){var l=e.length(t);if(!l)return[];var u=e.length(n);if(i||u>=r&&u<=l){for(var S=n?n.slice():[],M=u;M<l;M++)S[M]=K;for(var ge=mE(i),M=u;M<l;M++){var Ge=Zf(t[M]);i&&Ge&&(Yd(Ge,ln)||Yd(Ge,xt))&&(Ge=lt),S[M]=Ge?si(Ge,vc(t,S)):ge}return S.length=t.length,S}return n&&n.slice()}function Eu(n){var t=pa(n);if(!t.resolvedSignature){var r=[],i=0,l=0,u=void 0,S=!1,M=e.getImmediatelyInvokedFunctionExpression(n),ge=e.isJSDocConstructSignature(n),Ge=!M&&e.isInJSFile(n)&&e.isValueSignatureDeclaration(n)&&!e.hasJSDocParameterTags(n)&&!e.getJSDocType(n);Ge&&(i|=32);for(var We=ge?1:0;We<n.parameters.length;We++){var ze=n.parameters[We],an=ze.symbol,Tn=e.isJSDocParameterTag(ze)?ze.typeExpression&&ze.typeExpression.type:ze.type;if(an&&!!(an.flags&4)&&!e.isBindingPattern(ze.name)){var et=Zi(ze,an.escapedName,111551,void 0,void 0,!1);an=et}We===0&&an.escapedName==="this"?(S=!0,u=ze.symbol):r.push(an),Tn&&Tn.kind===194&&(i|=2);var st=ph(ze)||ze.initializer||ze.questionToken||e.isRestParameter(ze)||M&&r.length>M.arguments.length&&!Tn||wf(ze);st||(l=r.length)}if((n.kind===170||n.kind===171)&&Jl(n)&&(!S||!u)){var Ct=n.kind===170?171:170,Dt=e.getDeclarationOfKind(Rr(n),Ct);Dt&&(u=di(Dt))}var Bt=n.kind===169?yc(To(n.parent.symbol)):void 0,cr=Bt?Bt.localTypeParameters:Ys(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&rb(n,r))&&(i|=1),(e.isConstructorTypeNode(n)&&e.hasSyntacticModifier(n,128)||e.isConstructorDeclaration(n)&&e.hasSyntacticModifier(n.parent,128))&&(i|=4),t.resolvedSignature=Ru(n,cr,u,r,void 0,void 0,l,i)}return t.resolvedSignature}function rb(n,t){if(e.isJSDocSignature(n)||!rg(n))return!1;var r=e.lastOrUndefined(n.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),l=e.firstDefined(i,function(S){return S.typeExpression&&e.isJSDocVariadicType(S.typeExpression.type)?S.typeExpression.type:void 0}),u=oo(3,"args",32768);return u.type=l?Ll(La(l.type)):pn,l&&t.pop(),t.push(u),!0}function ay(n){if(!(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)))return;var t=e.getJSDocTypeTag(n);return(t==null?void 0:t.typeExpression)&&Am(La(t.typeExpression))}function iy(n){var t=ay(n);return t&&_o(t)}function rg(n){var t=pa(n);return t.containsArgumentsReference===void 0&&(t.flags&8192?t.containsArgumentsReference=!0:t.containsArgumentsReference=r(n.body)),t.containsArgumentsReference;function r(i){if(!i)return!1;switch(i.kind){case 79:return i.escapedText===xe.escapedName&&Vu(i)===xe;case 165:case 167:case 170:case 171:return i.name.kind===160&&r(i.name);case 204:case 205:return r(i.expression);default:return!e.nodeStartsNewLexicalEnvironment(i)&&!e.isPartOfTypeNode(i)&&!!e.forEachChild(i,r)}}}function gd(n){if(!n||!n.declarations)return e.emptyArray;for(var t=[],r=0;r<n.declarations.length;r++){var i=n.declarations[r];if(!e.isFunctionLike(i))continue;if(r>0&&i.body){var l=n.declarations[r-1];if(i.parent===l.parent&&i.kind===l.kind&&i.pos===l.end)continue}t.push(Eu(i))}return t}function ag(n){var t=Ko(n,n);if(t){var r=wr(t);if(r)return Ir(r)}return lt}function Af(n){if(n.thisParameter)return Ir(n.thisParameter)}function Mc(n){if(!n.resolvedTypePredicate){if(n.target){var t=Mc(n.target);n.resolvedTypePredicate=t?kC(t,n.mapper):ro}else if(n.compositeSignatures)n.resolvedTypePredicate=VD(n.compositeSignatures,n.compositeKind)||ro;else{var r=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),i=void 0;if(!r&&e.isInJSFile(n.declaration)){var l=ay(n.declaration);l&&n!==l&&(i=Mc(l))}n.resolvedTypePredicate=r&&e.isTypePredicateNode(r)?oy(r,n):i||ro}e.Debug.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===ro?void 0:n.resolvedTypePredicate}function oy(n,t){var r=n.parameterName,i=n.type&&La(n.type);return r.kind===190?Qp(n.assertsModifier?2:0,void 0,void 0,i):Qp(n.assertsModifier?3:1,r.escapedText,e.findIndex(t.parameters,function(l){return l.escapedName===r.escapedText}),i)}function sy(n,t,r){return t!==2097152?Ea(n,r):Go(n)}function _o(n){if(!n.resolvedReturnType){if(!Qc(n,3))return K;var t=n.target?si(_o(n.target),n.mapper):n.compositeSignatures?si(sy(e.map(n.compositeSignatures,_o),n.compositeKind,2),n.mapper):bp(n.declaration)||(e.nodeIsMissing(n.declaration.body)?lt:dv(n.declaration));if(n.flags&8?t=Ex(t):n.flags&16&&(t=ef(t)),!Wc()){if(n.declaration){var r=e.getEffectiveReturnTypeNode(n.declaration);if(r)Hn(r,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(vn){var i=n.declaration,l=e.getNameOfDeclaration(i);l?Hn(l,e.Diagnostics._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,e.declarationNameToString(l)):Hn(i,e.Diagnostics.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=lt}n.resolvedReturnType=t}return n.resolvedReturnType}function bp(n){if(n.kind===169)return yc(To(n.parent.symbol));if(e.isJSDocConstructSignature(n))return La(n.parameters[0].type);var t=e.getEffectiveReturnTypeNode(n);if(t)return La(t);if(n.kind===170&&Jl(n)){var r=e.isInJSFile(n)&&Na(n);if(r)return r;var i=e.getDeclarationOfKind(Rr(n),171),l=aa(i);if(l)return l}return iy(n)}function ig(n){return!n.resolvedReturnType&&Ef(n,3)>=0}function ab(n){return JT(n)||lt}function JT(n){if(k(n)){var t=Ir(n.parameters[n.parameters.length-1]),r=Ki(t)?hg(t):t;return r&&Bs(r,Et)}return}function ly(n,t,r,i){var l=ib(n,$f(t,n.typeParameters,Gu(n.typeParameters),r));if(i){var u=qw(_o(l));if(u){var S=_m(u);S.typeParameters=i;var M=_m(l);return M.resolvedReturnType=mh(S),M}}return l}function ib(n,t){var r=n.instantiations||(n.instantiations=new e.Map),i=Tu(t),l=r.get(i);return l||r.set(i,l=c_(n,t)),l}function c_(n,t){return Um(n,rD(n,t),!0)}function rD(n,t){return vc(n.typeParameters,t)}function og(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=aD(n)):n}function aD(n){return Um(n,JS(n.typeParameters),!0)}function iD(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=oD(n)):n}function oD(n){return ly(n,e.map(n.typeParameters,function(t){return t.target&&!Cc(t.target)?t.target:t}),e.isInJSFile(n.declaration))}function sD(n){var t=n.typeParameters;if(t){if(n.baseSignatureCache)return n.baseSignatureCache;for(var r=JS(t),i=vc(t,e.map(t,function(S){return Cc(S)||ln})),l=e.map(t,function(S){return si(S,i)||ln}),u=0;u<t.length-1;u++)l=Cf(l,i);return l=Cf(l,r),n.baseSignatureCache=Um(n,vc(t,l),!0)}return n}function mh(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=t===169||t===173||t===178,i=Tl(16);i.members=Le,i.properties=e.emptyArray,i.callSignatures=r?e.emptyArray:[n],i.constructSignatures=r?[n]:e.emptyArray,i.indexInfos=e.emptyArray,n.isolatedSignatureType=i}return n.isolatedSignatureType}function qT(n){return n.members?ob(n.members):void 0}function ob(n){return n.get("__index")}function Qu(n,t,r,i){return{keyType:n,type:t,isReadonly:r,declaration:i}}function zT(n){var t=qT(n);return t?XT(t):e.emptyArray}function XT(n){if(n.declarations){for(var t=[],r=function(S){if(S.parameters.length===1){var M=S.parameters[0];M.type&&Km(La(M.type),function(ge){u_(ge)&&!sa(t,ge)&&t.push(Qu(ge,S.type?La(S.type):lt,e.hasEffectiveModifier(S,64),S))})}},i=0,l=n.declarations;i<l.length;i++){var u=l[i];r(u)}return t}return e.emptyArray}function u_(n){return!!(n.flags&(4|8|4096))||dy(n)||!!(n.flags&2097152)&&!Fm(n)&&!vm(n)&&e.some(n.types,u_)}function YT(n){return e.mapDefined(e.filter(n.symbol&&n.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function lD(n){var t,r;if((t=n.symbol)===null||t===void 0?void 0:t.declarations)for(var i=0,l=n.symbol.declarations;i<l.length;i++){var u=l[i];if(u.parent.kind===188){var S=e.walkUpParenthesizedTypesAndGetParentAndChild(u.parent.parent),M=S[0],ge=M===void 0?u.parent:M,Ge=S[1];if(Ge.kind===176){var We=Ge,ze=gT(We);if(ze){var an=We.typeArguments.indexOf(ge);if(an<ze.length){var Tn=Cc(ze[an]);if(Tn){var et=vc(ze,mv(We,ze)),st=si(Tn,et);st!==n&&(r=e.append(r,st))}}}}else if(Ge.kind===162&&Ge.dotDotDotToken||Ge.kind===184||Ge.kind===195&&Ge.dotDotDotToken)r=e.append(r,Ll(ln));else if(Ge.kind===197)r=e.append(r,ht);else if(Ge.kind===161&&Ge.parent.kind===193)r=e.append(r,rr);else if(Ge.kind===193&&Ge.type&&e.skipParentheses(Ge.type)===u.parent&&Ge.parent.kind===187&&Ge.parent.extendsType===Ge&&Ge.parent.checkType.kind===193&&Ge.parent.checkType.type){var Ct=Ge.parent.checkType,Dt=La(Ct.type);r=e.append(r,si(Dt,Em(Hd(Rr(Ct.typeParameter)),Ct.typeParameter.constraint?La(Ct.typeParameter.constraint):rr)))}}}return r&&Go(r)}function hh(n){if(!n.constraint)if(n.target){var t=Cc(n.target);n.constraint=t?si(t,n.mapper):Fa}else{var r=YT(n);if(!r)n.constraint=lD(n)||Fa;else{var i=La(r);i.flags&1&&i!==K&&(i=r.parent.parent.kind===193?rr:ln),n.constraint=i}}return n.constraint===Fa?void 0:n.constraint}function QT(n){var t=e.getDeclarationOfKind(n.symbol,161),r=e.isJSDocTemplateTag(t.parent)?e.getHostSignatureFromJSDoc(t.parent):t.parent;return r&&Rr(r)}function Tu(n){var t="";if(n)for(var r=n.length,i=0;i<r;){for(var l=n[i].id,u=1;i+u<r&&n[i+u].id===l+u;)u++;t.length&&(t+=","),t+=l,u>1&&(t+=":"+u),i+=u}return t}function gh(n,t){return n?"@"+A(n)+(t?":"+Tu(t):""):""}function sb(n,t){for(var r=0,i=0,l=n;i<l.length;i++){var u=l[i];u.flags&t||(r|=e.getObjectFlags(u))}return r&917504}function qd(n,t){var r=Tu(t),i=n.instantiations.get(r);return i||(i=Tl(4,n.symbol),n.instantiations.set(r,i),i.objectFlags|=t?sb(t,0):0,i.target=n,i.resolvedTypeArguments=t),i}function ZT(n){var t=Hl(n.flags);return t.symbol=n.symbol,t.objectFlags=n.objectFlags,t.target=n.target,t.resolvedTypeArguments=n.resolvedTypeArguments,t}function lb(n,t,r,i,l){if(!i){i=bm(t);var u=Gm(i);l=r?Cf(u,r):u}var S=Tl(4,n.symbol);return S.target=n,S.node=t,S.mapper=r,S.aliasSymbol=i,S.aliasTypeArguments=l,S}function Oo(n){var t,r;if(!n.resolvedTypeArguments){if(!Qc(n,6))return((t=n.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return K}))||e.emptyArray;var i=n.node,l=i?i.kind===176?e.concatenate(n.target.outerTypeParameters,mv(i,n.target.localTypeParameters)):i.kind===181?[La(i.elementType)]:e.map(i.elements,La):e.emptyArray;Wc()?n.resolvedTypeArguments=n.mapper?Cf(l,n.mapper):l:(n.resolvedTypeArguments=((r=n.target.localTypeParameters)===null||r===void 0?void 0:r.map(function(){return K}))||e.emptyArray,Hn(n.node||ce,n.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Xa(n.target.symbol)))}return n.resolvedTypeArguments}function ep(n){return e.length(n.target.typeParameters)}function $T(n,t){var r=ls(To(t)),i=r.localTypeParameters;if(i){var l=e.length(n.typeArguments),u=Gu(i),S=e.isInJSFile(n),M=!vn&&S;if(!M&&(l<u||l>i.length)){var ge=S&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent),Ge=u===i.length?ge?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:ge?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,We=Ar(r,void 0,2);if(Hn(n,Ge,We,u,i.length),!S)return K}if(n.kind===176&&yS(n,e.length(n.typeArguments)!==i.length))return lb(r,n,void 0);var ze=e.concatenate(r.outerTypeParameters,$f(cb(n),i,u,S));return qd(r,ze)}return Ep(n,t)?r:K}function sg(n,t,r,i){var l=ls(n);if(l===Fn&&P.has(n.escapedName)&&t&&t.length===1)return h_(n,t[0]);var u=$a(n),S=u.typeParameters,M=Tu(t)+gh(r,i),ge=u.instantiations.get(M);return ge||u.instantiations.set(M,ge=YS(l,vc(S,$f(t,S,Gu(S),e.isInJSFile(n.valueDeclaration))),r,i)),ge}function cD(n,t){var r=ls(t),i=$a(t).typeParameters;if(i){var l=e.length(n.typeArguments),u=Gu(i);if(l<u||l>i.length)return Hn(n,u===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xa(t),u,i.length),K;var S=bm(n),M=S&&(eS(t)||!eS(S))?S:void 0;return sg(t,cb(n),M,Gm(M))}return Ep(n,t)?r:K}function eS(n){var t,r=(t=n.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias);return!!(r&&e.getContainingFunction(r))}function lg(n){switch(n.kind){case 176:return n.typeName;case 226:var t=n.expression;if(e.isEntityNameExpression(t))return t}return}function yh(n,t,r){return n&&rs(n,t,r)||Yn}function d_(n,t){if(t===Yn)return K;if(t=Ur(t)||t,t.flags&(32|64))return $T(n,t);if(t.flags&524288)return cD(n,t);var r=zh(t);if(r)return Ep(n,t)?_c(r):K;if(t.flags&111551&&f_(n)){var i=uD(n,t);return i||(yh(lg(n),788968),Ir(t))}return K}function uD(n,t){var r=pa(n);if(!r.resolvedJSDocType){var i=Ir(t),l=i;if(t.valueDeclaration){var u=n.kind===198&&n.qualifier;i.symbol&&i.symbol!==t&&u&&(l=d_(n,i.symbol))}r.resolvedJSDocType=l}return r.resolvedJSDocType}function nS(n,t){if(t.flags&3||t===n)return n;var r=Su(n)+">"+Su(t),i=Zn.get(r);if(i)return i;var l=Hl(33554432);return l.baseType=n,l.substitute=t,Zn.set(r,l),l}function tS(n){return n.kind===182&&n.elements.length===1}function rS(n,t,r){return tS(t)&&tS(r)?rS(n,t.elements[0],r.elements[0]):Tp(La(t))===n?La(r):void 0}function aS(n,t){for(var r,i=!0;t&&!e.isStatement(t)&&t.kind!==315;){var l=t.parent;if(l.kind===162&&(i=!i),(i||n.flags&8650752)&&l.kind===187&&t===l.trueType){var u=rS(n,l.checkType,l.extendsType);u&&(r=e.append(r,u))}t=l}return r?nS(n,Go(e.append(r,n))):n}function f_(n){return!!(n.flags&4194304)&&(n.kind===176||n.kind===198)}function Ep(n,t){return n.typeArguments?(Hn(n,e.Diagnostics.Type_0_is_not_generic,t?Xa(t):n.typeName?e.declarationNameToString(n.typeName):ue),!1):!0}function iS(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return Ep(n),ht;case"Number":return Ep(n),Et;case"Boolean":return Ep(n),Ht;case"Void":return Ep(n),At;case"Undefined":return Ep(n),Ln;case"Null":return Ep(n),qn;case"Function":case"function":return Ep(n),Mo;case"array":return(!t||!t.length)&&!vn?pn:void 0;case"promise":return(!t||!t.length)&&!vn?Ry(lt):void 0;case"Object":if(t&&t.length===2){if(e.isJSDocIndexSignature(n)){var r=La(t[0]),i=La(t[1]),l=r===ht||r===Et?[Qu(r,i,!1)]:e.emptyArray;return ns(void 0,Le,e.emptyArray,e.emptyArray,l)}return lt}return Ep(n),vn?void 0:lt}}}function dD(n){var t=La(n.type);return je?eE(t,65536):t}function cy(n){var t=pa(n);if(!t.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return t.resolvedSymbol=Yn,t.resolvedType=ml(n.parent.expression);var r=void 0,i=void 0,l=788968;f_(n)&&(i=iS(n),i||(r=yh(lg(n),l,!0),r===Yn?r=yh(lg(n),l|111551):yh(lg(n),l),i=d_(n,r))),i||(r=yh(lg(n),l),i=d_(n,r)),t.resolvedSymbol=r,t.resolvedType=i}return t.resolvedType}function cb(n){return e.map(n.typeArguments,La)}function oS(n){var t=pa(n);if(!t.resolvedType){var r=e.isThisIdentifier(n.exprName)?K_(n.exprName):hi(n.exprName);t.resolvedType=_c(bc(r))}return t.resolvedType}function sS(n,t){function r(l){var u=l.declarations;if(u)for(var S=0,M=u;S<M.length;S++){var ge=M[S];switch(ge.kind){case 255:case 256:case 258:return ge}}}if(!n)return t?at:xt;var i=ls(n);return i.flags&524288?e.length(i.typeParameters)!==t?(Hn(r(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),t),t?at:xt):i:(Hn(r(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),t?at:xt)}function lS(n,t){return _h(n,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function cS(n,t){return _h(n,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function _h(n,t,r){return Zi(void 0,n,t,r,n,!1)}function ql(n,t,r){var i=cS(n,r);return i||r?sS(i,t):void 0}function fD(){return St||(St=ql("TypedPropertyDescriptor",1,!0))||at}function pD(){return Ol||(Ol=ql("TemplateStringsArray",0,!0))||xt}function uS(){return ac||(ac=ql("ImportMeta",0,!0))||xt}function mD(){if(!vs){var n=oo(0,"ImportMetaExpression"),t=uS(),r=oo(4,"meta",8);r.parent=n,r.type=t;var i=e.createSymbolTable([r]);n.members=i,vs=ns(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}return vs}function dS(n){return un||(un=lS("Symbol",n))}function hD(n){return jn||(jn=cS("SymbolConstructor",n))}function fS(n){return mt||(mt=ql("Symbol",0,n))||xt}function p_(n){return ir||(ir=ql("Promise",1,n))||at}function gD(n){return _r||(_r=ql("PromiseLike",1,n))||at}function ub(n){return na||(na=lS("Promise",n))}function yD(n){return wa||(wa=ql("PromiseConstructorLike",0,n))||xt}function _D(n){return Ks||(Ks=ql("AsyncIterable",1,n))||at}function vD(n){return Js||(Js=ql("AsyncIterator",3,n))||at}function bD(n){return gl||(gl=ql("AsyncIterableIterator",1,n))||at}function ED(n){return yl||(yl=ql("AsyncGenerator",3,n))||at}function pS(n){return za||(za=ql("Iterable",1,n))||at}function TD(n){return bi||(bi=ql("Iterator",3,n))||at}function SD(n){return Xi||(Xi=ql("IterableIterator",1,n))||at}function xD(n){return co||(co=ql("Generator",3,n))||at}function wD(n){return Ss||(Ss=ql("IteratorYieldResult",1,n))||at}function AD(n){return No||(No=ql("IteratorReturnResult",1,n))||at}function mS(n,t){t===void 0&&(t=0);var r=_h(n,788968,void 0);return r&&sS(r,t)}function DD(){return ic||(ic=_h("Extract",524288,e.Diagnostics.Cannot_find_global_type_0))}function CD(){return Pl||(Pl=_h("Omit",524288,e.Diagnostics.Cannot_find_global_type_0))}function kD(n){return cl||(cl=ql("BigInt",0,n))||xt}function cg(n,t){return n!==at?qd(n,t):xt}function hS(n){return cg(fD(),[n])}function LD(n){return cg(pS(!0),[n])}function Ll(n,t){return cg(t?tr:_t,[n])}function db(n){switch(n.kind){case 183:return 2;case 184:return gS(n);case 195:return n.questionToken?2:n.dotDotDotToken?gS(n):1;default:return 1}}function gS(n){return my(n.type)?4:8}function ID(n){var t=OD(n.parent),r=my(n);if(r)return t?tr:_t;var i=e.map(n.elements,db),l=e.some(n.elements,function(u){return u.kind!==195});return fb(i,t,l?void 0:n.elements)}function yS(n,t){return!!bm(n)||_S(n)&&(n.kind===181?Df(n.elementType):n.kind===182?e.some(n.elements,Df):t||e.some(n.typeArguments,Df))}function _S(n){var t=n.parent;switch(t.kind){case 189:case 195:case 176:case 185:case 186:case 192:case 187:case 191:case 181:case 182:return _S(t);case 257:return!0}return!1}function Df(n){switch(n.kind){case 176:return f_(n)||!!(yh(n.typeName,788968).flags&524288);case 179:return!0;case 191:return n.operator!==152&&Df(n.type);case 189:case 183:case 195:case 311:case 309:case 310:case 304:return Df(n.type);case 184:return n.type.kind!==181||Df(n.type.elementType);case 185:case 186:return e.some(n.types,Df);case 192:return Df(n.objectType)||Df(n.indexType);case 187:return Df(n.checkType)||Df(n.extendsType)||Df(n.trueType)||Df(n.falseType)}return!1}function ND(n){var t=pa(n);if(!t.resolvedType){var r=ID(n);if(r===at)t.resolvedType=xt;else if(!(n.kind===182&&e.some(n.elements,function(l){return!!(db(l)&8)}))&&yS(n))t.resolvedType=n.kind===182&&n.elements.length===0?r:lb(r,n,void 0);else{var i=n.kind===181?[La(n.elementType)]:e.map(n.elements,La);t.resolvedType=pb(r,i)}}return t.resolvedType}function OD(n){return e.isTypeOperatorNode(n)&&n.operator===143}function Zu(n,t,r,i){r===void 0&&(r=!1);var l=fb(t||e.map(n,function(u){return 1}),r,i);return l===at?xt:n.length?pb(l,n):l}function fb(n,t,r){if(n.length===1&&n[0]&4)return t?tr:_t;var i=e.map(n,function(u){return u&1?"#":u&2?"?":u&4?".":"*"}).join()+(t?"R":"")+(r&&r.length?","+e.map(r,B).join(","):""),l=Kn.get(i);return l||Kn.set(i,l=PD(n,t,r)),l}function PD(n,t,r){var i=n.length,l=e.countWhere(n,function(Ct){return!!(Ct&(1|8))}),u,S=[],M=0;if(i){u=new Array(i);for(var ge=0;ge<i;ge++){var Ge=u[ge]=Yc(),We=n[ge];if(M|=We,!(M&12)){var ze=oo(4|(We&2?16777216:0),""+ge,t?8:0);ze.tupleLabelDeclaration=r==null?void 0:r[ge],ze.type=Ge,S.push(ze)}}}var an=S.length,Tn=oo(4,"length");if(M&12)Tn.type=Et;else{for(var et=[],ge=l;ge<=i;ge++)et.push(Xd(ge));Tn.type=Ea(et)}S.push(Tn);var st=Tl(8|4);return st.typeParameters=u,st.outerTypeParameters=void 0,st.localTypeParameters=u,st.instantiations=new e.Map,st.instantiations.set(Tu(st.typeParameters),st),st.target=st,st.resolvedTypeArguments=st.typeParameters,st.thisType=Yc(),st.thisType.isThisType=!0,st.thisType.constraint=st,st.declaredProperties=S,st.declaredCallSignatures=e.emptyArray,st.declaredConstructSignatures=e.emptyArray,st.declaredIndexInfos=e.emptyArray,st.elementFlags=n,st.minLength=l,st.fixedLength=an,st.hasRestElement=!!(M&12),st.combinedFlags=M,st.readonly=t,st.labeledElementDeclarations=r,st}function pb(n,t){return n.objectFlags&8?vS(n,t):qd(n,t)}function vS(n,t){var r,i,l;if(!(n.combinedFlags&14))return qd(n,t);if(n.combinedFlags&8){var u=e.findIndex(t,function(Dt,Bt){return!!(n.elementFlags[Bt]&8&&Dt.flags&(131072|1048576))});if(u>=0)return uy(e.map(t,function(Dt,Bt){return n.elementFlags[Bt]&8?Dt:ln}))?Ws(t[u],function(Dt){return vS(n,e.replaceElement(t,u,Dt))}):K}for(var S=[],M=[],ge=[],Ge=-1,We=-1,ze=-1,an=function(Dt){var Bt=t[Dt],cr=n.elementFlags[Dt];if(cr&8)if(Bt.flags&58982400||Dc(Bt))Ct(Bt,8,(r=n.labeledElementDeclarations)===null||r===void 0?void 0:r[Dt]);else if(Ki(Bt)){var Vr=Oo(Bt);if(Vr.length+S.length>=1e4)return Hn(ce,e.isPartOfTypeNode(ce)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:K};e.forEach(Vr,function(yr,ba){var ca;return Ct(yr,Bt.target.elementFlags[ba],(ca=Bt.target.labeledElementDeclarations)===null||ca===void 0?void 0:ca[ba])})}else Ct(op(Bt)&&Bs(Bt,Et)||K,4,(i=n.labeledElementDeclarations)===null||i===void 0?void 0:i[Dt]);else Ct(Bt,cr,(l=n.labeledElementDeclarations)===null||l===void 0?void 0:l[Dt])},Tn=0;Tn<t.length;Tn++){var et=an(Tn);if(typeof et=="object")return et.value}for(var Tn=0;Tn<Ge;Tn++)M[Tn]&2&&(M[Tn]=1);We>=0&&We<ze&&(S[We]=Ea(e.sameMap(S.slice(We,ze+1),function(Dt,Bt){return M[We+Bt]&8?kc(Dt,Et):Dt})),S.splice(We+1,ze-We),M.splice(We+1,ze-We),ge==null||ge.splice(We+1,ze-We));var st=fb(M,n.readonly,ge);return st===at?xt:M.length?qd(st,S):st;function Ct(Dt,Bt,cr){Bt&1&&(Ge=M.length),Bt&4&&We<0&&(We=M.length),Bt&(2|4)&&(ze=M.length),S.push(Dt),M.push(Bt),ge&&cr?ge.push(cr):ge=void 0}}function ug(n,t,r){r===void 0&&(r=0);var i=n.target,l=ep(n)-r;return t>i.fixedLength?_0(n)||Zu(e.emptyArray):Zu(Oo(n).slice(t,l),i.elementFlags.slice(t,l),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(t,l))}function bS(n){return Ea(e.append(e.arrayOf(n.target.fixedLength,function(t){return nu(""+t)}),yd(n.target.readonly?tr:_t)))}function ES(n,t){var r=e.findIndex(n.elementFlags,function(i){return!(i&t)});return r>=0?r:n.elementFlags.length}function m_(n,t){return n.elementFlags.length-e.findLastIndex(n.elementFlags,function(r){return!(r&t)})-1}function RD(n){return Yi(La(n.type),!0)}function Su(n){return n.id}function Zp(n,t){return e.binarySearch(n,t,Su,e.compareValues)>=0}function mb(n,t){var r=e.binarySearch(n,t,Su,e.compareValues);return r<0?(n.splice(~r,0,t),!0):!1}function MD(n,t,r){var i=r.flags;if(i&1048576)return TS(n,t|(UD(r)?1048576:0),r.types);if(!(i&131072))if(t|=i&205258751,i&469499904&&(t|=262144),r===Bn&&(t|=8388608),!je&&i&98304)e.getObjectFlags(r)&131072||(t|=4194304);else{var l=n.length,u=l&&r.id>n[l-1].id?~l:e.binarySearch(n,r,Su,e.compareValues);u<0&&n.splice(~u,0,r)}return t}function TS(n,t,r){for(var i=0,l=r;i<l.length;i++){var u=l[i];t=MD(n,t,u)}return t}function FD(n,t){var r=Tu(n),i=Re.get(r);if(i)return i;for(var l=t&&e.some(n,function(Ct){return!!(Ct.flags&524288)&&!Dc(Ct)&&Bb(Fu(Ct))}),u=n.length,S=u,M=0;S>0;){S--;var ge=n[S];if(l||ge.flags&469499904)for(var Ge=ge.flags&(524288|2097152|58982400)?e.find(So(ge),function(Ct){return $u(Ir(Ct))}):void 0,We=Ge&&_c(Ir(Ge)),ze=0,an=n;ze<an.length;ze++){var Tn=an[ze];if(ge!==Tn){if(M===1e5){var et=M/(u-S)*u;if(et>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:n.map(function(Ct){return Ct.id})}),Hn(ce,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(M++,Ge&&Tn.flags&(524288|2097152|58982400)){var st=js(Tn,Ge.escapedName);if(st&&$u(st)&&_c(st)!==We)continue}if($d(ge,Tn,Sn)&&(!(e.getObjectFlags(G(ge))&1)||!(e.getObjectFlags(G(Tn))&1)||bh(ge,Tn))){e.orderedRemoveItemAt(n,S);break}}}}return Re.set(r,n),n}function GD(n,t,r){for(var i=n.length;i>0;){i--;var l=n[i],u=l.flags,S=u&(128|134217728|268435456)&&t&4||u&256&&t&8||u&2048&&t&64||u&8192&&t&4096||r&&u&32768&&t&16384||xp(l)&&Zp(n,l.regularType);S&&e.orderedRemoveItemAt(n,i)}}function BD(n){var t=e.filter(n,dy);if(t.length)for(var r=n.length,i=function(){r--;var l=n[r];l.flags&128&&e.some(t,function(u){return Qd(l,u)})&&e.orderedRemoveItemAt(n,r)};r>0;)i()}function UD(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function SS(n,t){for(var r=0,i=t;r<i.length;r++){var l=i[r];if(l.flags&1048576){var u=l.origin;l.aliasSymbol||u&&!(u.flags&1048576)?e.pushIfUnique(n,l):u&&u.flags&1048576&&SS(n,u.types)}}}function hb(n,t){var r=zs(n);return r.types=t,r}function Ea(n,t,r,i,l){if(t===void 0&&(t=1),n.length===0)return Wr;if(n.length===1)return n[0];var u=[],S=TS(u,0,n);if(t!==0){if(S&3)return S&1?S&8388608?Bn:lt:ln;if($n&&S&32768){var M=e.binarySearch(u,rn,Su,e.compareValues);M>=0&&Zp(u,Ln)&&e.orderedRemoveItemAt(u,M)}if((S&(2944|8192|134217728|268435456)||S&16384&&S&32768)&&GD(u,S,!!(t&2)),S&128&&S&134217728&&BD(u),t===2&&(u=FD(u,!!(S&524288)),!u))return K;if(u.length===0)return S&65536?S&4194304?qn:it:S&32768?S&4194304?Ln:Xe:Wr}if(!l&&S&1048576){var ge=[];SS(ge,n);for(var Ge=[],We=function(Bt){e.some(ge,function(cr){return Zp(cr.types,Bt)})||Ge.push(Bt)},ze=0,an=u;ze<an.length;ze++){var Tn=an[ze];We(Tn)}if(!r&&ge.length===1&&Ge.length===0)return ge[0];var et=e.reduceLeft(ge,function(Bt,cr){return Bt+cr.types.length},0);if(et+Ge.length===u.length){for(var st=0,Ct=ge;st<Ct.length;st++){var Tn=Ct[st];mb(Ge,Tn)}l=hb(1048576,Ge)}}var Dt=(S&468598819?0:65536)|(S&2097152?33554432:0);return yb(u,Dt,r,i,l)}function VD(n,t){for(var r,i=[],l=0,u=n;l<u.length;l++){var S=u[l],M=Mc(S);if(!M||M.kind===2||M.kind===3){if(t!==2097152)continue;return}if(r){if(!gb(r,M))return}else r=M;i.push(M.type)}if(!r)return;var ge=sy(i,t);return Qp(r.kind,r.parameterName,r.parameterIndex,ge)}function gb(n,t){return n.kind===t.kind&&n.parameterIndex===t.parameterIndex}function yb(n,t,r,i,l){if(n.length===0)return Wr;if(n.length===1)return n[0];var u=l?l.flags&1048576?"|"+Tu(l.types):l.flags&2097152?"&"+Tu(l.types):"#"+l.type.id+"|"+Tu(n):Tu(n),S=u+gh(r,i),M=Je.get(S);return M||(M=Hl(1048576),M.objectFlags=t|sb(n,98304),M.types=n,M.origin=l,M.aliasSymbol=r,M.aliasTypeArguments=i,n.length===2&&n[0].flags&512&&n[1].flags&512&&(M.flags|=16,M.intrinsicName="boolean"),Je.set(S,M)),M}function jD(n){var t=pa(n);if(!t.resolvedType){var r=bm(n);t.resolvedType=Ea(e.map(n.types,La),1,r,Gm(r))}return t.resolvedType}function WD(n,t,r){var i=r.flags;return i&2097152?xS(n,t,r.types):(ax(r)?t&16777216||(t|=16777216,n.set(r.id.toString(),r)):(i&3?r===Bn&&(t|=8388608):(je||!(i&98304))&&!n.has(r.id.toString())&&(r.flags&109440&&t&109440&&(t|=67108864),n.set(r.id.toString(),r)),t|=i&205258751),t)}function xS(n,t,r){for(var i=0,l=r;i<l.length;i++){var u=l[i];t=WD(n,t,_c(u))}return t}function HD(n,t){for(var r=n.length;r>0;){r--;var i=n[r],l=i.flags&4&&t&128||i.flags&8&&t&256||i.flags&64&&t&2048||i.flags&4096&&t&8192;l&&e.orderedRemoveItemAt(n,r)}}function KD(n,t){for(var r=0,i=n;r<i.length;r++){var l=i[r];if(!Zp(l.types,t)){var u=t.flags&128?ht:t.flags&256?Et:t.flags&2048?zt:t.flags&8192?Xr:void 0;if(!u||!Zp(l.types,u))return!1}}return!0}function JD(n){for(var t=n.length,r=e.filter(n,function(M){return!!(M.flags&128)});t>0;){t--;var i=n[t];if(!(i.flags&134217728))continue;for(var l=0,u=r;l<u.length;l++){var S=u[l];if(Qd(S,i)){e.orderedRemoveItemAt(n,t);break}else if(dy(i))return!0}}return!1}function wS(n,t){if(e.every(n,function(i){return!!(i.flags&1048576)&&e.some(i.types,function(l){return!!(l.flags&t)})})){for(var r=0;r<n.length;r++)n[r]=Vl(n[r],function(i){return!(i.flags&t)});return!0}return!1}function qD(n){var t,r=e.findIndex(n,function(an){return!!(e.getObjectFlags(an)&65536)});if(r<0)return!1;for(var i=r+1;i<n.length;){var l=n[i];e.getObjectFlags(l)&65536?((t||(t=[n[r]])).push(l),e.orderedRemoveItemAt(n,i)):i++}if(!t)return!1;for(var u=[],S=[],M=0,ge=t;M<ge.length;M++)for(var Ge=ge[M],We=0,ze=Ge.types;We<ze.length;We++){var l=ze[We];mb(u,l)&&(KD(t,l)&&mb(S,l))}return n[r]=yb(S,65536),!0}function zD(n,t,r){var i=Hl(2097152);return i.objectFlags=sb(n,98304),i.types=n,i.aliasSymbol=t,i.aliasTypeArguments=r,i}function Go(n,t,r){var i=new e.Map,l=xS(i,0,n),u=e.arrayFrom(i.values());if(l&131072)return e.contains(u,Or)?Or:Wr;if(je&&l&98304&&l&(524288|67108864|16777216)||l&67108864&&l&(469892092&~67108864)||l&402653316&&l&(469892092&~402653316)||l&296&&l&(469892092&~296)||l&2112&&l&(469892092&~2112)||l&12288&&l&(469892092&~12288)||l&49152&&l&(469892092&~49152))return Wr;if(l&134217728&&l&128&&JD(u))return Wr;if(l&1)return l&8388608?Bn:lt;if(!je&&l&98304)return l&32768?Ln:qn;if((l&4&&l&128||l&8&&l&256||l&64&&l&2048||l&4096&&l&8192)&&HD(u,l),l&16777216&&l&524288&&e.orderedRemoveItemAt(u,e.findIndex(u,ax)),u.length===0)return ln;if(u.length===1)return u[0];var S=Tu(u)+gh(t,r),M=En.get(S);if(!M){if(l&1048576)if(qD(u))M=Go(u,t,r);else if(wS(u,32768))M=Ea([Go(u),Ln],1,t,r);else if(wS(u,65536))M=Ea([Go(u),qn],1,t,r);else{if(!uy(u))return K;var ge=XD(u),Ge=e.some(ge,function(We){return!!(We.flags&2097152)})?hb(2097152,u):void 0;M=Ea(ge,1,t,r,Ge)}else M=zD(u,t,r);En.set(S,M)}return M}function AS(n){return e.reduceLeft(n,function(t,r){return r.flags&1048576?t*r.types.length:r.flags&131072?0:t},1)}function uy(n){var t=AS(n);return t>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:n.map(function(r){return r.id}),size:t}),Hn(ce,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function XD(n){for(var t=AS(n),r=[],i=0;i<t;i++){for(var l=n.slice(),u=i,S=n.length-1;S>=0;S--)if(n[S].flags&1048576){var M=n[S].types,ge=M.length;l[S]=M[u%ge],u=Math.floor(u/ge)}var Ge=Go(l);Ge.flags&131072||r.push(Ge)}return r}function YD(n){var t=pa(n);if(!t.resolvedType){var r=bm(n);t.resolvedType=Go(e.map(n.types,La),r,Gm(r))}return t.resolvedType}function DS(n,t){var r=Hl(4194304);return r.type=n,r.stringsOnly=t,r}function QD(n){var t=zs(4194304);return t.type=n,t}function ZD(n,t){return t?n.resolvedStringIndexType||(n.resolvedStringIndexType=DS(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=DS(n,!1))}function CS(n,t,r){return si(n,hy(t.mapper,Mu(t),r))}function $D(n,t){var r=Vl(yu(n),function(u){return!(t&&u.flags&(1|4))}),i=n.declaration.nameType&&La(n.declaration.nameType),l=i&&nf(r,function(u){return!!(u.flags&(4|8|131072))})&&So(Ul(eg(n)));return i?Ea([Ws(r,function(u){return CS(i,n,u)}),Ws(Ea(e.map(l||e.emptyArray,function(u){return Mm(u,8576)})),function(u){return CS(i,n,u)})]):r}function eC(n){var t=Mu(n);return r(Qf(n)||t);function r(i){return i.flags&(3|131068|131072|262144|524288|67108864)?!0:i.flags&16777216?i.root.isDistributive&&i.checkType===t:i.flags&(3145728|134217728)?e.every(i.types,r):i.flags&8388608?r(i.objectType)&&r(i.indexType):i.flags&33554432?r(i.substitute):i.flags&268435456?r(i.type):!1}}function np(n){return e.isPrivateIdentifier(n)?Wr:e.isIdentifier(n)?nu(e.unescapeLeadingUnderscores(n.escapedText)):_c(e.isComputedPropertyName(n)?rf(n):hi(n))}function Mm(n,t,r){if(r||!(e.getDeclarationModifierFlagsFromSymbol(n)&24)){var i=$a(Xp(n)).nameType;if(!i){var l=e.getNameOfDeclaration(n.valueDeclaration);i=n.escapedName==="default"?nu("default"):l&&np(l)||(e.isKnownSymbol(n)?void 0:nu(e.symbolName(n)))}if(i&&i.flags&t)return i}return Wr}function nC(n,t,r){var i=r&&(e.getObjectFlags(n)&(3|4)||n.aliasSymbol)?QD(n):void 0,l=e.map(So(n),function(S){return Mm(S,t)}),u=e.map(vi(n),function(S){return S!==Vi&&S.keyType.flags&t?S.keyType===ht&&t&8?la:S.keyType:Wr});return Ea(e.concatenate(l,u),1,void 0,void 0,i)}function yd(n,t,r){return t===void 0&&(t=z),n=vu(n),n.flags&1048576?Go(e.map(n.types,function(i){return yd(i,t,r)})):n.flags&2097152?Ea(e.map(n.types,function(i){return yd(i,t,r)})):n.flags&58982400||xh(n)||Dc(n)&&!eC(n)?ZD(n,t):e.getObjectFlags(n)&32?$D(n,r):n===Bn?Bn:n.flags&2?Wr:n.flags&(1|131072)?rr:nC(n,(r?128:402653316)|(t?0:296|12288),t===z&&!r)}function kS(n){if(z)return n;var t=DD();return t?sg(t,[n,ht]):ht}function tC(n){var t=kS(yd(n));return t.flags&131072?ht:t}function rC(n){var t=pa(n);if(!t.resolvedType)switch(n.operator){case 139:t.resolvedType=yd(La(n.type));break;case 152:t.resolvedType=n.type.kind===149?kb(e.walkUpParenthesizedTypes(n.parent)):K;break;case 143:t.resolvedType=La(n.type);break;default:throw e.Debug.assertNever(n.operator)}return t.resolvedType}function aC(n){var t=pa(n);return t.resolvedType||(t.resolvedType=vh(Mt([n.head.text],e.map(n.templateSpans,function(r){return r.literal.text}),!0),e.map(n.templateSpans,function(r){return La(r.type)}))),t.resolvedType}function vh(n,t){var r=e.findIndex(t,function(Ge){return!!(Ge.flags&(131072|1048576))});if(r>=0)return uy(t)?Ws(t[r],function(Ge){return vh(n,e.replaceElement(t,r,Ge))}):K;if(e.contains(t,Bn))return Bn;var i=[],l=[],u=n[0];if(!ge(n,t))return ht;if(i.length===0)return nu(u);if(l.push(u),e.every(l,function(Ge){return Ge===""})&&e.every(i,function(Ge){return!!(Ge.flags&4)}))return ht;var S=Tu(i)+"|"+e.map(l,function(Ge){return Ge.length}).join(",")+"|"+l.join(""),M=Ke.get(S);return M||Ke.set(S,M=oC(l,i)),M;function ge(Ge,We){for(var ze=0;ze<We.length;ze++){var an=We[ze];if(an.flags&(2944|65536|32768))u+=iC(an)||"",u+=Ge[ze+1];else if(an.flags&134217728){if(u+=an.texts[0],!ge(an.texts,an.types))return!1;u+=Ge[ze+1]}else if(Fm(an)||IS(an))i.push(an),l.push(u),u=Ge[ze+1];else return!1}return!0}}function iC(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?e.pseudoBigIntToString(n.value):n.flags&(512|98304)?n.intrinsicName:void 0}function oC(n,t){var r=Hl(134217728);return r.texts=n,r.types=t,r}function h_(n,t){return t.flags&(1048576|131072)?Ws(t,function(r){return h_(n,r)}):Fm(t)?lC(n,t):t.flags&128?nu(sC(n,t.value)):t}function sC(n,t){switch(P.get(n.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function lC(n,t){var r=A(n)+","+Su(t),i=Vn.get(r);return i||Vn.set(r,i=cC(n,t)),i}function cC(n,t){var r=Hl(268435456);return r.symbol=n,r.type=t,r}function uC(n,t,r,i,l){var u=Hl(8388608);return u.objectType=n,u.indexType=t,u.accessFlags=r,u.aliasSymbol=i,u.aliasTypeArguments=l,u}function dg(n){if(vn)return!1;if(e.getObjectFlags(n)&8192)return!0;if(n.flags&1048576)return e.every(n.types,dg);if(n.flags&2097152)return e.some(n.types,dg);if(n.flags&465829888){var t=ny(n);return t!==n&&dg(t)}return!1}function _b(n,t){return Fi(n)?nc(n):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function vb(n,t){if(t.flags&(16|8192)){var r=e.findAncestor(n.parent,function(i){return!e.isAccessExpression(i)})||n.parent;return e.isCallLikeExpression(r)?e.isCallOrNewExpression(r)&&e.isIdentifier(n)&&Bx(r,n):e.every(t.declarations,function(i){return!e.isFunctionLike(i)||!!(e.getCombinedNodeFlags(i)&134217728)})}return!0}function LS(n,t,r,i,l,u){var S,M=l&&l.kind===205?l:void 0,ge=l&&e.isPrivateIdentifier(l)?void 0:_b(r,l);if(ge!==void 0){if(u&256)return om(t,ge)||lt;var Ge=Rn(t,ge);if(Ge){if(u&64&&l&&Ge.declarations&&Sg(Ge)&134217728&&vb(l,Ge)){var We=(S=M==null?void 0:M.argumentExpression)!==null&&S!==void 0?S:e.isIndexedAccessTypeNode(l)?l.indexType:l;fc(We,Ge.declarations,ge)}if(M){if(nv(Ge,M,Vw(M.expression,t.symbol)),w1(M,Ge,e.getAssignmentTargetKind(M))){Hn(M.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Xa(Ge));return}if(u&8&&(pa(l).resolvedSymbol=Ge),Pw(M,Ge))return Fe}var ze=Ir(Ge);return M&&e.getAssignmentTargetKind(M)!==1?im(M,ze):ze}if(nf(t,Ki)&&tf(ge)&&+ge>=0){if(l&&nf(t,function(yr){return!yr.target.hasRestElement})&&!(u&16)){var an=bb(l);Ki(t)?Hn(an,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ar(t),ep(t),e.unescapeLeadingUnderscores(ge)):Hn(an,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ge),Ar(t))}return Vr(go(t,Et)),Ws(t,function(yr){var ba=hg(yr)||Ln;return u&1?Ea([ba,Ln]):ba})}}if(!(r.flags&98304)&&$s(r,402653316|296|12288)){if(t.flags&(1|131072))return t;var Tn=Us(t,r)||go(t,ht);if(Tn){if(u&2&&Tn.keyType!==Et){M&&Hn(M,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ar(r),Ar(n));return}if(l&&Tn.keyType===ht&&!$s(r,4|8)){var an=bb(l);return Hn(an,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ar(r)),u&1?Ea([Tn.type,Ln]):Tn.type}return Vr(Tn),u&1?Ea([Tn.type,Ln]):Tn.type}if(r.flags&131072)return Wr;if(dg(t))return lt;if(M&&!lT(t)){if(Dp(t)){if(vn&&r.flags&(128|256))return zr.add(e.createDiagnosticForNode(M,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Ar(t))),Ln;if(r.flags&(8|4)){var et=e.map(t.properties,function(yr){return Ir(yr)});return Ea(e.append(et,Ln))}}if(t.symbol===gn&&ge!==void 0&&gn.exports.has(ge)&&gn.exports.get(ge).flags&418)Hn(M,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ge),Ar(t));else if(vn&&!pe.suppressImplicitAnyIndexErrors&&!(u&128))if(ge!==void 0&&Gw(ge,t)){var st=Ar(t);Hn(M,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ge,st,st+"["+e.getTextOfNode(M.argumentExpression)+"]")}else if(Bs(t,Et))Hn(M.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Ct=void 0;if(ge!==void 0&&(Ct=zE(ge,t)))Ct!==void 0&&Hn(M.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ge,Ar(t),Ct);else{var Dt=jL(t,M,r);if(Dt!==void 0)Hn(M,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ar(t),Dt);else{var Bt=void 0;if(r.flags&1024)Bt=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Ar(r)+"]",Ar(t));else if(r.flags&8192){var cr=uu(r.symbol,M);Bt=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+cr+"]",Ar(t))}else r.flags&128||r.flags&256?Bt=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Ar(t)):r.flags&(8|4)&&(Bt=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ar(r),Ar(t)));Bt=e.chainDiagnosticMessages(Bt,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ar(i),Ar(t)),zr.add(e.createDiagnosticForNodeFromMessageChain(M,Bt))}}}return}}if(dg(t))return lt;if(l){var an=bb(l);r.flags&(128|256)?Hn(an,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Ar(t)):r.flags&(4|8)?Hn(an,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Ar(t),Ar(r)):Hn(an,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ar(r))}if(no(r))return r;return;function Vr(yr){yr&&yr.isReadonly&&M&&(e.isAssignmentTarget(M)||e.isDeleteTarget(M))&&Hn(M,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ar(t))}}function bb(n){return n.kind===205?n.argumentExpression:n.kind===192?n.indexType:n.kind===160?n.expression:n}function IS(n){return!!(n.flags&(1|4|8|64))}function dy(n){return!!(n.flags&134217728)&&e.every(n.types,IS)}function g_(n){return!!fg(n)}function vm(n){return!!(fg(n)&8388608)}function Fm(n){return!!(fg(n)&16777216)}function fg(n){return n.flags&3145728?(n.objectFlags&4194304||(n.objectFlags|=4194304|e.reduceLeft(n.types,function(t,r){return t|fg(r)},0)),n.objectFlags&25165824):n.flags&33554432?(n.objectFlags&4194304||(n.objectFlags|=4194304|fg(n.substitute)|fg(n.baseType)),n.objectFlags&25165824):(n.flags&58982400||Dc(n)||xh(n)?8388608:0)|(n.flags&(58982400|4194304|134217728|268435456)&&!dy(n)?16777216:0)}function fy(n){return!!(n.flags&262144&&n.isThisType)}function zd(n,t){return n.flags&8388608?fC(n,t):n.flags&16777216?mC(n,t):n}function NS(n,t,r){if(n.flags&3145728){var i=e.map(n.types,function(l){return zd(kc(l,t),r)});return n.flags&2097152||r?Go(i):Ea(i)}}function dC(n,t,r){if(t.flags&1048576){var i=e.map(t.types,function(l){return zd(kc(n,l),r)});return r?Go(i):Ea(i)}}function fC(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===li?n:n[r];n[r]=li;var i=zd(n.objectType,t),l=zd(n.indexType,t),u=dC(i,l,t);if(u)return n[r]=u;if(!(l.flags&465829888)){var S=NS(i,l,t);if(S)return n[r]=S}if(xh(i)&&l.flags&296){var M=D_(i,l.flags&8?0:i.target.fixedLength,0,t);if(M)return n[r]=M}return Dc(i)?n[r]=Ws(PS(i,n.indexType),function(ge){return zd(ge,t)}):n[r]=n}function pC(n){var t=n.root.inferTypeParameters&&vc(n.root.inferTypeParameters,e.map(n.root.inferTypeParameters,function(){return Bn})),r=n.checkType,i=n.extendsType;return yo(nm(r),nm(si(i,t)))}function mC(n,t){var r=n.checkType,i=n.extendsType,l=rp(n),u=ap(n);if(u.flags&131072&&Tp(l)===Tp(r)){if(r.flags&1||yo(nm(r),nm(i)))return zd(l,t);if(OS(r,i))return Wr}else if(l.flags&131072&&Tp(u)===Tp(r)){if(!(r.flags&1)&&yo(nm(r),nm(i)))return Wr;if(r.flags&1||OS(r,i))return zd(u,t)}return n}function OS(n,t){return!!(Ea([Pm(n,t),Wr]).flags&131072)}function PS(n,t){var r=vc([Mu(n)],[t]),i=Tm(n.mapper,r);return si(Kc(n),i)}function kc(n,t,r,i,l,u){return r===void 0&&(r=0),tp(n,t,r,i,l,u)||(i?K:ln)}function RS(n,t){return nf(n,function(r){if(r.flags&384){var i=nc(r);if(tf(i)){var l=+i;return l>=0&&l<t}}return!1})}function tp(n,t,r,i,l,u){if(r===void 0&&(r=0),n===Bn||t===Bn)return Bn;if(ix(n)&&!(t.flags&98304)&&$s(t,4|8)&&(t=ht),pe.noUncheckedIndexedAccess&&r&32&&(r|=1),Fm(t)||(i&&i.kind!==192?xh(n)&&!RS(t,n.target.fixedLength):vm(n)&&!(Ki(n)&&RS(t,n.target.fixedLength)))){if(n.flags&3)return n;var S=r&1,M=n.id+","+t.id+","+S+gh(l,u),ge=$t.get(M);return ge||$t.set(M,ge=uC(n,t,S,l,u)),ge}var Ge=dh(n);if(t.flags&1048576&&!(t.flags&16)){for(var We=[],ze=!1,an=0,Tn=t.types;an<Tn.length;an++){var et=Tn[an],st=LS(n,Ge,et,t,i,r|(ze?128:0));if(st)We.push(st);else if(i)ze=!0;else return}return ze?void 0:r&4?Go(We,l,u):Ea(We,1,l,u)}return LS(n,Ge,t,t,i,r|8|64)}function MS(n){var t=pa(n);if(!t.resolvedType){var r=La(n.objectType),i=La(n.indexType),l=bm(n),u=kc(r,i,0,n,l,Gm(l));t.resolvedType=u.flags&8388608&&u.objectType===r&&u.indexType===i?aS(u,n):u}return t.resolvedType}function Eb(n){var t=pa(n);if(!t.resolvedType){var r=Tl(32,n.symbol);r.declaration=n,r.aliasSymbol=bm(n),r.aliasTypeArguments=Gm(r.aliasSymbol),t.resolvedType=r,yu(r)}return t.resolvedType}function Tp(n){return n.flags&33554432?n.baseType:n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?kc(Tp(n.objectType),Tp(n.indexType)):n}function FS(n){return!n.isDistributive&&GS(n.node.checkType)&&GS(n.node.extendsType)}function GS(n){return e.isTupleTypeNode(n)&&e.length(n.elements)===1&&!e.isOptionalTypeNode(n.elements[0])&&!e.isRestTypeNode(n.elements[0])}function Tb(n,t){return FS(n)&&Ki(t)?Oo(t)[0]:t}function Sb(n,t,r,i){for(var l,u;;){var S=FS(n),M=si(Tb(n,Tp(n.checkType)),t),ge=g_(M),Ge=si(Tb(n,n.extendsType),t);if(M===Bn||Ge===Bn)return Bn;var We=void 0;if(n.inferTypeParameters){var ze=yg(n.inferTypeParameters,void 0,0);ge||Id(ze.inferences,M,Ge,512|1024),We=t?Tm(ze.mapper,t):ze.mapper}var an=We?si(Tb(n,n.extendsType),We):Ge;if(!ge&&!g_(an)){if(!(an.flags&3)&&(M.flags&1&&!S||!yo(T_(M),T_(an)))){M.flags&1&&!S&&(u||(u=[])).push(si(La(n.node.trueType),We||t));var Tn=La(n.node.falseType);if(Tn.flags&16777216){var et=Tn.root;if(et.node.parent===n.node&&(!et.isDistributive||et.checkType===n.checkType)){n=et;continue}}l=si(Tn,t);break}if(an.flags&3||yo(nm(M),nm(an))){l=si(La(n.node.trueType),We||t);break}}l=Hl(16777216),l.root=n,l.checkType=si(n.checkType,t),l.extendsType=si(n.extendsType,t),l.mapper=t,l.combinedMapper=We,l.aliasSymbol=r||n.aliasSymbol,l.aliasTypeArguments=r?i:Cf(n.aliasTypeArguments,t);break}return u?Ea(e.append(u,l)):l}function rp(n){return n.resolvedTrueType||(n.resolvedTrueType=si(La(n.root.node.trueType),n.mapper))}function ap(n){return n.resolvedFalseType||(n.resolvedFalseType=si(La(n.root.node.falseType),n.mapper))}function hC(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?si(La(n.root.node.trueType),n.combinedMapper):rp(n))}function BS(n){var t;return n.locals&&n.locals.forEach(function(r){r.flags&262144&&(t=e.append(t,ls(r)))}),t}function gC(n){var t=pa(n);if(!t.resolvedType){var r=La(n.checkType),i=bm(n),l=Gm(i),u=zn(n,!0),S=l?u:e.filter(u,function(ge){return qS(ge,n)}),M={node:n,checkType:r,extendsType:La(n.extendsType),isDistributive:!!(r.flags&262144),inferTypeParameters:BS(n),outerTypeParameters:S,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:l};t.resolvedType=Sb(M,void 0),S&&(M.instantiations=new e.Map,M.instantiations.set(Tu(S),t.resolvedType))}return t.resolvedType}function yC(n){var t=pa(n);return t.resolvedType||(t.resolvedType=Hd(Rr(n.typeParameter))),t.resolvedType}function US(n){return e.isIdentifier(n)?[n]:e.append(US(n.left),n.right)}function _C(n){var t=pa(n);if(!t.resolvedType){if(n.isTypeOf&&n.typeArguments)return Hn(n,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=Yn,t.resolvedType=K;if(!e.isLiteralImportTypeNode(n))return Hn(n.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=Yn,t.resolvedType=K;var r=n.isTypeOf?111551:n.flags&4194304?111551|788968:788968,i=Ko(n,n.argument.literal);if(!i)return t.resolvedSymbol=Yn,t.resolvedType=K;var l=wr(i,!1);if(e.nodeIsMissing(n.qualifier))if(l.flags&r)t.resolvedType=VS(n,t,l,r);else{var ze=r===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Hn(n,ze,n.argument.literal.text),t.resolvedSymbol=Yn,t.resolvedType=K}else{for(var u=US(n.qualifier),S=l,M=void 0;M=u.shift();){var ge=u.length?1920:r,Ge=To(Ho(S)),We=n.isTypeOf?Rn(Ir(Ge),M.escapedText):Vo(ul(Ge),M.escapedText,ge);if(!We)return Hn(M,e.Diagnostics.Namespace_0_has_no_exported_member_1,uu(S),e.declarationNameToString(M)),t.resolvedType=K;pa(M).resolvedSymbol=We,pa(M.parent).resolvedSymbol=We,S=We}t.resolvedType=VS(n,t,S,r)}}return t.resolvedType}function VS(n,t,r,i){var l=Ho(r);return t.resolvedSymbol=l,i===111551?Ir(r):d_(n,l)}function jS(n){var t=pa(n);if(!t.resolvedType){var r=bm(n);if(eu(n.symbol).size===0&&!r)t.resolvedType=sr;else{var i=Tl(16,n.symbol);i.aliasSymbol=r,i.aliasTypeArguments=Gm(r),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(i=Ll(i)),t.resolvedType=i}}return t.resolvedType}function bm(n){for(var t=n.parent;e.isParenthesizedTypeNode(t)||e.isJSDocTypeExpression(t)||e.isTypeOperatorNode(t)&&t.operator===143;)t=t.parent;return e.isTypeAlias(t)?Rr(t):void 0}function Gm(n){return n?Lr(n):void 0}function xb(n){return!!(n.flags&524288)&&!Dc(n)}function wb(n){return Zd(n)||!!(n.flags&(65536|32768|528|296|2112|402653316|1056|67108864|4194304))}function Ab(n,t){if(!(n.flags&1048576))return n;if(e.every(n.types,wb))return e.find(n.types,Zd)||xt;var r=e.find(n.types,function(u){return!wb(u)});if(!r)return n;var i=e.find(n.types,function(u){return u!==r&&!wb(u)});if(i)return n;return l(r);function l(u){for(var S=e.createSymbolTable(),M=0,ge=So(u);M<ge.length;M++){var Ge=ge[M];if(!(e.getDeclarationModifierFlagsFromSymbol(Ge)&(8|16))){if(y_(Ge)){var We=Ge.flags&65536&&!(Ge.flags&32768),ze=4|16777216,an=oo(ze,Ge.escapedName,Xg(Ge)|(t?8:0));an.type=We?Ln:Yi(Ir(Ge),!0),an.declarations=Ge.declarations,an.nameType=$a(Ge).nameType,an.syntheticOrigin=Ge,S.set(Ge.escapedName,an)}}}var Tn=ns(u.symbol,S,e.emptyArray,e.emptyArray,vi(u));return Tn.objectFlags|=128|262144,Tn}}function Sp(n,t,r,i,l){if(n.flags&1||t.flags&1)return lt;if(n.flags&2||t.flags&2)return ln;if(n.flags&131072)return t;if(t.flags&131072)return n;if(n=Ab(n,l),n.flags&1048576)return uy([n,t])?Ws(n,function(yr){return Sp(yr,t,r,i,l)}):K;if(t=Ab(t,l),t.flags&1048576)return uy([n,t])?Ws(t,function(yr){return Sp(n,yr,r,i,l)}):K;if(t.flags&(528|296|2112|402653316|1056|67108864|4194304))return n;if(vm(n)||vm(t)){if(Zd(n))return t;if(n.flags&2097152){var u=n.types,S=u[u.length-1];if(xb(S)&&xb(t))return Go(e.concatenate(u.slice(0,u.length-1),[Sp(S,t,r,i,l)]))}return Go([n,t])}for(var M=e.createSymbolTable(),ge=new e.Set,Ge=n===xt?vi(t):e_([n,t]),We=0,ze=So(t);We<ze.length;We++){var an=ze[We];e.getDeclarationModifierFlagsFromSymbol(an)&(8|16)?ge.add(an.escapedName):y_(an)&&M.set(an.escapedName,Db(an,l))}for(var Tn=0,et=So(n);Tn<et.length;Tn++){var st=et[Tn];if(ge.has(st.escapedName)||!y_(st))continue;if(M.has(st.escapedName)){var an=M.get(st.escapedName),Ct=Ir(an);if(an.flags&16777216){var Dt=e.concatenate(st.declarations,an.declarations),Bt=4|st.flags&16777216,cr=oo(Bt,st.escapedName);cr.type=Ea([Ir(st),tE(Ct)]),cr.leftSpread=st,cr.rightSpread=an,cr.declarations=Dt,cr.nameType=$a(st).nameType,M.set(st.escapedName,cr)}}else M.set(st.escapedName,Db(st,l))}var Vr=ns(r,M,e.emptyArray,e.emptyArray,e.sameMap(Ge,function(yr){return vC(yr,l)}));return Vr.objectFlags|=128|262144|4194304|i,Vr}function y_(n){var t;return!e.some(n.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(n.flags&(8192|32768|65536))||!((t=n.declarations)===null||t===void 0?void 0:t.some(function(r){return e.isClassLike(r.parent)})))}function Db(n,t){var r=n.flags&65536&&!(n.flags&32768);if(!r&&t===_d(n))return n;var i=4|n.flags&16777216,l=oo(i,n.escapedName,Xg(n)|(t?8:0));return l.type=r?Ln:Ir(n),l.declarations=n.declarations,l.nameType=$a(n).nameType,l.syntheticOrigin=n,l}function vC(n,t){return n.isReadonly!==t?Qu(n.keyType,n.type,t,n.declaration):n}function py(n,t,r,i){var l=Hl(n);return l.symbol=r,l.value=t,l.regularType=i||l,l}function Bm(n){if(n.flags&2944){if(!n.freshType){var t=py(n.flags,n.value,n.symbol,n);t.freshType=t,n.freshType=t}return n.freshType}return n}function _c(n){return n.flags&2944?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Ws(n,_c)):n}function xp(n){return!!(n.flags&2944)&&n.freshType===n}function nu(n){var t;return Nn.get(n)||(Nn.set(n,t=py(128,n)),t)}function Xd(n){var t;return ct.get(n)||(ct.set(n,t=py(256,n)),t)}function Cb(n){var t,r=e.pseudoBigIntToString(n);return yt.get(r)||(yt.set(r,t=py(2048,n)),t)}function bC(n,t,r){var i,l=typeof n=="string"?"@":"#",u=t+l+n,S=1024|(typeof n=="string"?128:256);return Gt.get(u)||(Gt.set(u,i=py(S,n,r)),i)}function EC(n){if(n.literal.kind===104)return qn;var t=pa(n);return t.resolvedType||(t.resolvedType=_c(hi(n.literal))),t.resolvedType}function TC(n){var t=Hl(8192);return t.symbol=n,t.escapedName="__@"+t.symbol.escapedName+"@"+A(t.symbol),t}function kb(n){if(e.isValidESSymbolDeclaration(n)){var t=Rr(n),r=$a(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=TC(t))}return Xr}function SC(n){var t=e.getThisContainer(n,!1),r=t&&t.parent;if(r&&(e.isClassLike(r)||r.kind===256)&&(!e.isStatic(t)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(n,t.body))))return yc(Rr(r)).thisType;if(r&&e.isObjectLiteralExpression(r)&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===6)return yc(Rr(r.parent.left).parent).thisType;var i=n.flags&4194304?e.getHostSignatureFromJSDoc(n):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&e.getAssignmentDeclarationKind(i.parent)===3?yc(Rr(i.parent.left).parent).thisType:Wu(t)&&e.isNodeDescendantOf(n,t.body)?yc(Rr(t)).thisType:(Hn(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),K)}function __(n){var t=pa(n);return t.resolvedType||(t.resolvedType=SC(n)),t.resolvedType}function WS(n){return La(my(n.type)||n.type)}function my(n){switch(n.kind){case 189:return my(n.type);case 182:if(n.elements.length===1&&(n=n.elements[0],n.kind===184||n.kind===195&&n.dotDotDotToken))return my(n.type);break;case 181:return n.elementType}return}function xC(n){var t=pa(n);return t.resolvedType||(t.resolvedType=n.dotDotDotToken?WS(n):Yi(La(n.type),!0,!!n.questionToken))}function La(n){return aS(HS(n),n)}function HS(n){switch(n.kind){case 129:case 307:case 308:return lt;case 153:return ln;case 148:return ht;case 145:return Et;case 156:return zt;case 132:return Ht;case 149:return Xr;case 114:return At;case 151:return Ln;case 104:return qn;case 142:return Wr;case 146:return n.flags&131072&&!vn?lt:Va;case 137:return Fn;case 190:case 108:return __(n);case 194:return EC(n);case 176:return cy(n);case 175:return n.assertsModifier?At:Ht;case 226:return cy(n);case 179:return oS(n);case 181:case 182:return ND(n);case 183:return RD(n);case 185:return jD(n);case 186:return YD(n);case 309:return dD(n);case 311:return Yi(La(n.type));case 195:return xC(n);case 189:case 310:case 304:return La(n.type);case 184:return WS(n);case 313:return TO(n);case 177:case 178:case 180:case 317:case 312:case 318:return jS(n);case 191:return rC(n);case 192:return MS(n);case 193:return Eb(n);case 187:return gC(n);case 188:return yC(n);case 196:return aC(n);case 198:return _C(n);case 79:case 159:case 204:var t=tu(n);return t?ls(t):K;default:return K}}function v_(n,t,r){if(n&&n.length)for(var i=0;i<n.length;i++){var l=n[i],u=r(l,t);if(l!==u){var S=i===0?[]:n.slice(0,i);for(S.push(u),i++;i<n.length;i++)S.push(r(n[i],t));return S}}return n}function Cf(n,t){return v_(n,t,si)}function b_(n,t){return v_(n,t,Um)}function KS(n,t){return v_(n,t,GC)}function vc(n,t){return n.length===1?Em(n[0],t?t[0]:lt):wC(n,t)}function $p(n,t){switch(t.kind){case 0:return n===t.source?t.target:n;case 1:for(var r=t.sources,i=t.targets,l=0;l<r.length;l++)if(n===r[l])return i?i[l]:lt;return n;case 2:return t.func(n);case 3:case 4:var u=$p(n,t.mapper1);return u!==n&&t.kind===3?si(u,t.mapper2):$p(u,t.mapper2)}}function Em(n,t){return{kind:0,source:n,target:t}}function wC(n,t){return{kind:1,sources:n,targets:t}}function em(n){return{kind:2,func:n}}function E_(n,t,r){return{kind:n,mapper1:t,mapper2:r}}function JS(n){return vc(n,void 0)}function AC(n,t){return em(function(r){return e.findIndex(n.inferences,function(i){return i.typeParameter===r})>=t?ln:r})}function Tm(n,t){return n?E_(3,n,t):t}function DC(n,t){return n?E_(4,n,t):t}function Sm(n,t,r){return r?E_(4,Em(n,t),r):Em(n,t)}function hy(n,t,r){return n?E_(4,n,Em(t,r)):Em(t,r)}function CC(n){return n.constraint===ln?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Yc(n.symbol),n.restrictiveInstantiation.constraint=ln,n.restrictiveInstantiation)}function Lb(n){var t=Yc(n.symbol);return t.target=n,t}function kC(n,t){return Qp(n.kind,n.parameterName,n.parameterIndex,si(n.type,t))}function Um(n,t,r){var i;if(n.typeParameters&&!r){i=e.map(n.typeParameters,Lb),t=Tm(vc(n.typeParameters,i),t);for(var l=0,u=i;l<u.length;l++){var S=u[l];S.mapper=t}}var M=Ru(n.declaration,i,n.thisParameter&&Ib(n.thisParameter,t),v_(n.parameters,t,Ib),void 0,void 0,n.minArgumentCount,n.flags&39);return M.target=n,M.mapper=t,M}function Ib(n,t){var r=$a(n);if(r.type&&!_g(r.type))return n;e.getCheckFlags(n)&1&&(n=r.target,t=Tm(r.mapper,t));var i=oo(n.flags,n.escapedName,1|e.getCheckFlags(n)&(8|4096|16384|32768));return i.declarations=n.declarations,i.parent=n.parent,i.target=n,i.mapper=t,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),r.nameType&&(i.nameType=r.nameType),i}function LC(n,t,r,i){var l=n.objectFlags&4?n.node:n.symbol.declarations[0],u=pa(l),S=n.objectFlags&4?u.resolvedType:n.objectFlags&64?n.target:n,M=u.outerTypeParameters;if(!M){var ge=zn(l,!0);if(Wu(l)){var Ge=Ys(l);ge=e.addRange(ge,Ge)}M=ge||e.emptyArray;var We=n.objectFlags&4?[l]:n.symbol.declarations;M=(S.objectFlags&4||S.symbol.flags&8192||S.symbol.flags&2048)&&!S.aliasTypeArguments?e.filter(M,function(Bt){return e.some(We,function(cr){return qS(Bt,cr)})}):M,u.outerTypeParameters=M}if(M.length){var ze=Tm(n.mapper,t),an=e.map(M,function(Bt){return $p(Bt,ze)}),Tn=r||n.aliasSymbol,et=r?i:Cf(n.aliasTypeArguments,t),st=Tu(an)+gh(Tn,et);S.instantiations||(S.instantiations=new e.Map,S.instantiations.set(Tu(M)+gh(S.aliasSymbol,S.aliasTypeArguments),S));var Ct=S.instantiations.get(st);if(!Ct){var Dt=vc(M,an);Ct=S.objectFlags&4?lb(n.target,n.node,Dt,Tn,et):S.objectFlags&32?zS(S,Dt,Tn,et):Pb(S,Dt,Tn,et),S.instantiations.set(st,Ct)}return Ct}return n}function IC(n){return!(n.parent.kind===176&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===198&&n.parent.typeArguments&&n===n.parent.qualifier)}function qS(n,t){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){for(var r=n.symbol.declarations[0].parent,i=t;i!==r;i=i.parent)if(!i||i.kind===233||i.kind===187&&e.forEachChild(i.extendsType,l))return!0;return l(t)}return!0;function l(u){switch(u.kind){case 190:return!!n.isThisType;case 79:return!n.isThisType&&e.isPartOfTypeNode(u)&&IC(u)&&HS(u)===n;case 179:return!0;case 167:case 166:return!u.type&&!!u.body||e.some(u.typeParameters,l)||e.some(u.parameters,l)||!!u.type&&l(u.type)}return!!e.forEachChild(u,l)}}function Nb(n){var t=yu(n);if(t.flags&4194304){var r=Tp(t.type);if(r.flags&262144)return r}return}function zS(n,t,r,i){var l=Nb(n);if(l){var u=si(l,t);if(l!==u)return zx(vu(u),function(S){if(S.flags&(3|58982400|524288|2097152)&&S!==Bn&&S!==K){if(!n.declaration.nameType){if(zl(S))return OC(S,n,Sm(l,S,t));if(xh(S))return NC(S,n,l,t);if(Ki(S))return PC(S,n,Sm(l,S,t))}return Pb(n,Sm(l,S,t))}return S},r,i)}return si(yu(n),t)===Bn?Bn:Pb(n,t,r,i)}function Ob(n,t){return t&1?!0:t&2?!1:n}function NC(n,t,r,i){var l=n.target.elementFlags,u=e.map(Oo(n),function(M,ge){var Ge=l[ge]&8?M:l[ge]&4?Ll(M):Zu([M],[l[ge]]);return zS(t,Sm(r,Ge,i))}),S=Ob(n.target.readonly,_u(t));return Zu(u,e.map(u,function(M){return 8}),S)}function OC(n,t,r){var i=XS(t,Et,!0,r);return i===K?K:Ll(i,Ob(Th(n),_u(t)))}function PC(n,t,r){var i=n.target.elementFlags,l=e.map(Oo(n),function(ge,Ge){return XS(t,nu(""+Ge),!!(i[Ge]&2),r)}),u=_u(t),S=u&4?e.map(i,function(ge){return ge&1?2:ge}):u&8?e.map(i,function(ge){return ge&2?1:ge}):i,M=Ob(n.target.readonly,u);return e.contains(l,K)?K:Zu(l,S,M,n.target.labeledElementDeclarations)}function XS(n,t,r,i){var l=hy(i,Mu(n),t),u=si(Kc(n.target||n),l),S=_u(n);return je&&S&4&&!xs(u,32768|16384)?ef(u,!0):je&&S&8&&r?Dl(u,524288):u}function Pb(n,t,r,i){var l=Tl(n.objectFlags|64,n.symbol);if(n.objectFlags&32){l.declaration=n.declaration;var u=Mu(n),S=Lb(u);l.typeParameter=S,t=Tm(Em(u,S),t),S.mapper=t}return l.target=n,l.mapper=t,l.aliasSymbol=r||n.aliasSymbol,l.aliasTypeArguments=r?i:Cf(n.aliasTypeArguments,t),l}function Rb(n,t,r,i){var l=n.root;if(l.outerTypeParameters){var u=e.map(l.outerTypeParameters,function(Ge){return $p(Ge,t)}),S=Tu(u)+gh(r,i),M=l.instantiations.get(S);if(!M){var ge=vc(l.outerTypeParameters,u);M=RC(l,ge,r,i),l.instantiations.set(S,M)}return M}return n}function RC(n,t,r,i){if(n.isDistributive){var l=n.checkType,u=$p(l,t);if(l!==u&&u.flags&(1048576|131072))return zx(u,function(S){return Sb(n,Sm(l,S,t))},r,i)}return Sb(n,t,r,i)}function si(n,t){return n&&t?YS(n,t,void 0,void 0):n}function YS(n,t,r,i){if(!_g(n))return n;if($e===50||Se>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:$e,instantiationCount:Se}),Hn(ce,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),K;Ue++,Se++,$e++;var l=MC(n,t,r,i);return $e--,l}function MC(n,t,r,i){var l=n.flags;if(l&262144)return $p(n,t);if(l&524288){var u=n.objectFlags;if(u&(4|16|32)){if(u&4&&!n.node){var S=n.resolvedTypeArguments,M=Cf(S,t);return M!==S?pb(n.target,M):n}return u&1024?FC(n,t):LC(n,t,r,i)}return n}if(l&3145728){var ge=n.flags&1048576?n.origin:void 0,Ge=ge&&ge.flags&3145728?ge.types:n.types,We=Cf(Ge,t);if(We===Ge&&r===n.aliasSymbol)return n;var ze=r||n.aliasSymbol,an=r?i:Cf(n.aliasTypeArguments,t);return l&2097152||ge&&ge.flags&2097152?Go(We,ze,an):Ea(We,1,ze,an)}if(l&4194304)return yd(si(n.type,t));if(l&134217728)return vh(n.texts,Cf(n.types,t));if(l&268435456)return h_(n.symbol,si(n.type,t));if(l&8388608){var ze=r||n.aliasSymbol,an=r?i:Cf(n.aliasTypeArguments,t);return kc(si(n.objectType,t),si(n.indexType,t),n.accessFlags,void 0,ze,an)}if(l&16777216)return Rb(n,Tm(n.mapper,t),r,i);if(l&33554432){var Tn=si(n.baseType,t);if(Tn.flags&8650752)return nS(Tn,si(n.substitute,t));var et=si(n.substitute,t);return et.flags&3||yo(nm(Tn),nm(et))?Tn:et}return n}function FC(n,t){var r=si(n.mappedType,t);if(!(e.getObjectFlags(r)&32))return n;var i=si(n.constraintType,t);if(!(i.flags&4194304))return n;var l=Cx(si(n.source,t),r,i);return l||n}function T_(n){return n.flags&(131068|3|131072)?n:n.permissiveInstantiation||(n.permissiveInstantiation=si(n,Lt))}function nm(n){return n.flags&(131068|3|131072)?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=si(n,ra),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function GC(n,t){return Qu(n.keyType,si(n.type,t),n.isReadonly,n.declaration)}function Bu(n){e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n));switch(n.kind){case 211:case 212:case 167:case 254:return QS(n);case 203:return e.some(n.properties,Bu);case 202:return e.some(n.elements,Bu);case 220:return Bu(n.whenTrue)||Bu(n.whenFalse);case 219:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(Bu(n.left)||Bu(n.right));case 291:return Bu(n.initializer);case 210:return Bu(n.expression);case 284:return e.some(n.properties,Bu)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,Bu);case 283:{var t=n.initializer;return!!t&&Bu(t)}case 286:{var r=n.expression;return!!r&&Bu(r)}}return!1}function QS(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!Na(n))&&(e.hasContextSensitiveParameters(n)||BC(n))}function BC(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&n.body.kind!==233&&Bu(n.body)}function ZS(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||PE(n)||e.isObjectLiteralMethod(n))&&QS(n)}function $S(n){if(n.flags&524288){var t=Fu(n);if(t.constructSignatures.length||t.callSignatures.length){var r=Tl(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r.indexInfos=e.emptyArray,r}}else if(n.flags&2097152)return Go(e.map(n.types,$S));return n}function Yd(n,t){return $d(n,t,Zr)}function pg(n,t){return $d(n,t,Zr)?-1:0}function Mb(n,t){return $d(n,t,Tt)?-1:0}function UC(n,t){return $d(n,t,cn)?-1:0}function Qd(n,t){return $d(n,t,cn)}function yo(n,t){return $d(n,t,Tt)}function bh(n,t){return n.flags&1048576?e.every(n.types,function(r){return bh(r,t)}):t.flags&1048576?e.some(t.types,function(r){return bh(n,r)}):n.flags&58982400?bh(tc(n)||ln,t):t===fs?!!(n.flags&(524288|67108864)):t===Mo?!!(n.flags&524288)&&_E(n):ve(n,G(t))||zl(t)&&!Th(t)&&bh(n,tr)}function Eh(n,t){return $d(n,t,Vt)}function S_(n,t){return Eh(n,t)||Eh(t,n)}function Fc(n,t,r,i,l,u){return Uu(n,t,Tt,r,i,l,u)}function ip(n,t,r,i,l,u){return Fb(n,t,Tt,r,i,l,u,void 0)}function Fb(n,t,r,i,l,u,S,M){return $d(n,t,r)?!0:!i||!gy(l,n,t,r,u,S,M)?Uu(n,t,r,i,u,S,M):!1}function ex(n){return!!(n.flags&16777216||n.flags&2097152&&e.some(n.types,ex))}function gy(n,t,r,i,l,u,S){if(!n||ex(r))return!1;if(!Uu(t,r,i,void 0)&&VC(n,t,r,i,l,u,S))return!0;switch(n.kind){case 286:case 210:return gy(n.expression,t,r,i,l,u,S);case 219:switch(n.operatorToken.kind){case 63:case 27:return gy(n.right,t,r,i,l,u,S)}break;case 203:return YC(n,t,r,i,u,S);case 202:return zC(n,t,r,i,u,S);case 284:return qC(n,t,r,i,u,S);case 212:return jC(n,t,r,i,u,S)}return!1}function VC(n,t,r,i,l,u,S){for(var M=qt(t,0),ge=qt(t,1),Ge=0,We=[ge,M];Ge<We.length;Ge++){var ze=We[Ge];if(e.some(ze,function(et){var st=_o(et);return!(st.flags&(1|131072))&&Uu(st,r,i,void 0)})){var an=S||{};Fc(t,r,n,l,u,an);var Tn=an.errors[an.errors.length-1];return e.addRelatedInfo(Tn,e.createDiagnosticForNode(n,ze===ge?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function jC(n,t,r,i,l,u){if(e.isBlock(n.body))return!1;if(e.some(n.parameters,e.hasType))return!1;var S=Am(t);if(!S)return!1;var M=qt(r,0);if(!e.length(M))return!1;var ge=n.body,Ge=_o(S),We=Ea(e.map(M,_o));if(!Uu(Ge,We,i,void 0)){var ze=ge&&gy(ge,Ge,We,i,void 0,l,u);if(ze)return ze;var an=u||{};if(Uu(Ge,We,i,ge,void 0,l,an),an.errors)return r.symbol&&e.length(r.symbol.declarations)&&e.addRelatedInfo(an.errors[an.errors.length-1],e.createDiagnosticForNode(r.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),(e.getFunctionFlags(n)&2)===0&&!js(Ge,"then")&&Uu(Ry(Ge),We,i,void 0)&&e.addRelatedInfo(an.errors[an.errors.length-1],e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function WC(n,t,r){var i=tp(t,r);if(i)return i;if(t.flags&1048576){var l=sx(n,t);if(l)return tp(l,r)}}function HC(n,t){n.contextualType=t;try{return Fh(n,1,t)}finally{n.contextualType=void 0}}function mg(n,t,r,i,l,u){for(var S=!1,M=n.next();!M.done;M=n.next()){var ge=M.value,Ge=ge.errorNode,We=ge.innerExpression,ze=ge.nameType,an=ge.errorMessage,Tn=WC(t,r,ze);if(!Tn||Tn.flags&8388608)continue;var et=tp(t,ze);if(!et)continue;var st=_b(ze,void 0),Ct=!!(st&&(Rn(r,st)||Yn).flags&16777216),Dt=!!(st&&(Rn(t,st)||Yn).flags&16777216);if(Tn=jm(Tn,Ct),et=jm(et,Ct&&Dt),!Uu(et,Tn,i,void 0)){var Bt=We&&gy(We,et,Tn,i,void 0,l,u);if(Bt)S=!0;else{var cr=u||{},Vr=We?HC(We,et):et,yr=Uu(Vr,Tn,i,Ge,an,l,cr);if(yr&&Vr!==et&&Uu(et,Tn,i,Ge,an,l,cr),cr.errors){var ba=cr.errors[cr.errors.length-1],ca=Fi(ze)?nc(ze):void 0,fi=ca!==void 0?Rn(r,ca):void 0,ei=!1;if(!fi){var Ji=Us(r,ze);Ji&&Ji.declaration&&!e.getSourceFileOfNode(Ji.declaration).hasNoDefaultLib&&(ei=!0,e.addRelatedInfo(ba,e.createDiagnosticForNode(Ji.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!ei&&(fi&&e.length(fi.declarations)||r.symbol&&e.length(r.symbol.declarations))){var ni=fi&&e.length(fi.declarations)?fi.declarations[0]:r.symbol.declarations[0];e.getSourceFileOfNode(ni).hasNoDefaultLib||e.addRelatedInfo(ba,e.createDiagnosticForNode(ni,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,ca&&!(ze.flags&8192)?e.unescapeLeadingUnderscores(ca):Ar(ze),Ar(r)))}}S=!0}}}return S}function KC(n){var t,r,i;return Bi(this,function(l){switch(l.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,l.label=1;case 1:return t<r.length?(i=r[t],e.isJsxSpreadAttribute(i)||FE(e.idText(i.name))?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:nu(e.idText(i.name))}]):[3,4];case 2:l.sent(),l.label=3;case 3:return t++,[3,1];case 4:return[2]}})}function JC(n,t){var r,i,l,u,S;return Bi(this,function(M){switch(M.label){case 0:if(!e.length(n.children))return[2];r=0,i=0,M.label=1;case 1:return i<n.children.length?(l=n.children[i],u=Xd(i-r),S=nx(l,u,t),S?[4,S]:[3,3]):[3,5];case 2:return M.sent(),[3,4];case 3:r++,M.label=4;case 4:return i++,[3,1];case 5:return[2]}})}function nx(n,t,r){switch(n.kind){case 286:return{errorNode:n,innerExpression:n.expression,nameType:t};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:t,errorMessage:r()};case 276:case 277:case 280:return{errorNode:n,innerExpression:n,nameType:t};default:return e.Debug.assertNever(n,"Found invalid jsx child")}}function qC(n,t,r,i,l,u){var S=mg(KC(n),t,r,i,l,u),M;if(e.isJsxOpeningElement(n.parent)&&e.isJsxElement(n.parent.parent)){var ge=n.parent.parent,Ge=Q_(Xm(n)),We=Ge===void 0?"children":e.unescapeLeadingUnderscores(Ge),ze=nu(We),an=kc(r,ze),Tn=e.getSemanticJsxChildren(ge.children);if(!e.length(Tn))return S;var et=e.length(Tn)>1,st=Vl(an,hx),Ct=Vl(an,function(ca){return!hx(ca)});if(et){if(st!==Wr){var Dt=Zu(Y_(ge,0)),Bt=JC(ge,ba);S=mg(Bt,Dt,st,i,l,u)||S}else if(!$d(kc(t,ze),an,i)){S=!0;var cr=Hn(ge.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,We,Ar(an));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(cr)}}else if(Ct!==Wr){var Vr=Tn[0],yr=nx(Vr,ze,ba);yr&&(S=mg(function(){return Bi(this,function(ca){switch(ca.label){case 0:return[4,yr];case 1:return ca.sent(),[2]}})}(),t,r,i,l,u)||S)}else if(!$d(kc(t,ze),an,i)){S=!0;var cr=Hn(ge.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,We,Ar(an));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(cr)}}return S;function ba(){if(!M){var ca=e.getTextOfNode(n.parent.tagName),fi=Q_(Xm(n)),ei=fi===void 0?"children":e.unescapeLeadingUnderscores(fi),Ji=kc(r,nu(ei)),ni=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;M=pr(pr({},ni),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,ni,ca,ei,Ar(Ji))})}return M}}function tx(n,t){var r,i,l,u;return Bi(this,function(S){switch(S.label){case 0:if(r=e.length(n.elements),!r)return[2];i=0,S.label=1;case 1:return i<r?Sh(t)&&!Rn(t,""+i)?[3,3]:(l=n.elements[i],e.isOmittedExpression(l)?[3,3]:(u=Xd(i),[4,{errorNode:l,innerExpression:l,nameType:u}])):[3,4];case 2:S.sent(),S.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function zC(n,t,r,i,l,u){if(r.flags&131068)return!1;if(Sh(t))return mg(tx(n,r),t,r,i,l,u);var S=n.contextualType;n.contextualType=r;try{var M=gw(n,1,!0);return n.contextualType=S,Sh(M)?mg(tx(n,r),M,r,i,l,u):!1}finally{n.contextualType=S}}function XC(n){var t,r,i,l,u;return Bi(this,function(S){switch(S.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,S.label=1;case 1:if(!(t<r.length))return[3,8];if(i=r[t],e.isSpreadAssignment(i))return[3,7];if(l=Mm(Rr(i),8576),!l||l.flags&131072)return[3,7];u=i.kind;switch(u){case 171:return[3,2];case 170:return[3,2];case 167:return[3,2];case 292:return[3,2];case 291:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:l}];case 3:return S.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:l,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return S.sent(),[3,7];case 6:e.Debug.assertNever(i),S.label=7;case 7:return t++,[3,1];case 8:return[2]}})}function YC(n,t,r,i,l,u){return r.flags&131068?!1:mg(XC(n),t,r,i,l,u)}function rx(n,t,r,i,l){return Uu(n,t,Vt,r,i,l)}function QC(n,t,r){return Gb(n,t,r?4:0,!1,void 0,void 0,Mb,void 0)!==0}function ZC(n){return!n.typeParameters&&(!n.thisParameter||no(wg(n.thisParameter)))&&n.parameters.length===1&&k(n)&&(wg(n.parameters[0])===pn||no(wg(n.parameters[0])))&&no(_o(n))}function Gb(n,t,r,i,l,u,S,M){if(n===t)return-1;if(ZC(t))return-1;var ge=dc(t),Ge=!rd(t)&&(r&8?rd(n)||dc(n)>ge:td(n)>ge);if(Ge)return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(t=iD(t),n=zw(n,t,void 0,S));var We=dc(n),ze=Dg(n),an=Dg(t);if((ze||an)&&void si(ze||an,M),ze&&an&&We!==ge)return 0;var Tn=t.declaration?t.declaration.kind:0,et=!(r&3)&&xn&&Tn!==167&&Tn!==166&&Tn!==169,st=-1,Ct=Af(n);if(Ct&&Ct!==At){var Dt=Af(t);if(Dt){var Bt=!et&&S(Ct,Dt,!1)||S(Dt,Ct,i);if(!Bt)return i&&l(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;st&=Bt}}for(var cr=ze||an?Math.min(We,ge):Math.max(We,ge),Vr=ze||an?cr-1:-1,yr=0;yr<cr;yr++){var ba=yr===Vr?Rh(n,yr):sm(n,yr),ca=yr===Vr?Rh(t,yr):sm(t,yr);if(ba&&ca){var fi=r&3?void 0:Am(kf(ba)),ei=r&3?void 0:Am(kf(ca)),Ji=fi&&ei&&!Mc(fi)&&!Mc(ei)&&(Jc(ba)&98304)===(Jc(ca)&98304),Bt=Ji?Gb(ei,fi,r&8|(et?2:1),i,l,u,S,M):!(r&3)&&!et&&S(ba,ca,!1)||S(ca,ba,i);if(Bt&&r&8&&yr>=td(n)&&yr<td(t)&&S(ba,ca,!1)&&(Bt=0),!Bt)return i&&l(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Ph(n,yr)),e.unescapeLeadingUnderscores(Ph(t,yr))),0;st&=Bt}}if(!(r&4)){var ni=ig(t)?lt:t.declaration&&Wu(t.declaration)?yc(To(t.declaration.symbol)):_o(t);if(ni===At)return st;var vo=ig(n)?lt:n.declaration&&Wu(n.declaration)?yc(To(n.declaration.symbol)):_o(n),Po=Mc(t);if(Po){var Xt=Mc(n);if(Xt)st&=$C(Xt,Po,i,l,S);else if(e.isIdentifierTypePredicate(Po))return i&&l(e.Diagnostics.Signature_0_must_be_a_type_predicate,jc(n)),0}else st&=r&1&&S(ni,vo,!1)||S(vo,ni,i),!st&&i&&u&&u(vo,ni)}return st}function $C(n,t,r,i,l){if(n.kind!==t.kind)return r&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,wc(n),wc(t))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==t.parameterIndex)return r&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,t.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,wc(n),wc(t))),0;var u=n.type===t.type?-1:n.type&&t.type?l(n.type,t.type,r):0;return u===0&&r&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,wc(n),wc(t)),u}function e0(n,t){var r=og(n),i=og(t),l=_o(r),u=_o(i);return u===At||$d(u,l,Tt)||$d(l,u,Tt)?QC(r,i,!0):!1}function Bb(n){return n!==ea&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function Zd(n){return n.flags&524288?!Dc(n)&&Bb(Fu(n)):n.flags&67108864?!0:n.flags&1048576?e.some(n.types,Zd):n.flags&2097152?e.every(n.types,Zd):!1}function ax(n){return!!(e.getObjectFlags(n)&16&&(n.members&&Bb(n)||n.symbol&&n.symbol.flags&2048&&eu(n.symbol).size===0))}function ix(n){return n.flags&524288&&!Dc(n)&&So(n).length===0&&vi(n).length===1&&!!go(n,ht)||n.flags&3145728&&e.every(n.types,ix)||!1}function Ub(n,t,r){if(n===t)return!0;var i=A(n)+","+A(t),l=Da.get(i);if(l!==void 0&&!(!(l&4)&&l&2&&r))return!!(l&1);if(n.escapedName!==t.escapedName||!(n.flags&256)||!(t.flags&256))return Da.set(i,2|4),!1;for(var u=Ir(t),S=0,M=So(Ir(n));S<M.length;S++){var ge=M[S];if(ge.flags&8){var Ge=Rn(u,ge.escapedName);if(!Ge||!(Ge.flags&8))return r?(r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(ge),Ar(ls(t),void 0,64)),Da.set(i,2|4)):Da.set(i,2),!1}}return Da.set(i,1),!0}function yy(n,t,r,i){var l=n.flags,u=t.flags;if(u&3||l&131072||n===Bn)return!0;if(u&131072)return!1;if(l&402653316&&u&4)return!0;if(l&128&&l&1024&&u&128&&!(u&1024)&&n.value===t.value)return!0;if(l&296&&u&8)return!0;if(l&256&&l&1024&&u&256&&!(u&1024)&&n.value===t.value)return!0;if(l&2112&&u&64)return!0;if(l&528&&u&16)return!0;if(l&12288&&u&4096)return!0;if(l&32&&u&32&&Ub(n.symbol,t.symbol,i))return!0;if(l&1024&&u&1024){if(l&1048576&&u&1048576&&Ub(n.symbol,t.symbol,i))return!0;if(l&2944&&u&2944&&n.value===t.value&&Ub($l(n.symbol),$l(t.symbol),i))return!0}if(l&32768&&(!je||u&(32768|16384)))return!0;if(l&65536&&(!je||u&65536))return!0;if(l&524288&&u&67108864)return!0;if(r===Tt||r===Vt){if(l&1)return!0;if(l&(8|256)&&!(l&1024)&&(u&32||r===Tt&&u&256&&u&1024))return!0}return!1}function $d(n,t,r){if(xp(n)&&(n=n.regularType),xp(t)&&(t=t.regularType),n===t)return!0;if(r!==Zr){if(r===Vt&&!(t.flags&131072)&&yy(t,n,r)||yy(n,t,r))return!0}else{if(n.flags!==t.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&t.flags&524288){var i=r.get(dx(n,t,0,r));if(i!==void 0)return!!(i&1)}return n.flags&469499904||t.flags&469499904?Uu(n,t,r,void 0):!1}function ox(n,t){return e.getObjectFlags(n)&2048&&FE(t.escapedName)}function Vb(n,t){for(;;){var r=xp(n)?n.regularType:e.getObjectFlags(n)&4&&n.node?qd(n.target,Oo(n)):n.flags&3145728?vu(n):n.flags&33554432?t?n.baseType:n.substitute:n.flags&25165824?zd(n,t):n;if(r=Xb(r)||r,r===n)break;n=r}return n}function Uu(n,t,r,i,l,u,S){var M,ge,Ge,We,ze,an=0,Tn=0,et=0,st=!1,Ct=0,Dt,Bt=[],cr=!1;e.Debug.assert(r!==Zr||!i,"no error reporting in identity checking");var Vr=Hr(n,t,!!i,l);if(Bt.length&&Xt(),st){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:t.id,depth:Tn});var yr=Hn(i||ce,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Ar(n),Ar(t));S&&(S.errors||(S.errors=[])).push(yr)}else if(M){if(u){var ba=u();ba&&(e.concatenateDiagnosticMessageChains(ba,M),M=ba)}var ca=void 0;if(l&&i&&!Vr&&n.symbol){var fi=$a(n.symbol);if(fi.originatingImport&&!e.isImportCall(fi.originatingImport)){var ei=Uu(Ir(fi.target),t,r,void 0);if(ei){var Ji=e.createDiagnosticForNode(fi.originatingImport,e.Diagnostics.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);ca=e.append(ca,Ji)}}}var yr=e.createDiagnosticForNodeFromMessageChain(i,M,ca);ge&&e.addRelatedInfo.apply(void 0,Mt([yr],ge,!1)),S&&(S.errors||(S.errors=[])).push(yr),(!S||!S.skipLogging)&&zr.add(yr)}return i&&S&&S.skipLogging&&Vr===0&&e.Debug.assert(!!S.errors,"missed opportunity to interact with error."),Vr!==0;function ni(tt){M=tt.errorInfo,Dt=tt.lastSkippedInfo,Bt=tt.incompatibleStack,Ct=tt.overrideNextErrorInfo,ge=tt.relatedInfo}function vo(){return{errorInfo:M,lastSkippedInfo:Dt,incompatibleStack:Bt.slice(),overrideNextErrorInfo:Ct,relatedInfo:ge?ge.slice():void 0}}function Po(tt,vt,jt,ar,Jr){Ct++,Dt=void 0,Bt.push([tt,vt,jt,ar,Jr])}function Xt(){var tt=Bt;Bt=[];var vt=Dt;if(Dt=void 0,tt.length===1){Ot.apply(void 0,tt[0]),vt&&Ra.apply(void 0,Mt([void 0],vt,!1));return}for(var jt="",ar=[];tt.length;){var Jr=tt.pop(),xr=Jr[0],Tr=Jr.slice(1);switch(xr.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{jt.indexOf("new ")===0&&(jt="("+jt+")");var kr=""+Tr[0];jt.length===0?jt=""+kr:e.isIdentifierText(kr,pe.target)?jt=jt+"."+kr:kr[0]==="["&&kr[kr.length-1]==="]"?jt=""+jt+kr:jt=jt+"["+kr+"]";break}case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(jt.length===0){var Wa=xr;xr.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Wa=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:xr.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Wa=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),ar.unshift([Wa,Tr[0],Tr[1]])}else{var Ii=xr.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||xr.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Ni=xr.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||xr.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";jt=""+Ii+jt+"("+Ni+")"}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{ar.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Tr[0],Tr[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{ar.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Tr[0],Tr[1],Tr[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: "+xr.code)}}jt?Ot(jt[jt.length-1]===")"?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,jt):ar.shift();for(var ao=0,$i=ar;ao<$i.length;ao++){var Hs=$i[ao],xr=Hs[0],Tr=Hs.slice(1),Ts=xr.elidedInCompatabilityPyramid;xr.elidedInCompatabilityPyramid=!1,Ot.apply(void 0,Mt([xr],Tr,!1)),xr.elidedInCompatabilityPyramid=Ts}vt&&Ra.apply(void 0,Mt([void 0],vt,!1))}function Ot(tt,vt,jt,ar,Jr){if(e.Debug.assert(!!i),Bt.length&&Xt(),tt.elidedInCompatabilityPyramid)return;M=e.chainDiagnosticMessages(M,tt,vt,jt,ar,Jr)}function xa(tt){e.Debug.assert(!!M),ge?ge.push(tt):ge=[tt]}function Ra(tt,vt,jt){Bt.length&&Xt();var ar=Gd(vt,jt),Jr=ar[0],xr=ar[1],Tr=vt,kr=Jr;if(Vm(vt)&&!jb(jt)&&(Tr=ed(vt),e.Debug.assert(!yo(Tr,jt),"generalized source shouldn't be assignable"),kr=qu(Tr)),jt.flags&262144){var Wa=tc(jt),Ii=void 0;Wa&&(yo(Tr,Wa)||(Ii=yo(vt,Wa)))?Ot(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ii?Jr:kr,xr,Ar(Wa)):(M=void 0,Ot(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,xr,kr))}tt||(r===Vt?tt=e.Diagnostics.Type_0_is_not_comparable_to_type_1:Jr===xr?tt=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:tt=e.Diagnostics.Type_0_is_not_assignable_to_type_1),Ot(tt,kr,xr)}function ta(tt,vt){var jt=yf(tt.symbol)?Ar(tt,tt.symbol.valueDeclaration):Ar(tt),ar=yf(vt.symbol)?Ar(vt,vt.symbol.valueDeclaration):Ar(vt);(oa===tt&&ht===vt||Za===tt&&Et===vt||Ga===tt&&Ht===vt||fS(!1)===tt&&Xr===vt)&&Ot(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,ar,jt)}function ri(tt,vt,jt){return Ki(tt)?tt.target.readonly&&A_(vt)?(jt&&Ot(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ar(tt),Ar(vt)),!1):Ki(vt)||zl(vt):Th(tt)&&A_(vt)?(jt&&Ot(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ar(tt),Ar(vt)),!1):Ki(vt)?zl(tt):!0}function Hr(tt,vt,jt,ar,Jr){if(jt===void 0&&(jt=!1),Jr===void 0&&(Jr=0),tt.flags&524288&&vt.flags&131068)return yy(tt,vt,r,jt?Ot:void 0)?-1:(As(tt,vt,0,!!(e.getObjectFlags(tt)&2048)),0);var xr=Vb(tt,!1),Tr=Vb(vt,!0);if(xr===Tr)return-1;if(r===Zr)return Ui(xr,Tr);if(xr.flags&262144&&vp(xr)===Tr)return-1;if(Tr.flags&1048576&&xr.flags&524288&&Tr.types.length<=3&&xs(Tr,98304)){var kr=Jm(Tr,~98304);if(kr.flags&(1048576|131072)||(Tr=Vb(kr,!0)),xr===kr)return-1}if(r===Vt&&!(Tr.flags&131072)&&yy(Tr,xr,r)||yy(xr,Tr,r,jt?Ot:void 0))return-1;var Wa=!!(e.getObjectFlags(xr)&2048),Ii=!(Jr&2)&&Dp(xr)&&e.getObjectFlags(xr)&16384;if(Ii&&_n(xr,Tr,jt))return jt&&Ra(ar,xr,vt.aliasSymbol?vt:Tr),0;var Ni=r!==Vt&&!(Jr&2)&&xr.flags&(131068|524288|2097152)&&xr!==fs&&Tr.flags&(524288|2097152)&&lx(Tr)&&(So(xr).length>0||PT(xr));if(Ni&&!n0(xr,Tr,Wa)){if(jt){var ao=Ar(tt.aliasSymbol?tt:xr),$i=Ar(vt.aliasSymbol?vt:Tr),Hs=qt(xr,0),Ts=qt(xr,1);Hs.length>0&&Hr(_o(Hs[0]),Tr,!1)||Ts.length>0&&Hr(_o(Ts[0]),Tr,!1)?Ot(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ao,$i):Ot(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,ao,$i)}return 0}qi(xr,Tr);var Zs=0,cs=vo();if((xr.flags&3145728||Tr.flags&3145728)&&(Zs=Xx(xr)*Xx(Tr)>=4?Kt(xr,Tr,jt,Jr|8):nr(xr,Tr,jt,Jr|8)),!Zs&&!(xr.flags&1048576)&&(xr.flags&469499904||Tr.flags&469499904)&&((Zs=Kt(xr,Tr,jt,Jr))&&ni(cs)),!Zs&&xr.flags&(2097152|262144)){var us=Qv(xr.flags&2097152?xr.types:[xr],!!(Tr.flags&1048576));us&&(xr.flags&2097152||Tr.flags&1048576)&&(nf(us,function(ut){return ut!==xr})&&((Zs=Hr(us,Tr,!1,void 0,Jr))&&ni(cs)))}return Zs&&!cr&&(Tr.flags&2097152&&(Ii||Ni)||xb(Tr)&&!zl(Tr)&&!Ki(Tr)&&xr.flags&2097152&&Ul(xr).flags&3670016&&!e.some(xr.types,function(ut){return!!(e.getObjectFlags(ut)&524288)}))&&(cr=!0,Zs&=Kt(xr,Tr,jt,4),cr=!1),As(xr,Tr,Zs,Wa),Zs;function As(ut,Nr,va,ia){if(!va&&jt){var ua=!!Xb(tt),ti=!!Xb(vt);ut=tt.aliasSymbol||ua?tt:ut,Nr=vt.aliasSymbol||ti?vt:Nr;var Ha=Ct>0;if(Ha&&Ct--,ut.flags&524288&&Nr.flags&524288){var Di=M;ri(ut,Nr,jt),M!==Di&&(Ha=!!M)}if(ut.flags&524288&&Nr.flags&131068)ta(ut,Nr);else if(ut.symbol&&ut.flags&524288&&fs===ut)Ot(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ia&&Nr.flags&2097152){var Ka=Nr.types,Ba=kp(T.IntrinsicAttributes,i),po=kp(T.IntrinsicClassAttributes,i);if(Ba!==K&&po!==K&&(e.contains(Ka,Ba)||e.contains(Ka,po)))return va}else M=sn(M,vt);if(!ar&&Ha)return Dt=[ut,Nr],va;Ra(ar,ut,Nr)}}}function qi(tt,vt){if(!e.tracing)return;if(tt.flags&3145728&&vt.flags&3145728){var jt=tt,ar=vt;if(jt.objectFlags&ar.objectFlags&65536)return;var Jr=jt.types.length,xr=ar.types.length;Jr*xr>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:tt.id,sourceSize:Jr,targetId:vt.id,targetSize:xr,pos:i==null?void 0:i.pos,end:i==null?void 0:i.end})}}function Ui(tt,vt){if(tt.flags!==vt.flags)return 0;if(tt.flags&67358815)return-1;if(qi(tt,vt),tt.flags&3145728){var jt=gr(tt,vt);return jt&&(jt&=gr(vt,tt)),jt}return Kt(tt,vt,!1,0)}function nt(tt,vt){var jt=function(ar,Jr){var xr;Jr=Ul(Jr);var Tr=Jr.flags&3145728?tg(Jr,vt):Ld(Jr,vt),kr=Tr&&Ir(Tr)||((xr=rc(Jr,vt))===null||xr===void 0?void 0:xr.type)||Ln;return e.append(ar,kr)};return Ea(e.reduceLeft(tt,jt,void 0)||e.emptyArray)}function _n(tt,vt,jt){var ar;if(!ky(vt)||!vn&&e.getObjectFlags(vt)&8192)return!1;var Jr=!!(e.getObjectFlags(tt)&2048);if((r===Tt||r===Vt)&&(Hm(fs,vt)||!Jr&&Zd(vt)))return!1;var xr=vt,Tr;vt.flags&1048576&&(xr=ZA(tt,vt,Hr)||uR(vt),Tr=xr.flags&1048576?xr.types:[xr]);for(var kr=function($i){if(hr($i,tt.symbol)&&!ox(tt,$i)){if(!VE(xr,$i.escapedName,Jr)){if(jt){var Hs=Vl(xr,ky);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent)){$i.valueDeclaration&&e.isJsxAttribute($i.valueDeclaration)&&e.getSourceFileOfNode(i)===e.getSourceFileOfNode($i.valueDeclaration.name)&&(i=$i.valueDeclaration.name);var Ts=Xa($i),Zs=Uw(Ts,Hs),cs=Zs?Xa(Zs):void 0;cs?Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ts,Ar(Hs),cs):Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ts,Ar(Hs))}else{var us=((ar=tt.symbol)===null||ar===void 0?void 0:ar.declarations)&&e.firstOrUndefined(tt.symbol.declarations),cs=void 0;if($i.valueDeclaration&&e.findAncestor($i.valueDeclaration,function(va){return va===us})&&e.getSourceFileOfNode(us)===e.getSourceFileOfNode(i)){var As=$i.valueDeclaration;e.Debug.assertNode(As,e.isObjectLiteralElementLike),i=As;var ut=As.name;e.isIdentifier(ut)&&(cs=zE(ut,Hs))}cs!==void 0?Ot(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Xa($i),Ar(Hs),cs):Ot(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Xa($i),Ar(Hs))}}return{value:!0}}if(Tr&&!Hr(Ir($i),nt(Tr,$i.escapedName),jt))return jt&&Po(e.Diagnostics.Types_of_property_0_are_incompatible,Xa($i)),{value:!0}}},Wa=0,Ii=So(tt);Wa<Ii.length;Wa++){var Ni=Ii[Wa],ao=kr(Ni);if(typeof ao=="object")return ao.value}return!1}function hr(tt,vt){return tt.valueDeclaration&&vt.valueDeclaration&&tt.valueDeclaration.parent===vt.valueDeclaration}function gr(tt,vt){for(var jt=-1,ar=tt.types,Jr=0,xr=ar;Jr<xr.length;Jr++){var Tr=xr[Jr],kr=Mr(Tr,vt,!1);if(!kr)return 0;jt&=kr}return jt}function Mr(tt,vt,jt){var ar=vt.types;if(vt.flags&1048576){if(Zp(ar,tt))return-1;var Jr=Fx(vt,tt);if(Jr){var xr=Hr(tt,Jr,!1);if(xr)return xr}}for(var Tr=0,kr=ar;Tr<kr.length;Tr++){var Wa=kr[Tr],xr=Hr(tt,Wa,!1);if(xr)return xr}if(jt){var Ii=sx(tt,vt,Hr);Hr(tt,Ii||ar[ar.length-1],!0)}return 0}function Br(tt,vt,jt,ar){for(var Jr=-1,xr=vt.types,Tr=0,kr=xr;Tr<kr.length;Tr++){var Wa=kr[Tr],Ii=Hr(tt,Wa,jt,void 0,ar);if(!Ii)return 0;Jr&=Ii}return Jr}function Kr(tt,vt,jt,ar){var Jr=tt.types;if(tt.flags&1048576&&Zp(Jr,vt))return-1;for(var xr=Jr.length,Tr=0;Tr<xr;Tr++){var kr=Hr(Jr[Tr],vt,jt&&Tr===xr-1,void 0,ar);if(kr)return kr}return 0}function fa(tt,vt){return tt.flags&1048576&&vt.flags&1048576&&!(tt.types[0].flags&32768)&&vt.types[0].flags&32768?Jm(vt,~32768):vt}function Qn(tt,vt,jt,ar){for(var Jr=-1,xr=tt.types,Tr=fa(tt,vt),kr=0;kr<xr.length;kr++){var Wa=xr[kr];if(Tr.flags&1048576&&xr.length>=Tr.types.length&&xr.length%Tr.types.length===0){var Ii=Hr(Wa,Tr.types[kr%Tr.types.length],!1,void 0,ar);if(Ii){Jr&=Ii;continue}}var Ni=Hr(Wa,vt,jt,void 0,ar);if(!Ni)return 0;Jr&=Ni}return Jr}function kt(tt,vt,jt,ar,Jr){if(tt===void 0&&(tt=e.emptyArray),vt===void 0&&(vt=e.emptyArray),jt===void 0&&(jt=e.emptyArray),tt.length!==vt.length&&r===Zr)return 0;for(var xr=tt.length<=vt.length?tt.length:vt.length,Tr=-1,kr=0;kr<xr;kr++){var Wa=kr<jt.length?jt[kr]:1,Ii=Wa&7;if(Ii!==4){var Ni=tt[kr],ao=vt[kr],$i=-1;if(Wa&8?$i=r===Zr?Hr(Ni,ao,!1):pg(Ni,ao):Ii===1?$i=Hr(Ni,ao,ar,void 0,Jr):Ii===2?$i=Hr(ao,Ni,ar,void 0,Jr):Ii===3?($i=Hr(ao,Ni,!1),$i||($i=Hr(Ni,ao,ar,void 0,Jr))):($i=Hr(Ni,ao,ar,void 0,Jr),$i&&($i&=Hr(ao,Ni,ar,void 0,Jr))),!$i)return 0;Tr&=$i}}return Tr}function Kt(tt,vt,jt,ar){if(st)return 0;var Jr=dx(tt,vt,ar|(cr?16:0),r),xr=r.get(Jr);if(xr!==void 0&&!(jt&&xr&2&&!(xr&4))){if(ye){var Tr=xr&24;Tr&8&&si(tt,em(Cr)),Tr&16&&si(tt,em(ma))}return xr&1?-1:0}if(!Ge)Ge=[],We=[],ze=[];else{for(var kr=Jr.split(",").map(function(Ts){return Ts.replace(/-\d+/g,function(Zs,cs){var us=e.length(Jr.slice(0,cs).match(/[-=]/g)||void 0);return"="+us})}).join(","),Wa=0;Wa<an;Wa++)if(Jr===Ge[Wa]||kr===Ge[Wa])return 3;if(Tn===100)return st=!0,0}var Ii=an;Ge[an]=Jr,an++,We[Tn]=tt,ze[Tn]=vt,Tn++;var Ni=et;!(et&1)&&Jb(tt,We,Tn)&&(et|=1),!(et&2)&&Jb(vt,ze,Tn)&&(et|=2);var ao,$i=0;ye&&(ao=ye,ye=function(Ts){return $i|=Ts?16:8,ao(Ts)}),et===3&&(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:tt.id,sourceIdStack:We.map(function(Ts){return Ts.id}),targetId:vt.id,targetIdStack:ze.map(function(Ts){return Ts.id}),depth:Tn}));var Hs=et!==3?nr(tt,vt,jt,ar):3;if(ye&&(ye=ao),et=Ni,Tn--,Hs){if(Hs===-1||Tn===0){if(Hs===-1||Hs===3)for(var Wa=Ii;Wa<an;Wa++)r.set(Ge[Wa],1|$i);an=Ii}}else r.set(Jr,(jt?4:0)|2|$i),an=Ii;return Hs}function nr(tt,vt,jt,ar){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:tt.id,targetId:vt.id});var Jr=ur(tt,vt,jt,ar);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Jr}function ur(tt,vt,jt,ar){if(ar&4)return is(tt,vt,jt,void 0,0);if(ar&8){if(tt.flags&1048576)return r===Vt?Kr(tt,vt,jt&&!(tt.flags&131068),ar&~8):Qn(tt,vt,jt&&!(tt.flags&131068),ar&~8);if(vt.flags&1048576)return Mr(wh(tt),vt,jt&&!(tt.flags&131068)&&!(vt.flags&131068));if(vt.flags&2097152)return Br(wh(tt),vt,jt,2);if(r===Vt&&vt.flags&131068){var Jr=e.sameMap(tt.types,uh);if(Jr!==tt.types&&(tt=Go(Jr),!(tt.flags&2097152)))return Hr(tt,vt,!1)}return Kr(tt,vt,!1,1)}var xr=tt.flags&vt.flags;if(r===Zr&&!(xr&524288)){if(xr&4194304)return Hr(tt.type,vt.type,!1);var Tr=0;return xr&8388608&&((Tr=Hr(tt.objectType,vt.objectType,!1))&&(Tr&=Hr(tt.indexType,vt.indexType,!1)))||xr&16777216&&(tt.root.isDistributive===vt.root.isDistributive&&((Tr=Hr(tt.checkType,vt.checkType,!1))&&((Tr&=Hr(tt.extendsType,vt.extendsType,!1))&&((Tr&=Hr(rp(tt),rp(vt),!1))&&(Tr&=Hr(ap(tt),ap(vt),!1))))))?Tr:xr&33554432?Hr(tt.substitute,vt.substitute,!1):0}var kr,Wa,Ii=!1,Ni=vo();if(tt.flags&(524288|16777216)&&tt.aliasSymbol&&tt.aliasTypeArguments&&tt.aliasSymbol===vt.aliasSymbol&&!(tt.aliasTypeArgumentsContainsMarker||vt.aliasTypeArgumentsContainsMarker)){var ao=cx(tt.aliasSymbol);if(ao===e.emptyArray)return 1;var $i=nD(tt.aliasTypeArguments,vt.aliasTypeArguments,ao,ar);if($i!==void 0)return $i}if(_x(tt)&&!tt.target.readonly&&(kr=Hr(Oo(tt)[0],vt))||_x(vt)&&(vt.target.readonly||A_(tc(tt)||tt))&&(kr=Hr(tt,Oo(vt)[0])))return kr;if(vt.flags&262144){if(e.getObjectFlags(tt)&32&&!tt.declaration.nameType&&Hr(yd(vt),yu(tt))&&!(_u(tt)&4)){var Hs=Kc(tt),Ts=kc(vt,Mu(tt));if(kr=Hr(Hs,Ts,jt))return kr}}else if(vt.flags&4194304){var Zs=vt.type;if(tt.flags&4194304&&(kr=Hr(Zs,tt.type,!1)))return kr;if(Ki(Zs)){if(kr=Hr(tt,bS(Zs),jt))return kr}else{var cs=Qg(Zs);if(cs&&Hr(tt,yd(cs,vt.stringsOnly),jt)===-1)return-1}}else if(vt.flags&8388608){if(tt.flags&8388608){if((kr=Hr(tt.objectType,vt.objectType,jt))&&(kr&=Hr(tt.indexType,vt.indexType,jt)),kr)return ni(Ni),kr;jt&&(Wa=M)}if(r===Tt||r===Vt){var us=vt.objectType,As=vt.indexType,ut=tc(us)||us,Nr=tc(As)||As;if(!vm(ut)&&!Fm(Nr)){var va=4|(ut!==us?2:0),cs=tp(ut,Nr,va);if(cs){if(jt&&Wa&&ni(Ni),kr=Hr(tt,cs,jt))return kr;jt&&Wa&&M&&(M=HT([Wa])<=HT([M])?Wa:M)}}}jt&&(Wa=void 0)}else if(Dc(vt)&&!vt.declaration.nameType){var ia=Kc(vt),ua=_u(vt);if(!(ua&8)){if(ia.flags&8388608&&ia.objectType===tt&&ia.indexType===Mu(vt))return-1;if(!Dc(tt)){var ti=yu(vt),Ha=yd(tt,void 0,!0),Di=ua&4,Ka=Di?Pm(ti,Ha):void 0;if(Di?!(Ka.flags&131072):Hr(ti,Ha)){var Hs=Kc(vt),Ba=Mu(vt),po=Jm(Hs,~98304);if(po.flags&8388608&&po.indexType===Ba){if(kr=Hr(tt,po.objectType,jt))return kr}else{var Jo=Ka?Go([Ka,Ba]):Ba,Ts=kc(tt,Jo);if(kr=Hr(Ts,Hs,jt))return kr}}Wa=M,ni(Ni)}}}else if(vt.flags&16777216){var ds=vt,ts=!yo(T_(ds.checkType),T_(ds.extendsType)),Xo=!ts&&pC(ds),ol=void 0,Yl=Tp(ds.root.checkType);if(ds.root.isDistributive&&Yl.flags&262144){var Ql=Lb(Yl);ol=Sm(Yl,Ql,ds.mapper),Ql.mapper=ol}var Lc=void 0;if((ts||(Lc=Hr(tt,ol?si(La(ds.root.node.trueType),ol):rp(ds),!1)))&&(Xo||(Lc=(Lc||3)&Hr(tt,ol?si(La(ds.root.node.falseType),ol):ap(ds),!1))),Lc)return ni(Ni),Lc}else if(vt.flags&134217728){tt.flags&134217728&&si(tt,em(ma));var dm=Ix(tt,vt);if(dm&&e.every(dm,function(Bg,Hh){return G0(Bg,vt.types[Hh])}))return-1}if(tt.flags&8650752){if(!(tt.flags&8388608&&vt.flags&8388608)){var cs=vp(tt);if(!cs||tt.flags&262144&&cs.flags&1){if(kr=Hr(xt,Jm(vt,~67108864)))return ni(Ni),kr}else{if(kr=Hr(cs,vt,!1,void 0,ar))return ni(Ni),kr;if(kr=Hr(Rc(cs,tt),vt,jt&&!(vt.flags&tt.flags&262144),void 0,ar))return ni(Ni),kr}}}else if(tt.flags&4194304){if(kr=Hr(rr,vt,jt))return ni(Ni),kr}else if(tt.flags&134217728){if(!(vt.flags&134217728)){var Np=tc(tt),cs=Np&&Np!==tt?Np:ht;if(kr=Hr(cs,vt,jt))return ni(Ni),kr}}else if(tt.flags&268435456)if(vt.flags&268435456&&tt.symbol===vt.symbol){if(kr=Hr(tt.type,vt.type,jt))return ni(Ni),kr}else{var cs=tc(tt);if(cs&&(kr=Hr(cs,vt,jt)))return ni(Ni),kr}else if(tt.flags&16777216){if(vt.flags&16777216){var Op=tt.root.inferTypeParameters,Nf=tt.extendsType,fm=void 0;if(Op){var sf=yg(Op,void 0,0,Hr);Id(sf.inferences,vt.extendsType,Nf,512|1024),Nf=si(Nf,sf.mapper),fm=sf.mapper}if(Yd(Nf,vt.extendsType)&&(Hr(tt.checkType,vt.checkType)||Hr(vt.checkType,tt.checkType))&&((kr=Hr(si(rp(tt),fm),rp(vt),jt))&&(kr&=Hr(ap(tt),ap(vt),jt)),kr))return ni(Ni),kr}else{var nh=i_(tt);if(nh&&(kr=Hr(nh,vt,jt)))return ni(Ni),kr}var Ic=$g(tt);if(Ic&&(kr=Hr(Ic,vt,jt)))return ni(Ni),kr}else{if(r!==cn&&r!==Sn&&a_(vt)&&Zd(tt))return-1;if(Dc(vt))return Dc(tt)&&(kr=Ia(tt,vt,jt))?(ni(Ni),kr):0;var pm=!!(tt.flags&131068);if(r!==Zr)tt=Ul(tt);else if(Dc(tt))return 0;if(e.getObjectFlags(tt)&4&&e.getObjectFlags(vt)&4&&tt.target===vt.target&&!Ki(tt)&&!(e.getObjectFlags(tt)&4096||e.getObjectFlags(vt)&4096)){var ao=Hb(tt.target);if(ao===e.emptyArray)return 1;var $i=nD(Oo(tt),Oo(vt),ao,ar);if($i!==void 0)return $i}else{if(Th(vt)?zl(tt)||Ki(tt):zl(vt)&&Ki(tt)&&!tt.target.readonly)return r!==Zr?Hr(Bs(tt,Et)||lt,Bs(vt,Et)||lt,jt):0;if((r===cn||r===Sn)&&Zd(vt)&&e.getObjectFlags(vt)&16384&&!Zd(tt))return 0}if(tt.flags&(524288|2097152)&&vt.flags&524288){var Mv=jt&&M===Ni.errorInfo&&!pm;if(kr=is(tt,vt,Mv,void 0,ar),kr&&(kr&=dl(tt,vt,0,Mv),kr&&(kr&=dl(tt,vt,1,Mv),kr&&(kr&=Ua(tt,vt,pm,Mv,ar)))),Ii&&kr)M=Wa||M||Ni.errorInfo;else if(kr)return kr}if(tt.flags&(524288|2097152)&&vt.flags&1048576){var $A=Jm(vt,524288|2097152|33554432);if($A.flags&1048576){var eD=Ti(tt,$A);if(eD)return eD}}}return 0;function HT(Bg){return Bg?e.reduceLeft(Bg,function(Hh,Kh){return Hh+1+HT(Kh.next)},0):0}function nD(Bg,Hh,Kh,dR){if(kr=kt(Bg,Hh,Kh,jt,dR))return kr;if(e.some(Kh,function(KT){return!!(KT&24)})){Wa=void 0,ni(Ni);return}var tD=Hh&&r0(Hh,Kh);if(Ii=!tD,Kh!==e.emptyArray&&!tD){if(Ii&&!(jt&&e.some(Kh,function(KT){return(KT&7)===0})))return 0;Wa=M,ni(Ni)}}}function Cr(tt){return ye&&(tt===Qr||tt===ci||tt===Mi)&&ye(!1),tt}function ma(tt){return ye&&(tt===Qr||tt===ci||tt===Mi)&&ye(!0),tt}function Ia(tt,vt,jt){var ar=r===Vt||(r===Zr?_u(tt)===_u(vt):Rm(tt)<=Rm(vt));if(ar){var Jr,xr=yu(vt),Tr=si(yu(tt),em(Rm(tt)<0?Cr:ma));if(Jr=Hr(xr,Tr,jt)){var kr=vc([Mu(tt)],[Mu(vt)]);if(si(Qf(tt),kr)===si(Qf(vt),kr))return Jr&Hr(si(Kc(tt),kr),Kc(vt),jt)}}return 0}function Ti(tt,vt){var jt=So(tt),ar=Mx(jt,vt);if(!ar)return 0;for(var Jr=1,xr=0,Tr=ar;xr<Tr.length;xr++){var kr=Tr[xr];if(Jr*=lk(kl(kr)),Jr>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:tt.id,targetId:vt.id,numCombinations:Jr}),0}for(var Wa=new Array(ar.length),Ii=new e.Set,Ni=0;Ni<ar.length;Ni++){var kr=ar[Ni],ao=kl(kr);Wa[Ni]=ao.flags&1048576?ao.types:[ao],Ii.add(kr.escapedName)}for(var $i=e.cartesianProduct(Wa),Hs=[],Ts=function(ua){var ti=!1;e:for(var Ha=0,Di=vt.types;Ha<Di.length;Ha++){for(var Ka=Di[Ha],Ba=function(ds){var ts=ar[ds],Xo=Rn(Ka,ts.escapedName);if(!Xo)return"continue-outer";if(ts===Xo)return"continue";var ol=zo(tt,vt,ts,Xo,function(Yl){return ua[ds]},!1,0,je||r===Vt);if(!ol)return"continue-outer"},po=0;po<ar.length;po++){var Jo=Ba(po);switch(Jo){case"continue-outer":continue e}}e.pushIfUnique(Hs,Ka,e.equateValues),ti=!0}if(!ti)return{value:0}},Zs=0,cs=$i;Zs<cs.length;Zs++){var us=cs[Zs],As=Ts(us);if(typeof As=="object")return As.value}for(var ut=-1,Nr=0,va=Hs;Nr<va.length;Nr++){var ia=va[Nr];if(ut&=is(tt,ia,!1,Ii,0),ut&&(ut&=dl(tt,ia,0,!1),ut&&(ut&=dl(tt,ia,1,!1),ut&&!(Ki(tt)&&Ki(ia))&&(ut&=Ua(tt,ia,!1,!1,0)))),!ut)return ut}return ut}function Aa(tt,vt){if(!vt||tt.length===0)return tt;for(var jt,ar=0;ar<tt.length;ar++)vt.has(tt[ar].escapedName)?jt||(jt=tt.slice(0,ar)):jt&&jt.push(tt[ar]);return jt||tt}function fo(tt,vt,jt,ar,Jr){var xr=je&&!!(e.getCheckFlags(vt)&48),Tr=Yi(kl(vt),!1,xr),kr=jt(tt);return Hr(kr,Tr,ar,void 0,Jr)}function zo(tt,vt,jt,ar,Jr,xr,Tr,kr){var Wa=e.getDeclarationModifierFlagsFromSymbol(jt),Ii=e.getDeclarationModifierFlagsFromSymbol(ar);if(Wa&8||Ii&8){if(jt.valueDeclaration!==ar.valueDeclaration)return xr&&(Wa&8&&Ii&8?Ot(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Xa(ar)):Ot(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Xa(ar),Ar(Wa&8?tt:vt),Ar(Wa&8?vt:tt))),0}else if(Ii&16){if(!s0(jt,ar))return xr&&Ot(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Xa(ar),Ar(xm(jt)||tt),Ar(xm(ar)||vt)),0}else if(Wa&16)return xr&&Ot(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Xa(ar),Ar(tt),Ar(vt)),0;var Ni=fo(jt,ar,Jr,xr,Tr);return Ni?!kr&&jt.flags&16777216&&!(ar.flags&16777216)?(xr&&Ot(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Xa(ar),Ar(tt),Ar(vt)),0):Ni:(xr&&Po(e.Diagnostics.Types_of_property_0_are_incompatible,Xa(ar)),0)}function Wo(tt,vt,jt,ar){var Jr=!1;if(jt.valueDeclaration&&e.isNamedDeclaration(jt.valueDeclaration)&&e.isPrivateIdentifier(jt.valueDeclaration.name)&&tt.symbol&&tt.symbol.flags&32){var xr=jt.valueDeclaration.name.escapedText,Tr=e.getSymbolNameForPrivateIdentifier(tt.symbol,xr);if(Tr&&Rn(tt,Tr)){var kr=e.factory.getDeclarationName(tt.symbol.valueDeclaration),Wa=e.factory.getDeclarationName(vt.symbol.valueDeclaration);Ot(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,H(xr),H(kr.escapedText===""?ue:kr),H(Wa.escapedText===""?ue:Wa));return}}var Ii=e.arrayFrom(dE(tt,vt,ar,!1));if((!l||l.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&l.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Jr=!0),Ii.length===1){var Ni=Xa(jt);Ot.apply(void 0,Mt([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,Ni],Gd(tt,vt),!1)),e.length(jt.declarations)&&xa(e.createDiagnosticForNode(jt.declarations[0],e.Diagnostics._0_is_declared_here,Ni)),Jr&&M&&Ct++}else ri(tt,vt,!1)&&(Ii.length>5?Ot(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ar(tt),Ar(vt),e.map(Ii.slice(0,4),function(ao){return Xa(ao)}).join(", "),Ii.length-4):Ot(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ar(tt),Ar(vt),e.map(Ii,function(ao){return Xa(ao)}).join(", ")),Jr&&M&&Ct++)}function is(tt,vt,jt,ar,Jr){if(r===Zr)return il(tt,vt,ar);var xr=-1;if(Ki(vt)){if(zl(tt)||Ki(tt)){if(!vt.target.readonly&&(Th(tt)||Ki(tt)&&tt.target.readonly))return 0;var Tr=ep(tt),kr=ep(vt),Wa=Ki(tt)?tt.target.combinedFlags&4:4,Ii=vt.target.combinedFlags&4,Ni=Ki(tt)?tt.target.minLength:0,ao=vt.target.minLength;if(!Wa&&Tr<ao)return jt&&Ot(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,Tr,ao),0;if(!Ii&&kr<Ni)return jt&&Ot(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,Ni,kr),0;if(!Ii&&(Wa||kr<Tr))return jt&&(Ni<ao?Ot(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,ao):Ot(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,kr)),0;for(var $i=Oo(tt),Hs=Oo(vt),Ts=Math.min(Ki(tt)?ES(tt.target,11):0,ES(vt.target,11)),Zs=Math.min(Ki(tt)?m_(tt.target,11):0,Ii?m_(vt.target,11):0),cs=!!ar,us=0;us<kr;us++){var As=us<kr-Zs?us:us+Tr-kr,ut=Ki(tt)&&(us<Ts||us>=kr-Zs)?tt.target.elementFlags[As]:4,Nr=vt.target.elementFlags[us];if(Nr&8&&!(ut&8))return jt&&Ot(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,us),0;if(ut&8&&!(Nr&12))return jt&&Ot(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,As,us),0;if(Nr&1&&!(ut&1))return jt&&Ot(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,us),0;if(cs&&((ut&12||Nr&12)&&(cs=!1),cs&&(ar==null?void 0:ar.has(""+us))))continue;var va=Ki(tt)?us<Ts||us>=kr-Zs?jm($i[As],!!(ut&Nr&2)):D_(tt,Ts,Zs)||Wr:$i[0],ia=Hs[us],ua=ut&8&&Nr&4?Ll(ia):jm(ia,!!(Nr&2)),ti=Hr(va,ua,jt,void 0,Jr);if(!ti)return jt&&(kr>1||Tr>1)&&(us<Ts||us>=kr-Zs||Tr-Ts-Zs===1?Po(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,As,us):Po(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ts,Tr-Zs-1,us)),0;xr&=ti}return xr}if(vt.target.combinedFlags&12)return 0}var Ha=(r===cn||r===Sn)&&!Dp(tt)&&!Yb(tt)&&!Ki(tt),Di=fE(tt,vt,Ha,!1);if(Di)return jt&&Wo(tt,vt,Di,Ha),0;if(Dp(vt))for(var Ka=0,Ba=Aa(So(tt),ar);Ka<Ba.length;Ka++){var po=Ba[Ka];if(!Ld(vt,po.escapedName)){var va=Ir(po);if(!(va.flags&32768))return jt&&Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1,Xa(po),Ar(vt)),0}}for(var Jo=So(vt),ds=Ki(tt)&&Ki(vt),ts=0,Xo=Aa(Jo,ar);ts<Xo.length;ts++){var ol=Xo[ts],Yl=ol.escapedName;if(!(ol.flags&4194304)&&(!ds||tf(Yl)||Yl==="length")){var po=Rn(tt,Yl);if(po&&po!==ol){var ti=zo(tt,vt,po,ol,kl,jt,Jr,r===Vt);if(!ti)return 0;xr&=ti}}}return xr}function il(tt,vt,jt){if(!(tt.flags&524288&&vt.flags&524288))return 0;var ar=Aa(Kd(tt),jt),Jr=Aa(Kd(vt),jt);if(ar.length!==Jr.length)return 0;for(var xr=-1,Tr=0,kr=ar;Tr<kr.length;Tr++){var Wa=kr[Tr],Ii=Ld(vt,Wa.escapedName);if(!Ii)return 0;var Ni=qb(Wa,Ii,Hr);if(!Ni)return 0;xr&=Ni}return xr}function dl(tt,vt,jt,ar){var Jr,xr;if(r===Zr)return Ip(tt,vt,jt);if(vt===ea||tt===ea)return-1;var Tr=tt.symbol&&Wu(tt.symbol.valueDeclaration),kr=vt.symbol&&Wu(vt.symbol.valueDeclaration),Wa=qt(tt,Tr&&jt===1?0:jt),Ii=qt(vt,kr&&jt===1?0:jt);if(jt===1&&Wa.length&&Ii.length){var Ni=!!(Wa[0].flags&4),ao=!!(Ii[0].flags&4);if(Ni&&!ao)return ar&&Ot(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Ao(Wa[0],Ii[0],ar))return 0}var $i=-1,Hs=vo(),Ts=jt===1?of:Qs,Zs=e.getObjectFlags(tt),cs=e.getObjectFlags(vt);if(Zs&64&&cs&64&&tt.symbol===vt.symbol)for(var us=0;us<Ii.length;us++){var As=el(Wa[us],Ii[us],!0,ar,Ts(Wa[us],Ii[us]));if(!As)return 0;$i&=As}else if(Wa.length===1&&Ii.length===1){var ut=r===Vt||!!pe.noStrictGenericChecks,Nr=e.first(Wa),va=e.first(Ii);if($i=el(Nr,va,ut,ar,Ts(Nr,va)),!$i&&ar&&jt===1&&Zs&cs&&(((Jr=va.declaration)===null||Jr===void 0?void 0:Jr.kind)===169||((xr=Nr.declaration)===null||xr===void 0?void 0:xr.kind)===169)){var ia=function(Jo){return jc(Jo,void 0,262144,jt)};return Ot(e.Diagnostics.Type_0_is_not_assignable_to_type_1,ia(Nr),ia(va)),Ot(e.Diagnostics.Types_of_construct_signatures_are_incompatible),$i}}else{e:for(var ua=0,ti=Ii;ua<ti.length;ua++){for(var Ha=ti[ua],Di=ar,Ka=0,Ba=Wa;Ka<Ba.length;Ka++){var po=Ba[Ka],As=el(po,Ha,!0,Di,Ts(po,Ha));if(As){$i&=As,ni(Hs);continue e}Di=!1}return Di&&Ot(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Ar(tt),jc(Ha,void 0,void 0,jt)),0}}return $i}function Qs(tt,vt){return tt.parameters.length===0&&vt.parameters.length===0?function(jt,ar){return Po(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ar(jt),Ar(ar))}:function(jt,ar){return Po(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Ar(jt),Ar(ar))}}function of(tt,vt){return tt.parameters.length===0&&vt.parameters.length===0?function(jt,ar){return Po(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ar(jt),Ar(ar))}:function(jt,ar){return Po(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Ar(jt),Ar(ar))}}function el(tt,vt,jt,ar,Jr){return Gb(jt?og(tt):tt,jt?og(vt):vt,r===Sn?8:0,ar,Ot,Jr,Hr,em(ma))}function Ip(tt,vt,jt){var ar=qt(tt,jt),Jr=qt(vt,jt);if(ar.length!==Jr.length)return 0;for(var xr=-1,Tr=0;Tr<ar.length;Tr++){var kr=by(ar[Tr],Jr[Tr],!1,!1,!1,Hr);if(!kr)return 0;xr&=kr}return xr}function Gg(tt,vt,jt){for(var ar=-1,Jr=vt.keyType,xr=tt.flags&2097152?ch(tt):Kd(tt),Tr=0,kr=xr;Tr<kr.length;Tr++){var Wa=kr[Tr];if(ox(tt,Wa))continue;if(_i(Mm(Wa,8576),Jr)){var Ii=kl(Wa),Ni=$n||Ii.flags&32768||Jr===Et||!(Wa.flags&16777216)?Ii:Dl(Ii,524288),ao=Hr(Ni,vt.type,jt);if(!ao)return jt&&Ot(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Xa(Wa)),0;ar&=ao}}for(var $i=0,Hs=vi(tt);$i<Hs.length;$i++){var Ts=Hs[$i];if(_i(Ts.keyType,Jr)){var ao=Wh(Ts,vt,jt);if(!ao)return 0;ar&=ao}}return ar}function Wh(tt,vt,jt){var ar=Hr(tt.type,vt.type,jt);return!ar&&jt&&(tt.keyType===vt.keyType?Ot(e.Diagnostics._0_index_signatures_are_incompatible,Ar(tt.keyType)):Ot(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Ar(tt.keyType),Ar(vt.keyType))),ar}function Ua(tt,vt,jt,ar,Jr){if(r===Zr)return ws(tt,vt);for(var xr=vi(vt),Tr=e.some(xr,function($i){return $i.keyType===ht}),kr=-1,Wa=0,Ii=xr;Wa<Ii.length;Wa++){var Ni=Ii[Wa],ao=!jt&&Tr&&Ni.type.flags&1?-1:Dc(tt)&&Tr?Hr(Kc(tt),Ni.type,ar):zi(tt,Ni,ar,Jr);if(!ao)return 0;kr&=ao}return kr}function zi(tt,vt,jt,ar){var Jr=Us(tt,vt.keyType);return Jr?Wh(Jr,vt,jt):!(ar&1)&&k_(tt)?Gg(tt,vt,jt):(jt&&Ot(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Ar(vt.keyType),Ar(tt)),0)}function ws(tt,vt){var jt=vi(tt),ar=vi(vt);if(jt.length!==ar.length)return 0;for(var Jr=0,xr=ar;Jr<xr.length;Jr++){var Tr=xr[Jr],kr=go(tt,Tr.keyType);if(!(kr&&Hr(kr.type,Tr.type)&&kr.isReadonly===Tr.isReadonly))return 0}return-1}function Ao(tt,vt,jt){if(!tt.declaration||!vt.declaration)return!0;var ar=e.getSelectedEffectiveModifierFlags(tt.declaration,24),Jr=e.getSelectedEffectiveModifierFlags(vt.declaration,24);return Jr===8||(Jr===16&&ar!==8||Jr!==16&&!ar)?!0:(jt&&Ot(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,vf(ar),vf(Jr)),!1)}}function jb(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!e.forEach(n.types,jb);if(n.flags&465829888){var t=vp(n);if(t&&t!==n)return jb(t)}return $u(n)||!!(n.flags&134217728)}function sx(n,t,r){return r===void 0&&(r=Mb),ZA(n,t,r,!0)||oR(n,t)||sR(n,t)||lR(n,t)||cR(n,t)}function Wb(n,t,r,i,l){for(var u=n.types.map(function(cr){return}),S=0,M=t;S<M.length;S++){var ge=M[S],Ge=ge[0],We=ge[1],ze=ry(n,We);if(l&&ze&&e.getCheckFlags(ze)&16)continue;for(var an=0,Tn=0,et=n.types;Tn<et.length;Tn++){var st=et[Tn],Ct=js(st,We);Ct&&r(Ge(),Ct)?u[an]=u[an]===void 0?!0:u[an]:u[an]=!1,an++}}var Dt=u.indexOf(!0);if(Dt===-1)return i;for(var Bt=u.indexOf(!0,Dt+1);Bt!==-1;){if(!Yd(n.types[Dt],n.types[Bt]))return i;Bt=u.indexOf(!0,Bt+1)}return n.types[Dt]}function lx(n){if(n.flags&524288){var t=Fu(n);return t.callSignatures.length===0&&t.constructSignatures.length===0&&t.indexInfos.length===0&&t.properties.length>0&&e.every(t.properties,function(r){return!!(r.flags&16777216)})}return n.flags&2097152?e.every(n.types,lx):!1}function n0(n,t,r){for(var i=0,l=So(n);i<l.length;i++){var u=l[i];if(VE(t,u.escapedName,r))return!0}return!1}function t0(n,t,r){var i=qd(n,e.map(n.typeParameters,function(l){return l===t?r:l}));return i.objectFlags|=4096,i}function cx(n){var t=$a(n);return ux(t.typeParameters,t,function(r,i,l){var u=sg(n,Cf(t.typeParameters,Em(i,l)));return u.aliasTypeArgumentsContainsMarker=!0,u})}function ux(n,t,r){var i,l,u;n===void 0&&(n=e.emptyArray);var S=t.variances;if(!S){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:n.length,id:(u=(i=t.id)!==null&&i!==void 0?i:(l=t.declaredType)===null||l===void 0?void 0:l.id)!==null&&u!==void 0?u:-1}),t.variances=e.emptyArray,S=[];for(var M=function(ze){var an=!1,Tn=!1,et=ye;ye=function(Bt){return Bt?Tn=!0:an=!0};var st=r(t,ze,Qr),Ct=r(t,ze,ci),Dt=(yo(Ct,st)?1:0)|(yo(st,Ct)?2:0);Dt===3&&yo(r(t,ze,Mi),st)&&(Dt=4),ye=et,(an||Tn)&&(an&&(Dt|=8),Tn&&(Dt|=16)),S.push(Dt)},ge=0,Ge=n;ge<Ge.length;ge++){var We=Ge[ge];M(We)}t.variances=S,e.tracing===null||e.tracing===void 0||e.tracing.pop()}return S}function Hb(n){return n===_t||n===tr||n.objectFlags&8?qe:ux(n.typeParameters,n,t0)}function r0(n,t){for(var r=0;r<t.length;r++)if((t[r]&7)===1&&n[r].flags&16384)return!0;return!1}function a0(n){return n.flags&262144&&!Cc(n)}function i0(n){return!!(e.getObjectFlags(n)&4)&&!n.node}function x_(n){return i0(n)&&e.some(Oo(n),function(t){return!!(t.flags&262144)||x_(t)})}function Kb(n,t,r){r===void 0&&(r=0);for(var i=""+n.target.id,l=0,u=Oo(n);l<u.length;l++){var S=u[l];if(a0(S)){var M=t.indexOf(S);M<0&&(M=t.length,t.push(S)),i+="="+M}else r<4&&x_(S)?i+="<"+Kb(S,t,r+1)+">":i+="-"+S.id}return i}function dx(n,t,r,i){if(i===Zr&&n.id>t.id){var l=n;n=t,t=l}var u=r?":"+r:"";if(x_(n)&&x_(t)){var S=[];return Kb(n,S)+","+Kb(t,S)+u}return n.id+","+t.id+u}function _y(n,t){if(e.getCheckFlags(n)&6){for(var r=0,i=n.containingType.types;r<i.length;r++){var l=i[r],u=Rn(l,n.escapedName),S=u&&_y(u,t);if(S)return S}return}return t(n)}function xm(n){return n.parent&&n.parent.flags&32?ls($l(n)):void 0}function w_(n){var t=xm(n),r=t&&Ac(t)[0];return r&&js(r,n.escapedName)}function o0(n,t){return _y(n,function(r){var i=xm(r);return i?ve(i,t):!1})}function s0(n,t){return!_y(t,function(r){return e.getDeclarationModifierFlagsFromSymbol(r)&16?!o0(n,xm(r)):!1})}function l0(n,t,r){return _y(t,function(i){return e.getDeclarationModifierFlagsFromSymbol(i,r)&16?!ve(n,xm(i)):!1})?void 0:n}function Jb(n,t,r){if(r>=5){for(var i=vy(n),l=0,u=0;u<r;u++)if(vy(t[u])===i&&(l++,l>=5))return!0}return!1}function vy(n){if(n.flags&524288&&!pE(n)){if(e.getObjectFlags(n)&&4&&n.node)return n.node;if(n.symbol&&!(e.getObjectFlags(n)&16&&n.symbol.flags&32))return n.symbol;if(Ki(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 fx(n,t){return qb(n,t,pg)!==0}function qb(n,t,r){if(n===t)return-1;var i=e.getDeclarationModifierFlagsFromSymbol(n)&24,l=e.getDeclarationModifierFlagsFromSymbol(t)&24;if(i!==l)return 0;if(i){if($m(n)!==$m(t))return 0}else if((n.flags&16777216)!==(t.flags&16777216))return 0;return _d(n)!==_d(t)?0:r(Ir(n),Ir(t))}function c0(n,t,r){var i=dc(n),l=dc(t),u=td(n),S=td(t),M=rd(n),ge=rd(t);return i===l&&u===S&&M===ge?!0:!!(r&&u<=S)}function by(n,t,r,i,l,u){if(n===t)return-1;if(!c0(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var S=vc(n.typeParameters,t.typeParameters),M=0;M<t.typeParameters.length;M++){var ge=n.typeParameters[M],Ge=t.typeParameters[M];if(!(ge===Ge||u(si(hh(ge),S)||ln,hh(Ge)||ln)&&u(si(Zf(ge),S)||ln,Zf(Ge)||ln)))return 0}n=Um(n,S,!0)}var We=-1;if(!i){var ze=Af(n);if(ze){var an=Af(t);if(an){var Tn=u(ze,an);if(!Tn)return 0;We&=Tn}}}for(var et=dc(t),M=0;M<et;M++){var ge=wu(n,M),Ge=wu(t,M),Tn=u(Ge,ge);if(!Tn)return 0;We&=Tn}if(!l){var st=Mc(n),Ct=Mc(t);We&=st||Ct?u0(st,Ct,u):u(_o(n),_o(t))}return We}function u0(n,t,r){return n&&t&&gb(n,t)?n.type===t.type?-1:n.type&&t.type?r(n.type,t.type):0:0}function d0(n){for(var t,r=0,i=n;r<i.length;r++){var l=i[r],u=ed(l);if(t||(t=u),u===l||u!==t)return!1}return!0}function px(n){return n.length===1?n[0]:d0(n)?Ea(n):e.reduceLeft(n,function(t,r){return Qd(t,r)?r:t})}function f0(n){if(!je)return px(n);var t=e.filter(n,function(r){return!(r.flags&98304)});return t.length?eE(px(t),vx(n)&98304):Ea(n,2)}function p0(n){return e.reduceLeft(n,function(t,r){return Qd(r,t)?r:t})}function zl(n){return!!(e.getObjectFlags(n)&4)&&(n.target===_t||n.target===tr)}function Th(n){return!!(e.getObjectFlags(n)&4)&&n.target===tr}function A_(n){return zl(n)&&!Th(n)||Ki(n)&&!n.target.readonly}function zb(n){return zl(n)?Oo(n)[0]:void 0}function op(n){return zl(n)||!(n.flags&98304)&&yo(n,De)}function Xb(n){if(!(e.getObjectFlags(n)&4)||!(e.getObjectFlags(n.target)&3))return;if(e.getObjectFlags(n)&33554432)return e.getObjectFlags(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;var t=n.target;if(e.getObjectFlags(t)&1){var r=hu(t);if(r&&r.expression.kind!==79&&r.expression.kind!==204)return}var i=Ac(t);if(i.length!==1)return;if(eu(n.symbol).size)return;var l=e.length(t.typeParameters)?si(i[0],vc(t.typeParameters,Oo(n).slice(0,t.typeParameters.length))):i[0];return e.length(Oo(n))>e.length(t.typeParameters)&&(l=Rc(l,e.last(Oo(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=l}function mx(n){return je?n===qa:n===Xe}function Yb(n){var t=zb(n);return!!t&&mx(t)}function Sh(n){return Ki(n)||!!Rn(n,"0")}function hx(n){return op(n)||Sh(n)}function m0(n,t){var r=js(n,""+t);return r||(nf(n,Ki)?Ws(n,function(i){return hg(i)||Ln}):void 0)}function h0(n){return!(n.flags&(109440|131072))}function $u(n){return!!(n.flags&109440)}function gx(n){return n.flags&2097152?e.some(n.types,$u):!!(n.flags&109440)}function g0(n){return n.flags&2097152&&e.find(n.types,$u)||n}function Vm(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:e.every(n.types,$u):$u(n)}function ed(n){return n.flags&1024?Om(n):n.flags&128?ht:n.flags&256?Et:n.flags&2048?zt:n.flags&512?Ht:n.flags&1048576?Ws(n,ed):n}function wp(n){return n.flags&1024&&xp(n)?Om(n):n.flags&128&&xp(n)?ht:n.flags&256&&xp(n)?Et:n.flags&2048&&xp(n)?zt:n.flags&512&&xp(n)?Ht:n.flags&1048576?Ws(n,wp):n}function yx(n){return n.flags&8192?Xr:n.flags&1048576?Ws(n,yx):n}function Qb(n,t){return pv(n,t)||(n=yx(wp(n))),n}function y0(n,t,r){if(n&&$u(n)){var i=t?r?By(t):t:void 0;n=Qb(n,i)}return n}function Zb(n,t,r,i){if(n&&$u(n)){var l=t?Zm(r,t,i):void 0;n=Qb(n,l)}return n}function Ki(n){return!!(e.getObjectFlags(n)&4&&n.target.objectFlags&8)}function xh(n){return Ki(n)&&!!(n.target.combinedFlags&8)}function _x(n){return xh(n)&&n.target.elementFlags.length===1}function hg(n){return D_(n,n.target.fixedLength)}function _0(n){var t=hg(n);return t&&Ll(t)}function D_(n,t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var l=ep(n)-r;if(t<l){for(var u=Oo(n),S=[],M=t;M<l;M++){var ge=u[M];S.push(n.target.elementFlags[M]&8?kc(ge,Et):ge)}return i?Go(S):Ea(S)}return}function v0(n,t){return ep(n)===ep(t)&&e.every(n.target.elementFlags,function(r,i){return(r&12)===(t.target.elementFlags[i]&12)})}function $b(n){var t=n.value;return t.base10Value==="0"}function vx(n){for(var t=0,r=0,i=n;r<i.length;r++){var l=i[r];t|=Jc(l)}return t}function Jc(n){return n.flags&1048576?vx(n.types):n.flags&128?n.value===""?128:0:n.flags&256?n.value===0?256:0:n.flags&2048?$b(n)?2048:0:n.flags&512?n===fr||n===br?512:0:n.flags&117724}function bx(n){return Jc(n)&117632?Vl(n,function(t){return!(Jc(t)&117632)}):n}function b0(n){return Ws(n,E0)}function E0(n){return n.flags&4?bo:n.flags&8?On:n.flags&64?Bo:n===br||n===fr||n.flags&(16384|32768|65536|3)||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&$b(n)?n:Wr}function eE(n,t){var r=t&~n.flags&(32768|65536);return r===0?n:r===32768?Ea([n,Ln]):r===65536?Ea([n,qn]):Ea([n,Ln,qn])}function ef(n,t){return t===void 0&&(t=!1),e.Debug.assert(je),n.flags&32768?n:Ea([n,t?rn:Ln])}function T0(n){var t=Dl(n,2097152);return Ve||(Ve=_h("NonNullable",524288,void 0)||Yn),Ve!==Yn?sg(Ve,[t]):t}function kf(n){return je?T0(n):n}function Ex(n){return je?Ea([n,Dn]):n}function nE(n){return je?G_(n,Dn):n}function C_(n,t,r){return r?e.isOutermostOptionalChain(t)?ef(n):Ex(n):n}function gg(n,t){return e.isExpressionOfOptionalChainRoot(t)?kf(n):e.isOptionalChain(t)?nE(n):n}function jm(n,t){return $n&&t?G_(n,rn):n}function Tx(n){return $n&&(n===rn||n.flags&1048576&&Zp(n.types,rn))}function tE(n){return $n?G_(n,rn):Dl(n,524288)}function S0(n,t){return(n.flags&(8|4|512))!==0&&(t.flags&(8|4|16))!==0}function k_(n){return n.flags&2097152?e.every(n.types,k_):!!(n.symbol&&(n.symbol.flags&(4096|2048|384|512))!==0&&!PT(n))||!!(e.getObjectFlags(n)&1024&&k_(n.source))}function wm(n,t){var r=oo(n.flags,n.escapedName,e.getCheckFlags(n)&8);r.declarations=n.declarations,r.parent=n.parent,r.type=t,r.target=n,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration);var i=$a(n).nameType;return i&&(r.nameType=i),r}function x0(n,t){for(var r=e.createSymbolTable(),i=0,l=Kd(n);i<l.length;i++){var u=l[i],S=Ir(u),M=t(S);r.set(u.escapedName,M===S?u:wm(u,M))}return r}function wh(n){if(!(Dp(n)&&e.getObjectFlags(n)&16384))return n;var t=n.regularType;if(t)return t;var r=n,i=x0(n,wh),l=ns(r.symbol,i,r.callSignatures,r.constructSignatures,r.indexInfos);return l.flags=r.flags,l.objectFlags|=r.objectFlags&~16384,n.regularType=l,l}function Sx(n,t,r){return{parent:n,propertyName:t,siblings:r,resolvedProperties:void 0}}function xx(n){if(!n.siblings){for(var t=[],r=0,i=xx(n.parent);r<i.length;r++){var l=i[r];if(Dp(l)){var u=Ld(l,n.propertyName);u&&Km(Ir(u),function(S){t.push(S)})}}n.siblings=t}return n.siblings}function w0(n){if(!n.resolvedProperties){for(var t=new e.Map,r=0,i=xx(n);r<i.length;r++){var l=i[r];if(Dp(l)&&!(e.getObjectFlags(l)&4194304))for(var u=0,S=So(l);u<S.length;u++){var M=S[u];t.set(M.escapedName,M)}}n.resolvedProperties=e.arrayFrom(t.values())}return n.resolvedProperties}function A0(n,t){if(!(n.flags&4))return n;var r=Ir(n),i=t&&Sx(t,n.escapedName,void 0),l=rE(r,i);return l===r?n:wm(n,l)}function D0(n){var t=rt.get(n.escapedName);if(t)return t;var r=wm(n,rn);return r.flags|=16777216,rt.set(n.escapedName,r),r}function C0(n,t){for(var r=e.createSymbolTable(),i=0,l=Kd(n);i<l.length;i++){var u=l[i];r.set(u.escapedName,A0(u,t))}if(t)for(var S=0,M=w0(t);S<M.length;S++){var u=M[S];r.has(u.escapedName)||r.set(u.escapedName,D0(u))}var ge=ns(n.symbol,r,e.emptyArray,e.emptyArray,e.sameMap(vi(n),function(Ge){return Qu(Ge.keyType,bc(Ge.type),Ge.isReadonly)}));return ge.objectFlags|=e.getObjectFlags(n)&(8192|524288),ge}function bc(n){return rE(n,void 0)}function rE(n,t){if(e.getObjectFlags(n)&393216){if(t===void 0&&n.widened)return n.widened;var r=void 0;if(n.flags&(1|98304))r=lt;else if(Dp(n))r=C0(n,t);else if(n.flags&1048576){var i=t||Sx(void 0,void 0,n.types),l=e.sameMap(n.types,function(u){return u.flags&98304?u:rE(u,i)});r=Ea(l,e.some(l,Zd)?2:1)}else n.flags&2097152?r=Go(e.sameMap(n.types,bc)):(zl(n)||Ki(n))&&(r=qd(n.target,e.sameMap(Oo(n),bc)));return r&&t===void 0&&(n.widened=r),r||n}return n}function L_(n){var t=!1;if(e.getObjectFlags(n)&131072){if(n.flags&1048576)if(e.some(n.types,Zd))t=!0;else for(var r=0,i=n.types;r<i.length;r++){var l=i[r];L_(l)&&(t=!0)}if(zl(n)||Ki(n))for(var u=0,S=Oo(n);u<S.length;u++){var l=S[u];L_(l)&&(t=!0)}if(Dp(n))for(var M=0,ge=Kd(n);M<ge.length;M++){var Ge=ge[M],l=Ir(Ge);e.getObjectFlags(l)&131072&&(L_(l)||Hn(Ge.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Xa(Ge),Ar(bc(l))),t=!0)}}return t}function Ap(n,t,r){var i=Ar(bc(t));if(e.isInJSFile(n)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(n),pe))return;var l;switch(n.kind){case 219:case 165:case 164:l=vn?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 162:var u=n;if(e.isIdentifier(u.name)&&(e.isCallSignatureDeclaration(u.parent)||e.isMethodSignature(u.parent)||e.isFunctionTypeNode(u.parent))&&u.parent.parameters.indexOf(u)>-1&&(Zi(u,u.name.escapedText,788968,void 0,u.name.escapedText,!0)||u.name.originalKeywordKind&&e.isTypeNodeKind(u.name.originalKeywordKind))){var S="arg"+u.parent.parameters.indexOf(u);Ds(vn,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,S,e.declarationNameToString(u.name));return}l=n.dotDotDotToken?vn?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:vn?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:if(l=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!vn)return;break;case 312:Hn(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);return;case 254:case 167:case 166:case 170:case 171:case 211:case 212:if(vn&&!n.name){r===3?Hn(n,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,i):Hn(n,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);return}l=vn?r===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 193:vn&&Hn(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:l=vn?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Ds(vn,n,l,e.declarationNameToString(e.getNameOfDeclaration(n)),i)}function I_(n,t,r){R&&vn&&e.getObjectFlags(t)&131072&&(!r||!RE(n))&&(L_(t)||Ap(n,t,r))}function aE(n,t,r){var i=dc(n),l=dc(t),u=Ag(n),S=Ag(t),M=S?l-1:l,ge=u?M:Math.min(i,M),Ge=Af(n);if(Ge){var We=Af(t);We&&r(Ge,We)}for(var ze=0;ze<ge;ze++)r(wu(n,ze),wu(t,ze));S&&r(Rh(n,ge),S)}function iE(n,t,r){var i=Mc(n),l=Mc(t);i&&l&&gb(i,l)&&i.type&&l.type?r(i.type,l.type):r(_o(n),_o(t))}function yg(n,t,r,i){return oE(n.map(sE),t,r,i||Mb)}function k0(n,t){return t===void 0&&(t=0),n&&oE(e.map(n.inferences,Ax),n.signature,n.flags|t,n.compareTypes)}function oE(n,t,r,i){var l={inferences:n,signature:t,flags:r,compareTypes:i,mapper:em(function(u){return wx(l,u,!0)}),nonFixingMapper:em(function(u){return wx(l,u,!1)})};return l}function wx(n,t,r){for(var i=n.inferences,l=0;l<i.length;l++){var u=i[l];if(t===u.typeParameter)return r&&!u.isFixed&&(N_(i),u.isFixed=!0),Ox(n,l)}return t}function N_(n){for(var t=0,r=n;t<r.length;t++){var i=r[t];i.isFixed||(i.inferredType=void 0)}}function sE(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Ax(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 L0(n){var t=e.filter(n.inferences,Dm);return t.length?oE(e.map(t,Ax),n.signature,n.flags,n.compareTypes):void 0}function lE(n){return n&&n.mapper}function _g(n){var t=e.getObjectFlags(n);if(t&1048576)return!!(t&2097152);var r=!!(n.flags&465829888||n.flags&524288&&!Dx(n)&&(t&4&&(n.node||e.forEach(Oo(n),_g))||t&16&&n.symbol&&n.symbol.flags&(16|8192|32|2048|4096)&&n.symbol.declarations||t&(32|1024|8388608))||n.flags&3145728&&!(n.flags&1024)&&!Dx(n)&&e.some(n.types,_g));return n.flags&3899393&&(n.objectFlags|=1048576|(r?2097152:0)),r}function Dx(n){if(n.aliasSymbol&&!n.aliasTypeArguments){var t=e.getDeclarationOfKind(n.aliasSymbol,257);return!!(t&&e.findAncestor(t.parent,function(r){return r.kind===300?!0:r.kind===259?!1:"quit"}))}return!1}function cE(n,t){return!!(n===t||n.flags&3145728&&e.some(n.types,function(r){return cE(r,t)})||n.flags&16777216&&(rp(n)===t||ap(n)===t))}function I0(n){var t=e.createSymbolTable();Km(n,function(i){if(!(i.flags&128))return;var l=e.escapeLeadingUnderscores(i.value),u=oo(4,l);u.type=lt,i.symbol&&(u.declarations=i.symbol.declarations,u.valueDeclaration=i.symbol.valueDeclaration),t.set(l,u)});var r=n.flags&4?[Qu(ht,xt,!1)]:e.emptyArray;return ns(void 0,t,e.emptyArray,e.emptyArray,r)}function Cx(n,t,r){if(Lo)return;var i=n.id+","+t.id+","+r.id;if(wo.has(i))return wo.get(i);Lo=!0;var l=N0(n,t,r);return Lo=!1,wo.set(i,l),l}function uE(n){return!(e.getObjectFlags(n)&524288)||Dp(n)&&e.some(So(n),function(t){return uE(Ir(t))})||Ki(n)&&e.some(Oo(n),uE)}function N0(n,t,r){if(!(go(n,ht)||So(n).length!==0&&uE(n)))return;if(zl(n))return Ll(O_(Oo(n)[0],t,r),Th(n));if(Ki(n)){var i=e.map(Oo(n),function(S){return O_(S,t,r)}),l=_u(t)&4?e.sameMap(n.target.elementFlags,function(S){return S&2?1:S}):n.target.elementFlags;return Zu(i,l,n.target.readonly,n.target.labeledElementDeclarations)}var u=Tl(1024|16,void 0);return u.source=n,u.mappedType=t,u.constraintType=r,u}function O0(n){var t=$a(n);return t.type||(t.type=O_(n.propertyType,n.mappedType,n.constraintType)),t.type}function O_(n,t,r){var i=kc(r.type,Mu(t)),l=Kc(t),u=sE(i);return Id([u],n,l),kx(u)||ln}function dE(n,t,r,i){var l,u,S,M,ge,Ge,We;return Bi(this,function(ze){switch(ze.label){case 0:l=So(t),u=0,S=l,ze.label=1;case 1:return u<S.length?(M=S[u],Pa(M)?[3,5]:r||!(M.flags&16777216||e.getCheckFlags(M)&48)?(ge=Rn(n,M.escapedName),ge?[3,3]:[4,M]):[3,5]):[3,6];case 2:return ze.sent(),[3,5];case 3:return i?(Ge=Ir(M),Ge.flags&109440?(We=Ir(ge),We.flags&1||_c(We)===_c(Ge)?[3,5]:[4,M]):[3,5]):[3,5];case 4:ze.sent(),ze.label=5;case 5:return u++,[3,1];case 6:return[2]}})}function fE(n,t,r,i){var l=dE(n,t,r,i).next();if(!l.done)return l.value}function P0(n,t){return!(t.target.combinedFlags&8)&&t.target.minLength>n.target.minLength||!t.target.hasRestElement&&(n.target.hasRestElement||t.target.fixedLength<n.target.fixedLength)}function R0(n,t){return Ki(n)&&Ki(t)?P0(n,t):!!fE(n,t,!1,!0)&&!!fE(t,n,!1,!1)}function kx(n){return n.candidates?Ea(n.candidates,2):n.contraCandidates?Go(n.contraCandidates):void 0}function M0(n){return!!pa(n).skipDirectInference}function Lx(n){return!!(n.symbol&&e.some(n.symbol.declarations,M0))}function F0(n){var t=e.createScanner(99,!1),r=!0;t.setOnError(function(){return r=!1}),t.setText(n+"n");var i=t.scan();i===40&&(i=t.scan());var l=t.getTokenFlags();return r&&i===9&&t.getTextPos()===n.length+1&&!(l&512)}function G0(n,t){if(n===t||t.flags&(1|4))return!0;if(n.flags&128){var r=n.value;return!!(t.flags&8&&r!==""&&isFinite(+r)||t.flags&64&&r!==""&&F0(r)||t.flags&(512|98304)&&r===t.intrinsicName)}if(n.flags&134217728){var i=n.texts;return i.length===2&&i[0]===""&&i[1]===""&&yo(n.types[0],t)}return yo(n,t)}function Ix(n,t){return n.flags&128?Nx([n.value],e.emptyArray,t):n.flags&134217728?e.arraysEqual(n.texts,t.texts)?e.map(n.types,B0):Nx(n.texts,n.types,t):void 0}function B0(n){return n.flags&(1|402653316)?n:vh(["",""],[n])}function Nx(n,t,r){var i=n.length-1,l=n[0],u=n[i],S=r.texts,M=S.length-1,ge=S[0],Ge=S[M];if(i===0&&l.length<ge.length+Ge.length||!l.startsWith(ge)||!u.endsWith(Ge))return;for(var We=u.slice(0,u.length-Ge.length),ze=[],an=0,Tn=ge.length,et=1;et<M;et++){var st=S[et];if(st.length>0){for(var Ct=an,Dt=Tn;!(Dt=Bt(Ct).indexOf(st,Dt),Dt>=0);){if(Ct++,Ct===n.length)return;Dt=0}cr(Ct,Dt),Tn+=st.length}else if(Tn<Bt(an).length)cr(an,Tn+1);else if(an<i)cr(an+1,0);else return}return cr(i,Bt(i).length),ze;function Bt(Vr){return Vr<i?n[Vr]:We}function cr(Vr,yr){var ba=Vr===an?nu(Bt(Vr).slice(Tn,yr)):vh(Mt(Mt([n[an].slice(Tn)],n.slice(an+1,Vr),!0),[Bt(Vr).slice(0,yr)],!1),t.slice(an,Vr));ze.push(ba),an=Vr,Tn=yr}}function Id(n,t,r,i,l){i===void 0&&(i=0),l===void 0&&(l=!1);var u=!1,S,M=2048,ge=!0,Ge,We,ze,an=0;Tn(t,r);function Tn(Xt,Ot){if(!_g(Ot))return;if(Xt===Bn){var xa=S;S=Xt,Tn(Ot,Ot),S=xa;return}if(Xt.aliasSymbol&&Xt.aliasTypeArguments&&Xt.aliasSymbol===Ot.aliasSymbol){Dt(Xt.aliasTypeArguments,Ot.aliasTypeArguments,cx(Xt.aliasSymbol));return}if(Xt===Ot&&Xt.flags&3145728){for(var Ra=0,ta=Xt.types;Ra<ta.length;Ra++){var ri=ta[Ra];Tn(ri,ri)}return}if(Ot.flags&1048576){var Hr=Ct(Xt.flags&1048576?Xt.types:[Xt],Ot.types,U0),qi=Hr[0],Ui=Hr[1],nt=Ct(qi,Ui,V0),_n=nt[0],hr=nt[1];if(hr.length===0)return;if(Ot=Ea(hr),_n.length===0){et(Xt,Ot,1);return}Xt=Ea(_n)}else if(Ot.flags&2097152&&e.some(Ot.types,function(Ti){return!!cr(Ti)||Dc(Ti)&&!!cr(Nb(Ti)||Wr)})){if(!(Xt.flags&1048576)){var gr=Ct(Xt.flags&2097152?Xt.types:[Xt],Ot.types,Yd),_n=gr[0],hr=gr[1];if(_n.length===0||hr.length===0)return;Xt=Go(_n),Ot=Go(hr)}}else Ot.flags&(8388608|33554432)&&(Ot=Tp(Ot));if(Ot.flags&8650752){if(e.getObjectFlags(Xt)&524288||Xt===An||Xt===Or||i&128&&(Xt===Fe||Xt===j)||Lx(Xt))return;var Mr=cr(Ot);if(Mr){if(!Mr.isFixed){if((Mr.priority===void 0||i<Mr.priority)&&(Mr.candidates=void 0,Mr.contraCandidates=void 0,Mr.topLevel=!0,Mr.priority=i),i===Mr.priority){var Br=S||Xt;l&&!u?e.contains(Mr.contraCandidates,Br)||(Mr.contraCandidates=e.append(Mr.contraCandidates,Br),N_(n)):e.contains(Mr.candidates,Br)||(Mr.candidates=e.append(Mr.candidates,Br),N_(n))}!(i&128)&&Ot.flags&262144&&Mr.topLevel&&!cE(r,Ot)&&(Mr.topLevel=!1,N_(n))}M=Math.min(M,i);return}else{var Kr=zd(Ot,!1);if(Kr!==Ot)st(Xt,Kr,Tn);else if(Ot.flags&8388608){var fa=zd(Ot.indexType,!1);if(fa.flags&465829888){var Qn=NS(zd(Ot.objectType,!1),fa,!1);Qn&&Qn!==Ot&&st(Xt,Qn,Tn)}}}}if(e.getObjectFlags(Xt)&4&&e.getObjectFlags(Ot)&4&&(Xt.target===Ot.target||zl(Xt)&&zl(Ot))&&!(Xt.node&&Ot.node))Dt(Oo(Xt),Oo(Ot),Hb(Xt.target));else if(Xt.flags&4194304&&Ot.flags&4194304)l=!l,Tn(Xt.type,Ot.type),l=!l;else if((Vm(Xt)||Xt.flags&4)&&Ot.flags&4194304){var kt=I0(Xt);l=!l,et(kt,Ot.type,256),l=!l}else if(Xt.flags&8388608&&Ot.flags&8388608)Tn(Xt.objectType,Ot.objectType),Tn(Xt.indexType,Ot.indexType);else if(Xt.flags&268435456&&Ot.flags&268435456)Xt.symbol===Ot.symbol&&Tn(Xt.type,Ot.type);else if(Xt.flags&33554432){Tn(Xt.baseType,Ot);var Kt=i;i|=4,Tn(Xt.substitute,Ot),i=Kt}else if(Ot.flags&16777216)st(Xt,Ot,ca);else if(Ot.flags&3145728)yr(Xt,Ot.types,Ot.flags);else if(Xt.flags&1048576)for(var nr=Xt.types,ur=0,Cr=nr;ur<Cr.length;ur++){var ma=Cr[ur];Tn(ma,Ot)}else if(Ot.flags&134217728)fi(Xt,Ot);else{if(Xt=vu(Xt),!(i&512&&Xt.flags&(2097152|465829888))){var Ia=Ul(Xt);if(Ia!==Xt&&ge&&!(Ia.flags&(524288|2097152)))return ge=!1,Tn(Ia,Ot);Xt=Ia}Xt.flags&(524288|2097152)&&st(Xt,Ot,ei)}}function et(Xt,Ot,xa){var Ra=i;i|=xa,Tn(Xt,Ot),i=Ra}function st(Xt,Ot,xa){var Ra=Xt.id+","+Ot.id,ta=Ge&&Ge.get(Ra);if(ta!==void 0){M=Math.min(M,ta);return}(Ge||(Ge=new e.Map)).set(Ra,-1);var ri=M;M=2048;var Hr=an,qi=vy(Xt),Ui=vy(Ot);e.contains(We,qi)&&(an|=1),e.contains(ze,Ui)&&(an|=2),an!==3?((We||(We=[])).push(qi),(ze||(ze=[])).push(Ui),xa(Xt,Ot),ze.pop(),We.pop()):M=-1,an=Hr,Ge.set(Ra,M),M=Math.min(M,ri)}function Ct(Xt,Ot,xa){for(var Ra,ta,ri=0,Hr=Ot;ri<Hr.length;ri++)for(var qi=Hr[ri],Ui=0,nt=Xt;Ui<nt.length;Ui++){var _n=nt[Ui];xa(_n,qi)&&(Tn(_n,qi),Ra=e.appendIfUnique(Ra,_n),ta=e.appendIfUnique(ta,qi))}return[Ra?e.filter(Xt,function(hr){return!e.contains(Ra,hr)}):Xt,ta?e.filter(Ot,function(hr){return!e.contains(ta,hr)}):Ot]}function Dt(Xt,Ot,xa){for(var Ra=Xt.length<Ot.length?Xt.length:Ot.length,ta=0;ta<Ra;ta++)ta<xa.length&&(xa[ta]&7)===2?Bt(Xt[ta],Ot[ta]):Tn(Xt[ta],Ot[ta])}function Bt(Xt,Ot){xn||i&1024?(l=!l,Tn(Xt,Ot),l=!l):Tn(Xt,Ot)}function cr(Xt){if(Xt.flags&8650752)for(var Ot=0,xa=n;Ot<xa.length;Ot++){var Ra=xa[Ot];if(Xt===Ra.typeParameter)return Ra}return}function Vr(Xt){for(var Ot,xa=0,Ra=Xt;xa<Ra.length;xa++){var ta=Ra[xa],ri=ta.flags&2097152&&e.find(ta.types,function(Hr){return!!cr(Hr)});if(!ri||Ot&&ri!==Ot)return;Ot=ri}return Ot}function yr(Xt,Ot,xa){var Ra=0;if(xa&1048576){for(var ta=void 0,ri=Xt.flags&1048576?Xt.types:[Xt],Hr=new Array(ri.length),qi=!1,Ui=0,nt=Ot;Ui<nt.length;Ui++){var _n=nt[Ui];if(cr(_n))ta=_n,Ra++;else for(var hr=0;hr<ri.length;hr++){var gr=M;M=2048,Tn(ri[hr],_n),M===i&&(Hr[hr]=!0),qi=qi||M===-1,M=Math.min(M,gr)}}if(Ra===0){var Mr=Vr(Ot);Mr&&et(Xt,Mr,1);return}if(Ra===1&&!qi){var Br=e.flatMap(ri,function(Kt,nr){return Hr[nr]?void 0:Kt});if(Br.length){Tn(Ea(Br),ta);return}}}else for(var Kr=0,fa=Ot;Kr<fa.length;Kr++){var _n=fa[Kr];cr(_n)?Ra++:Tn(Xt,_n)}if(xa&2097152?Ra===1:Ra>0)for(var Qn=0,kt=Ot;Qn<kt.length;Qn++){var _n=kt[Qn];cr(_n)&&et(Xt,_n,1)}}function ba(Xt,Ot,xa){if(xa.flags&1048576){for(var Ra=!1,ta=0,ri=xa.types;ta<ri.length;ta++){var Hr=ri[ta];Ra=ba(Xt,Ot,Hr)||Ra}return Ra}if(xa.flags&4194304){var qi=cr(xa.type);if(qi&&!qi.isFixed&&!Lx(Xt)){var Ui=Cx(Xt,Ot,xa);Ui&&et(Ui,qi.typeParameter,e.getObjectFlags(Xt)&524288?16:8)}return!0}if(xa.flags&262144){et(yd(Xt),xa,32);var nt=vp(xa);if(nt&&ba(Xt,Ot,nt))return!0;var _n=e.map(So(Xt),Ir),hr=e.map(vi(Xt),function(gr){return gr!==Vi?gr.type:Wr});return Tn(Ea(e.concatenate(_n,hr)),Kc(Ot)),!0}return!1}function ca(Xt,Ot){if(Xt.flags&16777216)Tn(Xt.checkType,Ot.checkType),Tn(Xt.extendsType,Ot.extendsType),Tn(rp(Xt),rp(Ot)),Tn(ap(Xt),ap(Ot));else{var xa=i;i|=l?64:0;var Ra=[rp(Ot),ap(Ot)];yr(Xt,Ra,Ot.flags),i=xa}}function fi(Xt,Ot){for(var xa=Ix(Xt,Ot),Ra=Ot.types,ta=0;ta<Ra.length;ta++)Tn(xa?xa[ta]:Wr,Ra[ta])}function ei(Xt,Ot){if(e.getObjectFlags(Xt)&4&&e.getObjectFlags(Ot)&4&&(Xt.target===Ot.target||zl(Xt)&&zl(Ot))){Dt(Oo(Xt),Oo(Ot),Hb(Xt.target));return}if(Dc(Xt)&&Dc(Ot)){Tn(yu(Xt),yu(Ot)),Tn(Kc(Xt),Kc(Ot));var xa=Qf(Xt),Ra=Qf(Ot);xa&&Ra&&Tn(xa,Ra)}if(e.getObjectFlags(Ot)&32&&!Ot.declaration.nameType){var ta=yu(Ot);if(ba(Xt,Ot,ta))return}if(!R0(Xt,Ot)){if(zl(Xt)||Ki(Xt)){if(Ki(Ot)){var ri=ep(Xt),Hr=ep(Ot),qi=Oo(Ot),Ui=Ot.target.elementFlags;if(Ki(Xt)&&v0(Xt,Ot)){for(var nt=0;nt<Hr;nt++)Tn(Oo(Xt)[nt],qi[nt]);return}for(var _n=Ki(Xt)?Math.min(Xt.target.fixedLength,Ot.target.fixedLength):0,hr=Math.min(Ki(Xt)?m_(Xt.target,3):0,Ot.target.hasRestElement?m_(Ot.target,3):0),nt=0;nt<_n;nt++)Tn(Oo(Xt)[nt],qi[nt]);if(!Ki(Xt)||ri-_n-hr===1&&Xt.target.elementFlags[_n]&4)for(var gr=Oo(Xt)[_n],nt=_n;nt<Hr-hr;nt++)Tn(Ui[nt]&8?Ll(gr):gr,qi[nt]);else{var Mr=Hr-_n-hr;if(Mr===2&&Ui[_n]&Ui[_n+1]&8&&Ki(Xt)){var Br=cr(qi[_n]);Br&&Br.impliedArity!==void 0&&(Tn(ug(Xt,_n,hr+ri-Br.impliedArity),qi[_n]),Tn(ug(Xt,_n+Br.impliedArity,hr),qi[_n+1]))}else if(Mr===1&&Ui[_n]&8){var Kr=Ot.target.elementFlags[Hr-1]&2,fa=Ki(Xt)?ug(Xt,_n,hr):Ll(Oo(Xt)[0]);et(fa,qi[_n],Kr?2:0)}else if(Mr===1&&Ui[_n]&4){var gr=Ki(Xt)?D_(Xt,_n,hr):Oo(Xt)[0];gr&&Tn(gr,qi[_n])}}for(var nt=0;nt<hr;nt++)Tn(Oo(Xt)[ri-nt-1],qi[Hr-nt-1]);return}if(zl(Ot)){Po(Xt,Ot);return}}Ji(Xt,Ot),ni(Xt,Ot,0),ni(Xt,Ot,1),Po(Xt,Ot)}}function Ji(Xt,Ot){for(var xa=Kd(Ot),Ra=0,ta=xa;Ra<ta.length;Ra++){var ri=ta[Ra],Hr=Rn(Xt,ri.escapedName);Hr&&Tn(Ir(Hr),Ir(ri))}}function ni(Xt,Ot,xa){for(var Ra=qt(Xt,xa),ta=qt(Ot,xa),ri=Ra.length,Hr=ta.length,qi=ri<Hr?ri:Hr,Ui=!!(e.getObjectFlags(Xt)&524288),nt=0;nt<qi;nt++)vo(sD(Ra[ri-qi+nt]),og(ta[Hr-qi+nt]),Ui)}function vo(Xt,Ot,xa){if(!xa){var Ra=u,ta=Ot.declaration?Ot.declaration.kind:0;u=u||ta===167||ta===166||ta===169,aE(Xt,Ot,Bt),u=Ra}iE(Xt,Ot,Tn)}function Po(Xt,Ot){var xa=e.getObjectFlags(Xt)&e.getObjectFlags(Ot)&32?8:0,Ra=vi(Ot);if(k_(Xt))for(var ta=0,ri=Ra;ta<ri.length;ta++){for(var Hr=ri[ta],qi=[],Ui=0,nt=So(Xt);Ui<nt.length;Ui++){var _n=nt[Ui];if(_i(Mm(_n,8576),Hr.keyType)){var hr=Ir(_n);qi.push(_n.flags&16777216?tE(hr):hr)}}for(var gr=0,Mr=vi(Xt);gr<Mr.length;gr++){var Br=Mr[gr];_i(Br.keyType,Hr.keyType)&&qi.push(Br.type)}qi.length&&et(Ea(qi),Hr.type,xa)}for(var Kr=0,fa=Ra;Kr<fa.length;Kr++){var Hr=fa[Kr],Qn=Us(Xt,Hr.keyType);Qn&&et(Qn.type,Hr.type,xa)}}}function U0(n,t){return $n&&t===rn?n===t:Yd(n,t)||!!(t.flags&4&&n.flags&128||t.flags&8&&n.flags&256)}function V0(n,t){return!!(n.flags&524288&&t.flags&524288&&n.symbol&&n.symbol===t.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol)}function j0(n){var t=Cc(n);return!!t&&xs(t.flags&16777216?$g(t):t,131068|4194304|134217728|268435456)}function Dp(n){return!!(e.getObjectFlags(n)&128)}function pE(n){return!!(e.getObjectFlags(n)&(128|32768))}function W0(n){if(n.length>1){var t=e.filter(n,pE);if(t.length){var r=Ea(t,2);return e.concatenate(e.filter(n,function(i){return!pE(i)}),[r])}}return n}function H0(n){return n.priority&416?Go(n.contraCandidates):p0(n.contraCandidates)}function K0(n,t){var r=W0(n.candidates),i=j0(n.typeParameter),l=!i&&n.topLevel&&(n.isFixed||!cE(_o(t),n.typeParameter)),u=i?e.sameMap(r,_c):l?e.sameMap(r,wp):r,S=n.priority&416?Ea(u,2):f0(u);return bc(S)}function Ox(n,t){var r=n.inferences[t];if(!r.inferredType){var i=void 0,l=n.signature;if(l){var u=r.candidates?K0(r,l):void 0;if(r.contraCandidates){var S=H0(r);i=u&&!(u.flags&131072)&&Qd(u,S)?u:S}else if(u)i=u;else if(n.flags&1)i=Or;else{var M=Zf(r.typeParameter);M&&(i=si(M,DC(AC(n,t),n.nonFixingMapper)))}}else i=kx(r);r.inferredType=i||mE(!!(n.flags&2));var ge=Cc(r.typeParameter);if(ge){var Ge=si(ge,n.nonFixingMapper);(!i||!n.compareTypes(i,Rc(Ge,i)))&&(r.inferredType=i=Ge)}}return r.inferredType}function mE(n){return n?lt:ln}function hE(n){for(var t=[],r=0;r<n.inferences.length;r++)t.push(Ox(n,r));return t}function Px(n){switch(n.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return pe.types?e.Diagnostics.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:e.Diagnostics.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 pe.types?e.Diagnostics.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:e.Diagnostics.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 pe.types?e.Diagnostics.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:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return n.parent.kind===292?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Vu(n){var t=pa(n);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(n)&&Zi(n,n.escapedText,111551|1048576,Px(n),n,!e.isWriteOnlyAccess(n),!1,!0)||Yn),t.resolvedSymbol}function Ah(n){return!!e.findAncestor(n,function(t){return t.kind===179?!0:t.kind===79||t.kind===159?!1:"quit"})}function P_(n,t,r,i){switch(n.kind){case 79:var l=Vu(n);return l!==Yn?(i?B(i):"-1")+"|"+Su(t)+"|"+Su(r)+"|"+A(l):void 0;case 108:return"0|"+(i?B(i):"-1")+"|"+Su(t)+"|"+Su(r);case 228:case 210:return P_(n.expression,t,r,i);case 159:var u=P_(n.left,t,r,i);return u&&u+"."+n.right.escapedText;case 204:case 205:var S=tm(n);if(S!==void 0){var M=P_(n.expression,t,r,i);return M&&M+"."+S}}return}function Il(n,t){switch(t.kind){case 210:case 228:return Il(n,t.expression);case 219:return e.isAssignmentExpression(t)&&Il(n,t.left)||e.isBinaryExpression(t)&&t.operatorToken.kind===27&&Il(n,t.right)}switch(n.kind){case 229:return t.kind===229&&n.keywordToken===t.keywordToken&&n.name.escapedText===t.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(n)?t.kind===108:t.kind===79&&Vu(n)===Vu(t)||(t.kind===252||t.kind===201)&&pu(Vu(n))===Rr(t);case 108:return t.kind===108;case 106:return t.kind===106;case 228:case 210:return Il(n.expression,t);case 204:case 205:return e.isAccessExpression(t)&&tm(n)===tm(t)&&Il(n.expression,t.expression);case 159:return e.isAccessExpression(t)&&n.right.escapedText===tm(t)&&Il(n.left,t.expression);case 219:return e.isBinaryExpression(n)&&n.operatorToken.kind===27&&Il(n.right,t)}return!1}function gE(n,t){return Il(n,t)||t.kind===219&&t.operatorToken.kind===55&&(gE(n,t.left)||gE(n,t.right))}function J0(n){if(e.isAccessExpression(n))return n;if(e.isIdentifier(n)){var t=Vu(n);if(wy(t)){var r=t.valueDeclaration;if(e.isVariableDeclaration(r)&&!r.type&&r.initializer&&e.isAccessExpression(r.initializer))return r.initializer;if(e.isBindingElement(r)&&!r.initializer){var i=r.parent.parent;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&(e.isIdentifier(i.initializer)||e.isAccessExpression(i.initializer)))return r}}}return}function tm(n){var t;return n.kind===204?n.name.escapedText:n.kind===205&&e.isStringOrNumericLiteralLike(n.argumentExpression)?e.escapeLeadingUnderscores(n.argumentExpression.text):n.kind===201&&(t=ft(n))?e.escapeLeadingUnderscores(t):void 0}function Rx(n,t){for(;e.isAccessExpression(n);)if(n=n.expression,Il(n,t))return!0;return!1}function Wm(n,t){for(;e.isOptionalChain(n);)if(n=n.expression,Il(n,t))return!0;return!1}function vg(n,t){if(n&&n.flags&1048576){var r=ry(n,t);if(r&&e.getCheckFlags(r)&2)return r.isDiscriminantProperty===void 0&&(r.isDiscriminantProperty=(r.checkFlags&192)===192&&!xs(Ir(r),465829888&~134217728)),!!r.isDiscriminantProperty}return!1}function Mx(n,t){for(var r,i=0,l=n;i<l.length;i++){var u=l[i];if(vg(t,u.escapedName)){if(r){r.push(u);continue}r=[u]}}return r}function q0(n,t){for(var r=new e.Map,i=0,l=function(Ge){if(Ge.flags&(524288|2097152|58982400)){var We=js(Ge,t);if(We){if(!Vm(We))return{value:void 0};var ze=!1;Km(We,function(an){var Tn=Su(_c(an)),et=r.get(Tn);et?et!==ln&&(r.set(Tn,ln),ze=!0):r.set(Tn,Ge)}),ze||i++}}},u=0,S=n;u<S.length;u++){var M=S[u],ge=l(M);if(typeof ge=="object")return ge.value}return i>=10&&i*2>=n.length?r:void 0}function R_(n){var t=n.types;if(t.length<10||e.getObjectFlags(n)&65536)return;if(n.keyPropertyName===void 0){var r=e.forEach(t,function(l){return l.flags&(524288|58982400)?e.forEach(So(l),function(u){return $u(Ir(u))?u.escapedName:void 0}):void 0}),i=r&&q0(t,r);n.keyPropertyName=i?r:"",n.constituentMap=i}return n.keyPropertyName.length?n.keyPropertyName:void 0}function M_(n,t){var r,i=(r=n.constituentMap)===null||r===void 0?void 0:r.get(Su(_c(t)));return i!==ln?i:void 0}function Fx(n,t){var r=R_(n),i=r&&js(t,r);return i&&M_(n,i)}function z0(n,t){var r=R_(n),i=r&&e.find(t.properties,function(u){return u.symbol&&u.kind===291&&u.symbol.escapedName===r&&Ay(u.initializer)}),l=i&&jl(i.initializer);return l&&M_(n,l)}function Gx(n,t){return Il(n,t)||Rx(n,t)}function Bx(n,t){if(n.arguments)for(var r=0,i=n.arguments;r<i.length;r++){var l=i[r];if(Gx(t,l))return!0}return!!(n.expression.kind===204&&Gx(t,n.expression.expression))}function yE(n){return(!n.id||n.id<0)&&(n.id=ne,ne++),n.id}function X0(n,t){if(!(n.flags&1048576))return yo(n,t);for(var r=0,i=n.types;r<i.length;r++){var l=i[r];if(yo(l,t))return!0}return!1}function Y0(n,t){if(n!==t){if(t.flags&131072)return t;var r=Vl(n,function(i){return X0(t,i)});if(t.flags&512&&xp(t)&&(r=Ws(r,Bm)),yo(t,r))return r}return n}function _E(n){var t=Fu(n);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Qd(n,Mo))}function sp(n,t){t===void 0&&(t=!1);var r=n.flags;if(r&4)return je?16317953:16776705;if(r&128){var i=n.value==="";return je?i?12123649:7929345:i?12582401:16776705}if(r&(8|32))return je?16317698:16776450;if(r&256){var l=n.value===0;return je?l?12123394:7929090:l?12582146:16776450}if(r&64)return je?16317188:16775940;if(r&2048){var l=$b(n);return je?l?12122884:7928580:l?12581636:16775940}return r&16?je?16316168:16774920:r&528?je?n===fr||n===br?12121864:7927560:n===fr||n===br?12580616:16774920:r&524288&&!t?e.getObjectFlags(n)&16&&Zd(n)?je?16318463:16777215:_E(n)?je?7880640:16728e3:je?7888800:16736160:r&(16384|32768)?9830144:r&65536?9363232:r&12288?je?7925520:16772880:r&67108864?je?7888800:16736160:r&131072?0:r&465829888?dy(n)?je?7929345:16776705:sp(tc(n)||ln,t):r&1048576?e.reduceLeft(n.types,function(u,S){return u|sp(S,t)},0):r&2097152?(t||(t=xs(n,131068)),e.reduceLeft(n.types,function(u,S){return u&sp(S,t)},16777215)):16777215}function Dl(n,t){return Vl(n,function(r){return(sp(r)&t)!==0})}function vE(n,t){return t?Ea([zf(n),jl(t)]):n}function Ux(n,t){var r,i=np(t);if(!Fi(i))return K;var l=nc(i);return js(n,l)||bg((r=rc(n,l))===null||r===void 0?void 0:r.type)||K}function Vx(n,t){return nf(n,Sh)&&m0(n,t)||bg(If(65,n,Ln,void 0))||K}function bg(n){return n&&(pe.noUncheckedIndexedAccess?Ea([n,Ln]):n)}function jx(n){return Ll(If(65,n,Ln,void 0)||K)}function Q0(n){var t=n.parent.kind===202&&bE(n.parent)||n.parent.kind===291&&bE(n.parent.parent);return t?vE(Ey(n),n.right):jl(n.right)}function bE(n){return n.parent.kind===219&&n.parent.left===n||n.parent.kind===242&&n.parent.initializer===n}function Z0(n,t){return Vx(Ey(n),n.elements.indexOf(t))}function $0(n){return jx(Ey(n.parent))}function Wx(n){return Ux(Ey(n.parent),n.name)}function ek(n){return vE(Wx(n),n.objectAssignmentInitializer)}function Ey(n){var t=n.parent;switch(t.kind){case 241:return ht;case 242:return Hy(t)||K;case 219:return Q0(t);case 213:return Ln;case 202:return Z0(t,n);case 223:return $0(t);case 291:return Wx(t);case 292:return ek(t)}return K}function nk(n){var t=n.parent,r=Kx(t.parent),i=t.kind===199?Ux(r,n.propertyName||n.name):n.dotDotDotToken?jx(r):Vx(r,t.elements.indexOf(n));return vE(i,n.initializer)}function Hx(n){var t=pa(n);return t.resolvedType||jl(n)}function tk(n){return n.initializer?Hx(n.initializer):n.parent.parent.kind===241?ht:n.parent.parent.kind===242&&Hy(n.parent.parent)||K}function Kx(n){return n.kind===252?tk(n):nk(n)}function rk(n){return n.kind===252&&n.initializer&&ii(n.initializer)||n.kind!==201&&n.parent.kind===219&&ii(n.parent.right)}function rm(n){switch(n.kind){case 210:return rm(n.expression);case 219:switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return rm(n.left);case 27:return rm(n.right)}}return n}function Jx(n){var t=n.parent;return t.kind===210||t.kind===219&&t.operatorToken.kind===63&&t.left===n||t.kind===219&&t.operatorToken.kind===27&&t.right===n?Jx(t):n}function ak(n){return n.kind===287?_c(jl(n.expression)):Wr}function F_(n){var t=pa(n);if(!t.switchTypes){t.switchTypes=[];for(var r=0,i=n.caseBlock.clauses;r<i.length;r++){var l=i[r];t.switchTypes.push(ak(l))}}return t.switchTypes}function qx(n,t){for(var r=[],i=0,l=n.caseBlock.clauses;i<l.length;i++){var u=l[i];if(u.kind===287){if(e.isStringLiteralLike(u.expression)){r.push(u.expression.text);continue}return e.emptyArray}t&&r.push(void 0)}return r}function ik(n,t){return n.flags&1048576?!e.forEach(n.types,function(r){return!e.contains(t,r)}):e.contains(t,n)}function Hm(n,t){return n===t||t.flags&1048576&&ok(n,t)}function ok(n,t){if(n.flags&1048576){for(var r=0,i=n.types;r<i.length;r++){var l=i[r];if(!Zp(t.types,l))return!1}return!0}return n.flags&1024&&Om(n)===t?!0:Zp(t.types,n)}function Km(n,t){return n.flags&1048576?e.forEach(n.types,t):t(n)}function Dh(n,t){return n.flags&1048576?e.some(n.types,t):t(n)}function nf(n,t){return n.flags&1048576?e.every(n.types,t):t(n)}function sk(n,t){return n.flags&3145728?e.every(n.types,t):t(n)}function Vl(n,t){if(n.flags&1048576){var r=n.types,i=e.filter(r,t);if(i===r)return n;var l=n.origin,u=void 0;if(l&&l.flags&1048576){var S=l.types,M=e.filter(S,function(ge){return!!(ge.flags&1048576)||t(ge)});if(S.length-M.length===r.length-i.length){if(M.length===1)return M[0];u=hb(1048576,M)}}return yb(i,n.objectFlags,void 0,void 0,u)}return n.flags&131072||t(n)?n:Wr}function G_(n,t){return Vl(n,function(r){return r!==t})}function lk(n){return n.flags&1048576?n.types.length:1}function Ws(n,t,r){if(n.flags&131072)return n;if(!(n.flags&1048576))return t(n);for(var i=n.origin,l=i&&i.flags&1048576?i.types:n.types,u,S=!1,M=0,ge=l;M<ge.length;M++){var Ge=ge[M],We=Ge.flags&1048576?Ws(Ge,t,r):t(Ge);S||(S=Ge!==We),We&&(u?u.push(We):u=[We])}return S?u&&Ea(u,r?0:1):n}function zx(n,t,r,i){return n.flags&1048576&&r?Ea(e.map(n.types,t),1,r,i):Ws(n,t)}function Xx(n){return n.flags&3145728?n.types.length:1}function Jm(n,t){return Vl(n,function(r){return(r.flags&t)!==0})}function Yx(n,t){return Hm(ht,n)&&xs(t,128)||Hm(Et,n)&&xs(t,256)||Hm(zt,n)&&xs(t,2048)?Ws(n,function(r){return r.flags&4?Jm(t,4|128):r.flags&8?Jm(t,8|256):r.flags&64?Jm(t,64|2048):r}):n}function qm(n){return n.flags===0}function am(n){return n.flags===0?n.type:n}function zm(n,t){return t?{flags:0,type:n.flags&131072?Or:n}:n}function ck(n){var t=Tl(256);return t.elementType=n,t}function EE(n){return Pn[n.id]||(Pn[n.id]=ck(n))}function Qx(n,t){var r=wh(ed(pT(t)));return Hm(r,n.elementType)?n:EE(Ea([n.elementType,r]))}function uk(n){return n.flags&131072?j:Ll(n.flags&1048576?Ea(n.types,2):n)}function dk(n){return n.finalArrayType||(n.finalArrayType=uk(n.elementType))}function B_(n){return e.getObjectFlags(n)&256?dk(n):n}function fk(n){return e.getObjectFlags(n)&256?n.elementType:Wr}function pk(n){for(var t=!1,r=0,i=n;r<i.length;r++){var l=i[r];if(!(l.flags&131072)){if(!(e.getObjectFlags(l)&256))return!1;t=!0}}return t}function Zx(n){var t=Jx(n),r=t.parent,i=e.isPropertyAccessExpression(r)&&(r.name.escapedText==="length"||r.parent.kind===206&&e.isIdentifier(r.name)&&e.isPushOrUnshiftIdentifier(r.name)),l=r.kind===205&&r.expression===t&&r.parent.kind===219&&r.parent.operatorToken.kind===63&&r.parent.left===r&&!e.isAssignmentTarget(r.parent)&&$s(jl(r.argumentExpression),296);return i||l}function mk(n){return(n.kind===252||n.kind===162||n.kind===165||n.kind===164)&&!!e.getEffectiveTypeAnnotationNode(n)}function U_(n,t){if(n.flags&(16|8192|32|512))return Ir(n);if(n.flags&(3|4)){if(e.getCheckFlags(n)&262144){var r=n.syntheticOrigin;if(r&&U_(r))return Ir(n)}var i=n.valueDeclaration;if(i){if(mk(i))return Ir(n);if(e.isVariableDeclaration(i)&&i.parent.parent.kind===242){var l=i.parent.parent,u=Ty(l.expression,void 0);if(u){var S=l.awaitModifier?15:13;return If(S,u,Ln,void 0)}}t&&e.addRelatedInfo(t,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,Xa(n)))}}}function Ty(n,t){if(!(n.flags&16777216))switch(n.kind){case 79:var r=pu(Vu(n));return U_(r.flags&2097152?ks(r):r,t);case 108:return Ik(n);case 106:return AE(n);case 204:{var i=Ty(n.expression,t);if(i){var l=n.name,u=void 0;if(e.isPrivateIdentifier(l)){if(!i.symbol)return;u=Rn(i,e.getSymbolNameForPrivateIdentifier(i.symbol,l.escapedText))}else u=Rn(i,l.escapedText);return u&&U_(u,t)}return}case 210:return Ty(n.expression,t)}}function V_(n){var t=pa(n),r=t.effectsSignature;if(r===void 0){var i=void 0;n.parent.kind===236?i=Ty(n.expression,void 0):n.expression.kind!==106&&(e.isOptionalChain(n)?i=ju(gg(hi(n.expression),n.expression),n.expression):i=Ih(n.expression));var l=qt(i&&Ul(i)||ln,0),u=l.length===1&&!l[0].typeParameters?l[0]:e.some(l,$x)?Oh(n):void 0;r=t.effectsSignature=u&&$x(u)?u:ui}return r===ui?void 0:r}function $x(n){return!!(Mc(n)||n.declaration&&(bp(n.declaration)||ln).flags&131072)}function hk(n,t){if(n.kind===1||n.kind===3)return t.arguments[n.parameterIndex];var r=e.skipParentheses(t.expression);return e.isAccessExpression(r)?e.skipParentheses(r.expression):void 0}function gk(n){var t=e.findAncestor(n,e.isFunctionOrModuleBlock),r=e.getSourceFileOfNode(n),i=e.getSpanOfTokenAtPosition(r,t.statements.pos);zr.add(e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Sy(n){var t=j_(n,!1);return Yr=n,da=t,t}function xy(n){var t=e.skipParentheses(n);return t.kind===95||t.kind===219&&(t.operatorToken.kind===55&&(xy(t.left)||xy(t.right))||t.operatorToken.kind===56&&xy(t.left)&&xy(t.right))}function j_(n,t){for(;;){if(n===Yr)return da;var r=n.flags;if(r&4096){if(!t){var i=yE(n),l=ot[i];return l!==void 0?l:ot[i]=j_(n,!0)}t=!1}if(r&(16|96|256))n=n.antecedent;else if(r&512){var u=V_(n.node);if(u){var S=Mc(u);if(S&&S.kind===3&&!S.type){var M=n.node.arguments[S.parameterIndex];if(M&&xy(M))return!1}if(_o(u).flags&131072)return!1}n=n.antecedent}else{if(r&4)return e.some(n.antecedents,function(an){return j_(an,!1)});if(r&8){var ge=n.antecedents;if(ge===void 0||ge.length===0)return!1;n=ge[0]}else if(r&128){if(n.clauseStart===n.clauseEnd&&E1(n.switchStatement))return!1;n=n.antecedent}else if(r&1024){Yr=void 0;var Ge=n.target,We=Ge.antecedents;Ge.antecedents=n.antecedents;var ze=j_(n.antecedent,!1);return Ge.antecedents=We,ze}else return!(r&1)}}}function W_(n,t){for(;;){var r=n.flags;if(r&4096){if(!t){var i=yE(n),l=Nt[i];return l!==void 0?l:Nt[i]=W_(n,!0)}t=!1}if(r&(16|96|256|128))n=n.antecedent;else if(r&512){if(n.node.expression.kind===106)return!0;n=n.antecedent}else{if(r&4)return e.every(n.antecedents,function(ge){return W_(ge,!1)});if(r&8)n=n.antecedents[0];else if(r&1024){var u=n.target,S=u.antecedents;u.antecedents=n.antecedents;var M=W_(n.antecedent,!1);return u.antecedents=S,M}else return!!(r&1)}}}function ew(n){switch(n.kind){case 79:var t=Vu(n);return wy(t)||!!t.valueDeclaration&&e.getRootDeclaration(t.valueDeclaration).kind===162&&!nw(t);case 204:case 205:return ew(n.expression)&&_d(pa(n).resolvedSymbol||Yn)}return!1}function im(n,t,r,i){r===void 0&&(r=t);var l,u=!1,S=0,M=0;if(Mn)return K;if(!n.flowNode)return t;dr++;var ge=Ee,Ge=am(an(n.flowNode));Ee=ge;var We=e.getObjectFlags(Ge)&256&&Zx(n)?j:B_(Ge);if(We===eo||n.parent&&n.parent.kind===228&&!(We.flags&131072)&&Dl(We,2097152).flags&131072)return t;return We;function ze(){return u?l:(u=!0,l=P_(n,t,r,i))}function an(Qn){if(S===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:Qn.id}),Mn=!0,gk(n),K;S++;for(var kt;;){var Kt=Qn.flags;if(Kt&4096){for(var nr=ge;nr<Ee;nr++)if(Zl[nr]===Qn)return S--,kn[nr];kt=Qn}var ur=void 0;if(Kt&16){if(ur=et(Qn),!ur){Qn=Qn.antecedent;continue}}else if(Kt&512){if(ur=Ct(Qn),!ur){Qn=Qn.antecedent;continue}}else if(Kt&96)ur=Bt(Qn);else if(Kt&128)ur=cr(Qn);else if(Kt&12){if(Qn.antecedents.length===1){Qn=Qn.antecedents[0];continue}ur=Kt&4?Vr(Qn):yr(Qn)}else if(Kt&256){if(ur=Dt(Qn),!ur){Qn=Qn.antecedent;continue}}else if(Kt&1024){var Cr=Qn.target,ma=Cr.antecedents;Cr.antecedents=Qn.antecedents,ur=an(Qn.antecedent),Cr.antecedents=ma}else if(Kt&2){var Ia=Qn.node;if(Ia&&Ia!==i&&n.kind!==204&&n.kind!==205&&n.kind!==108){Qn=Ia.flowNode;continue}ur=r}else ur=Rg(t);return kt&&(Zl[Ee]=kt,kn[Ee]=ur,Ee++),S--,ur}}function Tn(Qn){var kt=Qn.node;return TE(kt.kind===252||kt.kind===201?Kx(kt):Ey(kt),n)}function et(Qn){var kt=Qn.node;if(Il(n,kt)){if(!Sy(Qn))return eo;if(e.getAssignmentTargetKind(kt)===2){var Kt=an(Qn.antecedent);return zm(ed(am(Kt)),qm(Kt))}if(t===Fe||t===j){if(rk(kt))return EE(Wr);var nr=wp(Tn(Qn));return yo(nr,t)?nr:pn}return t.flags&1048576?Y0(t,Tn(Qn)):t}if(Rx(n,kt)){if(!Sy(Qn))return eo;if(e.isVariableDeclaration(kt)&&(e.isInJSFile(kt)||e.isVarConst(kt))){var ur=e.getDeclaredExpandoInitializer(kt);if(ur&&(ur.kind===211||ur.kind===212))return an(Qn.antecedent)}return t}return e.isVariableDeclaration(kt)&&kt.parent.parent.kind===241&&Il(n,kt.parent.parent.expression)?WE(am(an(Qn.antecedent))):void 0}function st(Qn,kt){var Kt=e.skipParentheses(kt);if(Kt.kind===95)return eo;if(Kt.kind===219){if(Kt.operatorToken.kind===55)return st(st(Qn,Kt.left),Kt.right);if(Kt.operatorToken.kind===56)return Ea([st(Qn,Kt.left),st(Qn,Kt.right)])}return Kr(Qn,Kt,!0)}function Ct(Qn){var kt=V_(Qn.node);if(kt){var Kt=Mc(kt);if(Kt&&(Kt.kind===2||Kt.kind===3)){var nr=an(Qn.antecedent),ur=B_(am(nr)),Cr=Kt.type?Br(ur,Kt,Qn.node,!0):Kt.kind===3&&Kt.parameterIndex>=0&&Kt.parameterIndex<Qn.node.arguments.length?st(ur,Qn.node.arguments[Kt.parameterIndex]):ur;return Cr===ur?nr:zm(Cr,qm(nr))}if(_o(kt).flags&131072)return eo}return}function Dt(Qn){if(t===Fe||t===j){var kt=Qn.node,Kt=kt.kind===206?kt.expression.expression:kt.left.expression;if(Il(n,rm(Kt))){var nr=an(Qn.antecedent),ur=am(nr);if(e.getObjectFlags(ur)&256){var Cr=ur;if(kt.kind===206)for(var ma=0,Ia=kt.arguments;ma<Ia.length;ma++){var Ti=Ia[ma];Cr=Qx(Cr,Ti)}else{var Aa=pT(kt.left.argumentExpression);$s(Aa,296)&&(Cr=Qx(Cr,kt.right))}return Cr===ur?nr:zm(Cr,qm(nr))}return nr}}return}function Bt(Qn){var kt=an(Qn.antecedent),Kt=am(kt);if(Kt.flags&131072)return kt;var nr=(Qn.flags&32)!==0,ur=B_(Kt),Cr=Kr(ur,Qn.node,nr);return Cr===ur?kt:zm(Cr,qm(kt))}function cr(Qn){var kt=Qn.switchStatement.expression,Kt=an(Qn.antecedent),nr=am(Kt);if(Il(n,kt))nr=ri(nr,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd);else if(kt.kind===214&&Il(n,kt.expression))nr=Ui(nr,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd);else{je&&(Wm(kt,n)?nr=ta(nr,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd,function(Cr){return!(Cr.flags&(32768|131072))}):kt.kind===214&&Wm(kt.expression,n)&&(nr=ta(nr,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd,function(Cr){return!(Cr.flags&131072||Cr.flags&128&&Cr.value==="undefined")})));var ur=ca(kt,nr);ur&&(nr=Ji(nr,ur,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd))}return zm(nr,qm(Kt))}function Vr(Qn){for(var kt=[],Kt=!1,nr=!1,ur,Cr=0,ma=Qn.antecedents;Cr<ma.length;Cr++){var Ia=ma[Cr];if(!ur&&Ia.flags&128&&Ia.clauseStart===Ia.clauseEnd){ur=Ia;continue}var Ti=an(Ia),Aa=am(Ti);if(Aa===t&&t===r)return Aa;e.pushIfUnique(kt,Aa),Hm(Aa,t)||(Kt=!0),qm(Ti)&&(nr=!0)}if(ur){var Ti=an(ur),Aa=am(Ti);if(!e.contains(kt,Aa)&&!E1(ur.switchStatement)){if(Aa===t&&t===r)return Aa;kt.push(Aa),Hm(Aa,t)||(Kt=!0),qm(Ti)&&(nr=!0)}}return zm(ba(kt,Kt?2:1),nr)}function yr(Qn){var kt=yE(Qn),Kt=Pc[kt]||(Pc[kt]=new e.Map),nr=ze();if(!nr)return t;var ur=Kt.get(nr);if(ur)return ur;for(var Cr=he;Cr<Jn;Cr++)if(oc[Cr]===Qn&&au[Cr]===nr&&cc[Cr].length)return zm(ba(cc[Cr],1),!0);for(var ma=[],Ia=!1,Ti,Aa=0,fo=Qn.antecedents;Aa<fo.length;Aa++){var zo=fo[Aa],Wo=void 0;if(!Ti)Wo=Ti=an(zo);else{oc[Jn]=Qn,au[Jn]=nr,cc[Jn]=ma,Jn++;var is=ya;ya=void 0,Wo=an(zo),ya=is,Jn--;var il=Kt.get(nr);if(il)return il}var dl=am(Wo);if(e.pushIfUnique(ma,dl),Hm(dl,t)||(Ia=!0),dl===t)break}var Qs=ba(ma,Ia?2:1);return qm(Ti)?zm(Qs,!0):(Kt.set(nr,Qs),Qs)}function ba(Qn,kt){if(pk(Qn))return EE(Ea(e.map(Qn,fk)));var Kt=Ea(e.sameMap(Qn,B_),kt);return Kt!==t&&Kt.flags&t.flags&1048576&&e.arraysEqual(Kt.types,t.types)?t:Kt}function ca(Qn,kt){var Kt,nr,ur=t.flags&1048576?t:kt;return ur.flags&1048576&&(Kt=J0(Qn))&&(nr=tm(Kt))&&Il(n,e.isAccessExpression(Kt)?Kt.expression:Kt.parent.parent.initializer)&&vg(ur,nr)?Kt:void 0}function fi(Qn,kt,Kt){var nr=tm(kt);if(nr===void 0)return Qn;var ur=je&&e.isOptionalChain(kt)&&xs(Qn,98304),Cr=js(ur?Dl(Qn,2097152):Qn,nr);if(!Cr)return Qn;Cr=ur?ef(Cr):Cr;var ma=Kt(Cr);return Vl(Qn,function(Ia){var Ti=Bp(Ia,nr);return!(Ti.flags&131072)&&Eh(Ti,ma)})}function ei(Qn,kt,Kt,nr,ur){if((Kt===36||Kt===37)&&Qn.flags&1048576){var Cr=R_(Qn);if(Cr&&Cr===tm(kt)){var ma=M_(Qn,jl(nr));if(ma)return Kt===(ur?36:37)?ma:$u(js(ma,Cr)||ln)?G_(Qn,ma):Qn}}return fi(Qn,kt,function(Ia){return xa(Ia,Kt,nr,ur)})}function Ji(Qn,kt,Kt,nr,ur){if(nr<ur&&Qn.flags&1048576&&R_(Qn)===tm(kt)){var Cr=F_(Kt).slice(nr,ur),ma=Ea(e.map(Cr,function(Ia){return M_(Qn,Ia)||ln}));if(ma!==ln)return ma}return fi(Qn,kt,function(Ia){return ri(Ia,Kt,nr,ur)})}function ni(Qn,kt,Kt){if(Il(n,kt))return Dl(Qn,Kt?4194304:8388608);je&&Kt&&Wm(kt,n)&&(Qn=Dl(Qn,2097152));var nr=ca(kt,Qn);return nr?fi(Qn,nr,function(ur){return Dl(ur,Kt?4194304:8388608)}):Qn}function vo(Qn,kt,Kt){var nr=Rn(Qn,kt);return nr?nr.flags&16777216?!0:Kt:rc(Qn,kt)?!0:!Kt}function Po(Qn,kt,Kt){return Qn.flags&1048576||Qn.flags&524288&&t!==Qn||fy(Qn)||Qn.flags&2097152&&e.every(Qn.types,function(nr){return nr.symbol!==gn})?Vl(Qn,function(nr){return vo(nr,kt,Kt)}):Qn}function Xt(Qn,kt,Kt){switch(kt.operatorToken.kind){case 63:case 75:case 76:case 77:return ni(Kr(Qn,kt.right,Kt),kt.left,Kt);case 34:case 35:case 36:case 37:var nr=kt.operatorToken.kind,ur=rm(kt.left),Cr=rm(kt.right);if(ur.kind===214&&e.isStringLiteralLike(Cr))return Ra(Qn,ur,nr,Cr,Kt);if(Cr.kind===214&&e.isStringLiteralLike(ur))return Ra(Qn,Cr,nr,ur,Kt);if(Il(n,ur))return xa(Qn,nr,Cr,Kt);if(Il(n,Cr))return xa(Qn,nr,ur,Kt);je&&(Wm(ur,n)?Qn=Ot(Qn,nr,Cr,Kt):Wm(Cr,n)&&(Qn=Ot(Qn,nr,ur,Kt)));var ma=ca(ur,Qn);if(ma)return ei(Qn,ma,nr,Cr,Kt);var Ia=ca(Cr,Qn);if(Ia)return ei(Qn,Ia,nr,ur,Kt);if(nt(ur))return _n(Qn,nr,Cr,Kt);if(nt(Cr))return _n(Qn,nr,ur,Kt);break;case 102:return hr(Qn,kt,Kt);case 101:var Ti=rm(kt.right),Aa=cm(kt.left);if(Aa.flags&128){var fo=e.escapeLeadingUnderscores(Aa.value);if(Tx(Qn)&&e.isAccessExpression(n)&&Il(n.expression,Ti)&&tm(n)===fo)return Dl(Qn,Kt?524288:65536);if(Il(n,Ti))return Po(Qn,fo,Kt)}break;case 27:return Kr(Qn,kt.right,Kt);case 55:return Kt?Kr(Kr(Qn,kt.left,!0),kt.right,!0):Ea([Kr(Qn,kt.left,!1),Kr(Qn,kt.right,!1)]);case 56:return Kt?Ea([Kr(Qn,kt.left,!0),Kr(Qn,kt.right,!0)]):Kr(Kr(Qn,kt.left,!1),kt.right,!1)}return Qn}function Ot(Qn,kt,Kt,nr){var ur=kt===34||kt===36,Cr=kt===34||kt===35?98304:32768,ma=jl(Kt),Ia=ur!==nr&&nf(ma,function(Ti){return!!(Ti.flags&Cr)})||ur===nr&&nf(ma,function(Ti){return!(Ti.flags&(3|Cr))});return Ia?Dl(Qn,2097152):Qn}function xa(Qn,kt,Kt,nr){if(Qn.flags&1)return Qn;(kt===35||kt===37)&&(nr=!nr);var ur=jl(Kt);if(Qn.flags&2&&nr&&(kt===36||kt===37))return ur.flags&(131068|67108864)?ur:ur.flags&524288?Va:Qn;if(ur.flags&98304){if(!je)return Qn;var Cr=kt===34||kt===35,ma=Cr?nr?262144:2097152:ur.flags&65536?nr?131072:1048576:nr?65536:524288;return Dl(Qn,ma)}if(nr){var Ia=kt===34?function(Ti){return S_(Ti,ur)||S0(Ti,ur)}:function(Ti){return S_(Ti,ur)};return Yx(Vl(Qn,Ia),ur)}return $u(ur)?Vl(Qn,function(Ti){return!(gx(Ti)&&S_(Ti,ur))}):Qn}function Ra(Qn,kt,Kt,nr,ur){(Kt===35||Kt===37)&&(ur=!ur);var Cr=rm(kt.expression);if(!Il(n,Cr))return je&&Wm(Cr,n)&&ur===(nr.text!=="undefined")?Dl(Qn,2097152):Qn;if(Qn.flags&1&&nr.text==="function")return Qn;if(ur&&Qn.flags&2&&nr.text==="object"){if(kt.parent.parent.kind===219){var ma=kt.parent.parent;if(ma.operatorToken.kind===55&&ma.right===kt.parent&&gE(n,ma.left))return Va}return Ea([Va,qn])}var Ia=ur?de.get(nr.text)||128:fe.get(nr.text)||32768,Ti=Hr(Qn,nr.text);return Dl(ur&&Ti?Ws(Qn,qi(Ti)):Qn,Ia)}function ta(Qn,kt,Kt,nr,ur){var Cr=Kt!==nr&&e.every(F_(kt).slice(Kt,nr),ur);return Cr?Dl(Qn,2097152):Qn}function ri(Qn,kt,Kt,nr){var ur=F_(kt);if(!ur.length)return Qn;var Cr=ur.slice(Kt,nr),ma=Kt===nr||e.contains(Cr,Wr);if(Qn.flags&2&&!ma){for(var Ia=void 0,Ti=0;Ti<Cr.length;Ti+=1){var Aa=Cr[Ti];if(Aa.flags&(131068|67108864))Ia!==void 0&&Ia.push(Aa);else if(Aa.flags&524288)Ia===void 0&&(Ia=Cr.slice(0,Ti)),Ia.push(Va);else return Qn}return Ea(Ia===void 0?Cr:Ia)}var fo=Ea(Cr),zo=fo.flags&131072?Wr:Yx(Vl(Qn,function(is){return S_(fo,is)}),fo);if(!ma)return zo;var Wo=Vl(Qn,function(is){return!(gx(is)&&e.contains(ur,_c(g0(is))))});return zo.flags&131072?Wo:Ea([zo,Wo])}function Hr(Qn,kt){switch(kt){case"function":return Qn.flags&1?Qn:Mo;case"object":return Qn.flags&2?Ea([Va,qn]):Qn;default:return Ta.get(kt)}}function qi(Qn){return function(kt){if(Qd(kt,Qn))return kt;if(Qd(Qn,kt))return Qn;if(kt.flags&465829888){var Kt=tc(kt)||lt;if(Qd(Qn,Kt))return Go([kt,Qn])}return kt}}function Ui(Qn,kt,Kt,nr){var ur=qx(kt,!0);if(!ur.length)return Qn;var Cr=e.findIndex(ur,function(is){return is===void 0}),ma=Kt===nr||Cr>=Kt&&Cr<nr,Ia,Ti;if(Cr>-1){var Aa=ur.filter(function(is){return is!==void 0}),fo=Cr<Kt?Kt-1:Kt,zo=Cr<nr?nr-1:nr;Ia=Aa.slice(fo,zo),Ti=iT(fo,zo,Aa,ma)}else Ia=ur.slice(Kt,nr),Ti=iT(Kt,nr,ur,ma);if(ma)return Vl(Qn,function(is){return(sp(is)&Ti)===Ti});var Wo=Dl(Ea(Ia.map(function(is){return Hr(Qn,is)||Qn})),Ti);return Dl(Ws(Qn,qi(Wo)),Ti)}function nt(Qn){return(e.isPropertyAccessExpression(Qn)&&e.idText(Qn.name)==="constructor"||e.isElementAccessExpression(Qn)&&e.isStringLiteralLike(Qn.argumentExpression)&&Qn.argumentExpression.text==="constructor")&&Il(n,Qn.expression)}function _n(Qn,kt,Kt,nr){if(nr?kt!==34&&kt!==36:kt!==35&&kt!==37)return Qn;var ur=jl(Kt);if(!MT(ur)&&!ll(ur))return Qn;var Cr=Rn(ur,"prototype");if(!Cr)return Qn;var ma=Ir(Cr),Ia=no(ma)?void 0:ma;if(!Ia||Ia===fs||Ia===Mo)return Qn;if(no(Qn))return Ia;return Vl(Qn,function(Aa){return Ti(Aa,Ia)});function Ti(Aa,fo){return Aa.flags&524288&&e.getObjectFlags(Aa)&1||fo.flags&524288&&e.getObjectFlags(fo)&1?Aa.symbol===fo.symbol:Qd(Aa,fo)}}function hr(Qn,kt,Kt){var nr=rm(kt.left);if(!Il(n,nr))return Kt&&je&&Wm(nr,n)?Dl(Qn,2097152):Qn;var ur=jl(kt.right);if(!bh(ur,Mo))return Qn;var Cr,ma=Rn(ur,"prototype");if(ma){var Ia=Ir(ma);no(Ia)||(Cr=Ia)}if(no(Qn)&&(Cr===fs||Cr===Mo))return Qn;if(!Cr){var Ti=qt(ur,1);Cr=Ti.length?Ea(e.map(Ti,function(fo){return _o(og(fo))})):xt}if(!Kt&&ur.flags&1048576){var Aa=e.find(ur.types,function(fo){return!ll(fo)});if(!Aa)return Qn}return gr(Qn,Cr,Kt,bh)}function gr(Qn,kt,Kt,nr){if(!Kt)return Vl(Qn,function(Cr){if(!nr(Cr,kt))return!0;var ma=tc(Cr);return ma&&ma!==Cr?!nr(ma,kt):!1});if(Qn.flags&1048576){var ur=Vl(Qn,function(Cr){return nr(Cr,kt)});if(!(ur.flags&131072))return ur}return Qd(kt,Qn)?kt:yo(Qn,kt)?Qn:yo(kt,Qn)?kt:Go([Qn,kt])}function Mr(Qn,kt,Kt){if(Bx(kt,n)){var nr=Kt||!e.isCallChain(kt)?V_(kt):void 0,ur=nr&&Mc(nr);if(ur&&(ur.kind===0||ur.kind===1))return Br(Qn,ur,kt,Kt)}if(Tx(Qn)&&e.isAccessExpression(n)&&e.isPropertyAccessExpression(kt.expression)){var Cr=kt.expression;if(Il(n.expression,rm(Cr.expression))&&e.isIdentifier(Cr.name)&&Cr.name.escapedText==="hasOwnProperty"&&kt.arguments.length===1){var ma=kt.arguments[0];if(e.isStringLiteralLike(ma)&&tm(n)===e.escapeLeadingUnderscores(ma.text))return Dl(Qn,Kt?524288:65536)}}return Qn}function Br(Qn,kt,Kt,nr){if(kt.type&&!(no(Qn)&&(kt.type===fs||kt.type===Mo))){var ur=hk(kt,Kt);if(ur){if(Il(n,ur))return gr(Qn,kt.type,nr,Qd);je&&nr&&Wm(ur,n)&&!(sp(kt.type)&65536)&&(Qn=Dl(Qn,2097152));var Cr=ca(ur,Qn);if(Cr)return fi(Qn,Cr,function(ma){return gr(ma,kt.type,nr,Qd)})}}return Qn}function Kr(Qn,kt,Kt){if(e.isExpressionOfOptionalChainRoot(kt)||e.isBinaryExpression(kt.parent)&&kt.parent.operatorToken.kind===60&&kt.parent.left===kt)return fa(Qn,kt,Kt);switch(kt.kind){case 79:if(!Il(n,kt)&&M<5){var nr=Vu(kt);if(wy(nr)){var ur=nr.valueDeclaration;if(ur&&e.isVariableDeclaration(ur)&&!ur.type&&ur.initializer&&ew(n)){M++;var Cr=Kr(Qn,ur.initializer,Kt);return M--,Cr}}}case 108:case 106:case 204:case 205:return ni(Qn,kt,Kt);case 206:return Mr(Qn,kt,Kt);case 210:case 228:return Kr(Qn,kt.expression,Kt);case 219:return Xt(Qn,kt,Kt);case 217:if(kt.operator===53)return Kr(Qn,kt.operand,!Kt);break}return Qn}function fa(Qn,kt,Kt){if(Il(n,kt))return Dl(Qn,Kt?2097152:262144);var nr=ca(kt,Qn);return nr?fi(Qn,nr,function(ur){return Dl(ur,Kt?2097152:262144)}):Qn}}function yk(n,t){if(n=n.exportSymbol||n,(t.kind===79||t.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&(!e.isAssignmentTarget(t)||e.isWriteAccess(t)))){var r=jl(t);if(pu(pa(t).resolvedSymbol)===n)return r}return e.isDeclarationName(t)&&e.isSetAccessor(t.parent)&&Fr(t.parent)?Es(t.parent.symbol,!0):kl(n)}function Eg(n){return e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||t.kind===260||t.kind===300||t.kind===165})}function nw(n){if(!n.valueDeclaration)return!1;var t=e.getRootDeclaration(n.valueDeclaration).parent,r=pa(t);return r.flags&8388608||(r.flags|=8388608,_k(t)||tw(t)),n.isAssigned||!1}function _k(n){return!!e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)&&!!(pa(t).flags&8388608)})}function tw(n){if(n.kind===79){if(e.isAssignmentTarget(n)){var t=Vu(n);t.valueDeclaration&&e.getRootDeclaration(t.valueDeclaration).kind===162&&(t.isAssigned=!0)}}else e.forEachChild(n,tw)}function wy(n){return n.flags&3&&(Sg(n)&2)!==0}function vk(n,t){if(Qc(t.symbol,2)){var r=je&&t.kind===162&&t.initializer&&Jc(n)&32768&&!(Jc(hi(t.initializer))&32768);return Wc(),r?Dl(n,524288):n}else return Kl(t.symbol),n}function bk(n,t){var r=t.parent;return r.kind===204||r.kind===206&&r.expression===t||r.kind===205&&r.expression===t&&!(Tk(n)&&Fm(jl(r.argumentExpression)))}function Ek(n){return!!(n.flags&465829888&&uh(n).flags&(98304|1048576))}function Tk(n){return!!(n.flags&465829888&&!xs(uh(n),98304))}function Sk(n){var t=(e.isIdentifier(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))&&!((e.isJsxOpeningElement(n.parent)||e.isJsxSelfClosingElement(n.parent))&&n.parent.tagName===n)&&xu(n,8);return t&&!g_(t)}function TE(n,t,r){var i=!(r&&r&2)&&Dh(n,Ek)&&(bk(n,t)||Sk(t));return i?Ws(n,function(l){return l.flags&465829888?uh(l):l}):n}function rw(n){return!!e.findAncestor(n,function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)})}function H_(n,t){if(ku(n,111551)&&!Ah(t)&&!hc(n)){var r=ks(n);r.flags&111551&&(pe.isolatedModules||e.shouldPreserveConstEnums(pe)&&rw(t)||!Fg(r)?Sc(n):qo(n))}}function xk(n,t){var r=Vu(n);if(r===Yn)return K;if(r===xe){if(Fw(n))return Hn(n,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),K;var i=e.getContainingFunction(n);return Me<2&&(i.kind===212?Hn(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,256)&&Hn(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),pa(i).flags|=8192,Ir(r)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||H_(r,n);var l=pu(r),u=l.flags&2097152?ks(l):l;u.declarations&&Sg(u)&134217728&&vb(n,u)&&fc(n,u.declarations,n.escapedText);var S=l.valueDeclaration;if(S&&l.flags&32){if(S.kind===255&&e.nodeIsDecorated(S))for(var i=e.getContainingClass(n);i!==void 0;){if(i===S&&i.name!==n){pa(S).flags|=16777216,pa(n).flags|=33554432;break}i=e.getContainingClass(i)}else if(S.kind===224)for(var i=e.getThisContainer(n,!1);i.kind!==300;){if(i.parent===S){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(pa(S).flags|=16777216,pa(n).flags|=33554432);break}i=e.getThisContainer(i,!1)}}Dk(n,r);var M=Ir(l),ge=e.getAssignmentTargetKind(n);if(ge){if(!(l.flags&3)&&!(e.isInJSFile(n)&&l.flags&512)){var Ge=l.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:l.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:l.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:l.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:l.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return Hn(n,Ge,Xa(r)),K}if(_d(l))return l.flags&3?Hn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Xa(r)):Hn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Xa(r)),K}var We=l.flags&2097152;if(l.flags&3){if(ge===1)return M}else if(We)S=es(r);else return M;if(!S)return M;M=TE(M,n,t);for(var ze=e.getRootDeclaration(S).kind===162,an=Eg(S),Tn=Eg(n),et=Tn!==an,st=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&bE(n.parent.parent),Ct=r.flags&134217728;Tn!==an&&(Tn.kind===211||Tn.kind===212||e.isObjectLiteralOrClassExpressionMethod(Tn))&&(wy(l)&&M!==j||ze&&!nw(l));)Tn=Eg(Tn);var Dt=ze||We||et||st||Ct||e.isBindingElement(S)||M!==Fe&&M!==j&&(!je||(M.flags&(3|16384))!==0||Ah(n)||n.parent.kind===273)||n.parent.kind===228||S.kind===252&&S.exclamationToken||S.flags&8388608,Bt=Dt?ze?vk(M,S):M:M===Fe||M===j?Ln:ef(M),cr=im(n,M,Bt,Tn);if(!Zx(n)&&(M===Fe||M===j)){if(cr===Fe||cr===j)return vn&&(Hn(e.getNameOfDeclaration(S),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Xa(r),Ar(cr)),Hn(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Xa(r),Ar(cr))),Rg(cr)}else if(!Dt&&!(Jc(M)&32768)&&Jc(cr)&32768)return Hn(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,Xa(r)),M;return ge?ed(cr):cr}function wk(n,t){return!!e.findAncestor(n,function(r){return r===t?"quit":e.isFunctionLike(r)||r.parent&&e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&r.parent.initializer===r})}function Ak(n,t){return e.findAncestor(n,function(r){return r===t?"quit":r===t.initializer||r===t.condition||r===t.incrementor||r===t.statement})}function SE(n){return e.findAncestor(n,function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)})}function Dk(n,t){if(Me>=2||(t.flags&(2|32))===0||!t.valueDeclaration||e.isSourceFile(t.valueDeclaration)||t.valueDeclaration.parent.kind===290)return;var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),i=wk(n,r),l=SE(r);if(l){if(i){var u=!0;if(e.isForStatement(r)){var S=e.getAncestor(t.valueDeclaration,253);if(S&&S.parent===r){var M=Ak(n.parent,r);if(M){var ge=pa(M);ge.flags|=131072;var Ge=ge.capturedBlockScopeBindings||(ge.capturedBlockScopeBindings=[]);e.pushIfUnique(Ge,t),M===r.initializer&&(u=!1)}}}u&&(pa(l).flags|=65536)}if(e.isForStatement(r)){var S=e.getAncestor(t.valueDeclaration,253);S&&S.parent===r&&kk(n,r)&&(pa(t.valueDeclaration).flags|=4194304)}pa(t.valueDeclaration).flags|=524288}i&&(pa(t.valueDeclaration).flags|=262144)}function Ck(n,t){var r=pa(n);return!!r&&e.contains(r.capturedBlockScopeBindings,Rr(t))}function kk(n,t){for(var r=n;r.parent.kind===210;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(r.parent.kind===217||r.parent.kind===218){var l=r.parent;i=l.operator===45||l.operator===46}return i?!!e.findAncestor(r,function(u){return u===t?"quit":u===t.statement}):!1}function xE(n,t){if(pa(n).flags|=2,t.kind===165||t.kind===169){var r=t.parent;pa(r).flags|=4}else pa(t).flags|=4}function aw(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,aw)}function iw(n){var t=Rr(n),r=ls(t),i=hd(r);return i===it}function ow(n,t,r){var i=t.parent,l=e.getClassExtendsHeritageElement(i);l&&!iw(i)&&(n.flowNode&&!W_(n.flowNode,!1)&&Hn(n,r))}function Lk(n,t){e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)&&t.initializer&&e.textRangeContainsPositionInclusive(t.initializer,n.pos)&&e.length(t.parent.decorators)&&Hn(n,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function K_(n){var t=Ah(n),r=e.getThisContainer(n,!0),i=!1;r.kind===169&&ow(n,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),r.kind===212&&(r=e.getThisContainer(r,!1),i=!0),Lk(n,r);switch(r.kind){case 259:Hn(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 258:Hn(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 169:sw(n,r)&&Hn(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 160:Hn(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!t&&i&&Me<2&&xE(n,r);var l=wE(n,!0,r);if(o){var u=Ir(gn);if(l===u&&i)Hn(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!l){var S=Hn(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var M=wE(r);M&&M!==u&&e.addRelatedInfo(S,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return l||lt}function wE(n,t,r){t===void 0&&(t=!0),r===void 0&&(r=e.getThisContainer(n,!1));var i=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!CE(n)||e.getThisParameter(r))){var l=ka(r)||i&&Ok(r);if(!l){var u=Nk(r);if(i&&u){var S=hi(u).symbol;S&&S.members&&S.flags&16&&(l=ls(S).thisType)}else Wu(r)&&(l=ls(To(r.symbol)).thisType);l||(l=cw(r))}if(l)return im(n,l)}if(e.isClassLike(r.parent)){var M=Rr(r.parent),ge=e.isStatic(r)?Ir(M):ls(M).thisType;return im(n,ge)}if(e.isSourceFile(r))if(r.commonJsModuleIndicator){var Ge=Rr(r);return Ge&&Ir(Ge)}else{if(r.externalModuleIndicator)return Ln;if(t)return Ir(gn)}}function Ik(n){var t=e.getThisContainer(n,!1);if(e.isFunctionLike(t)){var r=Eu(t);if(r.thisParameter)return U_(r.thisParameter)}if(e.isClassLike(t.parent)){var i=Rr(t.parent);return e.isStatic(t)?Ir(i):ls(i).thisType}}function Nk(n){if(n.kind===211&&e.isBinaryExpression(n.parent)&&e.getAssignmentDeclarationKind(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===167&&n.parent.kind===203&&e.isBinaryExpression(n.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===211&&n.parent.kind===291&&n.parent.parent.kind===203&&e.isBinaryExpression(n.parent.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===211&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&e.getAssignmentDeclarationKind(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Ok(n){var t=e.getJSDocType(n);if(t&&t.kind===312){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&r.parameters[0].name.escapedText==="this")return La(r.parameters[0].type)}var i=e.getJSDocThisTag(n);if(i&&i.typeExpression)return La(i.typeExpression)}function sw(n,t){return!!e.findAncestor(n,function(r){return e.isFunctionLikeDeclaration(r)?"quit":r.kind===162&&r.parent===t})}function AE(n){var t=n.parent.kind===206&&n.parent.expression===n,r=e.getSuperContainer(n,!0),i=r,l=!1;if(!t)for(;i&&i.kind===212;)i=e.getSuperContainer(i,!0),l=Me<2;var u=ze(i),S=0;if(!u){var M=e.findAncestor(n,function(an){return an===i?"quit":an.kind===160});return M&&M.kind===160?Hn(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?Hn(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!i||!i.parent||!(e.isClassLike(i.parent)||i.parent.kind===203)?Hn(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Hn(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),K}if(!t&&r.kind===169&&ow(n,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||t?(S=512,!t&&Me>=2&&Me<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(n.parent,function(an){(!e.isSourceFile(an)||e.isExternalOrCommonJsModule(an))&&(pa(an).flags|=134217728)})):S=256,pa(n).flags|=S,i.kind===167&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?pa(i).flags|=4096:pa(i).flags|=2048),l&&xE(n.parent,i),i.parent.kind===203)return Me<2?(Hn(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),K):lt;var ge=i.parent;if(!e.getClassExtendsHeritageElement(ge))return Hn(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),K;var Ge=ls(Rr(ge)),We=Ge&&Ac(Ge)[0];if(!We)return K;if(i.kind===169&&sw(n,i))return Hn(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),K;return S===512?hd(Ge):Rc(We,Ge.thisType);function ze(an){return an?t?an.kind===169:e.isClassLike(an.parent)||an.parent.kind===203?e.isStatic(an)?an.kind===167||an.kind===166||an.kind===170||an.kind===171||an.kind===165||an.kind===168:an.kind===167||an.kind===166||an.kind===170||an.kind===171||an.kind===165||an.kind===164||an.kind===169:!1:!1}}function Pk(n){return(n.kind===167||n.kind===170||n.kind===171)&&n.parent.kind===203?n.parent:n.kind===211&&n.parent.kind===291?n.parent.parent:void 0}function lw(n){return e.getObjectFlags(n)&4&&n.target===se?Oo(n)[0]:void 0}function Rk(n){return Ws(n,function(t){return t.flags&2097152?e.forEach(t.types,lw):lw(t)})}function cw(n){if(n.kind===212)return;if(ZS(n)){var t=Dy(n);if(t){var r=t.thisParameter;if(r)return Ir(r)}}var i=e.isInJSFile(n);if(o||i){var l=Pk(n);if(l){for(var u=Cp(l),S=l,M=u;M;){var ge=Rk(M);if(ge)return si(ge,lE(Tg(l)));if(S.parent.kind!==291)break;S=S.parent.parent,M=Cp(S)}return bc(u?kf(u):ml(l))}var Ge=e.walkUpParenthesizedExpressions(n.parent);if(Ge.kind===219&&Ge.operatorToken.kind===63){var We=Ge.left;if(e.isAccessExpression(We)){var ze=We.expression;if(i&&e.isIdentifier(ze)){var an=e.getSourceFileOfNode(Ge);if(an.commonJsModuleIndicator&&Vu(ze)===an.symbol)return}return bc(ml(ze))}}}return}function uw(n){var t=n.parent;if(!ZS(t))return;var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var i=ZE(r),l=t.parameters.indexOf(n);if(n.dotDotDotToken)return QE(i,l,i.length,lt,void 0,0);var u=pa(r),S=u.resolvedSignature;u.resolvedSignature=xi;var M=l<i.length?wp(hi(i[l])):n.initializer?void 0:Xe;return u.resolvedSignature=S,M}var ge=Dy(t);if(ge){var Ge=t.parameters.indexOf(n)-(e.getThisParameter(t)?1:0);return n.dotDotDotToken&&e.lastOrUndefined(t.parameters)===n?Rh(ge,Ge):sm(ge,Ge)}}function DE(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return La(t);switch(n.kind){case 162:return uw(n);case 201:return Mk(n);case 165:if(e.isStatic(n))return Fk(n)}}function Mk(n){var t=n.parent.parent,r=n.propertyName||n.name,i=DE(t)||t.kind!==201&&t.initializer&&Gy(t);if(!i||e.isBindingPattern(r)||e.isComputedNonLiteralName(r))return;if(t.name.kind===200){var l=e.indexOfNode(n.parent.elements,n);return l<0?void 0:NE(i,l)}var u=np(r);if(Fi(u)){var S=nc(u);return js(i,S)}}function Fk(n){var t=e.isExpression(n.parent)&&xu(n.parent);return t?om(t,Rr(n).escapedName):void 0}function Gk(n,t){var r=n.parent;if(e.hasInitializer(r)&&n===r.initializer){var i=DE(r);if(i)return i;if(!(t&8)&&e.isBindingPattern(r.name))return Sf(r.name,!0,!1)}return}function Bk(n){var t=e.getContainingFunction(n);if(t){var r=kE(t);if(r){var i=e.getFunctionFlags(t);if(i&1){var l=i&2?2:1,u=Ky(r,l,void 0);if(!u)return;r=u.returnType}if(i&2){var S=Ws(r,Hu);return S&&Ea([S,_1(S)])}return r}}return}function Uk(n,t){var r=xu(n,t);if(r){var i=Hu(r);return i&&Ea([i,_1(i)])}return}function Vk(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),i=kE(t);if(i)return n.asteriskToken?i:Zm(0,i,(r&2)!==0)}return}function CE(n){for(var t=!1;n.parent&&!e.isFunctionLike(n.parent);){if(e.isParameter(n.parent)&&(t||n.parent.initializer===n))return!0;e.isBindingElement(n.parent)&&n.parent.initializer===n&&(t=!0),n=n.parent}return!1}function dw(n,t){var r=!!(e.getFunctionFlags(t)&2),i=kE(t);return i&&Zm(n,i,r)||void 0}function kE(n){var t=bp(n);if(t)return t;var r=RE(n);return r&&!ig(r)?_o(r):void 0}function fw(n,t){var r=ZE(n),i=r.indexOf(t);return i===-1?void 0:LE(n,i)}function LE(n,t){var r=pa(n).resolvedSignature===lo?lo:Oh(n);if(e.isJsxOpeningLikeElement(n)&&t===0)return X_(r,n);var i=r.parameters.length-1;return k(r)&&t>=i?kc(Ir(r.parameters[i]),Xd(t-i),256):wu(r,t)}function jk(n,t){return n.parent.kind===208?fw(n.parent,t):void 0}function Wk(n,t){var r=n.parent,i=r.left,l=r.operatorToken,u=r.right;switch(l.kind){case 63:case 76:case 75:case 77:return n===u?Kk(r):void 0;case 56:case 60:var S=xu(r,t);return n===u&&(S&&S.pattern||!S&&!e.isDefaultedExpandoInitializer(r))?jl(i):S;case 55:case 27:return n===u?xu(r,t):void 0;default:return}}function Hk(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n))return Vu(n);if(e.isPropertyAccessExpression(n)){var t=jl(n.expression);return e.isPrivateIdentifier(n.name)?r(t,n.name):Rn(t,n.name.escapedText)}return;function r(i,l){var u=HE(l.escapedText,l);return u&&KE(i,u)}}function Kk(n){var t,r,i=e.getAssignmentDeclarationKind(n);switch(i){case 0:case 4:var l=Hk(n.left),u=l&&l.valueDeclaration;if(u&&(e.isPropertyDeclaration(u)||e.isPropertySignature(u))){var S=e.getEffectiveTypeAnnotationNode(u);return S&&si(La(S),$a(l).mapper)||u.initializer&&jl(n.left)}return i===0?jl(n.left):pw(n);case 5:if(J_(n,i))return pw(n);if(n.left.symbol){var M=n.left.symbol.valueDeclaration;if(!M)return;var ge=e.cast(n.left,e.isAccessExpression),S=e.getEffectiveTypeAnnotationNode(M);if(S)return La(S);if(e.isIdentifier(ge.expression)){var Ge=ge.expression,We=Zi(Ge,Ge.escapedText,111551,void 0,Ge.escapedText,!0);if(We){var ze=We.valueDeclaration&&e.getEffectiveTypeAnnotationNode(We.valueDeclaration);if(ze){var an=e.getElementOrPropertyAccessName(ge);if(an!==void 0)return om(La(ze),an)}return}}return e.isInJSFile(M)?void 0:jl(n.left)}else return jl(n.left);case 1:case 6:case 3:var Tn=(t=n.left.symbol)===null||t===void 0?void 0:t.valueDeclaration;case 2:Tn||(Tn=(r=n.symbol)===null||r===void 0?void 0:r.valueDeclaration);var et=Tn&&e.getEffectiveTypeAnnotationNode(Tn);return et?La(et):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}function J_(n,t){if(t===void 0&&(t=e.getAssignmentDeclarationKind(n)),t===4)return!0;if(!e.isInJSFile(n)||t!==5||!e.isIdentifier(n.left.expression))return!1;var r=n.left.expression.escapedText,i=Zi(n.left,r,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(i==null?void 0:i.valueDeclaration)}function pw(n){if(!n.symbol)return jl(n.left);if(n.symbol.valueDeclaration){var t=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(t){var r=La(t);if(r)return r}}var i=e.cast(n.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1)))return;var l=K_(i.expression),u=e.getElementOrPropertyAccessName(i);return u!==void 0&&om(l,u)||void 0}function Jk(n){return!!(e.getCheckFlags(n)&262144&&!n.type&&Ef(n,0)>=0)}function om(n,t){return Ws(n,function(r){var i;if(Dc(r)){var l=yu(r),u=tc(l)||l,S=nu(e.unescapeLeadingUnderscores(t));if(yo(S,u))return PS(r,S)}else if(r.flags&3670016){var M=Rn(r,t);if(M)return Jk(M)?void 0:Ir(M);if(Ki(r)){var ge=hg(r);if(ge&&tf(t)&&+t>=0)return ge}return(i=Sa(Ai(r),nu(e.unescapeLeadingUnderscores(t))))===null||i===void 0?void 0:i.type}return},!0)}function qk(n,t){return e.Debug.assert(e.isObjectLiteralMethod(n)),n.flags&16777216?void 0:IE(n,t)}function IE(n,t){var r=n.parent,i=e.isPropertyAssignment(n)&&DE(n);if(i)return i;var l=Cp(r,t);if(l){if(Jl(n))return om(l,Rr(n).escapedName);if(n.name){var u=np(n.name);return Ws(l,function(S){var M;return(M=Sa(Ai(S),u))===null||M===void 0?void 0:M.type},!0)}}return}function NE(n,t){return n&&(om(n,""+t)||Ws(n,function(r){return ST(1,r,Ln,void 0,!1)},!0))}function zk(n,t){var r=n.parent;return n===r.whenTrue||n===r.whenFalse?xu(r,t):void 0}function Xk(n,t){var r=Cp(n.openingElement.tagName),i=Q_(Xm(n));if(!(r&&!no(r)&&i&&i!==""))return;var l=e.getSemanticJsxChildren(n.children),u=l.indexOf(t),S=om(r,i);return S&&(l.length===1?S:Ws(S,function(M){return op(M)?kc(M,Xd(u)):M},!0))}function Yk(n){var t=n.parent;return e.isJsxAttributeLike(t)?xu(n):e.isJsxElement(t)?Xk(t,n):void 0}function mw(n){if(e.isJsxAttribute(n)){var t=Cp(n.parent);return!t||no(t)?void 0:om(t,n.name.escapedText)}else return xu(n.parent)}function Ay(n){switch(n.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 151:return!0;case 204:case 210:return Ay(n.expression);case 286:return!n.expression||Ay(n.expression)}return!1}function Qk(n,t){return z0(t,n)||Wb(t,e.concatenate(e.map(e.filter(n.properties,function(r){return!!r.symbol&&r.kind===291&&Ay(r.initializer)&&vg(t,r.symbol.escapedName)}),function(r){return[function(){return pT(r.initializer)},r.symbol.escapedName]}),e.map(e.filter(So(t),function(r){var i;return!!(r.flags&16777216)&&!!((i=n==null?void 0:n.symbol)===null||i===void 0?void 0:i.members)&&!n.symbol.members.has(r.escapedName)&&vg(t,r.escapedName)}),function(r){return[function(){return Ln},r.escapedName]})),yo,t)}function Zk(n,t){return Wb(t,e.concatenate(e.map(e.filter(n.properties,function(r){return!!r.symbol&&r.kind===283&&vg(t,r.symbol.escapedName)&&(!r.initializer||Ay(r.initializer))}),function(r){return[r.initializer?function(){return hi(r.initializer)}:function(){return Jt},r.symbol.escapedName]}),e.map(e.filter(So(t),function(r){var i;return!!(r.flags&16777216)&&!!((i=n==null?void 0:n.symbol)===null||i===void 0?void 0:i.members)&&!n.symbol.members.has(r.escapedName)&&vg(t,r.escapedName)}),function(r){return[function(){return Ln},r.escapedName]})),yo,t)}function Cp(n,t){var r=e.isObjectLiteralMethod(n)?qk(n,t):xu(n,t),i=q_(r,n,t);if(i&&!(t&&t&2&&i.flags&8650752)){var l=Ws(i,Ul,!0);return l.flags&1048576&&e.isObjectLiteralExpression(n)?Qk(n,l):l.flags&1048576&&e.isJsxAttributes(n)?Zk(n,l):l}}function q_(n,t,r){if(n&&xs(n,465829888)){var i=Tg(t);if(i&&e.some(i.inferences,Dm)){if(r&&r&1)return z_(n,i.nonFixingMapper);if(i.returnMapper)return z_(n,i.returnMapper)}}return n}function z_(n,t){return n.flags&465829888?si(n,t):n.flags&1048576?Ea(e.map(n.types,function(r){return z_(r,t)}),0):n.flags&2097152?Go(e.map(n.types,function(r){return z_(r,t)})):n}function xu(n,t){if(n.flags&16777216)return;if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 252:case 162:case 165:case 164:case 201:return Gk(n,t);case 212:case 245:return Bk(n);case 222:return Vk(r);case 216:return Uk(r,t);case 206:if(r.expression.kind===100)return ht;case 207:return fw(r,n);case 209:case 227:return e.isConstTypeReference(r.type)?S(r):La(r.type);case 219:return Wk(n,t);case 291:case 292:return IE(r,t);case 293:return xu(r.parent,t);case 202:{var i=r,l=Cp(i,t);return NE(l,e.indexOfNode(i.elements,n))}case 220:return zk(n,t);case 231:return e.Debug.assert(r.parent.kind===221),jk(r.parent,n);case 210:{var u=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return u?La(u.typeExpression.type):xu(r,t)}case 228:return xu(r,t);case 286:return Yk(r);case 283:case 285:return mw(r);case 278:case 277:return $k(r,t)}return;function S(M){return xu(M)}}function Tg(n){var t=e.findAncestor(n,function(r){return!!r.inferenceContext});return t&&t.inferenceContext}function $k(n,t){return e.isJsxOpeningElement(n)&&n.parent.contextualType&&t!==4?n.parent.contextualType:LE(n,0)}function X_(n,t){return Zw(t)!==0?eL(n,t):rL(n,t)}function eL(n,t){var r=aT(n,ln);r=hw(t,Xm(t),r);var i=kp(T.IntrinsicAttributes,t);return i!==K&&(r=Pm(i,r)),r}function nL(n,t){if(n.compositeSignatures){for(var r=[],i=0,l=n.compositeSignatures;i<l.length;i++){var u=l[i],S=_o(u);if(no(S))return S;var M=js(S,t);if(!M)return;r.push(M)}return Go(r)}var ge=_o(n);return no(ge)?ge:js(ge,t)}function tL(n){if(Lh(n.tagName)){var t=ww(n),r=sv(n,t);return mh(r)}var i=ml(n.tagName);if(i.flags&128){var t=xw(i,n);if(!t)return K;var r=sv(n,t);return mh(r)}return i}function hw(n,t,r){var i=TL(t);if(i){var l=ls(i),u=tL(n);if(i.flags&524288){var S=$a(i).typeParameters;if(e.length(S)>=2){var M=$f([u,r],S,2,e.isInJSFile(n));return sg(i,M)}}if(e.length(l.typeParameters)>=2){var M=$f([u,r],l.typeParameters,2,e.isInJSFile(n));return qd(l,M)}}return r}function rL(n,t){var r=Xm(t),i=SL(r),l=i===void 0?aT(n,ln):i===""?_o(n):nL(n,i);if(!l)return!!i&&!!e.length(t.attributes.properties)&&Hn(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),ln;if(l=hw(t,r,l),no(l))return l;var u=l,S=kp(T.IntrinsicClassAttributes,t);if(S!==K){var M=Lr(S.symbol),ge=_o(n);u=Pm(M?qd(S,$f([ge],M,Gu(M),e.isInJSFile(t))):S,u)}var Ge=kp(T.IntrinsicAttributes,t);return Ge!==K&&(u=Pm(Ge,u)),u}function aL(n){return e.getStrictOptionValue(pe,"noImplicitAny")?e.reduceLeft(n,function(t,r){return t===r||!t?t:qg(t.typeParameters,r.typeParameters)?sL(t,r):void 0}):void 0}function iL(n,t,r){if(!n||!t)return n||t;var i=Ea([Ir(n),si(Ir(t),r)]);return wm(n,i)}function oL(n,t,r){for(var i=dc(n),l=dc(t),u=i>=l?n:t,S=u===n?t:n,M=u===n?i:l,ge=rd(n)||rd(t),Ge=ge&&!rd(u),We=new Array(M+(Ge?1:0)),ze=0;ze<M;ze++){var an=sm(u,ze);u===t&&(an=si(an,r));var Tn=sm(S,ze)||ln;S===t&&(Tn=si(Tn,r));var et=Ea([an,Tn]),st=ge&&!Ge&&ze===M-1,Ct=ze>=td(u)&&ze>=td(S),Dt=ze>=i?void 0:Ph(n,ze),Bt=ze>=l?void 0:Ph(t,ze),cr=Dt===Bt?Dt:Dt?Bt?void 0:Dt:Bt,Vr=oo(1|(Ct&&!st?16777216:0),cr||"arg"+ze);Vr.type=st?Ll(et):et,We[ze]=Vr}if(Ge){var yr=oo(1,"args");yr.type=Ll(wu(S,M)),S===t&&(yr.type=si(yr.type,r)),We[M]=yr}return We}function sL(n,t){var r=n.typeParameters||t.typeParameters,i;n.typeParameters&&t.typeParameters&&(i=vc(t.typeParameters,n.typeParameters));var l=n.declaration,u=oL(n,t,i),S=iL(n.thisParameter,t.thisParameter,i),M=Math.max(n.minArgumentCount,t.minArgumentCount),ge=Ru(l,r,S,u,void 0,void 0,M,(n.flags|t.flags)&39);return ge.compositeKind=2097152,ge.compositeSignatures=e.concatenate(n.compositeKind===2097152&&n.compositeSignatures||[n],[t]),i&&(ge.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?Tm(n.mapper,i):i),ge}function OE(n,t){var r=qt(n,0),i=e.filter(r,function(l){return!lL(l,t)});return i.length===1?i[0]:aL(i)}function lL(n,t){for(var r=0;r<t.parameters.length;r++){var i=t.parameters[r];if(i.initializer||i.questionToken||i.dotDotDotToken||wf(i))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&r--,!rd(n)&&dc(n)<r}function PE(n){return n.kind===211||n.kind===212}function RE(n){return PE(n)||e.isObjectLiteralMethod(n)?Dy(n):void 0}function Dy(n){e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n));var t=ay(n);if(t)return t;var r=Cp(n,1);if(!r)return;if(!(r.flags&1048576))return OE(r,n);for(var i,l=r.types,u=0,S=l;u<S.length;u++){var M=S[u],ge=OE(M,n);if(ge)if(!i)i=[ge];else if(by(i[0],ge,!1,!0,!0,pg))i.push(ge);else return}if(i)return i.length===1?i[0]:Kg(i[0],i)}function cL(n,t){Me<2&&Xl(n,pe.downlevelIteration?1536:1024);var r=hi(n.expression,t);return If(33,r,Ln,n.expression)}function uL(n){return n.isSpread?kc(n.type,Et):n.type}function Ch(n){return n.kind===201&&!!n.initializer||n.kind===219&&n.operatorToken.kind===63}function gw(n,t,r){for(var i=n.elements,l=i.length,u=[],S=[],M=Cp(n),ge=e.isAssignmentTarget(n),Ge=Mh(n),We=!1,ze=0;ze<l;ze++){var an=i[ze];if(an.kind===223){Me<2&&Xl(an,pe.downlevelIteration?1536:1024);var Tn=hi(an.expression,t,r);if(op(Tn))u.push(Tn),S.push(8);else if(ge){var et=Bs(Tn,Et)||ST(65,Tn,Ln,void 0,!1)||ln;u.push(et),S.push(4)}else u.push(If(33,Tn,Ln,an.expression)),S.push(4)}else if($n&&an.kind===225)We=!0,u.push(rn),S.push(2);else{var st=NE(M,u.length),Ct=Fh(an,t,st,r);u.push(Yi(Ct,!0,We)),S.push(We?2:1)}}return ge?Zu(u,S):r||Ge||M&&Dh(M,Sh)?yw(Zu(u,S,Ge)):yw(Ll(u.length?Ea(e.sameMap(u,function(Dt,Bt){return S[Bt]&8?tp(Dt,Et)||lt:Dt}),2):je?qa:Xe,Ge))}function yw(n){if(!(e.getObjectFlags(n)&4))return n;var t=n.literalType;return t||(t=n.literalType=ZT(n),t.objectFlags|=32768|262144),t}function dL(n){switch(n.kind){case 160:return fL(n);case 79:return tf(n.escapedText);case 8:case 10:return tf(n.text);default:return!1}}function fL(n){return $s(rf(n),296)}function tf(n){return(+n).toString()===n}function rf(n){var t=pa(n.expression);if(!t.resolvedType){if(t.resolvedType=hi(n.expression),e.isPropertyDeclaration(n.parent)&&!e.hasStaticModifier(n.parent)&&e.isClassExpression(n.parent.parent)){var r=e.getEnclosingBlockScopeContainer(n.parent.parent),i=SE(r);i&&(pa(i).flags|=65536,pa(n).flags|=524288,pa(n.parent.parent).flags|=524288)}(t.resolvedType.flags&98304||!$s(t.resolvedType,402653316|296|12288)&&!yo(t.resolvedType,wt))&&Hn(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function pL(n){var t,r=(t=n.declarations)===null||t===void 0?void 0:t[0];return tf(n.escapedName)||r&&e.isNamedDeclaration(r)&&dL(r.name)}function _w(n){var t,r=(t=n.declarations)===null||t===void 0?void 0:t[0];return e.isKnownSymbol(n)||r&&e.isNamedDeclaration(r)&&e.isComputedPropertyName(r.name)&&$s(rf(r.name),4096)}function ME(n,t,r,i){for(var l=[],u=t;u<r.length;u++){var S=r[u];(i===ht&&!_w(S)||i===Et&&pL(S)||i===Xr&&_w(S))&&l.push(Ir(r[u]))}var M=l.length?Ea(l,2):Ln;return Qu(i,M,Mh(n))}function vw(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var t=$a(n);if(!t.immediateTarget){var r=es(n);if(!r)return e.Debug.fail();t.immediateTarget=Ed(r,!0)}return t.immediateTarget}function mL(n,t){var r=e.isAssignmentTarget(n);OP(n,r);for(var i=je?e.createSymbolTable():void 0,l=e.createSymbolTable(),u=[],S=xt,M=Cp(n),ge=M&&M.pattern&&(M.pattern.kind===199||M.pattern.kind===203),Ge=Mh(n),We=Ge?8:0,ze=e.isInJSFile(n)&&!e.isInJsonFile(n),an=e.getJSDocEnumTag(n),Tn=!M&&ze&&!an,et=tn,st=!1,Ct=!1,Dt=!1,Bt=!1,cr=0,Vr=n.properties;cr<Vr.length;cr++){var yr=Vr[cr];yr.name&&e.isComputedPropertyName(yr.name)&&rf(yr.name)}for(var ba=0,ca=0,fi=n.properties;ca<fi.length;ca++){var ei=fi[ca],Ji=Rr(ei),ni=ei.name&&ei.name.kind===160?rf(ei.name):void 0;if(ei.kind===291||ei.kind===292||e.isObjectLiteralMethod(ei)){var vo=ei.kind===291?L1(ei,t):ei.kind===292?Fh(!r&&ei.objectAssignmentInitializer?ei.objectAssignmentInitializer:ei.name,t):I1(ei,t);if(ze){var Po=Na(ei);Po?(Fc(vo,Po,ei),vo=Po):an&&an.typeExpression&&Fc(vo,La(an.typeExpression),ei)}et|=e.getObjectFlags(vo)&917504;var Xt=ni&&Fi(ni)?ni:void 0,Ot=Xt?oo(4|Ji.flags,nc(Xt),We|4096):oo(4|Ji.flags,Ji.escapedName,We);if(Xt&&(Ot.nameType=Xt),r){var xa=ei.kind===291&&Ch(ei.initializer)||ei.kind===292&&ei.objectAssignmentInitializer;xa&&(Ot.flags|=16777216)}else if(ge&&!(e.getObjectFlags(M)&512)){var Ra=Rn(M,Ji.escapedName);Ra?Ot.flags|=Ra.flags&16777216:!pe.suppressExcessPropertyErrors&&!go(M,ht)&&Hn(ei.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Xa(Ji),Ar(M))}Ot.declarations=Ji.declarations,Ot.parent=Ji.parent,Ji.valueDeclaration&&(Ot.valueDeclaration=Ji.valueDeclaration),Ot.type=vo,Ot.target=Ji,Ji=Ot,i==null||i.set(Ot.escapedName,Ot)}else if(ei.kind===293){Me<2&&Xl(ei,2),u.length>0&&(S=Sp(S,qi(),n.symbol,et,Ge),u=[],l=e.createSymbolTable(),Ct=!1,Dt=!1,Bt=!1);var vo=vu(hi(ei.expression));if(kh(vo)){var ta=Ab(vo,Ge);if(i&&Ew(ta,i,ei),ba=u.length,S===K)continue;S=Sp(S,ta,n.symbol,et,Ge)}else Hn(ei,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),S=K;continue}else e.Debug.assert(ei.kind===170||ei.kind===171),Mg(ei);ni&&!(ni.flags&8576)?yo(ni,wt)&&(yo(ni,Et)?Dt=!0:yo(ni,Xr)?Bt=!0:Ct=!0,r&&(st=!0)):l.set(Ji.escapedName,Ji),u.push(Ji)}if(ge&&n.parent.kind!==293)for(var ri=0,Hr=So(M);ri<Hr.length;ri++){var Ot=Hr[ri];!l.get(Ot.escapedName)&&!Rn(S,Ot.escapedName)&&(Ot.flags&16777216||Hn(Ot.valueDeclaration||Ot.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),l.set(Ot.escapedName,Ot),u.push(Ot))}if(S===K)return K;if(S!==xt)return u.length>0&&(S=Sp(S,qi(),n.symbol,et,Ge),u=[],l=e.createSymbolTable(),Ct=!1,Dt=!1),Ws(S,function(Ui){return Ui===xt?qi():Ui});return qi();function qi(){var Ui=[];Ct&&Ui.push(ME(n,ba,u,ht)),Dt&&Ui.push(ME(n,ba,u,Et)),Bt&&Ui.push(ME(n,ba,u,Xr));var nt=ns(n.symbol,l,e.emptyArray,e.emptyArray,Ui);return nt.objectFlags|=et|128|262144,Tn&&(nt.objectFlags|=8192),st&&(nt.objectFlags|=512),r&&(nt.pattern=n),nt}}function kh(n){if(n.flags&465829888){var t=tc(n);if(t!==void 0)return kh(t)}return!!(n.flags&(1|67108864|524288|58982400)||Jc(n)&117632&&kh(bx(n))||n.flags&3145728&&e.every(n.types,kh))}function hL(n){UE(n)}function gL(n,t){return Mg(n),Cy(n)||lt}function yL(n){UE(n.openingElement),Lh(n.closingElement.tagName)?GE(n.closingElement):hi(n.closingElement.tagName),Y_(n)}function _L(n,t){return Mg(n),Cy(n)||lt}function vL(n){UE(n.openingFragment);var t=e.getSourceFileOfNode(n);return e.getJSXTransformEnabled(pe)&&(pe.jsxFactory||t.pragmas.has("jsx"))&&!pe.jsxFragmentFactory&&!t.pragmas.has("jsxfrag")&&Hn(n,pe.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Y_(n),Cy(n)||lt}function FE(n){return e.stringContains(n,"-")}function Lh(n){return n.kind===79&&e.isIntrinsicJsxName(n.escapedText)}function bw(n,t){return n.initializer?Fh(n.initializer,t):Jt}function bL(n,t){for(var r=n.attributes,i=je?e.createSymbolTable():void 0,l=e.createSymbolTable(),u=Yt,S=!1,M,ge=!1,Ge=2048,We=Q_(Xm(n)),ze=0,an=r.properties;ze<an.length;ze++){var Tn=an[ze],et=Tn.symbol;if(e.isJsxAttribute(Tn)){var st=bw(Tn,t);Ge|=e.getObjectFlags(st)&917504;var Ct=oo(4|et.flags,et.escapedName);Ct.declarations=et.declarations,Ct.parent=et.parent,et.valueDeclaration&&(Ct.valueDeclaration=et.valueDeclaration),Ct.type=st,Ct.target=et,l.set(Ct.escapedName,Ct),i==null||i.set(Ct.escapedName,Ct),Tn.name.escapedText===We&&(ge=!0)}else{e.Debug.assert(Tn.kind===285),l.size>0&&(u=Sp(u,ca(),r.symbol,Ge,!1),l=e.createSymbolTable());var st=vu(ml(Tn.expression,t));no(st)&&(S=!0),kh(st)?(u=Sp(u,st,r.symbol,Ge,!1),i&&Ew(st,i,Tn)):M=M?Go([M,st]):st}}S||l.size>0&&(u=Sp(u,ca(),r.symbol,Ge,!1));var Dt=n.parent.kind===276?n.parent:void 0;if(Dt&&Dt.openingElement===n&&Dt.children.length>0){var Bt=Y_(Dt,t);if(!S&&We&&We!==""){ge&&Hn(r,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(We));var cr=Cp(n.attributes),Vr=cr&&om(cr,We),yr=oo(4,We);yr.type=Bt.length===1?Bt[0]:Vr&&Dh(Vr,Sh)?Zu(Bt):Ll(Ea(Bt)),yr.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(We),void 0,void 0),e.setParent(yr.valueDeclaration,r),yr.valueDeclaration.symbol=yr;var ba=e.createSymbolTable();ba.set(We,yr),u=Sp(u,ns(r.symbol,ba,e.emptyArray,e.emptyArray,e.emptyArray),r.symbol,Ge,!1)}}if(S)return lt;if(M&&u!==Yt)return Go([M,u]);return M||(u===Yt?ca():u);function ca(){Ge|=tn;var fi=ns(r.symbol,l,e.emptyArray,e.emptyArray,e.emptyArray);return fi.objectFlags|=Ge|128|262144,fi}}function Y_(n,t){for(var r=[],i=0,l=n.children;i<l.length;i++){var u=l[i];if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||r.push(ht);else{if(u.kind===286&&!u.expression)continue;r.push(Fh(u,t))}}return r}function Ew(n,t,r){for(var i=0,l=So(n);i<l.length;i++){var u=l[i];if(!(u.flags&16777216)){var S=t.get(u.escapedName);if(S){var M=Hn(S.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(S.escapedName));e.addRelatedInfo(M,e.createDiagnosticForNode(r,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function EL(n,t){return bL(n.parent,t)}function kp(n,t){var r=Xm(t),i=r&&ul(r),l=i&&Vo(i,n,788968);return l?ls(l):K}function GE(n){var t=pa(n);if(!t.resolvedSymbol){var r=kp(T.IntrinsicElements,n);if(r!==K){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var i=Rn(r,n.tagName.escapedText);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;var l=Bs(r,ht);return l?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(Hn(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+T.IntrinsicElements),t.resolvedSymbol=Yn)}else return vn&&Hn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(T.IntrinsicElements)),t.resolvedSymbol=Yn}return t.resolvedSymbol}function BE(n){var t=n&&e.getSourceFileOfNode(n),r=t&&pa(t);if(r&&r.jsxImplicitImportContainer===!1)return;if(r&&r.jsxImplicitImportContainer)return r.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(pe,t),pe);if(!i)return;var l=e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.Classic,u=l?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,S=du(n,i,u,n),M=S&&S!==Yn?To(Ho(S)):void 0;return r&&(r.jsxImplicitImportContainer=M||!1),M}function Xm(n){var t=n&&pa(n);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||t.jsxNamespace!==!1){var r=BE(n);if(!r||r===Yn){var i=Eo(n);r=Zi(n,i,1920,void 0,i,!1)}if(r){var l=Ho(Vo(ul(Ho(r)),T.JSX,1920));if(l&&l!==Yn)return t&&(t.jsxNamespace=l),l}t&&(t.jsxNamespace=!1)}var u=Ho(_h(T.JSX,1920,void 0));return u===Yn?void 0:u}function Tw(n,t){var r=t&&Vo(t.exports,n,788968),i=r&&ls(r),l=i&&So(i);if(l){if(l.length===0)return"";if(l.length===1)return l[0].escapedName;l.length>1&&r.declarations&&Hn(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}return}function TL(n){return n&&Vo(n.exports,T.LibraryManagedAttributes,788968)}function SL(n){return Tw(T.ElementAttributesPropertyNameContainer,n)}function Q_(n){return Tw(T.ElementChildrenAttributeNameContainer,n)}function Sw(n,t){if(n.flags&4)return[xi];if(n.flags&128){var r=xw(n,t);if(r){var i=sv(t,r);return[i]}else return Hn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+T.IntrinsicElements),e.emptyArray}var l=Ul(n),u=qt(l,1);return u.length===0&&(u=qt(l,0)),u.length===0&&l.flags&1048576&&(u=sh(e.map(l.types,function(S){return Sw(S,t)}))),u}function xw(n,t){var r=kp(T.IntrinsicElements,t);if(r!==K){var i=n.value,l=Rn(r,e.escapeLeadingUnderscores(i));if(l)return Ir(l);var u=Bs(r,ht);return u||void 0}return lt}function xL(n,t,r){if(n===1){var i=Dw(r);i&&Uu(t,i,Tt,r.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,S)}else if(n===0){var l=Aw(r);l&&Uu(t,l,Tt,r.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,S)}else{var i=Dw(r),l=Aw(r);if(!i||!l)return;var u=Ea([i,l]);Uu(t,u,Tt,r.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,S)}function S(){var M=e.getTextOfNode(r.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,M)}}function ww(n){e.Debug.assert(Lh(n.tagName));var t=pa(n);if(!t.resolvedJsxElementAttributesType){var r=GE(n);return t.jsxFlags&1?t.resolvedJsxElementAttributesType=Ir(r)||K:t.jsxFlags&2?t.resolvedJsxElementAttributesType=Bs(kp(T.IntrinsicElements,n),ht)||K:t.resolvedJsxElementAttributesType=K}return t.resolvedJsxElementAttributesType}function Aw(n){var t=kp(T.ElementClass,n);return t===K?void 0:t}function Cy(n){return kp(T.Element,n)}function Dw(n){var t=Cy(n);if(t)return Ea([t,qn])}function wL(n){var t=kp(T.IntrinsicElements,n);return t?So(t):e.emptyArray}function AL(n){(pe.jsx||0)===0&&Hn(n,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Cy(n)===void 0&&(vn&&Hn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist))}function UE(n){var t=e.isJsxOpeningLikeElement(n);if(t&&PP(n),AL(n),!BE(n)){var r=zr&&pe.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,i=Eo(n),l=t?n.tagName:n,u=void 0;e.isJsxOpeningFragment(n)&&i==="null"||(u=Zi(l,i,111551,r,i,!0)),u&&(u.isReferenced=67108863,u.flags&2097152&&!hc(u)&&Sc(u))}if(t){var S=n,M=Oh(S);cv(M,n),xL(Zw(S),_o(M),S)}}function VE(n,t,r){if(n.flags&524288){if(Ld(n,t)||rc(n,t)||wl(t)&&go(n,ht)||r&&FE(t))return!0}else if(n.flags&3145728&&ky(n))for(var i=0,l=n.types;i<l.length;i++){var u=l[i];if(VE(u,t,r))return!0}return!1}function ky(n){return!!(n.flags&524288&&!(e.getObjectFlags(n)&512)||n.flags&67108864||n.flags&1048576&&e.some(n.types,ky)||n.flags&2097152&&e.every(n.types,ky))}function DL(n,t){if(MP(n),n.expression){var r=hi(n.expression,t);return n.dotDotDotToken&&r!==lt&&!zl(r)&&Hn(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}else return K}function Sg(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function jE(n){if(n.flags&8192||e.getCheckFlags(n)&4)return!0;if(e.isInJSFile(n.valueDeclaration)){var t=n.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&e.getAssignmentDeclarationKind(t)===3}}function Z_(n,t,r,i,l,u){u===void 0&&(u=!0);var S=e.getDeclarationModifierFlagsFromSymbol(l,r),M=n.kind===159?n.right:n.kind===198?n:n.kind===201&&n.propertyName?n.propertyName:n.name;if(t){if(Me<2&&Cw(l))return u&&Hn(M,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(S&128)return u&&Hn(M,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Xa(l),Ar(xm(l))),!1}if(S&128&&Cw(l)&&(e.isThisProperty(n)||e.isThisInitializedObjectBindingExpression(n)||e.isObjectBindingPattern(n.parent)&&e.isThisInitializedDeclaration(n.parent.parent))){var ge=e.getClassLikeDeclarationOfSymbol($l(l));if(ge&&IO(n))return u&&Hn(M,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Xa(l),e.getTextOfIdentifierOrLiteral(ge.name)),!1}if(!(S&24))return!0;if(S&8){var ge=e.getClassLikeDeclarationOfSymbol($l(l));return NT(n,ge)?!0:(u&&Hn(M,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Xa(l),Ar(xm(l))),!1)}if(t)return!0;var Ge=LA(n,function(an){var Tn=ls(Rr(an));return l0(Tn,l,r)?Tn:void 0});if(!Ge){var We=void 0;if(S&32||!(We=CL(n))||!We.type)return u&&Hn(M,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Xa(l),Ar(xm(l)||i)),!1;var ze=La(We.type);Ge=(ze.flags&262144?Cc(ze):ze).target}return S&32?!0:(i.flags&262144&&(i=i.isThisType?Cc(i):tc(i)),!i||!ve(i,Ge)?(u&&Hn(M,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Xa(l),Ar(Ge),Ar(i)),!1):!0)}function CL(n){var t=e.getThisContainer(n,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}function Cw(n){return!!_y(n,function(t){return!(t.flags&8192)})}function Ih(n){return ju(hi(n),n)}function $_(n){return!!((je?Jc(n):n.flags)&98304)}function WE(n){return $_(n)?kf(n):n}function kL(n,t){Hn(n,t&32768?t&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function LL(n,t){Hn(n,t&32768?t&65536?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function kw(n,t,r){if(je&&n.flags&2)return Hn(t,e.Diagnostics.Object_is_of_type_unknown),K;var i=(je?Jc(n):n.flags)&98304;if(i){r(t,i);var l=kf(n);return l.flags&(98304|131072)?K:l}return n}function ju(n,t){return kw(n,t,kL)}function Lw(n,t){var r=ju(n,t);return r!==K&&r.flags&16384&&Hn(t,e.Diagnostics.Object_is_possibly_undefined),r}function Iw(n,t){return n.flags&32?IL(n,t):JE(n,n.expression,Ih(n.expression),n.name,t)}function IL(n,t){var r=hi(n.expression),i=gg(r,n.expression);return C_(JE(n,n.expression,ju(i,n.expression),n.name,t),n,i!==r)}function Nw(n,t){var r=e.isPartOfTypeQuery(n)&&e.isThisIdentifier(n.left)?ju(K_(n.left),n.left):Ih(n.left);return JE(n,n.left,r,n.right,t)}function Ow(n){for(;n.parent.kind===210;)n=n.parent;return e.isCallOrNewExpression(n.parent)&&n.parent.expression===n}function HE(n,t){for(var r=e.getContainingClass(t);r;r=e.getContainingClass(r)){var i=r.symbol,l=e.getSymbolNameForPrivateIdentifier(i,n),u=i.members&&i.members.get(l)||i.exports&&i.exports.get(l);if(u)return u}}function KE(n,t){return Rn(n,t.escapedName)}function NL(n,t,r){var i,l=So(n);l&&e.forEach(l,function(ze){var an=ze.valueDeclaration;if(an&&e.isNamedDeclaration(an)&&e.isPrivateIdentifier(an.name)&&an.name.escapedText===t.escapedText)return i=ze,!0});var u=H(t);if(i){var S=e.Debug.checkDefined(i.valueDeclaration),M=e.Debug.checkDefined(e.getContainingClass(S));if(r==null?void 0:r.valueDeclaration){var ge=r.valueDeclaration,Ge=e.getContainingClass(ge);if(e.Debug.assert(!!Ge),e.findAncestor(Ge,function(ze){return M===ze})){var We=Hn(t,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,u,Ar(n));return e.addRelatedInfo(We,e.createDiagnosticForNode(ge,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,u),e.createDiagnosticForNode(S,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,u)),!0}}return Hn(t,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,u,H(M.name||ue)),!0}return!1}function Pw(n,t){return(gs(t)||e.isThisProperty(n)&&xl(t))&&e.getThisContainer(n,!0)===Os(t)}function JE(n,t,r,i,l){var u=pa(t).resolvedSymbol,S=e.getAssignmentTargetKind(n),M=Ul(S!==0||Ow(n)?bc(r):r),ge=no(M)||M===Or,Ge;if(e.isPrivateIdentifier(i)){Me<99&&(S!==0&&Xl(n,1048576),S!==1&&Xl(n,524288));var We=HE(i.escapedText,i);if(S&&We&&We.valueDeclaration&&e.isMethodDeclaration(We.valueDeclaration)&&Dr(i,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(i)),(We==null?void 0:We.valueDeclaration)&&pe.target===99&&!Ye){var ze=e.getContainingClass(We.valueDeclaration),an=e.findAncestor(n,function(Vr){return Vr===ze?"quit":!!(e.isPropertyDeclaration(Vr.parent)&&e.hasStaticModifier(Vr.parent)&&Vr.parent.initializer===Vr&&Vr.parent.parent===ze)});if(an){var Tn=Rr(an.parent);e.Debug.assert(Tn,"Initializer without declaration symbol");var et=Hn(n,e.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false,e.symbolName(We));e.addRelatedInfo(et,e.createDiagnosticForNode(an.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(Tn)))}}if(ge){if(We)return M;if(!e.getContainingClass(i))return Dr(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),lt}if(Ge=We?KE(r,We):void 0,!Ge&&NL(r,i,We))return K;var st=Ge&&Ge.flags&65536&&!(Ge.flags&32768);st&&S!==1&&Hn(n,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(ge)return e.isIdentifier(t)&&u&&H_(u,n),M;Ge=Rn(M,i.escapedText)}e.isIdentifier(t)&&u&&(pe.isolatedModules||!(Ge&&Fg(Ge))||e.shouldPreserveConstEnums(pe)&&rw(n))&&H_(u,n);var Ct;if(Ge){Ge.declarations&&Sg(Ge)&134217728&&vb(n,Ge)&&fc(i,Ge.declarations,i.escapedText),OL(Ge,n,i),nv(Ge,n,Vw(t,u)),pa(n).resolvedSymbol=Ge;var cr=e.isWriteAccess(n);if(Z_(n,t.kind===106,cr,M,Ge),w1(n,Ge,S))return Hn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),K;Ct=Pw(n,Ge)?Fe:cr?jd(Ge):Ir(Ge)}else{var Dt=!e.isPrivateIdentifier(i)&&(S===0||!vm(r)||fy(r))?rc(M,i.escapedText):void 0;if(!(Dt&&Dt.type)){var Bt=Rw(n,r.symbol,!0);return!Bt&&dg(r)?lt:r.symbol===gn?(gn.exports.has(i.escapedText)&&gn.exports.get(i.escapedText).flags&418?Hn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Ar(r)):vn&&Hn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ar(r)),lt):(i.escapedText&&!In(n)&&ML(i,fy(r)?M:r,Bt),K)}Dt.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&&Hn(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ar(M)),Ct=pe.noUncheckedIndexedAccess&&!e.isAssignmentTarget(n)?Ea([Dt.type,Ln]):Dt.type,pe.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(n)&&Hn(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText))}return Mw(n,Ge,Ct,i,l)}function Rw(n,t,r){var i=e.getSourceFileOfNode(n);if(i&&(pe.checkJs===void 0&&i.checkJsDirective===void 0&&(i.scriptKind===1||i.scriptKind===2))){var l=e.forEach(t==null?void 0:t.declarations,e.getSourceFileOfNode);return!(i!==l&&!!l&&Tc(l))&&!(r&&t&&t.flags&32)&&!(!!n&&r&&e.isPropertyAccessExpression(n)&&n.expression.kind===108)}return!1}function Mw(n,t,r,i,l){var u=e.getAssignmentTargetKind(n);if(u===1)return jm(r,!!(t&&t.flags&16777216));if(t&&!(t.flags&(3|4|98304))&&!(t.flags&8192&&r.flags&1048576)&&!Dv(t.declarations))return r;if(r===Fe)return Fl(n,t);r=TE(r,n,l);var S=!1;if(je&&dn&&e.isAccessExpression(n)&&n.expression.kind===108){var M=t&&t.valueDeclaration;if(M&&bA(M)&&!e.isStatic(M)){var ge=Eg(n);ge.kind===169&&ge.parent===M.parent&&!(M.flags&8388608)&&(S=!0)}}else je&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&Eg(n)===Eg(t.valueDeclaration)&&(S=!0);var Ge=im(n,r,S?ef(r):r);return S&&!(Jc(r)&32768)&&Jc(Ge)&32768?(Hn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,Xa(t)),r):u?ed(Ge):Ge}function OL(n,t,r){var i=n.valueDeclaration;if(!i||e.getSourceFileOfNode(t).isDeclarationFile)return;var l,u=e.idText(r);Fw(t)&&!fh(i)&&!(e.isAccessExpression(t)&&e.isAccessExpression(t.expression))&&!pc(i,r)&&(pe.useDefineForClassFields||!PL(n))?l=Hn(r,e.Diagnostics.Property_0_is_used_before_its_initialization,u):i.kind===255&&t.parent.kind!==176&&!(i.flags&8388608)&&!pc(i,r)&&(l=Hn(r,e.Diagnostics.Class_0_used_before_its_declaration,u)),l&&e.addRelatedInfo(l,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,u))}function Fw(n){return!!e.findAncestor(n,function(t){switch(t.kind){case 165:return!0;case 291:case 167:case 170:case 171:case 293:case 160:case 231:case 286:case 283:case 284:case 285:case 278:case 226:case 289:return!1;case 212:case 236:return e.isBlock(t.parent)&&e.isClassStaticBlockDeclaration(t.parent.parent)?!0:"quit";default:return e.isExpressionNode(t)?!1:"quit"}})}function PL(n){if(!(n.parent.flags&32))return!1;for(var t=Ir(n.parent);;){if(t=t.symbol&&RL(t),!t)return!1;var r=Rn(t,n.escapedName);if(r&&r.valueDeclaration)return!0}}function RL(n){var t=Ac(n);return t.length===0?void 0:Go(t)}function ML(n,t,r){var i,l;if(!e.isPrivateIdentifier(n)&&t.flags&1048576&&!(t.flags&131068))for(var u=0,S=t.types;u<S.length;u++){var M=S[u];if(!Rn(M,n.escapedText)&&!rc(M,n.escapedText)){i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Ar(M));break}}if(Gw(n.escapedText,t)){var ge=e.declarationNameToString(n),Ge=Ar(t);i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ge,Ge,Ge+"."+ge)}else{var We=By(t);if(We&&Rn(We,n.escapedText))i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Ar(t)),l=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);else{var ze=e.declarationNameToString(n),an=Ar(t),Tn=BL(ze,t);if(Tn!==void 0)i=e.chainDiagnosticMessages(i,e.Diagnostics.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,ze,an,Tn);else{var et=qE(n,t);if(et!==void 0){var st=e.symbolName(et),Ct=r?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;i=e.chainDiagnosticMessages(i,Ct,ze,an,st),l=et.valueDeclaration&&e.createDiagnosticForNode(et.valueDeclaration,e.Diagnostics._0_is_declared_here,st)}else{var Dt=FL(t)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;i=e.chainDiagnosticMessages(sn(i,t),Dt,ze,an)}}}}var Bt=e.createDiagnosticForNodeFromMessageChain(n,i);l&&e.addRelatedInfo(Bt,l),Zo(!r,Bt)}function FL(n){return pe.lib&&!pe.lib.includes("dom")&&sk(n,function(t){return t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName))})&&Zd(n)}function Gw(n,t){var r=t.symbol&&Rn(Ir(t.symbol),n);return r!==void 0&&!!r.valueDeclaration&&e.isStatic(r.valueDeclaration)}function GL(n){for(var t=H(n),r=e.getScriptTargetFeatures(),i=e.getOwnKeys(r),l=0,u=i;l<u.length;l++){var S=u[l],M=e.getOwnKeys(r[S]);if(M!==void 0&&e.contains(M,t))return S}}function BL(n,t){var r=Ul(t).symbol;if(!r)return;for(var i=e.getScriptTargetFeatures(),l=e.getOwnKeys(i),u=0,S=l;u<S.length;u++){var M=S[u],ge=i[M],Ge=ge[e.symbolName(r)];if(Ge!==void 0&&e.contains(Ge,n))return M}}function Bw(n,t){return Ly(n,So(t),106500)}function qE(n,t){var r=So(t);if(typeof n!="string"){var i=n.parent;e.isPropertyAccessExpression(i)&&(r=e.filter(r,function(l){return jw(i,t,l)})),n=e.idText(n)}return Ly(n,r,111551)}function Uw(n,t){var r=e.isString(n)?n:e.idText(n),i=So(t),l=r==="for"?e.find(i,function(u){return e.symbolName(u)==="htmlFor"}):r==="class"?e.find(i,function(u){return e.symbolName(u)==="className"}):void 0;return l!=null?l:Ly(r,i,111551)}function zE(n,t){var r=qE(n,t);return r&&e.symbolName(r)}function XE(n,t,r){e.Debug.assert(t!==void 0,"outername should always be defined");var i=vl(n,t,r,void 0,t,!1,!1,function(l,u,S){e.Debug.assertEqual(t,u,"name should equal outerName");var M=Vo(l,u,S);return M||Ly(e.unescapeLeadingUnderscores(u),e.arrayFrom(l.values()),S)});return i}function UL(n,t,r){var i=XE(n,t,r);return i&&e.symbolName(i)}function ev(n,t){return t.exports&&Ly(e.idText(n),sc(t),2623475)}function VL(n,t){var r=ev(n,t);return r&&e.symbolName(r)}function jL(n,t,r){function i(S){var M=Ld(n,S);if(M){var ge=Am(Ir(M));return!!ge&&td(ge)>=1&&yo(r,wu(ge,0))}return!1}var l=e.isAssignmentTarget(t)?"set":"get";if(!i(l))return;var u=e.tryGetPropertyAccessOrIdentifierToString(t.expression);return u===void 0?u=l:u+="."+l,u}function Ly(n,t,r){return e.getSpellingSuggestion(n,t,i);function i(l){var u=e.symbolName(l);if(e.startsWith(u,'"'))return;if(l.flags&r)return u;if(l.flags&2097152){var S=Lu(l);if(S&&S.flags&r)return u}return}}function nv(n,t,r){var i=n&&n.flags&106500&&n.valueDeclaration;if(!i)return;var l=e.hasEffectiveModifier(i,8),u=n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name);if(!l&&!u)return;if(t&&e.isWriteOnlyAccess(t)&&!(n.flags&65536))return;if(r){var S=e.findAncestor(t,e.isFunctionLikeDeclaration);if(S&&S.symbol===n)return}(e.getCheckFlags(n)&1?$a(n).target:n).isReferenced=67108863}function Vw(n,t){return n.kind===108||!!t&&e.isEntityNameExpression(n)&&t===Vu(e.getFirstIdentifier(n))}function WL(n,t){switch(n.kind){case 204:return Iy(n,n.expression.kind===106,t,bc(hi(n.expression)));case 159:return Iy(n,!1,t,bc(hi(n.left)));case 198:return Iy(n,!1,t,La(n))}}function jw(n,t,r){return Iy(n,n.kind===204&&n.expression.kind===106,r.escapedName,t)}function Iy(n,t,r,i){if(i===K||no(i))return!0;var l=Rn(i,r);if(l){if(l.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(l.valueDeclaration)){var u=e.getContainingClass(l.valueDeclaration);return!e.isOptionalChain(n)&&!!e.findAncestor(n,function(S){return S===u})}return Z_(n,t,!1,i,l,!1)}return e.isInJSFile(n)&&(i.flags&1048576)!==0&&i.types.some(function(S){return Iy(n,t,r,S)})}function HL(n){var t=n.initializer;if(t.kind===253){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return Rr(r)}else if(t.kind===79)return Vu(t);return}function KL(n){return vi(n).length===1&&!!go(n,Et)}function JL(n){var t=e.skipParentheses(n);if(t.kind===79){var r=Vu(t);if(r.flags&3)for(var i=n,l=n.parent;l;){if(l.kind===241&&i===l.statement&&HL(l)===r&&KL(jl(l.expression)))return!0;i=l,l=l.parent}}return!1}function qL(n,t){return n.flags&32?zL(n,t):Ww(n,Ih(n.expression),t)}function zL(n,t){var r=hi(n.expression),i=gg(r,n.expression);return C_(Ww(n,ju(i,n.expression),t),n,i!==r)}function Ww(n,t,r){var i=e.getAssignmentTargetKind(n)!==0||Ow(n)?bc(t):t,l=n.argumentExpression,u=hi(l);if(i===K||i===Or)return i;if(lT(i)&&!e.isStringLiteralLike(l))return Hn(l,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),K;var S=JL(l)?Et:u,M=e.isAssignmentTarget(n)?4|(vm(i)&&!fy(i)?2:0):32,ge=tp(i,S,M,n)||K;return W1(Mw(n,pa(n).resolvedSymbol,ge,l,r),n)}function Hw(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function Ym(n){return Hw(n)&&e.forEach(n.typeArguments,so),n.kind===208?hi(n.template):e.isJsxOpeningLikeElement(n)?hi(n.attributes):n.kind!==163&&e.forEach(n.arguments,function(t){hi(t)}),xi}function nd(n){return Ym(n),ui}function XL(n,t,r){var i,l,u=0,S,M=-1,ge;e.Debug.assert(!t.length);for(var Ge=0,We=n;Ge<We.length;Ge++){var ze=We[Ge],an=ze.declaration&&Rr(ze.declaration),Tn=ze.declaration&&ze.declaration.parent;!l||an===l?i&&Tn===i?S=S+1:(i=Tn,S=u):(S=u=t.length,i=Tn),l=an,N(ze)?(M++,ge=M,u++):ge=S,t.splice(ge,0,r?Qy(ze,r):ze)}}function tv(n){return!!n&&(n.kind===223||n.kind===230&&n.isSpread)}function rv(n){return e.findIndex(n,tv)}function Kw(n){return!!(n.flags&16384)}function YL(n){return!!(n.flags&(16384|32768|2|1))}function av(n,t,r,i){i===void 0&&(i=!1);var l,u=!1,S=dc(r),M=td(r);if(n.kind===208)if(l=t.length,n.template.kind===221){var ge=e.last(n.template.templateSpans);u=e.nodeIsMissing(ge.literal)||!!ge.literal.isUnterminated}else{var Ge=n.template;e.Debug.assert(Ge.kind===14),u=!!Ge.isUnterminated}else if(n.kind===163)l=e1(n,r);else if(e.isJsxOpeningLikeElement(n)){if(u=n.attributes.end===n.end,u)return!0;l=M===0?t.length:1,S=t.length===0?S:1,M=Math.min(M,1)}else if(n.arguments){l=i?t.length+1:t.length,u=n.arguments.end===n.end;var We=rv(t);if(We>=0)return We>=td(r)&&(rd(r)||We<dc(r))}else return e.Debug.assert(n.kind===207),td(r)===0;if(!rd(r)&&l>S)return!1;if(u||l>=M)return!0;for(var ze=l;ze<M;ze++){var an=wu(r,ze);if(Vl(an,e.isInJSFile(n)&&!je?YL:Kw).flags&131072)return!1}return!0}function Jw(n,t){var r=e.length(n.typeParameters),i=Gu(n.typeParameters);return!e.some(t)||t.length>=i&&t.length<=r}function Am(n){return xg(n,0,!1)}function qw(n){return xg(n,0,!1)||xg(n,1,!1)}function xg(n,t,r){if(n.flags&524288){var i=Fu(n);if(r||i.properties.length===0&&i.indexInfos.length===0){if(t===0&&i.callSignatures.length===1&&i.constructSignatures.length===0)return i.callSignatures[0];if(t===1&&i.constructSignatures.length===1&&i.callSignatures.length===0)return i.constructSignatures[0]}}return}function zw(n,t,r,i){var l=yg(n.typeParameters,n,0,i),u=Ag(t),S=r&&(u&&u.flags&262144?r.nonFixingMapper:r.mapper),M=S?Um(t,S):t;return aE(M,n,function(ge,Ge){Id(l.inferences,ge,Ge)}),r||iE(t,n,function(ge,Ge){Id(l.inferences,ge,Ge,128)}),ly(n,hE(l),e.isInJSFile(t.declaration))}function QL(n,t,r,i){var l=X_(t,n),u=Qm(n.attributes,l,i,r);return Id(i.inferences,u,l),hE(i)}function Xw(n){if(!n)return At;var t=hi(n);return e.isOptionalChainRoot(n.parent)?kf(t):e.isOptionalChain(n.parent)?nE(t):t}function YE(n,t,r,i,l){if(e.isJsxOpeningLikeElement(n))return QL(n,t,i,l);if(n.kind!==163){var u=xu(n,e.every(t.typeParameters,function(fi){return!!Zf(fi)})?8:0);if(u){var S=Tg(n),M=lE(k0(S,1)),ge=si(u,M),Ge=Am(ge),We=Ge&&Ge.typeParameters?mh(ib(Ge,Ge.typeParameters)):ge,ze=_o(t);Id(l.inferences,We,ze,128);var an=yg(t.typeParameters,t,l.flags),Tn=si(u,S&&S.returnMapper);Id(an.inferences,Tn,ze),l.returnMapper=e.some(an.inferences,Dm)?lE(L0(an)):void 0}}var et=Dg(t),st=et?Math.min(dc(t)-1,r.length):r.length;if(et&&et.flags&262144){var Ct=e.find(l.inferences,function(fi){return fi.typeParameter===et});Ct&&(Ct.impliedArity=e.findIndex(r,tv,st)<0?r.length-st:void 0)}var Dt=Af(t);if(Dt){var Bt=$w(n);Id(l.inferences,Xw(Bt),Dt)}for(var cr=0;cr<st;cr++){var Vr=r[cr];if(Vr.kind!==225){var yr=wu(t,cr),ba=Qm(Vr,yr,l,i);Id(l.inferences,ba,yr)}}if(et){var ca=QE(r,st,r.length,et,l,i);Id(l.inferences,ca,et)}return hE(l)}function Yw(n){return n.flags&1048576?Ws(n,Yw):n.flags&1||A_(tc(n)||n)?n:Ki(n)?Zu(Oo(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):Zu([n],[8])}function QE(n,t,r,i,l,u){if(t>=r-1){var S=n[r-1];if(tv(S))return Yw(S.kind===230?S.type:Qm(S.expression,i,l,u))}for(var M=[],ge=[],Ge=[],We=t;We<r;We++){var S=n[We];if(tv(S)){var ze=S.kind===230?S.type:hi(S.expression);op(ze)?(M.push(ze),ge.push(8)):(M.push(If(33,ze,Ln,S.kind===223?S.expression:S)),ge.push(4))}else{var an=kc(i,Xd(We-t),256),Tn=Qm(S,an,l,u),et=xs(an,131068|4194304|134217728|268435456);M.push(et?_c(Tn):wp(Tn)),ge.push(1)}S.kind===230&&S.tupleNameSource&&Ge.push(S.tupleNameSource)}return Zu(M,ge,!1,e.length(Ge)===e.length(M)?Ge:void 0)}function Qw(n,t,r,i){for(var l=e.isInJSFile(n.declaration),u=n.typeParameters,S=$f(e.map(t,La),u,Gu(u),l),M,ge=0;ge<t.length;ge++){e.Debug.assert(u[ge]!==void 0,"Should not call checkTypeArguments with too many type arguments");var Ge=Cc(u[ge]);if(Ge){var We=r&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,ze=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;M||(M=vc(u,S));var an=S[ge];if(!Fc(an,Rc(si(Ge,M),an),r?t[ge]:void 0,ze,We))return}}return S}function Zw(n){if(Lh(n.tagName))return 2;var t=Ul(hi(n.tagName));return e.length(qt(t,1))?0:e.length(qt(t,0))?1:2}function ZL(n,t,r,i,l,u,S){var M=X_(t,n),ge=Qm(n.attributes,M,void 0,i);return Ge()&&Fb(ge,M,r,l?n.tagName:void 0,n.attributes,void 0,u,S);function Ge(){var We;if(BE(n))return!0;var ze=e.isJsxOpeningElement(n)||e.isJsxSelfClosingElement(n)&&!Lh(n.tagName)?hi(n.tagName):void 0;if(!ze)return!0;var an=qt(ze,0);if(!e.length(an))return!0;var Tn=BA(n);if(!Tn)return!0;var et=rs(Tn,111551,!0,!1,n);if(!et)return!0;var st=Ir(et),Ct=qt(st,0);if(!e.length(Ct))return!0;for(var Dt=!1,Bt=0,cr=0,Vr=Ct;cr<Vr.length;cr++){var yr=Vr[cr],ba=wu(yr,0),ca=qt(ba,0);if(!e.length(ca))continue;for(var fi=0,ei=ca;fi<ei.length;fi++){var Ji=ei[fi];if(Dt=!0,rd(Ji))return!0;var ni=dc(Ji);ni>Bt&&(Bt=ni)}}if(!Dt)return!0;for(var vo=Infinity,Po=0,Xt=an;Po<Xt.length;Po++){var Ot=Xt[Po],xa=td(Ot);xa<vo&&(vo=xa)}if(vo<=Bt)return!0;if(l){var Ra=e.createDiagnosticForNode(n.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(n.tagName),vo,e.entityNameToString(Tn),Bt),ta=(We=tu(n.tagName))===null||We===void 0?void 0:We.valueDeclaration;ta&&e.addRelatedInfo(Ra,e.createDiagnosticForNode(ta,e.Diagnostics._0_is_declared_here,e.entityNameToString(n.tagName))),S&&S.skipLogging&&(S.errors||(S.errors=[])).push(Ra),S.skipLogging||zr.add(Ra)}return!1}}function Ny(n,t,r,i,l,u,S){var M={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(n))return ZL(n,r,i,l,u,S,M)?void 0:(e.Debug.assert(!u||!!M.errors,"jsx should have errors when reporting errors"),M.errors||e.emptyArray);var ge=Af(r);if(ge&&ge!==At&&n.kind!==207){var Ge=$w(n),We=Xw(Ge),ze=u?Ge||n:void 0,an=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Uu(We,ge,i,ze,an,S,M))return e.Debug.assert(!u||!!M.errors,"this parameter should have errors when reporting errors"),M.errors||e.emptyArray}for(var Tn=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,et=Dg(r),st=et?Math.min(dc(r)-1,t.length):t.length,Ct=0;Ct<st;Ct++){var Dt=t[Ct];if(Dt.kind!==225){var Bt=wu(r,Ct),cr=Qm(Dt,Bt,void 0,l),Vr=l&4?wh(cr):cr;if(!Fb(Vr,Bt,i,u?Dt:void 0,Dt,Tn,S,M))return e.Debug.assert(!u||!!M.errors,"parameter should have errors when reporting errors"),ca(Dt,Vr,Bt),M.errors||e.emptyArray}}if(et){var yr=QE(t,st,t.length,et,void 0,l),ba=t.length-st,ze=u?ba===0?n:ba===1?t[st]:e.setTextRangePosEnd(Lp(n,yr),t[st].pos,t[t.length-1].end):void 0;if(!Uu(yr,et,i,ze,Tn,void 0,M))return e.Debug.assert(!u||!!M.errors,"rest parameter should have errors when reporting errors"),ca(ze,yr,et),M.errors||e.emptyArray}return;function ca(fi,ei,Ji){if(fi&&u&&M.errors&&M.errors.length){if(Ng(Ji))return;var ni=Ng(ei);ni&&$d(ni,Ji,i)&&e.addRelatedInfo(M.errors[0],e.createDiagnosticForNode(fi,e.Diagnostics.Did_you_forget_to_use_await))}}}function $w(n){var t=n.kind===206?n.expression:n.kind===208?n.tag:void 0;if(t){var r=e.skipOuterExpressions(t);if(e.isAccessExpression(r))return r.expression}}function Lp(n,t,r,i){var l=e.parseNodeFactory.createSyntheticExpression(t,r,i);return e.setTextRange(l,n),e.setParent(l,n),l}function ZE(n){if(n.kind===208){var t=n.template,r=[Lp(t,pD())];return t.kind===221&&e.forEach(t.templateSpans,function(ge){r.push(ge.expression)}),r}if(n.kind===163)return $L(n);if(e.isJsxOpeningLikeElement(n))return n.attributes.properties.length>0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var i=n.arguments||e.emptyArray,l=rv(i);if(l>=0){for(var u=i.slice(0,l),S=function(ge){var Ge=i[ge],We=Ge.kind===223&&(Jn?hi(Ge.expression):ml(Ge.expression));We&&Ki(We)?e.forEach(Oo(We),function(ze,an){var Tn,et=We.target.elementFlags[an],st=Lp(Ge,et&4?Ll(ze):ze,!!(et&12),(Tn=We.target.labeledElementDeclarations)===null||Tn===void 0?void 0:Tn[an]);u.push(st)}):u.push(Ge)},M=l;M<i.length;M++)S(M);return u}return i}function $L(n){var t=n.parent,r=n.expression;switch(t.kind){case 255:case 224:return[Lp(r,Ir(Rr(t)))];case 162:var i=t.parent;return[Lp(r,t.parent.kind===169?Ir(Rr(i)):K),Lp(r,lt),Lp(r,Et)];case 165:case 167:case 170:case 171:var l=t.kind!==165&&Me!==0;return[Lp(r,BO(t)),Lp(r,UO(t)),Lp(r,l?hS(cm(t)):lt)]}return e.Debug.fail()}function e1(n,t){switch(n.parent.kind){case 255:case 224:return 1;case 165:return 2;case 167:case 170:case 171:return Me===0||t.parameters.length<=2?2:3;case 162:return 3;default:return e.Debug.fail()}}function n1(n,t){var r,i,l=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var u=e.getErrorSpanForNode(l,n.expression.name);r=u.start,i=t?u.length:n.end-r}else{var S=e.getErrorSpanForNode(l,n.expression);r=S.start,i=t?S.length:n.end-r}return{start:r,length:i,sourceFile:l}}function iv(n,t,r,i,l,u){if(e.isCallExpression(n)){var S=n1(n),M=S.sourceFile,ge=S.start,Ge=S.length;return e.createFileDiagnostic(M,ge,Ge,t,r,i,l,u)}else return e.createDiagnosticForNode(n,t,r,i,l,u)}function e2(n){if(!e.isCallExpression(n)||!e.isIdentifier(n.expression))return!1;var t=Zi(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),r=t==null?void 0:t.valueDeclaration;if(!r||!e.isParameter(r)||!PE(r.parent)||!e.isNewExpression(r.parent.parent)||!e.isIdentifier(r.parent.parent.expression))return!1;var i=ub(!1);if(!i)return!1;var l=tu(r.parent.parent.expression,!0);return l===i}function t1(n,t,r){var i,l=rv(r);if(l>-1)return e.createDiagnosticForNode(r[l],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var u=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,M=Number.NEGATIVE_INFINITY,ge=Number.POSITIVE_INFINITY,Ge,We=0,ze=t;We<ze.length;We++){var an=ze[We],Tn=td(an),et=dc(an);Tn<u&&(u=Tn,Ge=an),S=Math.max(S,et),Tn<r.length&&Tn>M&&(M=Tn),r.length<et&&et<ge&&(ge=et)}var st=e.some(t,rd),Ct=st?u:u<S?u+"-"+S:u,Dt=st?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Ct===1&&r.length===0&&e2(n)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(u<r.length&&r.length<S)return iv(n,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,r.length,M,ge);if(r.length<u){var Bt=iv(n,Dt,Ct,r.length),cr=(i=Ge==null?void 0:Ge.declaration)===null||i===void 0?void 0:i.parameters[Ge.thisParameter?r.length+1:r.length];if(cr){var Vr=e.createDiagnosticForNode(cr,e.isBindingPattern(cr.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(cr)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,cr.name?e.isBindingPattern(cr.name)?void 0:e.idText(e.getFirstIdentifier(cr.name)):r.length);return e.addRelatedInfo(Bt,Vr)}return Bt}else{var yr=e.factory.createNodeArray(r.slice(S)),ba=e.first(yr).pos,ca=e.last(yr).end;return ca===ba&&ca++,e.setTextRangePosEnd(yr,ba,ca),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),yr,Dt,Ct,r.length)}}function n2(n,t,r){var i=r.length;if(t.length===1){var l=t[0],u=Gu(l.typeParameters),S=e.length(l.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,u<S?u+"-"+S:u,i)}for(var M=-Infinity,ge=Infinity,Ge=0,We=t;Ge<We.length;Ge++){var l=We[Ge],ze=Gu(l.typeParameters),S=e.length(l.typeParameters);ze>i?ge=Math.min(ge,ze):S<i&&(M=Math.max(M,S))}return M!==-Infinity&&ge!==Infinity?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,M,ge):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,M===-Infinity?ge:M,i)}function Nh(n,t,r,i,l,u){var S=n.kind===208,M=n.kind===163,ge=e.isJsxOpeningLikeElement(n),Ge=!r&&R,We;M||(We=n.typeArguments,(S||ge||n.expression.kind!==106)&&e.forEach(We,so));var ze=r||[];if(XL(t,ze,l),!ze.length)return Ge&&zr.add(iv(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),nd(n);var an=ZE(n),Tn=ze.length===1&&!ze[0].typeParameters,et=!M&&!Tn&&e.some(an,Bu)?4:0,st,Ct,Dt,Bt,cr=!!(i&16)&&n.kind===206&&n.arguments.hasTrailingComma;if(ze.length>1&&(Bt=Kr(ze,cn,Tn,cr)),Bt||(Bt=Kr(ze,Tt,Tn,cr)),Bt)return Bt;if(Ge)if(st)if(st.length===1||st.length>3){var Vr=st[st.length-1],yr;st.length>3&&(yr=e.chainDiagnosticMessages(yr,e.Diagnostics.The_last_overload_gave_the_following_error),yr=e.chainDiagnosticMessages(yr,e.Diagnostics.No_overload_matches_this_call));var ba=Ny(n,an,Vr,Tt,0,!0,function(){return yr});if(ba)for(var ca=0,fi=ba;ca<fi.length;ca++){var ei=fi[ca];Vr.declaration&&st.length>3&&e.addRelatedInfo(ei,e.createDiagnosticForNode(Vr.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Br(Vr,ei),zr.add(ei)}else e.Debug.fail("No error for last overload signature")}else{for(var Ji=[],ni=0,vo=Number.MAX_VALUE,Po=0,Xt=0,Ot=function(fa){var Qn=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,Xt+1,ze.length,jc(fa))},kt=Ny(n,an,fa,Tt,0,!0,Qn);kt?(kt.length<=vo&&(vo=kt.length,Po=Xt),ni=Math.max(ni,kt.length),Ji.push(kt)):e.Debug.fail("No error for 3 or fewer overload signatures"),Xt++},xa=0,Ra=st;xa<Ra.length;xa++){var ta=Ra[xa];Ot(ta)}var ri=ni>1?Ji[Po]:e.flatten(Ji);e.Debug.assert(ri.length>0,"No errors reported for 3 or fewer overload signatures");var Hr=e.chainDiagnosticMessages(e.map(ri,function(fa){return typeof fa.messageText=="string"?fa:fa.messageText}),e.Diagnostics.No_overload_matches_this_call),qi=Mt([],e.flatMap(ri,function(fa){return fa.relatedInformation}),!0),Ui=void 0;if(e.every(ri,function(fa){return fa.start===ri[0].start&&fa.length===ri[0].length&&fa.file===ri[0].file})){var nt=ri[0],_n=nt.file,hr=nt.start,gr=nt.length;Ui={file:_n,start:hr,length:gr,code:Hr.code,category:Hr.category,messageText:Hr,relatedInformation:qi}}else Ui=e.createDiagnosticForNodeFromMessageChain(n,Hr,qi);Br(st[0],Ui),zr.add(Ui)}else if(Ct)zr.add(t1(n,[Ct],an));else if(Dt)Qw(Dt,n.typeArguments,!0,u);else{var Mr=e.filter(t,function(fa){return Jw(fa,We)});Mr.length===0?zr.add(n2(n,t,We)):M?u&&zr.add(iv(n,u)):zr.add(t1(n,Mr,an))}return t2(n,ze,an,!!r);function Br(fa,Qn){var kt,Kt,nr=st,ur=Ct,Cr=Dt,ma=((Kt=(kt=fa.declaration)===null||kt===void 0?void 0:kt.symbol)===null||Kt===void 0?void 0:Kt.declarations)||e.emptyArray,Ia=ma.length>1,Ti=Ia?e.find(ma,function(zo){return e.isFunctionLikeDeclaration(zo)&&e.nodeIsPresent(zo.body)}):void 0;if(Ti){var Aa=Eu(Ti),fo=!Aa.typeParameters;Kr([Aa],Tt,fo)&&e.addRelatedInfo(Qn,e.createDiagnosticForNode(Ti,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}st=nr,Ct=ur,Dt=Cr}function Kr(fa,Qn,kt,Kt){if(Kt===void 0&&(Kt=!1),st=void 0,Ct=void 0,Dt=void 0,kt){var nr=fa[0];if(e.some(We)||!av(n,an,nr,Kt))return;if(Ny(n,an,nr,Qn,0,!1,void 0)){st=[nr];return}return nr}for(var ur=0;ur<fa.length;ur++){var nr=fa[ur];if(!Jw(nr,We)||!av(n,an,nr,Kt))continue;var Cr=void 0,ma=void 0;if(nr.typeParameters){var Ia=void 0;if(e.some(We)){if(Ia=Qw(nr,We,!1),!Ia){Dt=nr;continue}}else ma=yg(nr.typeParameters,nr,e.isInJSFile(n)?2:0),Ia=YE(n,nr,an,et|8,ma),et|=ma.flags&4?8:0;if(Cr=ly(nr,Ia,e.isInJSFile(nr.declaration),ma&&ma.inferredTypeParameters),Dg(nr)&&!av(n,an,Cr,Kt)){Ct=Cr;continue}}else Cr=nr;if(Ny(n,an,Cr,Qn,et,!1,void 0)){(st||(st=[])).push(Cr);continue}if(et){if(et=0,ma){var Ia=YE(n,nr,an,et,ma);if(Cr=ly(nr,Ia,e.isInJSFile(nr.declaration),ma&&ma.inferredTypeParameters),Dg(nr)&&!av(n,an,Cr,Kt)){Ct=Cr;continue}}if(Ny(n,an,Cr,Qn,et,!1,void 0)){(st||(st=[])).push(Cr);continue}}return fa[ur]=Cr,Cr}return}}function t2(n,t,r,i){return e.Debug.assert(t.length>0),Mg(n),i||t.length===1||t.some(function(l){return!!l.typeParameters})?i2(n,t,r):r2(t)}function r2(n){var t=e.mapDefined(n,function(an){return an.thisParameter}),r;t.length&&(r=r1(t,t.map(wg)));for(var i=e.minAndMax(n,a2),l=i.min,u=i.max,S=[],M=function(an){var Tn=e.mapDefined(n,function(et){return k(et)?an<et.parameters.length-1?et.parameters[an]:e.last(et.parameters):an<et.parameters.length?et.parameters[an]:void 0});e.Debug.assert(Tn.length!==0),S.push(r1(Tn,e.mapDefined(n,function(et){return sm(et,an)})))},ge=0;ge<u;ge++)M(ge);var Ge=e.mapDefined(n,function(an){return k(an)?e.last(an.parameters):void 0}),We=0;if(Ge.length!==0){var ze=Ll(Ea(e.mapDefined(n,JT),2));S.push(a1(Ge,ze)),We|=1}return n.some(N)&&(We|=2),Ru(n[0].declaration,void 0,r,S,Go(n.map(_o)),void 0,l,We)}function a2(n){var t=n.parameters.length;return k(n)?t-1:t}function r1(n,t){return a1(n,Ea(t,2))}function a1(n,t){return wm(e.first(n),t)}function i2(n,t,r){var i=l2(t,wn===void 0?r.length:wn),l=t[i],u=l.typeParameters;if(!u)return l;var S=Hw(n)?n.typeArguments:void 0,M=S?c_(l,o2(S,u,e.isInJSFile(n))):s2(n,u,l,r);return t[i]=M,M}function o2(n,t,r){for(var i=n.map(cm);i.length>t.length;)i.pop();for(;i.length<t.length;)i.push(Cc(t[i.length])||mE(r));return i}function s2(n,t,r,i){var l=yg(t,r,e.isInJSFile(n)?2:0),u=YE(n,r,i,4|8,l);return c_(r,u)}function l2(n,t){for(var r=-1,i=-1,l=0;l<n.length;l++){var u=n[l],S=dc(u);if(rd(u)||S>=t)return l;S>i&&(i=S,r=l)}return r}function c2(n,t,r){if(n.expression.kind===106){var i=AE(n.expression);if(no(i)){for(var l=0,u=n.arguments;l<u.length;l++){var S=u[l];hi(S)}return xi}if(i!==K){var M=e.getEffectiveBaseTypeNode(e.getContainingClass(n));if(M){var ge=Wd(i,M.typeArguments,M);return Nh(n,ge,t,r,0)}}return Ym(n)}var Ge,We=hi(n.expression);if(e.isCallChain(n)){var ze=gg(We,n.expression);Ge=ze===We?0:e.isOutermostOptionalChain(n)?16:8,We=ze}else Ge=0;if(We=kw(We,n.expression,LL),We===Or)return xo;var an=Ul(We);if(an===K)return nd(n);var Tn=qt(an,0),et=qt(an,1).length;if(ov(We,an,Tn.length,et))return We!==K&&n.typeArguments&&Hn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ym(n);if(!Tn.length){if(et)Hn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ar(We));else{var st=void 0;if(n.arguments.length===1){var Ct=e.getSourceFileOfNode(n).text;e.isLineBreak(Ct.charCodeAt(e.skipTrivia(Ct,n.expression.end,!0)-1))&&(st=e.createDiagnosticForNode(n.expression,e.Diagnostics.Are_you_missing_a_semicolon))}eT(n.expression,an,0,st)}return nd(n)}return r&8&&!n.typeArguments&&Tn.some(u2)?(O1(n,r),lo):Tn.some(function(Dt){return e.isInJSFile(Dt.declaration)&&!!e.getJSDocClassTag(Dt.declaration)})?(Hn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ar(We)),nd(n)):Nh(n,Tn,t,r,Ge)}function u2(n){return!!(n.typeParameters&&MT(_o(n)))}function ov(n,t,r,i){return no(n)||no(t)&&!!(n.flags&262144)||!r&&!i&&!(t.flags&1048576)&&!(vu(t).flags&131072)&&yo(n,Mo)}function d2(n,t,r){if(n.arguments&&Me<1){var i=rv(n.arguments);i>=0&&Hn(n.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var l=Ih(n.expression);if(l===Or)return xo;if(l=Ul(l),l===K)return nd(n);if(no(l))return n.typeArguments&&Hn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ym(n);var u=qt(l,1);if(u.length){if(!f2(n,u[0]))return nd(n);if(u.some(function(Ge){return Ge.flags&4}))return Hn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),nd(n);var S=l.symbol&&e.getClassLikeDeclarationOfSymbol(l.symbol);return S&&e.hasSyntacticModifier(S,128)?(Hn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),nd(n)):Nh(n,u,t,r,0)}var M=qt(l,0);if(M.length){var ge=Nh(n,M,t,r,0);return vn||(ge.declaration&&!Wu(ge.declaration)&&_o(ge)!==At&&Hn(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Af(ge)===At&&Hn(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),ge}return eT(n.expression,l,1),nd(n)}function $E(n,t){var r=Ac(t);if(!e.length(r))return!1;var i=r[0];if(i.flags&2097152){for(var l=i.types,u=Zh(l),S=0,M=0,ge=i.types;M<ge.length;M++){var Ge=ge[M];if(!u[S]&&e.getObjectFlags(Ge)&(1|2)){if(Ge.symbol===n)return!0;if($E(n,Ge))return!0}S++}return!1}return i.symbol===n?!0:$E(n,i)}function f2(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,i=e.getSelectedEffectiveModifierFlags(r,24);if(!i||r.kind!==169)return!0;var l=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),u=ls(r.parent.symbol);if(!NT(n,l)){var S=e.getContainingClass(n);if(S&&i&16){var M=cm(S);if($E(r.parent.symbol,M))return!0}return i&8&&Hn(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ar(u)),i&16&&Hn(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ar(u)),!1}return!0}function i1(n,t,r){var i,l=r===0,u=Hu(t),S=u&&qt(u,r).length>0;if(t.flags&1048576){for(var M=t.types,ge=!1,Ge=0,We=M;Ge<We.length;Ge++){var ze=We[Ge],an=qt(ze,r);if(an.length!==0){if(ge=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,l?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ar(ze)),i=e.chainDiagnosticMessages(i,l?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Ar(t))),ge)break}ge||(i=e.chainDiagnosticMessages(void 0,l?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Ar(t))),i||(i=e.chainDiagnosticMessages(i,l?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ar(t)))}else i=e.chainDiagnosticMessages(i,l?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ar(t));var Tn=l?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(n.parent)&&n.parent.arguments.length===0){var et=pa(n).resolvedSymbol;et&&et.flags&32768&&(Tn=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,Tn),relatedMessage:S?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function eT(n,t,r,i){var l=i1(n,t,r),u=l.messageChain,S=l.relatedMessage,M=e.createDiagnosticForNodeFromMessageChain(n,u);if(S&&e.addRelatedInfo(M,e.createDiagnosticForNode(n,S)),e.isCallExpression(n.parent)){var ge=n1(n.parent,!0),Ge=ge.start,We=ge.length;M.start=Ge,M.length=We}zr.add(M),o1(t,r,i?e.addRelatedInfo(M,i):M)}function o1(n,t,r){if(!n.symbol)return;var i=$a(n.symbol).originatingImport;if(i&&!e.isImportCall(i)){var l=qt(Ir($a(n.symbol).target),t);if(!l||!l.length)return;e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics.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 p2(n,t,r){var i=hi(n.tag),l=Ul(i);if(l===K)return nd(n);var u=qt(l,0),S=qt(l,1).length;if(ov(i,l,u.length,S))return Ym(n);if(!u.length){if(e.isArrayLiteralExpression(n.parent)){var M=e.createDiagnosticForNode(n.tag,e.Diagnostics.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 zr.add(M),nd(n)}return eT(n.tag,l,0),nd(n)}return Nh(n,u,t,r,0)}function s1(n){switch(n.parent.kind){case 255:case 224:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 162:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 165:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 167:case 170:case 171:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function m2(n,t,r){var i=hi(n.expression),l=Ul(i);if(l===K)return nd(n);var u=qt(l,0),S=qt(l,1).length;if(ov(i,l,u.length,S))return Ym(n);if(g2(n,u)){var M=e.getTextOfNode(n.expression,!1);return Hn(n,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,M),nd(n)}var ge=s1(n);if(!u.length){var Ge=i1(n.expression,l,0),We=e.chainDiagnosticMessages(Ge.messageChain,ge),ze=e.createDiagnosticForNodeFromMessageChain(n.expression,We);return Ge.relatedMessage&&e.addRelatedInfo(ze,e.createDiagnosticForNode(n.expression,Ge.relatedMessage)),zr.add(ze),o1(l,0,ze),nd(n)}return Nh(n,u,t,r,0,ge)}function sv(n,t){var r=Xm(n),i=r&&ul(r),l=i&&Vo(i,T.Element,788968),u=l&&Pe.symbolToEntityName(l,788968,n),S=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,Pe.typeToTypeNode(t,n))],u?e.factory.createTypeReferenceNode(u,void 0):e.factory.createKeywordTypeNode(129)),M=oo(1,"props");return M.type=t,Ru(S,void 0,void 0,[M],l?ls(l):K,void 0,1,0)}function h2(n,t,r){if(Lh(n.tagName)){var i=ww(n),l=sv(n,i);return ip(Qm(n.attributes,X_(l,n),void 0,0),i,n.tagName,n.attributes),e.length(n.typeArguments)&&(e.forEach(n.typeArguments,so),zr.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),n.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(n.typeArguments)))),l}var u=hi(n.tagName),S=Ul(u);if(S===K)return nd(n);var M=Sw(u,n);return ov(u,S,M.length,0)?Ym(n):M.length===0?(Hn(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),nd(n)):Nh(n,M,t,r,0)}function g2(n,t){return t.length&&e.every(t,function(r){return r.minArgumentCount===0&&!k(r)&&r.parameters.length<e1(n,r)})}function y2(n,t,r){switch(n.kind){case 206:return c2(n,t,r);case 207:return d2(n,t,r);case 208:return p2(n,t,r);case 163:return m2(n,t,r);case 278:case 277:return h2(n,t,r)}throw e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function Oh(n,t,r){var i=pa(n),l=i.resolvedSignature;if(l&&l!==lo&&!t)return l;i.resolvedSignature=lo;var u=y2(n,t,r||0);return u!==lo&&(i.resolvedSignature=he===Jn?u:l),u}function Wu(n){var t;if(!n||!e.isInJSFile(n))return!1;var r=e.isFunctionDeclaration(n)||e.isFunctionExpression(n)?n:e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionExpression(n.initializer)?n.initializer:void 0;if(r){if(e.getJSDocClassTag(n))return!0;var i=Rr(r);return!!((t=i==null?void 0:i.members)===null||t===void 0?void 0:t.size)}return!1}function nT(n,t){var r,i;if(t){var l=$a(t);if(!l.inferredClassSymbol||!l.inferredClassSymbol.has(A(n))){var u=e.isTransientSymbol(n)?n:Au(n);return u.exports=u.exports||e.createSymbolTable(),u.members=u.members||e.createSymbolTable(),u.flags|=t.flags&32,((r=t.exports)===null||r===void 0?void 0:r.size)&&Wl(u.exports,t.exports),((i=t.members)===null||i===void 0?void 0:i.size)&&Wl(u.members,t.members),(l.inferredClassSymbol||(l.inferredClassSymbol=new e.Map)).set(A(u),u),u}return l.inferredClassSymbol.get(A(n))}}function _2(n){var t,r=n&&lv(n,!0),i=(t=r==null?void 0:r.exports)===null||t===void 0?void 0:t.get("prototype"),l=(i==null?void 0:i.valueDeclaration)&&v2(i.valueDeclaration);return l?Rr(l):void 0}function lv(n,t){if(!n.parent)return;var r,i;if(e.isVariableDeclaration(n.parent)&&n.parent.initializer===n){if(!e.isInJSFile(n)&&!(e.isVarConst(n.parent)&&e.isFunctionLikeDeclaration(n)))return;r=n.parent.name,i=n.parent}else if(e.isBinaryExpression(n.parent)){var l=n.parent,u=n.parent.operatorToken.kind;if(u===63&&(t||l.right===n))r=l.left,i=r;else if((u===56||u===60)&&(e.isVariableDeclaration(l.parent)&&l.parent.initializer===l?(r=l.parent.name,i=l.parent):e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63&&(t||l.parent.right===l)&&(r=l.parent.left,i=r),!r||!e.isBindableStaticNameExpression(r)||!e.isSameEntityName(r,l.left)))return}else t&&e.isFunctionDeclaration(n)&&(r=n.name,i=n);return!i||!r||!t&&!e.getExpandoInitializer(n,e.isPrototypeAccess(r))?void 0:Rr(i)}function v2(n){if(!n.parent)return!1;for(var t=n.parent;t&&t.kind===204;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&t.operatorToken.kind===63){var r=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(r)&&r}}function b2(n,t){var r;Xy(n,n.typeArguments)||VA(n.arguments);var i=Oh(n,void 0,t);if(i===lo)return Ja;if(cv(i,n),n.expression.kind===106)return At;if(n.kind===207){var l=i.declaration;if(l&&l.kind!==169&&l.kind!==173&&l.kind!==178&&!e.isJSDocConstructSignature(l)&&!Wu(l))return vn&&Hn(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),lt}if(e.isInJSFile(n)&&u1(n))return ag(n.arguments[0]);var u=_o(i);if(u.flags&12288&&l1(n))return kb(e.walkUpParenthesizedExpressions(n.parent));if(n.kind===206&&!n.questionDotToken&&n.parent.kind===236&&u.flags&16384&&Mc(i)){if(!e.isDottedName(n.expression))Hn(n.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!V_(n)){var S=Hn(n.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Ty(n.expression,S)}}if(e.isInJSFile(n)){var M=lv(n,!1);if((r=M==null?void 0:M.exports)===null||r===void 0?void 0:r.size){var ge=ns(M,M.exports,e.emptyArray,e.emptyArray,e.emptyArray);return ge.objectFlags|=8192,Go([u,ge])}}return u}function cv(n,t){if(n.declaration&&n.declaration.flags&134217728){var r=Oy(t),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(t));ou(r,n.declaration,i,jc(n))}}function Oy(n){n=e.skipParentheses(n);switch(n.kind){case 206:case 163:case 207:return Oy(n.expression);case 208:return Oy(n.tag);case 278:case 277:return Oy(n.tagName);case 205:return n.argumentExpression;case 204:return n.name;case 176:var t=n;return e.isQualifiedName(t.typeName)?t.typeName.right:t;default:return n}}function l1(n){if(!e.isCallExpression(n))return!1;var t=n.expression;if(e.isPropertyAccessExpression(t)&&t.name.escapedText==="for"&&(t=t.expression),!e.isIdentifier(t)||t.escapedText!=="Symbol")return!1;var r=dS(!1);return r?r===Zi(t,"Symbol",111551,void 0,void 0,!1):!1}function E2(n){if(VA(n.arguments)||iR(n),n.arguments.length===0)return My(n,lt);for(var t=n.arguments[0],r=ml(t),i=1;i<n.arguments.length;++i)ml(n.arguments[i]);(r.flags&32768||r.flags&65536||!yo(r,ht))&&Hn(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Ar(r));var l=Ko(n,t);if(l){var u=Is(l,t,!0,!1);if(u)return My(n,c1(Ir(u),u,l))}return My(n,lt)}function c1(n,t,r){var i;if(Ne&&n&&n!==K){var l=n;if(!l.syntheticType){var u=(i=r.declarations)===null||i===void 0?void 0:i.find(e.isSourceFile),S=jo(u,r,!1);if(S){var M=e.createSymbolTable(),ge=oo(2097152,"default");ge.parent=r,ge.nameType=nu("default"),ge.target=Ho(t),M.set("default",ge);var Ge=oo(2048,"__type"),We=ns(Ge,M,e.emptyArray,e.emptyArray,e.emptyArray);Ge.type=We,l.syntheticType=kh(n)?Sp(n,We,Ge,0,!1):We}else l.syntheticType=n}return l.syntheticType}return n}function u1(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var t=Zi(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(t===Ze)return!0;if(t.flags&2097152)return!1;var r=t.flags&16?254:t.flags&3?252:0;if(r!==0){var i=e.getDeclarationOfKind(t,r);return!!i&&!!(i.flags&8388608)}return!1}function T2(n){CP(n)||Xy(n,n.typeArguments),Me<2&&Xl(n,262144);var t=Oh(n);return cv(t,n),_o(t)}function S2(n){return f1(n,n.type,n.expression)}function d1(n){switch(n.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 202:case 203:case 221:return!0;case 210:return d1(n.expression);case 217:var t=n.operator,r=n.operand;return t===40&&(r.kind===8||r.kind===9)||t===39&&r.kind===8;case 204:case 205:var i=n.expression;if(e.isIdentifier(i)){var l=tu(i);return l&&l.flags&2097152&&(l=ks(l)),!!(l&&l.flags&384&&gm(l)===1)}}return!1}function f1(n,t,r,i){var l=hi(r,i);if(e.isConstTypeReference(t))return d1(r)||Hn(r,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),_c(l);so(t),l=wh(ed(l));var u=La(t);if(R&&u!==K){var S=bc(l);Eh(u,S)||rx(l,u,n,e.Diagnostics.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)}return u}function x2(n){var t=hi(n.expression),r=gg(t,n.expression);return C_(kf(r),n,r!==t)}function w2(n){return n.flags&32?x2(n):kf(hi(n.expression))}function A2(n){return JP(n),n.keywordToken===103?tT(n):n.keywordToken===100?D2(n):e.Debug.assertNever(n.keywordToken)}function p1(n){switch(n.keywordToken){case 100:return mD();case 103:var t=tT(n);return t===K?K:N2(t);default:e.Debug.assertNever(n.keywordToken)}}function tT(n){var t=e.getNewTargetContainer(n);if(t)if(t.kind===169){var r=Rr(t.parent);return Ir(r)}else{var r=Rr(t);return Ir(r)}else return Hn(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),K}function D2(n){fn!==e.ModuleKind.ES2020&&fn!==e.ModuleKind.ESNext&&fn!==e.ModuleKind.System&&Hn(n,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system);var t=e.getSourceFileOfNode(n);return e.Debug.assert(!!(t.flags&2097152),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?uS():K}function wg(n){var t=Ir(n);if(je){var r=n.valueDeclaration;if(r&&e.hasInitializer(r))return ef(t)}return t}function uv(n){return e.Debug.assert(e.isIdentifier(n.name)),n.name.escapedText}function Ph(n,t,r){var i=n.parameters.length-(k(n)?1:0);if(t<i)return n.parameters[t].escapedName;var l=n.parameters[i]||Yn,u=r||Ir(l);if(Ki(u)){var S=u.target.labeledElementDeclarations,M=t-i;return S&&uv(S[M])||l.escapedName+"_"+M}return l.escapedName}function C2(n,t){var r=n.parameters.length-(k(n)?1:0);if(t<r){var i=n.parameters[t];return m1(i)?[i.escapedName,!1]:void 0}var l=n.parameters[r]||Yn;if(!m1(l))return;var u=Ir(l);if(Ki(u)){var S=u.target.labeledElementDeclarations,M=t-r,ge=S==null?void 0:S[M],Ge=!!(ge==null?void 0:ge.dotDotDotToken);return ge?[uv(ge),Ge]:void 0}return t===r?[l.escapedName,!0]:void 0}function m1(n){return n.valueDeclaration&&e.isParameter(n.valueDeclaration)&&e.isIdentifier(n.valueDeclaration.name)}function h1(n){return n.kind===195||e.isParameter(n)&&n.name&&e.isIdentifier(n.name)}function k2(n,t){var r=n.parameters.length-(k(n)?1:0);if(t<r){var i=n.parameters[t].valueDeclaration;return i&&h1(i)?i:void 0}var l=n.parameters[r]||Yn,u=Ir(l);if(Ki(u)){var S=u.target.labeledElementDeclarations,M=t-r;return S&&S[M]}return l.valueDeclaration&&h1(l.valueDeclaration)?l.valueDeclaration:void 0}function wu(n,t){return sm(n,t)||lt}function sm(n,t){var r=n.parameters.length-(k(n)?1:0);if(t<r)return wg(n.parameters[t]);if(k(n)){var i=Ir(n.parameters[r]),l=t-r;if(!Ki(i)||i.target.hasRestElement||l<i.target.fixedLength)return kc(i,Xd(l))}return}function Rh(n,t){var r=dc(n),i=td(n),l=Ag(n);if(l&&t>=r-1)return t===r-1?l:Ll(kc(l,Et));for(var u=[],S=[],M=[],ge=t;ge<r;ge++){!l||ge<r-1?(u.push(wu(n,ge)),S.push(ge<i?1:2)):(u.push(l),S.push(8));var Ge=k2(n,ge);Ge&&M.push(Ge)}return Zu(u,S,!1,e.length(M)===e.length(u)?M:void 0)}function dc(n){var t=n.parameters.length;if(k(n)){var r=Ir(n.parameters[t-1]);if(Ki(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function td(n,t){var r=t&1,i=t&2;if(i||n.resolvedMinArgumentCount===void 0){var l=void 0;if(k(n)){var u=Ir(n.parameters[n.parameters.length-1]);if(Ki(u)){var S=e.findIndex(u.target.elementFlags,function(We){return!(We&1)}),M=S<0?u.target.fixedLength:S;M>0&&(l=n.parameters.length-1+M)}}if(l===void 0){if(!r&&n.flags&32)return 0;l=n.minArgumentCount}if(i)return l;for(var ge=l-1;ge>=0;ge--){var Ge=wu(n,ge);if(Vl(Ge,Kw).flags&131072)break;l=ge}n.resolvedMinArgumentCount=l}return n.resolvedMinArgumentCount}function rd(n){if(k(n)){var t=Ir(n.parameters[n.parameters.length-1]);return!Ki(t)||t.target.hasRestElement}return!1}function Ag(n){if(k(n)){var t=Ir(n.parameters[n.parameters.length-1]);if(!Ki(t))return t;if(t.target.hasRestElement)return ug(t,t.target.fixedLength)}return}function Dg(n){var t=Ag(n);return t&&!zl(t)&&!no(t)&&(vu(t).flags&131072)===0?t:void 0}function rT(n){return aT(n,Wr)}function aT(n,t){return n.parameters.length>0?wu(n,0):t}function L2(n,t,r){for(var i=n.parameters.length-(k(n)?1:0),l=0;l<i;l++){var u=n.parameters[l].valueDeclaration;if(u.type){var S=e.getEffectiveTypeAnnotationNode(u);S&&Id(r.inferences,La(S),wu(t,l))}}var M=Ag(t);if(M&&M.flags&262144){var ge=Um(t,r.nonFixingMapper);g1(n,ge);var Ge=dc(t)-1;Id(r.inferences,Rh(n,Ge),M)}}function g1(n,t){if(t.typeParameters)if(!n.typeParameters)n.typeParameters=t.typeParameters;else return;if(t.thisParameter){var r=n.thisParameter;(!r||r.valueDeclaration&&!r.valueDeclaration.type)&&(r||(n.thisParameter=wm(t.thisParameter,void 0)),Py(n.thisParameter,Ir(t.thisParameter)))}for(var i=n.parameters.length-(k(n)?1:0),l=0;l<i;l++){var r=n.parameters[l];if(!e.getEffectiveTypeAnnotationNode(r.valueDeclaration)){var u=sm(t,l);Py(r,u)}}if(k(n)){var r=e.last(n.parameters);if(e.isTransientSymbol(r)||!e.getEffectiveTypeAnnotationNode(r.valueDeclaration)){var u=Rh(t,i);Py(r,u)}}}function I2(n){n.thisParameter&&Py(n.thisParameter);for(var t=0,r=n.parameters;t<r.length;t++){var i=r[t];Py(i)}}function Py(n,t){var r=$a(n);if(!r.type){var i=n.valueDeclaration;r.type=t||xf(i,!0),i.name.kind!==79&&(r.type===ln&&(r.type=Sf(i.name)),y1(i.name))}}function y1(n){for(var t=0,r=n.elements;t<r.length;t++){var i=r[t];e.isOmittedExpression(i)||(i.name.kind===79?$a(Rr(i)).type=_a(i):y1(i.name))}}function Ry(n){var t=p_(!0);return t!==at?(n=Hu(n)||ln,qd(t,[n])):ln}function _1(n){var t=gD(!0);return t!==at?(n=Hu(n)||ln,qd(t,[n])):ln}function My(n,t){var r=Ry(t);return r===ln?(Hn(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),K):(ub(!0)||Hn(n,e.isImportCall(n)?e.Diagnostics.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:e.Diagnostics.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),r)}function N2(n){var t=oo(0,"NewTargetExpression"),r=oo(4,"target",8);r.parent=t,r.type=n;var i=e.createSymbolTable([r]);return t.members=i,ns(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}function dv(n,t){if(!n.body)return K;var r=e.getFunctionFlags(n),i=(r&2)!==0,l=(r&1)!==0,u,S,M,ge=At;if(n.body.kind!==233)u=ml(n.body,t&&t&~8),i&&(u=Og(u,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(l){var Ge=S1(n,t);Ge?Ge.length>0&&(u=Ea(Ge,2)):ge=Wr;var We=O2(n,t),ze=We.yieldTypes,an=We.nextTypes;S=e.some(ze)?Ea(ze,2):void 0,M=e.some(an)?Go(an):void 0}else{var Tn=S1(n,t);if(!Tn)return r&2?My(n,Wr):Wr;if(Tn.length===0)return r&2?My(n,At):At;u=Ea(Tn,2)}if(u||S||M){if(S&&I_(n,S,3),u&&I_(n,u,1),M&&I_(n,M,2),u&&$u(u)||S&&$u(S)||M&&$u(M)){var et=RE(n),st=et?et===Eu(n)?l?void 0:u:q_(_o(et),n):void 0;l?(S=Zb(S,st,0,i),u=Zb(u,st,1,i),M=Zb(M,st,2,i)):u=y0(u,st,i)}S&&(S=bc(S)),u&&(u=bc(u)),M&&(M=bc(M))}return l?v1(S||Wr,u||ge,M||dw(2,n)||ln,i):i?Ry(u||ge):u||ge}function v1(n,t,r,i){var l=i?Ca:ai,u=l.getGlobalGeneratorType(!1);if(n=l.resolveIterationType(n,void 0)||ln,t=l.resolveIterationType(t,void 0)||ln,r=l.resolveIterationType(r,void 0)||ln,u===at){var S=l.getGlobalIterableIteratorType(!1),M=S!==at?lA(S,l):void 0,ge=M?M.returnType:lt,Ge=M?M.nextType:Ln;return yo(t,ge)&&yo(Ge,r)?S!==at?cg(S,[n]):(l.getGlobalIterableIteratorType(!0),xt):(l.getGlobalGeneratorType(!0),xt)}return cg(u,[n,t,r])}function O2(n,t){var r=[],i=[],l=(e.getFunctionFlags(n)&2)!==0;return e.forEachYieldExpression(n.body,function(u){var S=u.expression?hi(u.expression,t):Xe;e.pushIfUnique(r,b1(u,S,lt,l));var M;if(u.asteriskToken){var ge=Ky(S,l?19:17,u.expression);M=ge&&ge.nextType}else M=xu(u);M&&e.pushIfUnique(i,M)}),{yieldTypes:r,nextTypes:i}}function b1(n,t,r,i){var l=n.expression||n,u=n.asteriskToken?If(i?19:17,t,r,l):t;return i?Hu(u,l,n.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):u}function iT(n,t,r,i){var l=0;if(i){for(var u=t;u<r.length;u++)l|=fe.get(r[u])||32768;for(var u=n;u<t;u++)l&=~(fe.get(r[u])||0);for(var u=0;u<n;u++)l|=fe.get(r[u])||32768}else{for(var u=n;u<t;u++)l|=de.get(r[u])||128;for(var u=0;u<n;u++)l&=~(de.get(r[u])||0)}return l}function E1(n){var t=pa(n);return t.isExhaustive!==void 0?t.isExhaustive:t.isExhaustive=P2(n)}function P2(n){if(n.expression.kind===214){var t=jl(n.expression.expression),r=qx(n,!1),i=iT(0,0,r,!0),l=tc(t)||t;return l.flags&3?(556800&i)===556800:!!(Vl(l,function(M){return(sp(M)&i)===i}).flags&131072)}var u=jl(n.expression);if(!Vm(u))return!1;var S=F_(n);return!S.length||e.some(S,h0)?!1:ik(Ws(u,_c),S)}function T1(n){return n.endFlowNode&&Sy(n.endFlowNode)}function S1(n,t){var r=e.getFunctionFlags(n),i=[],l=T1(n),u=!1;return e.forEachReturnStatement(n.body,function(S){var M=S.expression;if(M){var ge=ml(M,t&&t&~8);r&2&&(ge=Og(ge,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),ge.flags&131072&&(u=!0),e.pushIfUnique(i,ge)}else l=!0}),i.length===0&&!l&&(u||R2(n))?void 0:(je&&i.length&&l&&!(Wu(n)&&i.some(function(S){return S.symbol===n.symbol}))&&e.pushIfUnique(i,Ln),i)}function R2(n){switch(n.kind){case 211:case 212:return!0;case 167:return n.parent.kind===203;default:return!1}}function oT(n,t){if(!R)return;var r=e.getFunctionFlags(n),i=t&&Tv(t,r);if(i&&xs(i,1|16384))return;if(n.kind===166||e.nodeIsMissing(n.body)||n.body.kind!==233||!T1(n))return;var l=n.flags&512,u=e.getEffectiveReturnTypeNode(n)||n;if(i&&i.flags&131072)Hn(u,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!l)Hn(u,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&je&&!yo(Ln,i))Hn(u,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(pe.noImplicitReturns){if(!i){if(!l)return;var S=_o(Eu(n));if(hA(n,S))return}Hn(u,e.Diagnostics.Not_all_code_paths_return_a_value)}}function x1(n,t){if(e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n)),Mg(n),e.isFunctionExpression(n)&&Bh(n,n.name),t&&t&4&&Bu(n)){if(!e.getEffectiveReturnTypeNode(n)&&!e.hasContextSensitiveParameters(n)){var r=Dy(n);if(r&&_g(_o(r))){var i=pa(n);if(i.contextFreeType)return i.contextFreeType;var l=dv(n,t),u=Ru(void 0,void 0,void 0,e.emptyArray,l,void 0,0,0),S=ns(n.symbol,Le,[u],e.emptyArray,e.emptyArray);return S.objectFlags|=524288,i.contextFreeType=S}}return ea}var M=Pv(n);return!M&&n.kind===211&&UT(n),M2(n,t),Ir(Rr(n))}function M2(n,t){var r=pa(n);if(!(r.flags&1024)){var i=Dy(n);if(!(r.flags&1024)){r.flags|=1024;var l=e.firstOrUndefined(qt(Ir(Rr(n)),0));if(!l)return;if(Bu(n))if(i){var u=Tg(n);t&&t&2&&L2(l,i,u);var S=u?Um(i,u.mapper):i;g1(l,S)}else I2(l);if(i&&!bp(n)&&!l.resolvedReturnType){var M=dv(n,t);l.resolvedReturnType||(l.resolvedReturnType=M)}Lg(n)}}}function F2(n){e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=bp(n);if(oT(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||_o(Eu(n)),n.body.kind===233)so(n.body);else{var i=hi(n.body),l=r&&Tv(r,t);if(l)if((t&3)===2){var u=Og(i,n.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);ip(u,l,n.body,n.body)}else ip(i,l,n.body,n.body)}}function fv(n,t,r,i){if(i===void 0&&(i=!1),!yo(t,Wt)){var l=i&&Ng(t);return Vs(n,!!l&&yo(l,Wt),r),!1}return!0}function G2(n){if(!e.isCallExpression(n))return!1;if(!e.isBindableObjectDefinePropertyCall(n))return!1;var t=ml(n.arguments[2]),r=js(t,"value");if(r){var i=Rn(t,"writable"),l=i&&Ir(i);if(!l||l===fr||l===br)return!0;if(i&&i.valueDeclaration&&e.isPropertyAssignment(i.valueDeclaration)){var u=i.valueDeclaration.initializer,S=hi(u);if(S===fr||S===br)return!0}return!1}var M=Rn(t,"set");return!M}function _d(n){return!!(e.getCheckFlags(n)&8||n.flags&4&&e.getDeclarationModifierFlagsFromSymbol(n)&64||n.flags&3&&Sg(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||e.some(n.declarations,G2))}function w1(n,t,r){var i,l;if(r===0)return!1;if(_d(t)){if(t.flags&4&&e.isAccessExpression(n)&&n.expression.kind===108){var u=e.getContainingFunction(n);if(!(u&&(u.kind===169||Wu(u))))return!0;if(t.valueDeclaration){var S=e.isBinaryExpression(t.valueDeclaration),M=u.parent===t.valueDeclaration.parent,ge=u===t.valueDeclaration.parent,Ge=S&&((i=t.parent)===null||i===void 0?void 0:i.valueDeclaration)===u.parent,We=S&&((l=t.parent)===null||l===void 0?void 0:l.valueDeclaration)===u,ze=M||ge||Ge||We;return!ze}}return!0}if(e.isAccessExpression(n)){var an=e.skipParentheses(n.expression);if(an.kind===79){var Tn=pa(an).resolvedSymbol;if(Tn.flags&2097152){var et=es(Tn);return!!et&&et.kind===266}}}return!1}function Cg(n,t,r){var i=e.skipOuterExpressions(n,6|1);return i.kind!==79&&!e.isAccessExpression(i)?(Hn(n,t),!1):i.flags&32?(Hn(n,r),!1):!0}function B2(n){hi(n.expression);var t=e.skipParentheses(n.expression);if(!e.isAccessExpression(t))return Hn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Ht;e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)&&Hn(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var r=pa(t),i=pu(r.resolvedSymbol);return i&&(_d(i)&&Hn(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),U2(t,i)),Ht}function U2(n,t){var r=Ir(t);je&&!(r.flags&(3|131072))&&!($n?t.flags&16777216:Jc(r)&32768)&&Hn(n,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function V2(n){return hi(n.expression),Oa}function j2(n){return hi(n.expression),Xe}function W2(n){if(R){var t=e.getContainingFunctionOrClassStaticBlock(n);if(t&&e.isClassStaticBlockDeclaration(t))Hn(n,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(n.flags&32768))if(e.isInTopLevelContext(n)){var r=e.getSourceFileOfNode(n);if(!um(r)){var i=void 0;if(!e.isEffectiveExternalModule(r,pe)){i||(i=e.getSpanOfTokenAtPosition(r,n.pos));var l=e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.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);zr.add(l)}if(fn!==e.ModuleKind.ESNext&&fn!==e.ModuleKind.System||Me<4){i=e.getSpanOfTokenAtPosition(r,n.pos);var l=e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher);zr.add(l)}}}else{var r=e.getSourceFileOfNode(n);if(!um(r)){var i=e.getSpanOfTokenAtPosition(r,n.pos),l=e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(t&&t.kind!==169&&(e.getFunctionFlags(t)&2)===0){var u=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(l,u)}zr.add(l)}}CE(n)&&Hn(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var S=hi(n.expression),M=Og(S,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return M===S&&M!==K&&!(S.flags&3)&&Zo(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),M}function H2(n){var t=hi(n.operand);if(t===Or)return Or;switch(n.operand.kind){case 8:switch(n.operator){case 40:return Bm(Xd(-n.operand.text));case 39:return Bm(Xd(+n.operand.text))}break;case 9:if(n.operator===40)return Bm(Cb({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return ju(t,n.operand),xs(t,12288)&&Hn(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),n.operator===39?(xs(t,2112)&&Hn(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),Ar(ed(t))),Et):sT(t);case 53:Uh(n.operand);var r=sp(t)&(4194304|8388608);return r===4194304?fr:r===8388608?Jt:Ht;case 45:case 46:var i=fv(n.operand,ju(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return i&&Cg(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),sT(t)}return K}function K2(n){var t=hi(n.operand);if(t===Or)return Or;var r=fv(n.operand,ju(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return r&&Cg(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),sT(t)}function sT(n){return xs(n,2112)?$s(n,3)||xs(n,296)?Wt:zt:Et}function xs(n,t){if(n.flags&t)return!0;if(n.flags&3145728)for(var r=n.types,i=0,l=r;i<l.length;i++){var u=l[i];if(xs(u,t))return!0}return!1}function $s(n,t,r){return n.flags&t?!0:r&&n.flags&(3|16384|32768|65536)?!1:!!(t&296)&&yo(n,Et)||!!(t&2112)&&yo(n,zt)||!!(t&402653316)&&yo(n,ht)||!!(t&528)&&yo(n,Ht)||!!(t&16384)&&yo(n,At)||!!(t&131072)&&yo(n,Wr)||!!(t&65536)&&yo(n,qn)||!!(t&32768)&&yo(n,Ln)||!!(t&4096)&&yo(n,Xr)||!!(t&67108864)&&yo(n,Va)}function kg(n,t,r){return n.flags&1048576?e.every(n.types,function(i){return kg(i,t,r)}):$s(n,t,r)}function lT(n){return!!(e.getObjectFlags(n)&16)&&!!n.symbol&&cT(n.symbol)}function cT(n){return(n.flags&128)!==0}function J2(n,t,r,i){return r===Or||i===Or?Or:(!no(r)&&kg(r,131068)&&Hn(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),no(i)||PT(i)||Qd(i,Mo)||Hn(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ht)}function q2(n,t,r,i){if(r===Or||i===Or)return Or;r=ju(r,n),i=ju(i,t),kg(r,402653316|296|12288)||$s(r,4194304|134217728|268435456|262144)||Hn(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);var l=vp(i);return(!kg(i,67108864|58982400)||l&&($s(i,3145728)&&!kg(l,67108864|58982400)||!xs(l,67108864|58982400|524288)))&&Hn(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Ht}function z2(n,t,r){var i=n.properties;if(je&&i.length===0)return ju(t,n);for(var l=0;l<i.length;l++)A1(n,t,l,i,r);return t}function A1(n,t,r,i,l){l===void 0&&(l=!1);var u=n.properties,S=u[r];if(S.kind===291||S.kind===292){var M=S.name,ge=np(M);if(Fi(ge)){var Ge=nc(ge),We=Rn(t,Ge);We&&(nv(We,S,l),Z_(S,!1,!0,t,We))}var ze=kc(t,ge,32,M),an=Dd(S,ze);return lm(S.kind===292?S:S.initializer,an)}else if(S.kind===293)if(r<u.length-1)Hn(S,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{Me<99&&Xl(S,4);var Tn=[];if(i)for(var et=0,st=i;et<st.length;et++){var Ct=st[et];e.isSpreadAssignment(Ct)||Tn.push(Ct.name)}var an=Tf(t,Tn,t.symbol);return Cm(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),lm(S.expression,an)}else Hn(S,e.Diagnostics.Property_assignment_expected)}function X2(n,t,r){var i=n.elements;Me<2&&pe.downlevelIteration&&Xl(n,512);for(var l=If(65|128,t,Ln,n)||K,u=pe.noUncheckedIndexedAccess?void 0:l,S=0;S<i.length;S++){var M=l;n.elements[S].kind===223&&(M=u=u!=null?u:If(65,t,Ln,n)||K),D1(n,t,S,M,r)}return t}function D1(n,t,r,i,l){var u=n.elements,S=u[r];if(S.kind!==225){if(S.kind!==223){var M=Xd(r);if(op(t)){var ge=32|(Ch(S)?16:0),Ge=tp(t,M,ge,Lp(S,M))||K,We=Ch(S)?Dl(Ge,524288):Ge,ze=Dd(S,We);return lm(S,ze,l)}return lm(S,i,l)}if(r<u.length-1)Hn(S,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var an=S.expression;if(an.kind===219&&an.operatorToken.kind===63)Hn(an.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{Cm(n.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var ze=nf(t,Ki)?Ws(t,function(et){return ug(et,r)}):Ll(i);return lm(an,ze,l)}}}return}function lm(n,t,r,i){var l;if(n.kind===292){var u=n;u.objectAssignmentInitializer&&(je&&!(Jc(hi(u.objectAssignmentInitializer))&32768)&&(t=Dl(t,524288)),$2(u.name,u.equalsToken,u.objectAssignmentInitializer,r)),l=n.name}else l=n;return l.kind===219&&l.operatorToken.kind===63&&(Un(l,r),l=l.left),l.kind===203?z2(l,t,i):l.kind===202?X2(l,t,r):Y2(l,t,r)}function Y2(n,t,r){var i=hi(n,r),l=n.parent.kind===293?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,u=n.parent.kind===293?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return Cg(n,l,u)&&ip(t,i,n,n),e.isPrivateIdentifierPropertyAccessExpression(n)&&Xl(n.parent,1048576),t}function Fy(n){n=e.skipParentheses(n);switch(n.kind){case 79:case 10:case 13:case 208:case 221:case 14:case 8:case 9:case 110:case 95:case 104:case 151:case 211:case 224:case 212:case 202:case 203:case 214:case 228:case 277:case 276:return!0;case 220:return Fy(n.whenTrue)&&Fy(n.whenFalse);case 219:return e.isAssignmentOperator(n.operatorToken.kind)?!1:Fy(n.left)&&Fy(n.right);case 217:case 218:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 215:case 209:case 227:default:return!1}}function uT(n,t){return(t.flags&98304)!==0||Eh(n,t)}function Q2(){var n=e.createBinaryExpressionTrampoline(t,r,i,l,u,S);return function(an,Tn){var et=n(an,Tn);return e.Debug.assertIsDefined(et),et};function t(an,Tn,et){if(Tn?(Tn.stackIndex++,Tn.skip=!1,Ge(Tn,void 0),ze(Tn,void 0)):Tn={checkMode:et,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(an)&&e.getAssignedExpandoInitializer(an))return Tn.skip=!0,ze(Tn,hi(an.right,et)),Tn;Z2(an);var st=an.operatorToken.kind;return st===63&&(an.left.kind===203||an.left.kind===202)&&(Tn.skip=!0,ze(Tn,lm(an.left,hi(an.right,et),et,an.right.kind===108))),Tn}function r(an,Tn,et){if(!Tn.skip)return M(Tn,an)}function i(an,Tn,et){if(!Tn.skip){var st=We(Tn);e.Debug.assertIsDefined(st),Ge(Tn,st),ze(Tn,void 0);var Ct=an.kind;if(Ct===55||Ct===56||Ct===60){if(Ct===55){var Dt=e.walkUpParenthesizedExpressions(et.parent);TT(et.left,st,e.isIfStatement(Dt)?Dt.thenStatement:void 0)}tA(st,et.left)}}}function l(an,Tn,et){if(!Tn.skip)return M(Tn,an)}function u(an,Tn){var et;if(Tn.skip)et=We(Tn);else{var st=ge(Tn);e.Debug.assertIsDefined(st);var Ct=We(Tn);e.Debug.assertIsDefined(Ct),et=C1(an.left,an.operatorToken,an.right,st,Ct,an)}return Tn.skip=!1,Ge(Tn,void 0),ze(Tn,void 0),Tn.stackIndex--,et}function S(an,Tn,et){return ze(an,Tn),an}function M(an,Tn){if(e.isBinaryExpression(Tn))return Tn;ze(an,hi(Tn,an.checkMode))}function ge(an){return an.typeStack[an.stackIndex]}function Ge(an,Tn){an.typeStack[an.stackIndex]=Tn}function We(an){return an.typeStack[an.stackIndex+1]}function ze(an,Tn){an.typeStack[an.stackIndex+1]=Tn}}function Z2(n){var t=n.left,r=n.operatorToken,i=n.right;r.kind===60&&(e.isBinaryExpression(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===55)&&Dr(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(r.kind)),e.isBinaryExpression(i)&&(i.operatorToken.kind===56||i.operatorToken.kind===55)&&Dr(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(r.kind)))}function $2(n,t,r,i,l){var u=t.kind;if(u===63&&(n.kind===203||n.kind===202))return lm(n,hi(r,i),i,r.kind===108);var S;u===55||u===56||u===60?S=Uh(n,i):S=hi(n,i);var M=hi(r,i);return C1(n,t,r,S,M,l)}function C1(n,t,r,i,l,u){var S=t.kind;switch(S){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(i===Or||l===Or)return Or;i=ju(i,n),l=ju(l,r);var M=void 0;if(i.flags&528&&l.flags&528&&(M=ei(t.kind))!==void 0)return Hn(u||t,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(t.kind),e.tokenToString(M)),Et;var ge=fv(n,i,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ge=fv(r,l,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),We;if($s(i,3)&&$s(l,3)||!(xs(i,2112)||xs(l,2112)))We=Et;else if(yr(i,l)){switch(S){case 49:case 72:Po();break;case 42:case 67:Me<3&&Hn(u,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}We=zt}else Po(yr),We=K;return ge&&Ge&&Ji(We),We;case 39:case 64:if(i===Or||l===Or)return Or;!$s(i,402653316)&&!$s(l,402653316)&&(i=ju(i,n),l=ju(l,r));var ze=void 0;if($s(i,296,!0)&&$s(l,296,!0)?ze=Et:$s(i,2112,!0)&&$s(l,2112,!0)?ze=zt:$s(i,402653316,!0)||$s(l,402653316,!0)?ze=ht:(no(i)||no(l))&&(ze=i===K||l===K?K:lt),ze&&!fi(S))return ze;if(!ze){var an=296|2112|402653316|3;return Po(function(Ot,xa){return $s(Ot,an)&&$s(xa,an)}),lt}return S===64&&Ji(ze),ze;case 29:case 31:case 32:case 33:return fi(S)&&(i=ed(ju(i,n)),l=ed(ju(l,r)),vo(function(Ot,xa){return Eh(Ot,xa)||Eh(xa,Ot)||yo(Ot,Wt)&&yo(xa,Wt)})),Ht;case 34:case 35:case 36:case 37:return vo(function(Ot,xa){return uT(Ot,xa)||uT(xa,Ot)}),Ht;case 102:return J2(n,r,i,l);case 101:return q2(n,r,i,l);case 55:case 76:{var Tn=sp(i)&4194304?Ea([b0(je?i:ed(l)),l]):i;return S===76&&Ji(l),Tn}case 56:case 75:{var et=sp(i)&8388608?Ea([bx(i),l],2):i;return S===75&&Ji(l),et}case 60:case 77:{var st=sp(i)&262144?Ea([kf(i),l],2):i;return S===77&&Ji(l),st}case 63:var Ct=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return ba(Ct,l),ni(Ct)?((!(l.flags&524288)||Ct!==2&&Ct!==6&&!Zd(l)&&!_E(l)&&!(e.getObjectFlags(l)&1))&&Ji(l),i):(Ji(l),wh(l));case 27:if(!pe.allowUnreachableCode&&Fy(n)&&!ca(r)){var Dt=e.getSourceFileOfNode(n),Bt=Dt.text,cr=e.skipTrivia(Bt,n.pos),Vr=Dt.parseDiagnostics.some(function(Ot){return Ot.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Ot,cr)});Vr||Hn(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return l;default:return e.Debug.fail()}function yr(Ot,xa){return $s(Ot,2112)&&$s(xa,2112)}function ba(Ot,xa){if(Ot===2)for(var Ra=0,ta=Kd(xa);Ra<ta.length;Ra++){var ri=ta[Ra],Hr=Ir(ri);if(Hr.symbol&&Hr.symbol.flags&32){var qi=ri.escapedName,Ui=Zi(ri.valueDeclaration,qi,788968,void 0,qi,!1);(Ui==null?void 0:Ui.declarations)&&Ui.declarations.some(e.isJSDocTypedefTag)&&(Du(Ui,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(qi),ri),Du(ri,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(qi),Ui))}}}function ca(Ot){return Ot.kind===79&&Ot.escapedText==="eval"}function fi(Ot){var xa=xs(i,12288)?n:xs(l,12288)?r:void 0;return xa?(Hn(xa,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Ot)),!1):!0}function ei(Ot){switch(Ot){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Ji(Ot){R&&e.isAssignmentOperator(S)&&(Cg(n,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(n)||e.unescapeLeadingUnderscores(n.escapedText)!=="exports")&&ip(Ot,i,n,r))}function ni(Ot){var xa;switch(Ot){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Ra=Rr(n),ta=e.getAssignedExpandoInitializer(r);return!!ta&&e.isObjectLiteralExpression(ta)&&!!((xa=Ra==null?void 0:Ra.exports)===null||xa===void 0?void 0:xa.size);default:return!1}}function vo(Ot){return Ot(i,l)?!1:(Po(Ot),!0)}function Po(Ot){var xa,Ra=!1,ta=u||t;if(Ot){var ri=Hu(i),Hr=Hu(l);Ra=!(ri===i&&Hr===l)&&!!(ri&&Hr)&&Ot(ri,Hr)}var qi=i,Ui=l;!Ra&&Ot&&(xa=eI(i,l,Ot),qi=xa[0],Ui=xa[1]);var nt=Gd(qi,Ui),_n=nt[0],hr=nt[1];Xt(ta,Ra,_n,hr)||Vs(ta,Ra,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(t.kind),_n,hr)}function Xt(Ot,xa,Ra,ta){var ri;switch(t.kind){case 36:case 34:ri="false";break;case 37:case 35:ri="true"}return ri?Vs(Ot,xa,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,ri,Ra,ta):void 0}}function eI(n,t,r){var i=n,l=t,u=ed(n),S=ed(t);return r(u,S)||(i=u,l=S),[i,l]}function nI(n){R&&(n.flags&8192||Nl(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),CE(n)&&Hn(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=e.getContainingFunction(n);if(!t)return lt;var r=e.getFunctionFlags(t);if(!(r&1))return lt;var i=(r&2)!==0;n.asteriskToken&&(i&&Me<99&&Xl(n,26624),!i&&Me<2&&pe.downlevelIteration&&Xl(n,256));var l=bp(t),u=l&&mA(l,i),S=u&&u.yieldType||lt,M=u&&u.nextType||lt,ge=i?Hu(M)||lt:M,Ge=n.expression?hi(n.expression):Xe,We=b1(n,Ge,ge,i);if(l&&We&&ip(We,S,n.expression||n,n.expression),n.asteriskToken){var ze=i?19:17;return aA(ze,1,Ge,n.expression)||lt}else if(l)return Zm(2,l,i)||lt;var an=dw(2,t);if(!an&&(an=lt,R&&vn&&!e.expressionResultIsUnused(n))){var Tn=xu(n);(!Tn||no(Tn))&&Hn(n,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return an}function tI(n,t){var r=Uh(n.condition);TT(n.condition,r,n.whenTrue);var i=hi(n.whenTrue,t),l=hi(n.whenFalse,t);return Ea([i,l],2)}function k1(n){var t=n.parent;return e.isParenthesizedExpression(t)&&k1(t)||e.isElementAccessExpression(t)&&t.argumentExpression===n}function rI(n){for(var t=[n.head.text],r=[],i=0,l=n.templateSpans;i<l.length;i++){var u=l[i],S=hi(u.expression);xs(S,12288)&&Hn(u.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(u.literal.text),r.push(yo(S,Pr)?S:ht)}return Mh(n)||k1(n)||Dh(xu(n)||ln,aI)?vh(t,r):ht}function aI(n){return!!(n.flags&(128|134217728)||n.flags&58982400&&xs(tc(n)||ln,402653316))}function iI(n){return n.kind===284&&!e.isJsxSelfClosingElement(n.parent)?n.parent.parent:n}function Qm(n,t,r,i){var l=iI(n),u=l.contextualType,S=l.inferenceContext;try{l.contextualType=t,l.inferenceContext=r;var M=hi(n,i|1|(r?2:0)),ge=xs(M,2944)&&pv(M,q_(t,n))?_c(M):M;return ge}finally{l.contextualType=u,l.inferenceContext=S}}function ml(n,t){var r=pa(n);if(!r.resolvedType){if(t&&t!==0)return hi(n,t);var i=he,l=ya;he=Jn,ya=void 0,r.resolvedType=hi(n,t),ya=l,he=i}return r.resolvedType}function oI(n){return n=e.skipParentheses(n),n.kind===209||n.kind===227}function Gy(n,t){var r=e.getEffectiveInitializer(n),i=R1(r)||(t?Qm(r,t,void 0,0):ml(r));return e.isParameter(n)&&n.name.kind===200&&Ki(i)&&!i.target.hasRestElement&&ep(i)<n.name.elements.length?sI(i,n.name):i}function sI(n,t){for(var r=t.elements,i=Oo(n).slice(),l=n.target.elementFlags.slice(),u=ep(n);u<r.length;u++){var S=r[u];(u<r.length-1||!(S.kind===201&&S.dotDotDotToken))&&(i.push(!e.isOmittedExpression(S)&&Ch(S)?mm(S,!1,!1):lt),l.push(2),!e.isOmittedExpression(S)&&!Ch(S)&&Ap(S,lt))}return Zu(i,l,n.target.readonly)}function dT(n,t){var r=e.getCombinedNodeFlags(n)&2||e.isDeclarationReadonly(n)?t:wp(t);if(e.isInJSFile(n)){if(mx(r))return Ap(n,lt),lt;if(Yb(r))return Ap(n,pn),pn}return r}function pv(n,t){if(t){if(t.flags&3145728){var r=t.types;return e.some(r,function(l){return pv(n,l)})}if(t.flags&58982400){var i=tc(t)||ln;return xs(i,4)&&xs(n,128)||xs(i,8)&&xs(n,256)||xs(i,64)&&xs(n,2048)||xs(i,4096)&&xs(n,8192)||pv(n,i)}return!!(t.flags&(128|4194304|134217728|268435456)&&xs(n,128)||t.flags&256&&xs(n,256)||t.flags&2048&&xs(n,2048)||t.flags&512&&xs(n,512)||t.flags&8192&&xs(n,8192))}return!1}function Mh(n){var t=n.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&Mh(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t)||e.isTemplateSpan(t))&&Mh(t.parent)}function Fh(n,t,r,i){var l=hi(n,t,i);return Mh(n)?_c(l):oI(n)?l:Qb(l,q_(arguments.length===2?xu(n):r,n))}function L1(n,t){return n.name.kind===160&&rf(n.name),Fh(n.initializer,t)}function I1(n,t){JA(n),n.name.kind===160&&rf(n.name);var r=x1(n,t);return N1(n,r,t)}function N1(n,t,r){if(r&&r&(2|8)){var i=xg(t,0,!0),l=xg(t,1,!0),u=i||l;if(u&&u.typeParameters){var S=Cp(n,2);if(S){var M=xg(kf(S),i?0:1,!1);if(M&&!M.typeParameters){if(r&8)return O1(n,r),ea;var ge=Tg(n),Ge=ge.signature&&_o(ge.signature),We=Ge&&qw(Ge);if(We&&!We.typeParameters&&!e.every(ge.inferences,Dm)){var ze=uI(ge,u.typeParameters),an=ib(u,ze),Tn=e.map(ge.inferences,function(et){return sE(et.typeParameter)});if(aE(an,M,function(et,st){Id(Tn,et,st,0,!0)}),e.some(Tn,Dm)&&(iE(an,M,function(et,st){Id(Tn,et,st)}),!lI(ge.inferences,Tn)))return cI(ge.inferences,Tn),ge.inferredTypeParameters=e.concatenate(ge.inferredTypeParameters,ze),mh(an)}return mh(zw(u,M,ge))}}}}return t}function O1(n,t){if(t&2){var r=Tg(n);r.flags|=4}}function Dm(n){return!!(n.candidates||n.contraCandidates)}function lI(n,t){for(var r=0;r<n.length;r++)if(Dm(n[r])&&Dm(t[r]))return!0;return!1}function cI(n,t){for(var r=0;r<n.length;r++)!Dm(n[r])&&Dm(t[r])&&(n[r]=t[r])}function uI(n,t){for(var r=[],i,l,u=0,S=t;u<S.length;u++){var M=S[u],ge=M.symbol.escapedName;if(fT(n.inferredTypeParameters,ge)||fT(r,ge)){var Ge=dI(e.concatenate(n.inferredTypeParameters,r),ge),We=oo(262144,Ge),ze=Yc(We);ze.target=M,i=e.append(i,M),l=e.append(l,ze),r.push(ze)}else r.push(M)}if(l)for(var an=vc(i,l),Tn=0,et=l;Tn<et.length;Tn++){var M=et[Tn];M.mapper=an}return r}function fT(n,t){return e.some(n,function(r){return r.symbol.escapedName===t})}function dI(n,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var i=t.slice(0,r),l=1;;l++){var u=i+l;if(!fT(n,u))return u}}function P1(n){var t=Am(n);if(t&&!t.typeParameters)return _o(t)}function fI(n){var t=hi(n.expression),r=gg(t,n.expression),i=P1(t);return i&&C_(i,n,r!==t)}function jl(n){var t=R1(n);if(t)return t;if(n.flags&67108864&&ya){var r=ya[B(n)];if(r)return r}var i=dr,l=hi(n);if(dr!==i){var u=ya||(ya=[]);u[B(n)]=l,e.setNodeFlags(n,n.flags|67108864)}return l}function R1(n){var t=e.skipParentheses(n);if(e.isCallExpression(t)&&t.expression.kind!==106&&!e.isRequireCall(t,!0)&&!l1(t)){var r=e.isCallChain(t)?fI(t):P1(Ih(t.expression));if(r)return r}else{if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return La(t.type);if(n.kind===8||n.kind===10||n.kind===110||n.kind===95)return hi(n)}return}function pT(n){var t=pa(n);if(t.contextFreeType)return t.contextFreeType;var r=n.contextualType;n.contextualType=lt;try{var i=t.contextFreeType=hi(n,4);return i}finally{n.contextualType=r}}function hi(n,t,r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:n.kind,pos:n.pos,end:n.end});var i=ce;ce=n,Se=0;var l=hI(n,t,r),u=N1(n,l,t);return lT(u)&&pI(n,u),ce=i,e.tracing===null||e.tracing===void 0||e.tracing.pop(),u}function pI(n,t){var r=n.parent.kind===204&&n.parent.expression===n||n.parent.kind===205&&n.parent.expression===n||(n.kind===79||n.kind===159)&&Cv(n)||n.parent.kind===179&&n.parent.exprName===n||n.parent.kind===273;if(r||Hn(n,e.Diagnostics.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),pe.isolatedModules){e.Debug.assert(!!(t.symbol.flags&128));var i=t.symbol.valueDeclaration;i.flags&8388608&&Hn(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function mI(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return r?f1(r.typeExpression.type,r.typeExpression.type,n.expression,t):hi(n.expression,t)}function hI(n,t,r){var i=n.kind;if(q)switch(i){case 224:case 211:case 212:q.throwIfCancellationRequested()}switch(i){case 79:return xk(n,t);case 108:return K_(n);case 106:return AE(n);case 104:return it;case 14:case 10:return Bm(nu(n.text));case 8:return WT(n),Bm(Xd(+n.text));case 9:return nR(n),Bm(Cb({negative:!1,base10Value:e.parsePseudoBigInt(n.text)}));case 110:return Jt;case 95:return fr;case 221:return rI(n);case 13:return He;case 202:return gw(n,t,r);case 203:return mL(n,t);case 204:return Iw(n,t);case 159:return Nw(n,t);case 205:return qL(n,t);case 206:if(n.expression.kind===100)return E2(n);case 207:return b2(n,t);case 208:return T2(n);case 210:return mI(n,t);case 224:return VN(n);case 211:case 212:return x1(n,t);case 214:return V2(n);case 209:case 227:return S2(n);case 228:return w2(n);case 229:return A2(n);case 213:return B2(n);case 215:return j2(n);case 216:return W2(n);case 217:return H2(n);case 218:return K2(n);case 219:return Un(n,t);case 220:return tI(n,t);case 223:return cL(n,t);case 225:return Xe;case 222:return nI(n);case 230:return uL(n);case 286:return DL(n,t);case 276:return _L(n,t);case 277:return gL(n,t);case 280:return vL(n);case 284:return EL(n,t);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return K}function M1(n){n.expression&&Nl(n.expression,e.Diagnostics.Type_expected),so(n.constraint),so(n.default);var t=Hd(Rr(n));tc(t),Zv(t)||Hn(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Ar(t));var r=Cc(t),i=Zf(t);r&&i&&Fc(i,Rc(si(r,Em(t,i)),i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),R&&Vh(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function F1(n){Nd(n),bv(n);var t=e.getContainingFunction(n);e.hasSyntacticModifier(n,16476)&&(t.kind===169&&e.nodeIsPresent(t.body)||Hn(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),t.kind===169&&e.isIdentifier(n.name)&&n.name.escapedText==="constructor"&&Hn(n.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&Hn(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(t.parameters.indexOf(n)!==0&&Hn(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(t.kind===169||t.kind===173||t.kind===178)&&Hn(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),t.kind===212&&Hn(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(t.kind===170||t.kind===171)&&Hn(n,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!e.isBindingPattern(n.name)&&!yo(vu(Ir(n.symbol)),De)&&Hn(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function gI(n){var t=yI(n);if(!t){Hn(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var r=Eu(t),i=Mc(r);if(!i)return;so(n.type);var l=n.parameterName;if(i.kind===0||i.kind===2)__(l);else if(i.parameterIndex>=0){if(k(r)&&i.parameterIndex===r.parameters.length-1)Hn(l,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(i.type){var u=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Fc(i.type,Ir(r.parameters[i.parameterIndex]),n.type,void 0,u)}}else if(l){for(var S=!1,M=0,ge=t.parameters;M<ge.length;M++){var Ge=ge[M].name;if(e.isBindingPattern(Ge)&&G1(Ge,l,i.parameterName)){S=!0;break}}S||Hn(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}function yI(n){switch(n.parent.kind){case 212:case 172:case 254:case 211:case 177:case 167:case 166:var t=n.parent;if(n===t.type)return t}}function G1(n,t,r){for(var i=0,l=n.elements;i<l.length;i++){var u=l[i];if(e.isOmittedExpression(u))continue;var S=u.name;if(S.kind===79&&S.escapedText===r)return Hn(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((S.kind===200||S.kind===199)&&G1(S,t,r))return!0}}function Lg(n){n.kind===174?AP(n):(n.kind===177||n.kind===254||n.kind===178||n.kind===172||n.kind===169||n.kind===173)&&Pv(n);var t=e.getFunctionFlags(n);if(t&4||((t&3)===3&&Me<99&&Xl(n,6144),(t&3)===2&&Me<4&&Xl(n,64),(t&3)!==0&&Me<2&&Xl(n,128)),xv(n.typeParameters),e.forEach(n.parameters,F1),n.type&&so(n.type),R){rN(n);var r=e.getEffectiveReturnTypeNode(n);if(vn&&!r)switch(n.kind){case 173:Hn(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 172:Hn(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(r){var i=e.getFunctionFlags(n);if((i&(4|1))===1){var l=La(r);if(l===At)Hn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var u=Zm(0,l,(i&2)!==0)||lt,S=Zm(1,l,(i&2)!==0)||u,M=Zm(2,l,(i&2)!==0)||ln,ge=v1(u,S,M,!!(i&2));Fc(ge,l,r)}}else(i&3)===2&&VI(n,r)}n.kind!==174&&n.kind!==312&&Lf(n)}}function _I(n){for(var t=new e.Map,r=new e.Map,i=new e.Map,l=0,u=n.members;l<u.length;l++){var S=u[l];if(S.kind===169)for(var M=0,ge=S.parameters;M<ge.length;M++){var Ge=ge[M];e.isParameterPropertyDeclaration(Ge,S)&&!e.isBindingPattern(Ge.name)&&Ct(t,Ge.name,Ge.name.escapedText,3)}else{var We=e.isStatic(S),ze=S.name;if(!ze)continue;var an=e.isPrivateIdentifier(ze),Tn=an&&We?16:0,et=an?i:We?r:t,st=ze&&e.getPropertyNameForPropertyNameNode(ze);if(st)switch(S.kind){case 170:Ct(et,ze,st,1|Tn);break;case 171:Ct(et,ze,st,2|Tn);break;case 165:Ct(et,ze,st,3|Tn);break;case 167:Ct(et,ze,st,8|Tn);break}}}function Ct(Dt,Bt,cr,Vr){var yr=Dt.get(cr);if(yr)if((yr&16)!==(Vr&16))Hn(Bt,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(Bt));else{var ba=!!(yr&8),ca=!!(Vr&8);ba||ca?ba!==ca&&Hn(Bt,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Bt)):yr&Vr&~16?Hn(Bt,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Bt)):Dt.set(cr,yr|Vr)}else Dt.set(cr,Vr)}}function vI(n){for(var t=0,r=n.members;t<r.length;t++){var i=r[t],l=i.name,u=e.isStatic(i);if(u&&l){var S=e.getPropertyNameForPropertyNameNode(l);switch(S){case"name":case"length":case"caller":case"arguments":case"prototype":var M=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,ge=pd(Rr(n));Hn(l,M,S,ge);break}}}}function B1(n){for(var t=new e.Map,r=0,i=n.members;r<i.length;r++){var l=i[r];if(l.kind===164){var u=void 0,S=l.name;switch(S.kind){case 10:case 8:u=S.text;break;case 79:u=e.idText(S);break;default:continue}t.get(u)?(Hn(e.getNameOfDeclaration(l.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,u),Hn(l.name,e.Diagnostics.Duplicate_identifier_0,u)):t.set(u,!0)}}}function mT(n){if(n.kind===256){var t=Rr(n);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==n)return}var r=qT(Rr(n));if(r==null?void 0:r.declarations){for(var i=new e.Map,l=function(ge){ge.parameters.length===1&&ge.parameters[0].type&&Km(La(ge.parameters[0].type),function(Ge){var We=i.get(Su(Ge));We?We.declarations.push(ge):i.set(Su(Ge),{type:Ge,declarations:[ge]})})},u=0,S=r.declarations;u<S.length;u++){var M=S[u];l(M)}i.forEach(function(ge){if(ge.declarations.length>1)for(var Ge=0,We=ge.declarations;Ge<We.length;Ge++){var ze=We[Ge];Hn(ze,e.Diagnostics.Duplicate_index_signature_for_type_0,Ar(ge.type))}})}}function U1(n){!Nd(n)&&!YP(n)&&Rv(n.name),bv(n),hT(n),e.isPrivateIdentifier(n.name)&&e.hasStaticModifier(n)&&n.initializer&&Me===99&&!pe.useDefineForClassFields&&Hn(n.initializer,e.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag),e.hasSyntacticModifier(n,128)&&n.kind===165&&n.initializer&&Hn(n,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(n.name))}function bI(n){return e.isPrivateIdentifier(n.name)&&Hn(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),U1(n)}function EI(n){JA(n)||Rv(n.name),z1(n),e.hasSyntacticModifier(n,128)&&n.kind===167&&n.body&&Hn(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name)),e.isPrivateIdentifier(n.name)&&!e.getContainingClass(n)&&Hn(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),hT(n)}function hT(n){if(e.isPrivateIdentifier(n.name)&&Me<99){for(var t=e.getEnclosingBlockScopeContainer(n);t;t=e.getEnclosingBlockScopeContainer(t))pa(t).flags|=67108864;if(e.isClassExpression(n.parent)){var r=SE(n.parent);r&&(pa(n.name).flags|=524288,pa(r).flags|=65536)}}}function TI(n){Nd(n),e.forEachChild(n,so)}function SI(n){Lg(n),zP(n)||XP(n),so(n.body);var t=Rr(n),r=e.getDeclarationOfKind(t,n.kind);if(n===r&&yv(t),e.nodeIsMissing(n.body))return;if(!R)return;function i(Tn){return e.isPrivateIdentifierClassElementDeclaration(Tn)?!0:Tn.kind===165&&!e.isStatic(Tn)&&!!Tn.initializer}var l=n.parent;if(e.getClassExtendsHeritageElement(l)){xE(n.parent,l);var u=iw(l),S=aw(n.body);if(S){u&&Hn(S,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var M=(pe.target!==99||!Ye)&&(e.some(n.parent.members,i)||e.some(n.parameters,function(Tn){return e.hasSyntacticModifier(Tn,16476)}));if(M){for(var ge=n.body.statements,Ge=void 0,We=0,ze=ge;We<ze.length;We++){var an=ze[We];if(an.kind===236&&e.isSuperCall(an.expression)){Ge=an;break}if(!e.isPrologueDirective(an))break}Ge||Hn(n,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else u||Hn(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function V1(n){if(R){if(!Pv(n)&&!FP(n)&&Rv(n.name),Uy(n),Lg(n),n.kind===170&&(!(n.flags&8388608)&&e.nodeIsPresent(n.body)&&n.flags&256&&(n.flags&512||Hn(n.name,e.Diagnostics.A_get_accessor_must_return_a_value))),n.name.kind===160&&rf(n.name),Jl(n)){var t=Rr(n),r=e.getDeclarationOfKind(t,170),i=e.getDeclarationOfKind(t,171);if(r&&i&&!(eh(r)&1)){pa(r).flags|=1;var l=e.getEffectiveModifierFlags(r),u=e.getEffectiveModifierFlags(i);(l&128)!==(u&128)&&(Hn(r.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Hn(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(l&16&&!(u&(16|8))||l&8&&!(u&8))&&(Hn(r.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Hn(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var S=aa(r),M=aa(i);S&&M&&Fc(S,M,r,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var ge=Co(Rr(n));n.kind===170&&oT(n,ge)}so(n.body),hT(n)}function xI(n){Uy(n)}function mv(n,t){return $f(e.map(n.typeArguments,La),t,Gu(t),e.isInJSFile(n))}function j1(n,t){for(var r,i,l=!0,u=0;u<t.length;u++){var S=Cc(t[u]);S&&(r||(r=mv(n,t),i=vc(t,r)),l=l&&Fc(r[u],si(S,i),n.typeArguments[u],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return l}function gT(n){var t=cy(n);if(t!==K){var r=pa(n).resolvedSymbol;if(r)return r.flags&524288&&$a(r).typeParameters||(e.getObjectFlags(t)&4?t.target.localTypeParameters:void 0)}return}function yT(n){Xy(n,n.typeArguments),n.kind===176&&n.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(n)&&!e.isInJSDoc(n)&&lp(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(n.typeArguments,so);var t=cy(n);if(t!==K){if(n.typeArguments&&R){var r=gT(n);r&&j1(n,r)}var i=pa(n).resolvedSymbol;i&&(e.some(i.declarations,function(l){return qy(l)&&!!(l.flags&134217728)})&&fc(Oy(n),i.declarations,i.escapedName),t.flags&32&&i.flags&8&&Hn(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Ar(t)))}}function wI(n){var t=e.tryCast(n.parent,e.isTypeReferenceType);if(!t)return;var r=gT(t),i=Cc(r[t.typeArguments.indexOf(n)]);return i&&si(i,vc(r,mv(t,r)))}function AI(n){oS(n)}function DI(n){if(e.forEach(n.members,so),R){var t=jS(n);Sv(t),mT(n),B1(n)}}function CI(n){so(n.elementType)}function kI(n){for(var t=n.elements,r=!1,i=!1,l=e.some(t,e.isNamedTupleMember),u=0,S=t;u<S.length;u++){var M=S[u];if(M.kind!==195&&l){Dr(M,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var ge=db(M);if(ge&8){var Ge=La(M.type);if(!op(Ge)){Hn(M,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(zl(Ge)||Ki(Ge)&&Ge.target.combinedFlags&4)&&(i=!0)}else if(ge&4){if(i){Dr(M,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(ge&2){if(i){Dr(M,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}r=!0}else if(r){Dr(M,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(n.elements,so),La(n)}function LI(n){e.forEach(n.types,so),La(n)}function W1(n,t){if(!(n.flags&8388608))return n;var r=n.objectType,i=n.indexType;if(yo(i,yd(r,!1)))return t.kind===205&&e.isAssignmentTarget(t)&&e.getObjectFlags(r)&32&&_u(r)&1&&Hn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ar(r)),n;var l=Ul(r);if(go(l,Et)&&$s(i,296))return n;if(vm(r)){var u=_b(i,t);if(u){var S=Km(l,function(M){return Rn(M,u)});if(S&&e.getDeclarationModifierFlagsFromSymbol(S)&24)return Hn(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(u)),K}}return Hn(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ar(i),Ar(r)),K}function II(n){so(n.objectType),so(n.indexType),W1(MS(n),n)}function NI(n){so(n.typeParameter),so(n.nameType),so(n.type),n.type||Ap(n,lt);var t=Eb(n),r=Qf(t);if(r)Fc(r,rr,n.nameType);else{var i=yu(t);Fc(i,rr,e.getEffectiveConstraintOfTypeParameter(n.typeParameter))}}function OI(n){__(n)}function PI(n){BP(n),so(n.type)}function RI(n){e.forEachChild(n,so)}function MI(n){e.findAncestor(n,function(t){return t.parent&&t.parent.kind===187&&t.parent.extendsType===t})||Dr(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),so(n.typeParameter),Lf(n)}function FI(n){for(var t=0,r=n.templateSpans;t<r.length;t++){var i=r[t];so(i.type);var l=La(i.type);Fc(l,Pr,i.type)}La(n)}function GI(n){so(n.argument),La(n)}function BI(n){n.dotDotDotToken&&n.questionToken&&Dr(n,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===183&&Dr(n.type,e.Diagnostics.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===184&&Dr(n.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),so(n.type),La(n)}function hv(n){return(e.hasEffectiveModifier(n,8)||e.isPrivateIdentifierClassElementDeclaration(n))&&!!(n.flags&8388608)}function gv(n,t){var r=e.getCombinedModifierFlags(n);return n.parent.kind!==256&&n.parent.kind!==255&&n.parent.kind!==224&&n.flags&8388608&&(!(r&2)&&!(e.isModuleBlock(n.parent)&&e.isModuleDeclaration(n.parent.parent)&&e.isGlobalScopeAugmentation(n.parent.parent))&&(r|=1),r|=2),r&t}function yv(n){if(!R)return;function t(ta,ri){var Hr=ri!==void 0&&ri.parent===ta[0].parent;return Hr?ri:ta[0]}function r(ta,ri,Hr,qi,Ui){var nt=qi^Ui;if(nt!==0){var _n=gv(t(ta,ri),Hr);e.forEach(ta,function(hr){var gr=gv(hr,Hr)^_n;gr&1?Hn(e.getNameOfDeclaration(hr),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):gr&2?Hn(e.getNameOfDeclaration(hr),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):gr&(8|16)?Hn(e.getNameOfDeclaration(hr)||hr,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):gr&128&&Hn(e.getNameOfDeclaration(hr),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function i(ta,ri,Hr,qi){if(Hr!==qi){var Ui=e.hasQuestionToken(t(ta,ri));e.forEach(ta,function(nt){var _n=e.hasQuestionToken(nt)!==Ui;_n&&Hn(e.getNameOfDeclaration(nt),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var l=1|2|8|16|128,u=0,S=l,M=!1,ge=!0,Ge=!1,We,ze,an,Tn=n.declarations,et=(n.flags&16384)!==0;function st(ta){if(ta.name&&e.nodeIsMissing(ta.name))return;var ri=!1,Hr=e.forEachChild(ta.parent,function(gr){if(ri)return gr;ri=gr===ta});if(Hr&&Hr.pos===ta.end&&Hr.kind===ta.kind){var qi=Hr.name||Hr,Ui=Hr.name;if(ta.name&&Ui&&(e.isPrivateIdentifier(ta.name)&&e.isPrivateIdentifier(Ui)&&ta.name.escapedText===Ui.escapedText||e.isComputedPropertyName(ta.name)&&e.isComputedPropertyName(Ui)||e.isPropertyNameLiteral(ta.name)&&e.isPropertyNameLiteral(Ui)&&e.getEscapedTextOfIdentifierOrLiteral(ta.name)===e.getEscapedTextOfIdentifierOrLiteral(Ui))){var nt=(ta.kind===167||ta.kind===166)&&e.isStatic(ta)!==e.isStatic(Hr);if(nt){var _n=e.isStatic(ta)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Hn(qi,_n)}return}if(e.nodeIsPresent(Hr.body)){Hn(qi,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(ta.name));return}}var hr=ta.name||ta;et?Hn(hr,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(ta,128)?Hn(hr,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Hn(hr,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}var Ct=!1,Dt=!1,Bt=!1,cr=[];if(Tn)for(var Vr=0,yr=Tn;Vr<yr.length;Vr++){var ba=yr[Vr],ca=ba,fi=ca.flags&8388608,ei=ca.parent&&(ca.parent.kind===256||ca.parent.kind===180)||fi;if(ei&&(an=void 0),(ca.kind===255||ca.kind===224)&&!fi&&(Bt=!0),ca.kind===254||ca.kind===167||ca.kind===166||ca.kind===169){cr.push(ca);var Ji=gv(ca,l);u|=Ji,S&=Ji,M=M||e.hasQuestionToken(ca),ge=ge&&e.hasQuestionToken(ca);var ni=e.nodeIsPresent(ca.body);ni&&We?et?Dt=!0:Ct=!0:(an==null?void 0:an.parent)===ca.parent&&an.end!==ca.pos&&st(an),ni?We||(We=ca):Ge=!0,an=ca,ei||(ze=ca)}}if(Dt&&e.forEach(cr,function(ta){Hn(ta,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Ct&&e.forEach(cr,function(ta){Hn(e.getNameOfDeclaration(ta)||ta,e.Diagnostics.Duplicate_function_implementation)}),Bt&&!et&&n.flags&16&&Tn){var vo=e.filter(Tn,function(ta){return ta.kind===255}).map(function(ta){return e.createDiagnosticForNode(ta,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(Tn,function(ta){var ri=ta.kind===255?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:ta.kind===254?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;ri&&e.addRelatedInfo.apply(void 0,Mt([Hn(e.getNameOfDeclaration(ta)||ta,ri,e.symbolName(n))],vo,!1))})}if(ze&&!ze.body&&!e.hasSyntacticModifier(ze,128)&&!ze.questionToken&&st(ze),Ge&&(Tn&&(r(Tn,We,l,u,S),i(Tn,We,M,ge)),We))for(var Po=gd(n),Xt=Eu(We),Ot=0,xa=Po;Ot<xa.length;Ot++){var Ra=xa[Ot];if(!e0(Xt,Ra)){e.addRelatedInfo(Hn(Ra.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(We,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function Ig(n){if(!R)return;var t=n.localSymbol;if(!t&&(t=Rr(n),!t.exportSymbol))return;if(e.getDeclarationOfKind(t,n.kind)!==n)return;for(var r=0,i=0,l=0,u=0,S=t.declarations;u<S.length;u++){var M=S[u],ge=Ct(M),Ge=gv(M,1|512);Ge&1?Ge&512?l|=ge:r|=ge:i|=ge}var We=r|i,ze=r&i,an=l&We;if(ze||an)for(var Tn=0,et=t.declarations;Tn<et.length;Tn++){var M=et[Tn],ge=Ct(M),st=e.getNameOfDeclaration(M);ge&an?Hn(st,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(st)):ge&ze&&Hn(st,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(st))}function Ct(Dt){var Bt=Dt;switch(Bt.kind){case 256:case 257:case 340:case 333:case 334:return 2;case 259:return e.isAmbientModule(Bt)||e.getModuleInstanceState(Bt)!==0?4|1:4;case 255:case 258:case 294:return 2|1;case 300:return 2|1|4;case 269:case 219:var cr=Bt,Vr=e.isExportAssignment(cr)?cr.expression:cr.right;if(!e.isEntityNameExpression(Vr))return 1;Bt=Vr;case 263:case 266:case 265:var yr=0,ba=ks(Rr(Bt));return e.forEach(ba.declarations,function(ca){yr|=Ct(ca)}),yr;case 252:case 201:case 254:case 268:case 79:return 1;default:return e.Debug.failBadSyntaxKind(Bt)}}}function Ng(n,t,r,i){var l=By(n,t);return l&&Hu(l,t,r,i)}function By(n,t){if(no(n))return;var r=n;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(h(n,p_(!1)))return r.promisedTypeOfPromise=Oo(n)[0];var i=js(n,"then");if(no(i))return;var l=i?qt(i,0):e.emptyArray;if(l.length===0){t&&Hn(t,e.Diagnostics.A_promise_must_have_a_then_method);return}var u=Dl(Ea(e.map(l,rT)),2097152);if(no(u))return;var S=qt(u,0);if(S.length===0){t&&Hn(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return r.promisedTypeOfPromise=Ea(e.map(S,rT),2)}function Og(n,t,r,i){var l=Hu(n,t,r,i);return l||K}function UI(n){var t=js(n,"then");return!!t&&qt(Dl(t,2097152),0).length>0}function Hu(n,t,r,i){if(no(n))return n;var l=n;return l.awaitedTypeOfType?l.awaitedTypeOfType:l.awaitedTypeOfType=Ws(n,t?function(u){return H1(u,t,r,i)}:H1)}function H1(n,t,r,i){var l=n;if(l.awaitedTypeOfType)return l.awaitedTypeOfType;var u=By(n);if(u){if(n.id===u.id||$r.lastIndexOf(u.id)>=0){t&&Hn(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}$r.push(n.id);var S=Hu(u,t,r,i);return $r.pop(),S?l.awaitedTypeOfType=S:void 0}if(UI(n)){if(t){if(!r)return e.Debug.fail();Hn(t,r,i)}return}return l.awaitedTypeOfType=n}function VI(n,t){var r=La(t);if(Me>=2){if(r===K)return;var i=p_(!0);if(i!==at&&!h(r,i)){Hn(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Ar(Hu(r)||At));return}}else{if(WI(t),r===K)return;var l=e.getEntityNameFromTypeNode(t);if(l===void 0){Hn(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Ar(r));return}var u=rs(l,111551,!0),S=u?Ir(u):K;if(S===K){l.kind===79&&l.escapedText==="Promise"&&G(r)===p_(!1)?Hn(t,e.Diagnostics.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):Hn(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(l));return}var M=yD(!0);if(M===xt){Hn(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(l));return}if(!Fc(S,M,t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var ge=l&&e.getFirstIdentifier(l),Ge=Vo(n.locals,ge.escapedText,111551);if(Ge){Hn(Ge.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(ge),e.entityNameToString(l));return}}Og(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function jI(n){var t=Oh(n);cv(t,n);var r=_o(t);if(r.flags&1)return;var i,l=s1(n),u;switch(n.parent.kind){case 255:var S=Rr(n.parent),M=Ir(S);i=Ea([M,At]);break;case 162:i=At,u=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 165:i=At,u=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 167:case 170:case 171:var ge=cm(n.parent),Ge=hS(ge);i=Ea([Ge,At]);break;default:return e.Debug.fail()}Fc(r,i,n,l,function(){return u})}function WI(n){K1(n&&e.getEntityNameFromTypeNode(n))}function K1(n){if(!n)return;var t=e.getFirstIdentifier(n),r=(n.kind===79?788968:1920)|2097152,i=Zi(t,t.escapedText,r,void 0,void 0,!0);i&&i.flags&2097152&&Uc(i)&&!Fg(ks(i))&&!hc(i)&&Sc(i)}function Gh(n){var t=_T(n);t&&e.isEntityName(t)&&K1(t)}function _T(n){if(n)switch(n.kind){case 186:case 185:return J1(n.types);case 187:return J1([n.trueType,n.falseType]);case 189:case 195:return _T(n.type);case 176:return n.typeName}}function J1(n){for(var t,r=0,i=n;r<i.length;r++){for(var l=i[r];l.kind===189||l.kind===195;)l=l.type;if(l.kind===142)continue;if(!je&&(l.kind===194&&l.literal.kind===104||l.kind===151))continue;var u=_T(l);if(!u)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(u)||t.escapedText!==u.escapedText)return}else t=u}return t}function _v(n){var t=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(t):t}function Uy(n){if(!n.decorators)return;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return;pe.experimentalDecorators||Hn(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=n.decorators[0];if(Xl(t,8),n.kind===162&&Xl(t,32),pe.emitDecoratorMetadata){Xl(t,16);switch(n.kind){case 255:var r=e.getFirstConstructorWithBody(n);if(r)for(var i=0,l=r.parameters;i<l.length;i++){var u=l[i];Gh(_v(u))}break;case 170:case 171:var S=n.kind===170?171:170,M=e.getDeclarationOfKind(Rr(n),S);Gh(Fr(n)||M&&Fr(M));break;case 167:for(var ge=0,Ge=n.parameters;ge<Ge.length;ge++){var u=Ge[ge];Gh(_v(u))}Gh(e.getEffectiveReturnTypeNode(n));break;case 165:Gh(e.getEffectiveTypeAnnotationNode(n));break;case 162:Gh(_v(n));for(var We=n.parent,ze=0,an=We.parameters;ze<an.length;ze++){var u=an[ze];Gh(_v(u))}break}}e.forEach(n.decorators,jI)}function HI(n){R&&(z1(n),UT(n),Bh(n,n.name))}function KI(n){n.typeExpression||Hn(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&Vh(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),so(n.typeExpression)}function JI(n){so(n.constraint);for(var t=0,r=n.typeParameters;t<r.length;t++){var i=r[t];so(i)}}function qI(n){so(n.typeExpression)}function zI(n){if(so(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var t=e.getHostSignatureFromJSDoc(n);if(t){var r=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(n);if(r>-1&&r<t.parameters.length&&e.isBindingPattern(t.parameters[r].name))return;rg(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!zl(La(n.typeExpression.type))&&Hn(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(n.name.kind===159?n.name.right:n.name)):e.isQualifiedName(n.name)?Hn(n.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(n.name),e.entityNameToString(n.name.left)):Hn(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(n.name))}}}function XI(n){so(n.typeExpression)}function YI(n){R&&!n.type&&!e.isJSDocConstructSignature(n)&&Ap(n,lt),Lg(n)}function QI(n){var t=e.getEffectiveJSDocHost(n);(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t))&&Hn(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}function ZI(n){var t=e.getEffectiveJSDocHost(n);if(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t)){Hn(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName));return}var r=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(r.length>0),r.length>1&&Hn(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=q1(n.class.expression),l=e.getClassExtendsHeritageElement(t);if(l){var u=q1(l.expression);u&&i.escapedText!==u.escapedText&&Hn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(i),e.idText(u))}}function q1(n){switch(n.kind){case 79:return n;case 204:return n.name;default:return}}function z1(n){var t;Uy(n),Lg(n);var r=e.getFunctionFlags(n);if(n.name&&n.name.kind===160&&rf(n.name),Jl(n)){var i=Rr(n),l=n.localSymbol||i,u=(t=l.declarations)===null||t===void 0?void 0:t.find(function(ge){return ge.kind===n.kind&&!(ge.flags&131072)});n===u&&yv(l),i.parent&&yv(i)}var S=n.kind===166?void 0:n.body;if(so(S),oT(n,bp(n)),R&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(S)&&!hv(n)&&Ap(n,lt),r&1&&e.nodeIsPresent(S)&&_o(Eu(n))),e.isInJSFile(n)){var M=e.getJSDocTypeTag(n);M&&M.typeExpression&&!OE(La(M.typeExpression),n)&&Hn(M.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Lf(n){if(R){var t=e.getSourceFileOfNode(n),r=nl.get(t.path);r||(r=[],nl.set(t.path,r)),r.push(n)}}function X1(n,t){for(var r=0,i=n;r<i.length;r++){var l=i[r];switch(l.kind){case 255:case 224:$I(l,t),vT(l,t);break;case 300:case 259:case 233:case 261:case 240:case 241:case 242:Z1(l,t);break;case 169:case 211:case 254:case 212:case 167:case 170:case 171:l.body&&Z1(l,t),vT(l,t);break;case 166:case 172:case 173:case 177:case 178:case 257:case 256:vT(l,t);break;case 188:eN(l,t);break;default:e.Debug.assertNever(l,"Node should not have been registered for unused identifiers check")}}}function Y1(n,t,r){var i=e.getNameOfDeclaration(n)||n,l=qy(n)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;r(n,0,e.createDiagnosticForNode(i,l,t))}function Vy(n){return e.isIdentifier(n)&&e.idText(n).charCodeAt(0)===95}function $I(n,t){for(var r=0,i=n.members;r<i.length;r++){var l=i[r];switch(l.kind){case 167:case 165:case 170:case 171:if(l.kind===171&&l.symbol.flags&32768)break;var u=Rr(l);!u.isReferenced&&(e.hasEffectiveModifier(l,8)||e.isNamedDeclaration(l)&&e.isPrivateIdentifier(l.name))&&!(l.flags&8388608)&&t(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Xa(u)));break;case 169:for(var S=0,M=l.parameters;S<M.length;S++){var ge=M[S];!ge.symbol.isReferenced&&e.hasSyntacticModifier(ge,8)&&t(ge,0,e.createDiagnosticForNode(ge.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(ge.symbol)))}break;case 174:case 232:case 168:break;default:e.Debug.fail("Unexpected class member")}}}function eN(n,t){var r=n.typeParameter;bT(r)&&t(n,1,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(r.name)))}function vT(n,t){var r=Rr(n).declarations;if(!r||e.last(r)!==n)return;for(var i=e.getEffectiveTypeParameterDeclarations(n),l=new e.Set,u=0,S=i;u<S.length;u++){var M=S[u];if(!bT(M))continue;var ge=e.idText(M.name),Ge=M.parent;if(Ge.kind!==188&&Ge.typeParameters.every(bT)){if(e.tryAddToSet(l,Ge)){var We=e.getSourceFileOfNode(Ge),ze=e.isJSDocTemplateTag(Ge)?e.rangeOfNode(Ge):e.rangeOfTypeParameters(We,Ge.typeParameters),an=Ge.typeParameters.length===1,Tn=an?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,et=an?ge:void 0;t(M,1,e.createFileDiagnostic(We,ze.pos,ze.end-ze.pos,Tn,et))}}else t(M,1,e.createDiagnosticForNode(M,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ge))}}function bT(n){return!(To(n.symbol).isReferenced&262144)&&!Vy(n.name)}function jy(n,t,r,i){var l=String(i(t)),u=n.get(l);u?u[1].push(r):n.set(l,[t,[r]])}function Q1(n){return e.tryCast(e.getRootDeclaration(n),e.isParameter)}function nN(n){return e.isBindingElement(n)?e.isObjectBindingPattern(n.parent)?!!(n.propertyName&&Vy(n.name)):Vy(n.name):e.isAmbientModule(n)||(e.isVariableDeclaration(n)&&e.isForInOrOfStatement(n.parent.parent)||$1(n))&&Vy(n.name)}function Z1(n,t){var r=new e.Map,i=new e.Map,l=new e.Map;n.locals.forEach(function(u){if(u.flags&262144?!(u.flags&3&&!(u.isReferenced&3)):u.isReferenced||u.exportSymbol)return;if(u.declarations)for(var S=0,M=u.declarations;S<M.length;S++){var ge=M[S];if(nN(ge))continue;if($1(ge))jy(r,tN(ge),ge,B);else if(e.isBindingElement(ge)&&e.isObjectBindingPattern(ge.parent)){var Ge=e.last(ge.parent.elements);(ge===Ge||!e.last(ge.parent.elements).dotDotDotToken)&&jy(i,ge.parent,ge,B)}else if(e.isVariableDeclaration(ge))jy(l,ge.parent,ge,B);else{var We=u.valueDeclaration&&Q1(u.valueDeclaration),ze=u.valueDeclaration&&e.getNameOfDeclaration(u.valueDeclaration);We&&ze?!e.isParameterPropertyDeclaration(We,We.parent)&&!e.parameterIsThisKeyword(We)&&!Vy(ze)&&(e.isBindingElement(ge)&&e.isArrayBindingPattern(ge.parent)?jy(i,ge.parent,ge,B):t(We,1,e.createDiagnosticForNode(ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(u)))):Y1(ge,e.symbolName(u),t)}}}),r.forEach(function(u){var S=u[0],M=u[1],ge=S.parent,Ge=(S.name?1:0)+(S.namedBindings?S.namedBindings.kind===266?1:S.namedBindings.elements.length:0);if(Ge===M.length)t(ge,0,M.length===1?e.createDiagnosticForNode(ge,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(M).name)):e.createDiagnosticForNode(ge,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var We=0,ze=M;We<ze.length;We++){var an=ze[We];Y1(an,e.idText(an.name),t)}}),i.forEach(function(u){var S=u[0],M=u[1],ge=Q1(S.parent)?1:0;if(S.elements.length===M.length)M.length===1&&S.parent.kind===252&&S.parent.parent.kind===253?jy(l,S.parent.parent,S.parent,B):t(S,ge,M.length===1?e.createDiagnosticForNode(S,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Wy(e.first(M).name)):e.createDiagnosticForNode(S,e.Diagnostics.All_destructured_elements_are_unused));else for(var Ge=0,We=M;Ge<We.length;Ge++){var ze=We[Ge];t(ze,ge,e.createDiagnosticForNode(ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Wy(ze.name)))}}),l.forEach(function(u){var S=u[0],M=u[1];if(S.declarations.length===M.length)t(S,0,M.length===1?e.createDiagnosticForNode(e.first(M).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Wy(e.first(M).name)):e.createDiagnosticForNode(S.parent.kind===235?S.parent:S,e.Diagnostics.All_variables_are_unused));else for(var ge=0,Ge=M;ge<Ge.length;ge++){var We=Ge[ge];t(We,0,e.createDiagnosticForNode(We,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Wy(We.name)))}})}function Wy(n){switch(n.kind){case 79:return e.idText(n);case 200:case 199:return Wy(e.cast(e.first(n.elements),e.isBindingElement).name);default:return e.Debug.assertNever(n)}}function $1(n){return n.kind===265||n.kind===268||n.kind===266}function tN(n){return n.kind===265?n:n.kind===266?n.parent:n.parent.parent}function vv(n){if(n.kind===233&&Od(n),e.isFunctionOrModuleBlock(n)){var t=Mn;e.forEach(n.statements,so),Mn=t}else e.forEach(n.statements,so);n.locals&&Lf(n)}function rN(n){if(Me>=2||!e.hasRestParameter(n)||n.flags&8388608||e.nodeIsMissing(n.body))return;e.forEach(n.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===xe.escapedName&&Li("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Pg(n,t,r){if((t==null?void 0:t.escapedText)!==r)return!1;if(n.kind===165||n.kind===164||n.kind===167||n.kind===166||n.kind===170||n.kind===171||n.kind===291)return!1;if(n.flags&8388608)return!1;if((e.isImportClause(n)||e.isImportEqualsDeclaration(n)||e.isImportSpecifier(n))&&e.isTypeOnlyImportOrExportDeclaration(n))return!1;var i=e.getRootDeclaration(n);return!(e.isParameter(i)&&e.nodeIsMissing(i.parent.body))}function aN(n){e.findAncestor(n,function(t){if(eh(t)&4){var r=n.kind!==79;return r?Hn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Hn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function iN(n){e.findAncestor(n,function(t){if(eh(t)&8){var r=n.kind!==79;return r?Hn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Hn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function oN(n,t){if(fn>=e.ModuleKind.ES2015)return;if(!t||!Pg(n,t,"require")&&!Pg(n,t,"exports"))return;if(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)return;var r=Ud(n);r.kind===300&&e.isExternalOrCommonJsModule(r)&&Li("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}function sN(n,t){if(!t||Me>=4||!Pg(n,t,"Promise"))return;if(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)return;var r=Ud(n);r.kind===300&&e.isExternalOrCommonJsModule(r)&&r.flags&2048&&Li("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}function lN(n,t){Me<=8&&(Pg(n,t,"WeakMap")||Pg(n,t,"WeakSet"))&&Er.push(n)}function cN(n){var t=e.getEnclosingBlockScopeContainer(n);eh(t)&67108864&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Li("noEmit",n,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function uN(n,t){t&&Me>=2&&Me<=8&&Pg(n,t,"Reflect")&&Gr.push(n)}function dN(n){var t=!1;if(e.isClassExpression(n))for(var r=0,i=n.members;r<i.length;r++){var l=i[r];if(eh(l)&134217728){t=!0;break}}else if(e.isFunctionExpression(n))eh(n)&134217728&&(t=!0);else{var u=e.getEnclosingBlockScopeContainer(n);u&&eh(u)&134217728&&(t=!0)}t&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name),"The target of a Reflect collision check should be an identifier"),Li("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(n.name),"Reflect"))}function Bh(n,t){if(!t)return;oN(n,t),sN(n,t),lN(n,t),uN(n,t),e.isClassLike(n)?(Vh(t,e.Diagnostics.Class_name_cannot_be_0),n.flags&8388608||GN(t)):e.isEnumDeclaration(n)&&Vh(t,e.Diagnostics.Enum_name_cannot_be_0)}function fN(n){if((e.getCombinedNodeFlags(n)&3)!==0||e.isParameterDeclaration(n))return;if(n.kind===252&&!n.initializer)return;var t=Rr(n);if(t.flags&1){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=Zi(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&r.flags&2&&Sg(r)&3){var i=e.getAncestor(r.valueDeclaration,253),l=i.parent.kind===235&&i.parent.parent?i.parent.parent:void 0,u=l&&(l.kind===233&&e.isFunctionLike(l.parent)||l.kind===260||l.kind===259||l.kind===300);if(!u){var S=Xa(r);Hn(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,S,S)}}}}function Rg(n){return n===Fe?lt:n===j?pn:n}function bv(n){var t;if(Uy(n),e.isBindingElement(n)||so(n.type),!n.name)return;if(n.name.kind===160&&(rf(n.name),n.initializer&&ml(n.initializer)),e.isBindingElement(n)){e.isObjectBindingPattern(n.parent)&&n.dotDotDotToken&&Me<5&&Xl(n,4),n.propertyName&&n.propertyName.kind===160&&rf(n.propertyName);var r=n.parent.parent,i=Vd(r),l=n.propertyName||n.name;if(i&&!e.isBindingPattern(l)){var u=np(l);if(Fi(u)){var S=nc(u),M=Rn(i,S);M&&(nv(M,void 0,!1),Z_(n,!!r.initializer&&r.initializer.kind===106,!1,i,M))}}}if(e.isBindingPattern(n.name)&&(n.name.kind===200&&Me<2&&pe.downlevelIteration&&Xl(n,512),e.forEach(n.name.elements,so)),n.initializer&&e.isParameterDeclaration(n)&&e.nodeIsMissing(e.getContainingFunction(n).body)){Hn(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(n.name)){var ge=n.initializer&&n.parent.parent.kind!==241,Ge=n.name.elements.length===0;if(ge||Ge){var We=xf(n);if(ge){var ze=ml(n.initializer);je&&Ge?Lw(ze,n):ip(ze,xf(n),n,n.initializer)}Ge&&(e.isArrayBindingPattern(n.name)?If(65,We,Ln,n):je&&Lw(We,n))}return}var an=Rr(n);if(an.flags&2097152&&e.isRequireVariableDeclaration(n)){wv(n);return}var Tn=Rg(Ir(an));if(n===an.valueDeclaration){var et=e.getEffectiveInitializer(n);if(et){var st=e.isInJSFile(n)&&e.isObjectLiteralExpression(et)&&(et.properties.length===0||e.isPrototypeAccess(n.name))&&!!((t=an.exports)===null||t===void 0?void 0:t.size);!st&&n.parent.parent.kind!==241&&ip(ml(et),Tn,n,et,void 0)}an.declarations&&an.declarations.length>1&&(e.some(an.declarations,function(Dt){return Dt!==n&&e.isVariableLike(Dt)&&!nA(Dt,n)})&&Hn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name)))}else{var Ct=Rg(xf(n));Tn!==K&&Ct!==K&&!Yd(Tn,Ct)&&!(an.flags&67108864)&&eA(an.valueDeclaration,Tn,n,Ct),n.initializer&&ip(ml(n.initializer),Ct,n,n.initializer,void 0),an.valueDeclaration&&!nA(n,an.valueDeclaration)&&Hn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}n.kind!==165&&n.kind!==164&&(Ig(n),(n.kind===252||n.kind===201)&&fN(n),Bh(n,n.name))}function eA(n,t,r,i){var l=e.getNameOfDeclaration(r),u=r.kind===165||r.kind===164?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,S=e.declarationNameToString(l),M=Hn(l,u,S,Ar(t),Ar(i));n&&e.addRelatedInfo(M,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,S))}function nA(n,t){if(n.kind===162&&t.kind===252||n.kind===252&&t.kind===162)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;var r=8|16|256|128|64|32;return e.getSelectedEffectiveModifierFlags(n,r)===e.getSelectedEffectiveModifierFlags(t,r)}function ET(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end}),HP(n),bv(n),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function pN(n){return VP(n),bv(n)}function mN(n){!Nd(n)&&!jT(n.declarationList)&&KP(n),e.forEach(n.declarationList.declarations,so)}function hN(n){Od(n),hi(n.expression)}function gN(n){Od(n);var t=Uh(n.expression);TT(n.expression,t,n.thenStatement),so(n.thenStatement),n.thenStatement.kind===234&&Hn(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),so(n.elseStatement)}function TT(n,t,r){if(!je)return;if(Jc(t))return;var i=e.isBinaryExpression(n)?n.right:n;if(e.isPropertyAccessExpression(i)&&e.isAssertionExpression(e.skipParentheses(i.expression)))return;var l=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:e.isBinaryExpression(i)&&e.isIdentifier(i.right)?i.right:void 0,u=qt(t,0),S=!!Ng(t);if(u.length===0&&!S)return;var M=l&&tu(l);if(!M&&!S)return;var ge=M&&e.isBinaryExpression(n.parent)&&_N(n.parent,M)||M&&r&&yN(n,r,l,M);ge||(S?Vs(i,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,qu(t)):Hn(i,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}function yN(n,t,r,i){return!!e.forEachChild(t,function l(u){if(e.isIdentifier(u)){var S=tu(u);if(S&&S===i){if(e.isIdentifier(n))return!0;for(var M=r.parent,ge=u.parent;M&≥){if(e.isIdentifier(M)&&e.isIdentifier(ge)||M.kind===108&&ge.kind===108)return tu(M)===tu(ge);if(e.isPropertyAccessExpression(M)&&e.isPropertyAccessExpression(ge)){if(tu(M.name)!==tu(ge.name))return!1;ge=ge.expression,M=M.expression}else if(e.isCallExpression(M)&&e.isCallExpression(ge))ge=ge.expression,M=M.expression;else return!1}}}return e.forEachChild(u,l)})}function _N(n,t){for(;e.isBinaryExpression(n)&&n.operatorToken.kind===55;){var r=e.forEachChild(n.right,function i(l){if(e.isIdentifier(l)){var u=tu(l);if(u&&u===t)return!0}return e.forEachChild(l,i)});if(r)return!0;n=n.parent}return!1}function vN(n){Od(n),so(n.statement),Uh(n.expression)}function bN(n){Od(n),Uh(n.expression),so(n.statement)}function tA(n,t){return n.flags&16384&&Hn(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function Uh(n,t){return tA(hi(n,t),n)}function EN(n){Od(n)||n.initializer&&n.initializer.kind===253&&jT(n.initializer),n.initializer&&(n.initializer.kind===253?e.forEach(n.initializer.declarations,ET):hi(n.initializer)),n.condition&&Uh(n.condition),n.incrementor&&hi(n.incrementor),so(n.statement),n.locals&&Lf(n)}function TN(n){KA(n);var t=e.getContainingFunctionOrClassStaticBlock(n);if(n.awaitModifier)if(t&&e.isClassStaticBlockDeclaration(t))Dr(n.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var r=e.getFunctionFlags(t);(r&(4|2))===2&&Me<99&&Xl(n,16384)}else pe.downlevelIteration&&Me<2&&Xl(n,256);if(n.initializer.kind===253)rA(n);else{var i=n.initializer,l=Hy(n);if(i.kind===202||i.kind===203)lm(i,l||K);else{var u=hi(i);Cg(i,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),l&&ip(l,u,i,n.expression)}}so(n.statement),n.locals&&Lf(n)}function SN(n){KA(n);var t=WE(hi(n.expression));if(n.initializer.kind===253){var r=n.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&Hn(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),rA(n)}else{var i=n.initializer,l=hi(i);i.kind===202||i.kind===203?Hn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):yo(tC(t),l)?Cg(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Hn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(t===Wr||!$s(t,67108864|58982400))&&Hn(n.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Ar(t)),so(n.statement),n.locals&&Lf(n)}function rA(n){var t=n.initializer;if(t.declarations.length>=1){var r=t.declarations[0];ET(r)}}function Hy(n){var t=n.awaitModifier?15:13;return If(t,Ih(n.expression),Ln,n.expression)}function If(n,t,r,i){return no(t)?t:ST(n,t,r,i,!0)||lt}function ST(n,t,r,i,l){var u=(n&2)!==0;if(t===Wr){AT(i,t,u);return}var S=Me>=2,M=!S&&pe.downlevelIteration,ge=pe.noUncheckedIndexedAccess&&!!(n&128);if(S||M||u){var Ge=Ky(t,n,S?i:void 0);if(l&&Ge){var We=n&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?e.Diagnostics.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;We&&Fc(r,Ge.nextType,i,We)}if(Ge||S)return ge?bg(Ge&&Ge.yieldType):Ge&&Ge.yieldType}var ze=t,an=!1,Tn=!1;if(n&4){if(ze.flags&1048576){var et=t.types,st=e.filter(et,function(ba){return!(ba.flags&402653316)});st!==et&&(ze=Ea(st,2))}else ze.flags&402653316&&(ze=Wr);if(Tn=ze!==t,Tn&&(Me<1&&(i&&(Hn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),an=!0)),ze.flags&131072))return ge?bg(ht):ht}if(!op(ze)){if(i&&!an){var Ct=!!(n&4)&&!Tn,Dt=yr(Ct,M),Bt=Dt[0],cr=Dt[1];Vs(i,cr&&!!Ng(ze),Bt,Ar(ze))}return Tn?ge?bg(ht):ht:void 0}var Vr=Bs(ze,Et);if(Tn&&Vr)return Vr.flags&402653316&&!pe.noUncheckedIndexedAccess?ht:Ea(ge?[Vr,ht,Ln]:[Vr,ht],2);return n&128?bg(Vr):Vr;function yr(ba,ca){var fi;if(ca)return ba?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var ei=aA(n,0,t,void 0);return ei?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:xN((fi=t.symbol)===null||fi===void 0?void 0:fi.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:ba?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function xN(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 aA(n,t,r,i){if(no(r))return;var l=Ky(r,n,i);return l&&l[m(t)]}function af(n,t,r){if(n===void 0&&(n=Wr),t===void 0&&(t=Wr),r===void 0&&(r=ln),n.flags&67359327&&t.flags&(1|131072|2|16384|32768)&&r.flags&(1|131072|2|16384|32768)){var i=Tu([n,t,r]),l=os.get(i);return l||(l={yieldType:n,returnType:t,nextType:r},os.set(i,l)),l}return{yieldType:n,returnType:t,nextType:r}}function iA(n){for(var t,r,i,l=0,u=n;l<u.length;l++){var S=u[l];if(S===void 0||S===Qi)continue;if(S===mo)return mo;t=e.append(t,S.yieldType),r=e.append(r,S.returnType),i=e.append(i,S.nextType)}return t||r||i?af(t&&Ea(t),r&&Ea(r),i&&Go(i)):Qi}function Ev(n,t){return n[t]}function vd(n,t,r){return n[t]=r}function Ky(n,t,r){if(no(n))return mo;if(!(n.flags&1048576)){var i=sA(n,t,r);if(i===Qi){r&&AT(r,n,!!(t&2));return}return i}var l=t&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",u=Ev(n,l);if(u)return u===Qi?void 0:u;for(var S,M=0,ge=n.types;M<ge.length;M++){var Ge=ge[M],We=sA(Ge,t,r);if(We===Qi){r&&AT(r,n,!!(t&2)),vd(n,l,Qi);return}else S=e.append(S,We)}var ze=S?iA(S):Qi;return vd(n,l,ze),ze===Qi?void 0:ze}function oA(n,t){if(n===Qi)return Qi;if(n===mo)return mo;var r=n.yieldType,i=n.returnType,l=n.nextType;return af(Hu(r,t)||lt,Hu(i,t)||lt,l)}function sA(n,t,r){if(no(n))return mo;if(t&2){var i=xT(n,Ca)||cA(n,Ca);if(i)return i}if(t&1){var i=xT(n,ai)||cA(n,ai);if(i)if(t&2){if(i!==Qi)return vd(n,"iterationTypesOfAsyncIterable",oA(i,r))}else return i}if(t&2){var i=wT(n,Ca,r);if(i!==Qi)return i}if(t&1){var i=wT(n,ai,r);if(i!==Qi)return t&2?vd(n,"iterationTypesOfAsyncIterable",i?oA(i,r):Qi):i}return Qi}function xT(n,t){return Ev(n,t.iterableCacheKey)}function lA(n,t){var r=xT(n,t)||wT(n,t,void 0);return r===Qi?Ls:r}function cA(n,t){var r;if(h(n,r=t.getGlobalIterableType(!1))||h(n,r=t.getGlobalIterableIteratorType(!1))){var i=Oo(n)[0],l=lA(r,t),u=l.returnType,S=l.nextType;return vd(n,t.iterableCacheKey,af(i,u,S))}if(h(n,t.getGlobalGeneratorType(!1))){var M=Oo(n),i=M[0],u=M[1],S=M[2];return vd(n,t.iterableCacheKey,af(i,u,S))}}function wN(n){var t=dS(!1),r=t&&js(Ir(t),e.escapeLeadingUnderscores(n));return r&&Fi(r)?nc(r):"__@"+n}function wT(n,t,r){var i,l=Rn(n,wN(t.iteratorSymbolName)),u=l&&!(l.flags&16777216)?Ir(l):void 0;if(no(u))return vd(n,t.iterableCacheKey,mo);var S=u?qt(u,0):void 0;if(!e.some(S))return vd(n,t.iterableCacheKey,Qi);var M=Go(e.map(S,_o)),ge=(i=uA(M,t,r))!==null&&i!==void 0?i:Qi;return vd(n,t.iterableCacheKey,ge)}function AT(n,t,r){var i=r?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Vs(n,!!Ng(t),i,Ar(t))}function uA(n,t,r){if(no(n))return mo;var i=dA(n,t)||AN(n,t)||pA(n,t,r);return i===Qi?void 0:i}function dA(n,t){return Ev(n,t.iteratorCacheKey)}function AN(n,t){var r=t.getGlobalIterableIteratorType(!1);if(h(n,r)){var i=Oo(n)[0],l=dA(r,t)||pA(r,t,void 0),u=l===Qi?Ls:l,S=u.returnType,M=u.nextType;return vd(n,t.iteratorCacheKey,af(i,S,M))}if(h(n,t.getGlobalIteratorType(!1))||h(n,t.getGlobalGeneratorType(!1))){var ge=Oo(n),i=ge[0],S=ge[1],M=ge[2];return vd(n,t.iteratorCacheKey,af(i,S,M))}}function fA(n,t){var r=js(n,"done")||fr;return yo(t===0?fr:Jt,r)}function DN(n){return fA(n,0)}function CN(n){return fA(n,1)}function kN(n){if(no(n))return mo;var t=Ev(n,"iterationTypesOfIteratorResult");if(t)return t;if(h(n,wD(!1))){var r=Oo(n)[0];return vd(n,"iterationTypesOfIteratorResult",af(r,void 0,void 0))}if(h(n,AD(!1))){var i=Oo(n)[0];return vd(n,"iterationTypesOfIteratorResult",af(void 0,i,void 0))}var l=Vl(n,DN),u=l!==Wr?js(l,"value"):void 0,S=Vl(n,CN),M=S!==Wr?js(S,"value"):void 0;return!u&&!M?vd(n,"iterationTypesOfIteratorResult",Qi):vd(n,"iterationTypesOfIteratorResult",af(u,M||At,void 0))}function DT(n,t,r,i){var l,u,S,M,ge=Rn(n,r);if(!ge&&r!=="next")return;var Ge=ge&&!(r==="next"&&ge.flags&16777216)?r==="next"?Ir(ge):Dl(Ir(ge),2097152):void 0;if(no(Ge))return r==="next"?mo:Rs;var We=Ge?qt(Ge,0):e.emptyArray;if(We.length===0){if(i){var ze=r==="next"?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;Hn(i,ze,r)}return r==="next"?mo:void 0}if((Ge==null?void 0:Ge.symbol)&&We.length===1){var an=t.getGlobalGeneratorType(!1),Tn=t.getGlobalIteratorType(!1),et=((u=(l=an.symbol)===null||l===void 0?void 0:l.members)===null||u===void 0?void 0:u.get(r))===Ge.symbol,st=!et&&((M=(S=Tn.symbol)===null||S===void 0?void 0:S.members)===null||M===void 0?void 0:M.get(r))===Ge.symbol;if(et||st){var Ct=et?an:Tn,Dt=Ge.mapper;return af($p(Ct.typeParameters[0],Dt),$p(Ct.typeParameters[1],Dt),r==="next"?$p(Ct.typeParameters[2],Dt):void 0)}}for(var Bt,cr,Vr=0,yr=We;Vr<yr.length;Vr++){var ba=yr[Vr];r!=="throw"&&e.some(ba.parameters)&&(Bt=e.append(Bt,wu(ba,0))),cr=e.append(cr,_o(ba))}var ca,fi;if(r!=="throw"){var ei=Bt?Ea(Bt):ln;if(r==="next")fi=ei;else if(r==="return"){var Ji=t.resolveIterationType(ei,i)||lt;ca=e.append(ca,Ji)}}var ni,vo=cr?Go(cr):Wr,Po=t.resolveIterationType(vo,i)||lt,Xt=kN(Po);return Xt===Qi?(i&&Hn(i,t.mustHaveAValueDiagnostic,r),ni=lt,ca=e.append(ca,lt)):(ni=Xt.yieldType,ca=e.append(ca,Xt.returnType)),af(ni,Ea(ca),fi)}function pA(n,t,r){var i=iA([DT(n,t,"next",r),DT(n,t,"return",r),DT(n,t,"throw",r)]);return vd(n,t.iteratorCacheKey,i)}function Zm(n,t,r){if(no(t))return;var i=mA(t,r);return i&&i[m(n)]}function mA(n,t){if(no(n))return mo;var r=t?2:1,i=t?Ca:ai;return Ky(n,r,void 0)||uA(n,i,void 0)}function LN(n){Od(n)||UP(n)}function Tv(n,t){var r,i,l=!!(t&1),u=!!(t&2);return l?(r=Zm(1,n,u))!==null&&r!==void 0?r:K:u?(i=Hu(n))!==null&&i!==void 0?i:K:n}function hA(n,t){var r=Tv(t,e.getFunctionFlags(n));return!!r&&xs(r,16384|3)}function IN(n){var t;if(Od(n))return;var r=e.getContainingFunctionOrClassStaticBlock(n);if(r&&e.isClassStaticBlockDeclaration(r)){Nl(n,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!r){Nl(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var i=Eu(r),l=_o(i),u=e.getFunctionFlags(r);if(je||n.expression||l.flags&131072){var S=n.expression?ml(n.expression):Ln;if(r.kind===171)n.expression&&Hn(n,e.Diagnostics.Setters_cannot_return_a_value);else if(r.kind===169)n.expression&&!ip(S,l,n,n.expression)&&Hn(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(bp(r)){var M=(t=Tv(l,u))!==null&&t!==void 0?t:l,ge=u&2?Og(S,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):S;M&&ip(ge,M,n,n.expression)}}else r.kind!==169&&pe.noImplicitReturns&&!hA(r,l)&&Hn(n,e.Diagnostics.Not_all_code_paths_return_a_value)}function NN(n){Od(n)||n.flags&32768&&Nl(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),hi(n.expression);var t=e.getSourceFileOfNode(n);if(!um(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos).start,i=n.statement.pos;lp(t,r,i-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function ON(n){Od(n);var t,r=!1,i=hi(n.expression),l=Vm(i);e.forEach(n.caseBlock.clauses,function(u){if(u.kind===288&&!r&&(t===void 0?t=u:(Dr(u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0)),R&&u.kind===287){var S=hi(u.expression),M=Vm(S),ge=i;(!M||!l)&&(S=M?ed(S):S,ge=ed(i)),uT(ge,S)||rx(S,ge,u.expression,void 0)}e.forEach(u.statements,so),pe.noFallthroughCasesInSwitch&&u.fallthroughFlowNode&&Sy(u.fallthroughFlowNode)&&Hn(u,e.Diagnostics.Fallthrough_case_in_switch)}),n.caseBlock.locals&&Lf(n.caseBlock)}function PN(n){Od(n)||e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)?"quit":t.kind===248&&t.label.escapedText===n.label.escapedText?(Dr(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0):!1}),so(n.statement)}function RN(n){Od(n)||e.isIdentifier(n.expression)&&!n.expression.escapedText&&tR(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&hi(n.expression)}function MN(n){Od(n),vv(n.tryBlock);var t=n.catchClause;if(t){if(t.variableDeclaration){var r=t.variableDeclaration,i=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(r));if(i){var l=ss(r,!1);l&&!(l.flags&3)&&Nl(i,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(r.initializer)Nl(r.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var u=t.block.locals;u&&e.forEachKey(t.locals,function(S){var M=u.get(S);(M==null?void 0:M.valueDeclaration)&&(M.flags&2)!==0&&Dr(M.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,S)})}}vv(t.block)}n.finallyBlock&&vv(n.finallyBlock)}function Sv(n,t){var r=vi(n);if(r.length===0)return;for(var i=0,l=Kd(n);i<l.length;i++){var u=l[i];t&&u.flags&4194304||gA(n,u,Mm(u,8576,!0),kl(u))}var S=n.symbol.valueDeclaration;if(S&&e.isClassLike(S))for(var M=0,ge=S.members;M<ge.length;M++){var Ge=ge[M];if(!e.isStatic(Ge)&&!Jl(Ge)){var We=Rr(Ge);gA(n,We,jl(Ge.name.expression),kl(We))}}if(r.length>1)for(var ze=0,an=r;ze<an.length;ze++){var Tn=an[ze];FN(n,Tn)}}function gA(n,t,r,i){var l=t.valueDeclaration,u=e.getNameOfDeclaration(l);if(u&&e.isPrivateIdentifier(u))return;for(var S=Al(n,r),M=e.getObjectFlags(n)&2?e.getDeclarationOfKind(n.symbol,256):void 0,ge=l&&l.kind===219||u&&u.kind===160||$l(t)===n.symbol?l:void 0,Ge=function(Tn){var et=Tn.declaration&&$l(Rr(Tn.declaration))===n.symbol?Tn.declaration:void 0,st=ge||et||(M&&!e.some(Ac(n),function(Ct){return!!Ld(Ct,t.escapedName)&&!!Bs(Ct,Tn.keyType)})?M:void 0);st&&!yo(i,Tn.type)&&Hn(st,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Xa(t),Ar(i),Ar(Tn.keyType),Ar(Tn.type))},We=0,ze=S;We<ze.length;We++){var an=ze[We];Ge(an)}}function FN(n,t){for(var r=t.declaration,i=Al(n,t.keyType),l=e.getObjectFlags(n)&2?e.getDeclarationOfKind(n.symbol,256):void 0,u=r&&$l(Rr(r))===n.symbol?r:void 0,S=function(We){if(We===t)return"continue";var ze=We.declaration&&$l(Rr(We.declaration))===n.symbol?We.declaration:void 0,an=u||ze||(l&&!e.some(Ac(n),function(Tn){return!!go(Tn,t.keyType)&&!!Bs(Tn,We.keyType)})?l:void 0);an&&!yo(t.type,We.type)&&Hn(an,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Ar(t.keyType),Ar(t.type),Ar(We.keyType),Ar(We.type))},M=0,ge=i;M<ge.length;M++){var Ge=ge[M];S(Ge)}}function Vh(n,t){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Hn(n,t,n.escapedText)}}function GN(n){Me===1&&n.escapedText==="Object"&&fn<e.ModuleKind.ES2015&&Hn(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[fn])}function xv(n){if(n)for(var t=!1,r=0;r<n.length;r++){var i=n[r];if(M1(i),R){i.default?(t=!0,BN(i.default,n,r)):t&&Hn(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var l=0;l<r;l++)n[l].symbol===i.symbol&&Hn(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function BN(n,t,r){i(n);function i(l){if(l.kind===176){var u=cy(l);if(u.flags&262144)for(var S=r;S<t.length;S++)u.symbol===Rr(t[S])&&Hn(l,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(l,i)}}function yA(n){if(n.declarations&&n.declarations.length===1)return;var t=$a(n);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=JN(n);if(!r||r.length<=1)return;var i=ls(n);if(!UN(r,i.localTypeParameters))for(var l=Xa(n),u=0,S=r;u<S.length;u++){var M=S[u];Hn(M.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,l)}}}function UN(n,t){for(var r=e.length(t),i=Gu(t),l=0,u=n;l<u.length;l++){var S=u[l],M=e.getEffectiveTypeParameterDeclarations(S),ge=M.length;if(ge<i||ge>r)return!1;for(var Ge=0;Ge<ge;Ge++){var We=M[Ge],ze=t[Ge];if(We.name.escapedText!==ze.symbol.escapedName)return!1;var an=e.getEffectiveConstraintOfTypeParameter(We),Tn=an&&La(an),et=Cc(ze);if(Tn&&et&&!Yd(Tn,et))return!1;var st=We.default&&La(We.default),Ct=Zf(ze);if(st&&Ct&&!Yd(st,Ct))return!1}}return!0}function VN(n){return _A(n),Mg(n),Ir(Rr(n))}function jN(n){e.forEach(n.members,so),Lf(n)}function WN(n){e.some(n.decorators)&&e.some(n.members,function(t){return e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)})&&Dr(n.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!e.hasSyntacticModifier(n,512)&&Nl(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),_A(n),e.forEach(n.members,so),Lf(n)}function _A(n){SP(n),Uy(n),Bh(n,n.name),xv(e.getEffectiveTypeParameterDeclarations(n)),Ig(n);var t=Rr(n),r=ls(t),i=Rc(r),l=Ir(t);yA(t),yv(t),_I(n);var u=!!(n.flags&8388608);u||vI(n);var S=e.getEffectiveBaseTypeNode(n);if(S){e.forEach(S.typeArguments,so),Me<2&&Xl(S.parent,1);var M=e.getClassExtendsHeritageElement(n);M&&M!==S&&hi(M.expression);var ge=Ac(r);if(ge.length&&R){var Ge=ge[0],We=hd(r),ze=Ul(We);if(KN(ze,S),so(S.expression),e.some(S.typeArguments)){e.forEach(S.typeArguments,so);for(var an=0,Tn=kd(ze,S.typeArguments,S);an<Tn.length;an++){var et=Tn[an];if(!j1(S,et.typeParameters))break}}var st=Rc(Ge,r.thisType);if(Fc(i,st,void 0)?Fc(l,$S(ze),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):vA(n,i,st,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),We.flags&8650752)if(!as(l))Hn(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Ct=qt(We,1);Ct.some(function(fi){return fi.flags&4})&&!e.hasSyntacticModifier(n,128)&&Hn(n.name||n,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(ze.symbol&&ze.symbol.flags&32)&&!(We.flags&8650752)){var Dt=Wd(ze,S.typeArguments,S);e.forEach(Dt,function(fi){return!Wu(fi.declaration)&&!Yd(_o(fi),Ge)})&&Hn(S.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}qN(r,Ge)}}HN(n,r,i,l);var Bt=e.getEffectiveImplementsTypeNodes(n);if(Bt)for(var cr=0,Vr=Bt;cr<Vr.length;cr++){var yr=Vr[cr];if((!e.isEntityNameExpression(yr.expression)||e.isOptionalChain(yr.expression))&&Hn(yr.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),yT(yr),R){var ba=vu(La(yr));if(ba!==K)if(Kp(ba)){var ca=ba.symbol&&ba.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,st=Rc(ba,r.thisType);Fc(i,st,void 0)||vA(n,i,st,ca)}else Hn(yr,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}R&&(Sv(r),Sv(l,!0),mT(n),YN(n))}function HN(n,t,r,i){for(var l=!!(n.flags&8388608),u=e.getEffectiveBaseTypeNode(n),S=u&&Ac(t),M=(S==null?void 0:S.length)?Rc(e.first(S),t.thisType):void 0,ge=hd(t),Ge=function(et){if(e.hasAmbientModifier(et))return"continue";e.isConstructorDeclaration(et)&&e.forEach(et.parameters,function(st){e.isParameterPropertyDeclaration(st,et)&&Tn(st,!0)}),Tn(et)},We=0,ze=n.members;We<ze.length;We++){var an=ze[We];Ge(an)}function Tn(et,st){var Ct=e.hasOverrideModifier(et),Dt=e.isStatic(et);if(M&&(Ct||pe.noImplicitOverride)){var Bt=et.name&&tu(et.name)||tu(et);if(!Bt)return;var cr=Dt?i:r,Vr=Dt?ge:M,yr=Rn(cr,Bt.escapedName),ba=Rn(Vr,Bt.escapedName),ca=Ar(M);if(yr&&!ba&&Ct){var fi=Bw(e.symbolName(Bt),Vr);fi?Hn(et,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,ca,Xa(fi)):Hn(et,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,ca)}else if(yr&&(ba==null?void 0:ba.declarations)&&pe.noImplicitOverride&&!l){var ei=e.some(ba.declarations,function(vo){return e.hasAbstractModifier(vo)});if(Ct)return;if(ei)e.hasAbstractModifier(et)&&ei&&Hn(et,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,ca);else{var Ji=st?e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Hn(et,Ji,ca)}}}else if(Ct){var ni=Ar(t);Hn(et,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,ni)}}}function vA(n,t,r,i){for(var l=!1,u=function(Ge){if(e.isStatic(Ge))return"continue";var We=Ge.name&&tu(Ge.name)||tu(Ge);if(We){var ze=Rn(t,We.escapedName),an=Rn(r,We.escapedName);if(ze&&an){var Tn=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Xa(We),Ar(t),Ar(r))};Fc(Ir(ze),Ir(an),Ge.name||Ge,void 0,Tn)||(l=!0)}}},S=0,M=n.members;S<M.length;S++){var ge=M[S];u(ge)}l||Fc(t,r,n.name||n,i)}function KN(n,t){var r=qt(n,1);if(r.length){var i=r[0].declaration;if(i&&e.hasEffectiveModifier(i,8)){var l=e.getClassLikeDeclarationOfSymbol(n.symbol);NT(t,l)||Hn(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,uu(n.symbol))}}}function $m(n){return e.getCheckFlags(n)&1?n.target:n}function JN(n){return e.filter(n.declarations,function(t){return t.kind===255||t.kind===256})}function qN(n,t){var r,i,l=So(t);e:for(var u=0,S=l;u<S.length;u++){var M=S[u],ge=$m(M);if(ge.flags&4194304)continue;var Ge=Ld(n,ge.escapedName);if(!Ge)continue;var We=$m(Ge),ze=e.getDeclarationModifierFlagsFromSymbol(ge);if(e.Debug.assert(!!We,"derived should point to something, even if it is the base class' declaration."),We===ge){var an=e.getClassLikeDeclarationOfSymbol(n.symbol);if(ze&128&&(!an||!e.hasSyntacticModifier(an,128))){for(var Tn=0,et=Ac(n);Tn<et.length;Tn++){var st=et[Tn];if(st===t)continue;var Ct=Ld(st,ge.escapedName),Dt=Ct&&$m(Ct);if(Dt&&Dt!==ge)continue e}an.kind===224?Hn(an,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Xa(M),Ar(t)):Hn(an,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ar(n),Xa(M),Ar(t))}}else{var Bt=e.getDeclarationModifierFlagsFromSymbol(We);if(ze&8||Bt&8)continue;var cr=void 0,Vr=ge.flags&98308,yr=We.flags&98308;if(Vr&&yr){if(ze&128&&!(ge.valueDeclaration&&e.isPropertyDeclaration(ge.valueDeclaration)&&ge.valueDeclaration.initializer)||ge.valueDeclaration&&ge.valueDeclaration.parent.kind===256||We.valueDeclaration&&e.isBinaryExpression(We.valueDeclaration))continue;var ba=Vr!==4&&yr===4,ca=Vr===4&&yr!==4;if(ba||ca){var fi=ba?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Hn(e.getNameOfDeclaration(We.valueDeclaration)||We.valueDeclaration,fi,Xa(ge),Ar(t),Ar(n))}else if(Ye){var ei=(r=We.declarations)===null||r===void 0?void 0:r.find(function(Po){return Po.kind===165&&!Po.initializer});if(ei&&!(We.flags&33554432)&&!(ze&128)&&!(Bt&128)&&!((i=We.declarations)===null||i===void 0?void 0:i.some(function(Po){return!!(Po.flags&8388608)}))){var Ji=Vc(e.getClassLikeDeclarationOfSymbol(n.symbol)),ni=ei.name;if(ei.exclamationToken||!Ji||!e.isIdentifier(ni)||!je||!EA(ni,n,Ji)){var vo=e.Diagnostics.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;Hn(e.getNameOfDeclaration(We.valueDeclaration)||We.valueDeclaration,vo,Xa(ge),Ar(t))}}}continue}else if(jE(ge)){if(jE(We)||We.flags&4)continue;e.Debug.assert(!!(We.flags&98304)),cr=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ge.flags&98304?cr=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:cr=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Hn(e.getNameOfDeclaration(We.valueDeclaration)||We.valueDeclaration,cr,Ar(t),Xa(ge),Ar(n))}}}function zN(n,t,r){if(!e.length(t))return r;var i=new e.Map;e.forEach(r,function(an){i.set(an.escapedName,an)});for(var l=0,u=t;l<u.length;l++)for(var S=u[l],M=So(Rc(S,n.thisType)),ge=0,Ge=M;ge<Ge.length;ge++){var We=Ge[ge],ze=i.get(We.escapedName);ze&&!fx(ze,We)&&i.delete(We.escapedName)}return e.arrayFrom(i.values())}function XN(n,t){var r=Ac(n);if(r.length<2)return!0;var i=new e.Map;e.forEach(oi(n).declaredProperties,function(Dt){i.set(Dt.escapedName,{prop:Dt,containingType:n})});for(var l=!0,u=0,S=r;u<S.length;u++)for(var M=S[u],ge=So(Rc(M,n.thisType)),Ge=0,We=ge;Ge<We.length;Ge++){var ze=We[Ge],an=i.get(ze.escapedName);if(!an)i.set(ze.escapedName,{prop:ze,containingType:M});else{var Tn=an.containingType!==n;if(Tn&&!fx(an.prop,ze)){l=!1;var et=Ar(an.containingType),st=Ar(M),Ct=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Xa(ze),et,st);Ct=e.chainDiagnosticMessages(Ct,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ar(n),et,st),zr.add(e.createDiagnosticForNodeFromMessageChain(t,Ct))}}}return l}function YN(n){if(!je||!dn||n.flags&8388608)return;for(var t=Vc(n),r=0,i=n.members;r<i.length;r++){var l=i[r];if(e.getEffectiveModifierFlags(l)&2)continue;if(!e.isStatic(l)&&bA(l)){var u=l.name;if(e.isIdentifier(u)||e.isPrivateIdentifier(u)){var S=Ir(Rr(l));S.flags&3||Jc(S)&32768||(!t||!EA(u,S,t))&&Hn(l.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(u))}}}}function bA(n){return n.kind===165&&!e.hasAbstractModifier(n)&&!n.exclamationToken&&!n.initializer}function QN(n,t,r,i,l){for(var u=0,S=r;u<S.length;u++){var M=S[u];if(M.pos>=i&&M.pos<=l){var ge=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(ge.expression,ge),e.setParent(ge,M),ge.flowNode=M.returnFlowNode;var Ge=im(ge,t,ef(t));if(!(Jc(Ge)&32768))return!0}}return!1}function EA(n,t,r){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var l=im(i,t,ef(t));return!(Jc(l)&32768)}function ZN(n){if(Nd(n)||NP(n),xv(n.typeParameters),R){Vh(n.name,e.Diagnostics.Interface_name_cannot_be_0),Ig(n);var t=Rr(n);yA(t);var r=e.getDeclarationOfKind(t,256);if(n===r){var i=ls(t),l=Rc(i);if(XN(i,n.name)){for(var u=0,S=Ac(i);u<S.length;u++){var M=S[u];Fc(l,Rc(M,i.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}Sv(i)}}B1(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),function(ge){(!e.isEntityNameExpression(ge.expression)||e.isOptionalChain(ge.expression))&&Hn(ge.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),yT(ge)}),e.forEach(n.members,so),R&&(mT(n),Lf(n))}function $N(n){Nd(n),Vh(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),Ig(n),xv(n.typeParameters),n.type.kind===137?(!P.has(n.name.escapedText)||e.length(n.typeParameters)!==1)&&Hn(n.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(so(n.type),Lf(n))}function TA(n){var t=pa(n);if(!(t.flags&16384)){t.flags|=16384;for(var r=0,i=0,l=n.members;i<l.length;i++){var u=l[i],S=eO(u,r);pa(u).enumMemberValue=S,r=typeof S=="number"?S+1:void 0}}}function eO(n,t){if(e.isComputedNonLiteralName(n.name))Hn(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(n.name);tf(r)&&!e.isInfinityOrNaNString(r)&&Hn(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return nO(n);if(n.parent.flags&8388608&&!e.isEnumConst(n.parent)&&gm(Rr(n.parent))===0)return;if(t!==void 0)return t;Hn(n.name,e.Diagnostics.Enum_member_must_have_initializer);return}function nO(n){var t=gm(Rr(n.parent)),r=e.isEnumConst(n.parent),i=n.initializer,l=t===1&&!Nm(n)?void 0:S(i);if(l!==void 0)r&&typeof l=="number"&&!isFinite(l)&&Hn(i,isNaN(l)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(t===1)return Hn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(r)Hn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(n.parent.flags&8388608)Hn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var u=hi(i);$s(u,296)?Fc(u,ls(Rr(n.parent)),i,void 0):Hn(i,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Ar(u))}}return l;function S(ge){switch(ge.kind){case 217:var Ge=S(ge.operand);if(typeof Ge=="number")switch(ge.operator){case 39:return Ge;case 40:return-Ge;case 54:return~Ge}break;case 219:var We=S(ge.left),ze=S(ge.right);if(typeof We=="number"&&typeof ze=="number")switch(ge.operatorToken.kind){case 51:return We|ze;case 50:return We&ze;case 48:return We>>ze;case 49:return We>>>ze;case 47:return We<<ze;case 52:return We^ze;case 41:return We*ze;case 43:return We/ze;case 39:return We+ze;case 40:return We-ze;case 44:return We%ze;case 42:return Math.pow(We,ze)}else if(typeof We=="string"&&typeof ze=="string"&&ge.operatorToken.kind===39)return We+ze;break;case 10:case 14:return ge.text;case 8:return WT(ge),+ge.text;case 210:return S(ge.expression);case 79:var an=ge;return e.isInfinityOrNaNString(an.escapedText)?+an.escapedText:e.nodeIsMissing(ge)?0:M(ge,Rr(n.parent),an.escapedText);case 205:case 204:var Tn=ge;if(CT(Tn)){var et=jl(Tn.expression);if(et.symbol&&et.symbol.flags&384){var st=void 0;return Tn.kind===204?st=Tn.name.escapedText:st=e.escapeLeadingUnderscores(e.cast(Tn.argumentExpression,e.isLiteralExpression).text),M(ge,et.symbol,st)}}break}return}function M(ge,Ge,We){var ze=Ge.exports.get(We);if(ze){var an=ze.valueDeclaration;if(an!==n)return an&&pc(an,n)?Ov(an):(Hn(ge,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Hn(ge,e.Diagnostics.Property_0_is_used_before_being_assigned,Xa(ze))}return}}function CT(n){return n.kind===79||n.kind===204&&CT(n.expression)||n.kind===205&&CT(n.expression)&&e.isStringLiteralLike(n.argumentExpression)}function tO(n){if(!R)return;Nd(n),Bh(n,n.name),Ig(n),n.members.forEach(rO),TA(n);var t=Rr(n),r=e.getDeclarationOfKind(t,n.kind);if(n===r){if(t.declarations&&t.declarations.length>1){var i=e.isEnumConst(n);e.forEach(t.declarations,function(u){e.isEnumDeclaration(u)&&e.isEnumConst(u)!==i&&Hn(e.getNameOfDeclaration(u),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var l=!1;e.forEach(t.declarations,function(u){if(u.kind!==258)return!1;var S=u;if(!S.members.length)return!1;var M=S.members[0];M.initializer||(l?Hn(M.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):l=!0)})}}function rO(n){e.isPrivateIdentifier(n.name)&&Hn(n,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function aO(n){var t=n.declarations;if(t)for(var r=0,i=t;r<i.length;r++){var l=i[r];if((l.kind===255||l.kind===254&&e.nodeIsPresent(l.body))&&!(l.flags&8388608))return l}return}function iO(n,t){var r=e.getEnclosingBlockScopeContainer(n),i=e.getEnclosingBlockScopeContainer(t);return Tc(r)?Tc(i):Tc(i)?!1:r===i}function oO(n){if(R){var t=e.isGlobalScopeAugmentation(n),r=n.flags&8388608;t&&!r&&Hn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(n),l=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;if(Jy(n,l))return;Nd(n)||!r&&n.name.kind===10&&Dr(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&Bh(n,n.name),Ig(n);var u=Rr(n);if(u.flags&512&&!r&&u.declarations&&u.declarations.length>1&&f(n,e.shouldPreserveConstEnums(pe))){var S=aO(u);S&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(S)?Hn(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<S.pos&&Hn(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var M=e.getDeclarationOfKind(u,255);M&&iO(n,M)&&(pa(n).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(n)){var ge=t||Rr(n).flags&33554432;if(ge&&n.body)for(var Ge=0,We=n.body.statements;Ge<We.length;Ge++){var ze=We[Ge];kT(ze,t)}}else Tc(n.parent)?t?Hn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name))&&Hn(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):t?Hn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Hn(n.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}n.body&&(so(n.body),e.isGlobalScopeAugmentation(n)||Lf(n))}function kT(n,t){var r;switch(n.kind){case 235:for(var i=0,l=n.declarationList.declarations;i<l.length;i++){var u=l[i];kT(u,t)}break;case 269:case 270:Nl(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 263:case 264:Nl(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 201:case 252:var S=n.name;if(e.isBindingPattern(S)){for(var M=0,ge=S.elements;M<ge.length;M++){var Ge=ge[M];kT(Ge,t)}break}case 255:case 258:case 254:case 256:case 259:case 257:if(t)return;var We=Rr(n);if(We){var ze=!(We.flags&33554432);ze||(ze=!!((r=We.parent)===null||r===void 0?void 0:r.declarations)&&e.isExternalModuleAugmentation(We.parent.declarations[0]))}break}}function sO(n){switch(n.kind){case 79:return n;case 159:do n=n.left;while(n.kind!==79);return n;case 204:do{if(e.isModuleExportsAccessExpression(n.expression)&&!e.isPrivateIdentifier(n.name))return n.name;n=n.expression}while(n.kind!==79);return n}}function LT(n){var t=e.getExternalModuleName(n);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return Hn(t,e.Diagnostics.String_literal_expected),!1;var r=n.parent.kind===260&&e.isAmbientModule(n.parent.parent);return n.parent.kind!==300&&!r?(Hn(t,n.kind===270?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1):r&&e.isExternalModuleNameRelative(t.text)&&!gp(n)?(Hn(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):!0}function wv(n){var t,r=Rr(n),i=ks(r);if(i!==Yn){r=To(r.exportSymbol||r);var l=(r.flags&(111551|1048576)?111551:0)|(r.flags&788968?788968:0)|(r.flags&1920?1920:0);if(i.flags&l){var u=n.kind===273?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Hn(n,u,Xa(r))}pe.isolatedModules&&n.kind===273&&!n.parent.parent.isTypeOnly&&!(i.flags&111551)&&!(n.flags&8388608)&&Hn(n,e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type),e.isImportSpecifier(n)&&((t=i.declarations)===null||t===void 0?void 0:t.every(function(S){return!!(e.getCombinedNodeFlags(S)&134217728)}))&&fc(n.name,i.declarations,r.escapedName)}}function Av(n){Bh(n,n.name),wv(n),n.kind===268&&e.idText(n.propertyName||n.name)==="default"&&pe.esModuleInterop&&fn!==e.ModuleKind.System&&fn<e.ModuleKind.ES2015&&Xl(n,131072)}function lO(n){if(Jy(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module))return;if(!Nd(n)&&e.hasEffectiveModifiers(n)&&Nl(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),LT(n)){var t=n.importClause;if(t&&!aR(t)&&(t.name&&Av(t),t.namedBindings))if(t.namedBindings.kind===266)Av(t.namedBindings),fn!==e.ModuleKind.System&&fn<e.ModuleKind.ES2015&&pe.esModuleInterop&&Xl(n,65536);else{var r=Ko(n,n.moduleSpecifier);r&&e.forEach(t.namedBindings.elements,Av)}}}function cO(n){if(Jy(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module))return;if(Nd(n),e.isInternalModuleImportEqualsDeclaration(n)||LT(n))if(Av(n),e.hasSyntacticModifier(n,1)&&Td(n),n.moduleReference.kind!==275){var t=ks(Rr(n));if(t!==Yn){if(t.flags&111551){var r=e.getFirstIdentifier(n.moduleReference);rs(r,111551|1920).flags&1920||Hn(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}t.flags&788968&&Vh(n.name,e.Diagnostics.Import_name_cannot_be_0)}n.isTypeOnly&&Dr(n,e.Diagnostics.An_import_alias_cannot_use_import_type)}else fn>=e.ModuleKind.ES2015&&!n.isTypeOnly&&!(n.flags&8388608)&&Dr(n,e.Diagnostics.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 uO(n){if(Jy(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module))return;if(!Nd(n)&&e.hasEffectiveModifiers(n)&&Nl(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&e.isNamedExports(n.exportClause)&&e.length(n.exportClause.elements)&&Me===0&&Xl(n,2097152),dO(n),!n.moduleSpecifier||LT(n))if(n.exportClause&&!e.isNamespaceExport(n.exportClause)){e.forEach(n.exportClause.elements,yO);var t=n.parent.kind===260&&e.isAmbientModule(n.parent.parent),r=!t&&n.parent.kind===260&&!n.moduleSpecifier&&n.flags&8388608;n.parent.kind!==300&&!t&&!r&&Hn(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Ko(n,n.moduleSpecifier);i&&Rl(i)?Hn(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Xa(i)):n.exportClause&&wv(n.exportClause),fn!==e.ModuleKind.System&&fn<e.ModuleKind.ES2015&&(n.exportClause?pe.esModuleInterop&&Xl(n,65536):Xl(n,32768))}}function dO(n){var t,r=n.isTypeOnly&&((t=n.exportClause)===null||t===void 0?void 0:t.kind)!==271;return r&&Dr(n,e.Diagnostics.Only_named_exports_may_use_export_type),!r}function Jy(n,t){var r=n.parent.kind===300||n.parent.kind===260||n.parent.kind===259;return r||Nl(n,t),!r}function fO(n){return e.forEachImportClauseDeclaration(n,function(t){return!!Rr(t).isReferenced})}function pO(n){return e.forEachImportClauseDeclaration(n,function(t){return!!$a(Rr(t)).constEnumReferenced})}function mO(n){return e.isImportDeclaration(n)&&n.importClause&&!n.importClause.isTypeOnly&&fO(n.importClause)&&!Nv(n.importClause,!0)&&!pO(n.importClause)}function hO(n){return e.isImportEqualsDeclaration(n)&&e.isExternalModuleReference(n.moduleReference)&&!n.isTypeOnly&&Rr(n).isReferenced&&!Nv(n,!1)&&!$a(Rr(n)).constEnumReferenced}function gO(n){for(var t=0,r=n.statements;t<r.length;t++){var i=r[t];(mO(i)||hO(i))&&Hn(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function yO(n){if(wv(n),e.getEmitDeclarations(pe)&&Kf(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)pe.esModuleInterop&&fn!==e.ModuleKind.System&&fn<e.ModuleKind.ES2015&&e.idText(n.propertyName||n.name)==="default"&&Xl(n,131072);else{var t=n.propertyName||n.name,r=Zi(t,t.escapedText,111551|788968|1920|2097152,void 0,void 0,!0);if(r&&(r===Qe||r===gn||r.declarations&&Tc(Ud(r.declarations[0]))))Hn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{Td(n);var i=r&&(r.flags&2097152?ks(r):r);(!i||i===Yn||i.flags&111551)&&ml(n.propertyName||n.name)}}}function _O(n){var t=n.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(Jy(n,t))return;var r=n.parent.kind===300?n.parent:n.parent.parent;if(r.kind===259&&!e.isAmbientModule(r)){n.isExportEquals?Hn(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Hn(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}if(!Nd(n)&&e.hasEffectiveModifiers(n)&&Nl(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),n.expression.kind===79){var i=n.expression,l=rs(i,67108863,!0,!0,n);if(l){H_(l,i);var u=l.flags&2097152?ks(l):l;(u===Yn||u.flags&111551)&&ml(n.expression)}else ml(n.expression);e.getEmitDeclarations(pe)&&Kf(n.expression,!0)}else ml(n.expression);SA(r),n.flags&8388608&&!e.isEntityNameExpression(n.expression)&&Dr(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&!(n.flags&8388608)&&(fn>=e.ModuleKind.ES2015?Dr(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):fn===e.ModuleKind.System&&Dr(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}function vO(n){return e.forEachEntry(n.exports,function(t,r){return r!=="export="})}function SA(n){var t=Rr(n),r=$a(t);if(!r.exportsChecked){var i=t.exports.get("export=");if(i&&vO(t)){var l=es(i)||i.valueDeclaration;l&&!gp(l)&&!e.isInJSFile(l)&&Hn(l,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var u=Bc(t);u&&u.forEach(function(S,M){var ge=S.declarations,Ge=S.flags;if(M==="__export")return;if(Ge&(1920|64|384))return;var We=e.countWhere(ge,E);if(Ge&524288&&We<=2)return;if(We>1&&!Dv(ge))for(var ze=0,an=ge;ze<an.length;ze++){var Tn=an[ze];p(Tn)&&zr.add(e.createDiagnosticForNode(Tn,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(M)))}}),r.exportsChecked=!0}}function Dv(n){return n&&n.length>1&&n.every(function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))})}function so(n){if(n){var t=ce;ce=n,Se=0,bO(n),ce=t}}function bO(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,function(r){var i=r.tags;return e.forEach(i,so)});var t=n.kind;if(q)switch(t){case 259:case 255:case 256:case 254:q.throwIfCancellationRequested()}t>=235&&t<=251&&n.flowNode&&!Sy(n.flowNode)&&Ds(pe.allowUnreachableCode===!1,n,e.Diagnostics.Unreachable_code_detected);switch(t){case 161:return M1(n);case 162:return F1(n);case 165:return U1(n);case 164:return bI(n);case 178:case 177:case 172:case 173:case 174:return Lg(n);case 167:case 166:return EI(n);case 168:return TI(n);case 169:return SI(n);case 170:case 171:return V1(n);case 176:return yT(n);case 175:return gI(n);case 179:return AI(n);case 180:return DI(n);case 181:return CI(n);case 182:return kI(n);case 185:case 186:return LI(n);case 189:case 183:case 184:return so(n.type);case 190:return OI(n);case 191:return PI(n);case 187:return RI(n);case 188:return MI(n);case 196:return FI(n);case 198:return GI(n);case 195:return BI(n);case 323:return ZI(n);case 324:return QI(n);case 340:case 333:case 334:return KI(n);case 339:return JI(n);case 338:return qI(n);case 335:return zI(n);case 342:return XI(n);case 312:YI(n);case 310:case 309:case 307:case 308:case 317:xA(n),e.forEachChild(n,so);return;case 313:EO(n);return;case 304:return so(n.type);case 192:return II(n);case 193:return NI(n);case 254:return HI(n);case 233:case 260:return vv(n);case 235:return mN(n);case 236:return hN(n);case 237:return gN(n);case 238:return vN(n);case 239:return bN(n);case 240:return EN(n);case 241:return SN(n);case 242:return TN(n);case 243:case 244:return LN(n);case 245:return IN(n);case 246:return NN(n);case 247:return ON(n);case 248:return PN(n);case 249:return RN(n);case 250:return MN(n);case 252:return ET(n);case 201:return pN(n);case 255:return WN(n);case 256:return ZN(n);case 257:return $N(n);case 258:return tO(n);case 259:return oO(n);case 264:return lO(n);case 263:return cO(n);case 270:return uO(n);case 269:return _O(n);case 234:case 251:Od(n);return;case 274:return xI(n)}}function xA(n){e.isInJSFile(n)||Dr(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function EO(n){xA(n),so(n.type);var t=n.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent)){e.last(t.parent.parameters)!==t&&Hn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(t)||Hn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent.parent;if(!e.isJSDocParameterTag(r)){Hn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var i=e.getParameterSymbolFromJSDoc(r);if(!i)return;var l=e.getHostSignatureFromJSDoc(r);(!l||e.last(l.parameters).symbol!==i)&&Hn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}function TO(n){var t=La(n.type),r=n.parent,i=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(i)){var l=e.getHostSignatureFromJSDoc(i),u=e.isJSDocCallbackTag(i.parent.parent);if(l||u){var S=u?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(l.parameters),M=e.getParameterSymbolFromJSDoc(i);if(!S||M&&S.symbol===M&&e.isRestParameter(S))return Ll(t)}}return e.isParameter(r)&&e.isJSDocFunctionType(r.parent)?Ll(t):Yi(t)}function Mg(n){var t=e.getSourceFileOfNode(n),r=pa(t);if(!(r.flags&1)){r.deferredNodes=r.deferredNodes||new e.Map;var i=B(n);r.deferredNodes.set(i,n)}}function SO(n){var t=pa(n);t.deferredNodes&&t.deferredNodes.forEach(xO)}function xO(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end});var t=ce;ce=n,Se=0;switch(n.kind){case 206:case 207:case 208:case 163:case 278:Ym(n);break;case 211:case 212:case 167:case 166:F2(n);break;case 170:case 171:V1(n);break;case 224:jN(n);break;case 277:hL(n);break;case 276:yL(n);break}ce=t,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function IT(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:n.path},!0),e.performance.mark("beforeCheck"),wO(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function wA(n,t){if(t)return!1;switch(n){case 0:return!!pe.noUnusedLocals;case 1:return!!pe.noUnusedParameters;default:return e.Debug.assertNever(n)}}function AA(n){return nl.get(n.path)||e.emptyArray}function wO(n){var t=pa(n);if(!(t.flags&1)){if(e.skipTypeChecking(n,pe,D))return;$P(n),e.clear(or),e.clear(Sr),e.clear(Er),e.clear(Gr),e.forEach(n.statements,so),so(n.endOfFileToken),SO(n),e.isExternalOrCommonJsModule(n)&&Lf(n),!n.isDeclarationFile&&(pe.noUnusedLocals||pe.noUnusedParameters)&&X1(AA(n),function(r,i,l){!e.containsParseError(r)&&wA(i,!!(r.flags&8388608))&&zr.add(l)}),pe.importsNotUsedAsValues===2&&!n.isDeclarationFile&&e.isExternalModule(n)&&gO(n),e.isExternalOrCommonJsModule(n)&&SA(n),or.length&&(e.forEach(or,aN),e.clear(or)),Sr.length&&(e.forEach(Sr,iN),e.clear(Sr)),Er.length&&(e.forEach(Er,cN),e.clear(Er)),Gr.length&&(e.forEach(Gr,dN),e.clear(Gr)),t.flags|=1}}function DA(n,t){try{return q=t,AO(n)}finally{q=void 0}}function AO(n){if(CA(),n){var t=zr.getGlobalDiagnostics(),r=t.length;IT(n);var i=zr.getDiagnostics(n.fileName),l=zr.getGlobalDiagnostics();if(l!==t){var u=e.relativeComplement(t,l,e.compareDiagnostics);return e.concatenate(u,i)}else if(r===0&&l.length>0)return e.concatenate(l,i);return i}return e.forEach(D.getSourceFiles(),IT),zr.getDiagnostics()}function DO(){return CA(),zr.getGlobalDiagnostics()}function CA(){if(!R)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function CO(n,t){if(n.flags&16777216)return[];var r=e.createSymbolTable(),i=!1;return l(),r.delete("this"),bu(r);function l(){for(;n;){n.locals&&!Tc(n)&&S(n.locals,t);switch(n.kind){case 300:if(!e.isExternalModule(n))break;case 259:M(Rr(n).exports,t&2623475);break;case 258:S(Rr(n).exports,t&8);break;case 224:var ge=n.name;ge&&u(n.symbol,t);case 255:case 256:i||S(eu(Rr(n)),t&788968);break;case 211:var Ge=n.name;Ge&&u(n.symbol,t);break}e.introducesArgumentsExoticObject(n)&&u(xe,t),i=e.isStatic(n),n=n.parent}S(ke,t)}function u(ge,Ge){if(e.getCombinedLocalAndExportSymbolFlags(ge)&Ge){var We=ge.escapedName;r.has(We)||r.set(We,ge)}}function S(ge,Ge){Ge&&ge.forEach(function(We){u(We,Ge)})}function M(ge,Ge){Ge&&ge.forEach(function(We){!e.getDeclarationOfKind(We,273)&&!e.getDeclarationOfKind(We,272)&&u(We,Ge)})}}function kO(n){return n.kind===79&&qy(n.parent)&&e.getNameOfDeclaration(n.parent)===n}function qy(n){switch(n.kind){case 161:case 255:case 256:case 257:case 258:case 340:case 333:case 334:return!0;case 265:return n.isTypeOnly;case 268:case 273:return n.parent.parent.isTypeOnly;default:return!1}}function kA(n){for(;n.parent.kind===159;)n=n.parent;return n.parent.kind===176}function LO(n){for(;n.parent.kind===204;)n=n.parent;return n.parent.kind===226}function LA(n,t){for(var r;!(n=e.getContainingClass(n),!n);)if(r=t(n))break;return r}function IO(n){return!!e.findAncestor(n,function(t){return e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)?!0:e.isClassLike(t)||e.isFunctionLikeDeclaration(t)?"quit":!1})}function NT(n,t){return!!LA(n,function(r){return r===t})}function NO(n){for(;n.parent.kind===159;)n=n.parent;return n.parent.kind===263?n.parent.moduleReference===n?n.parent:void 0:n.parent.kind===269&&n.parent.expression===n?n.parent:void 0}function Cv(n){return NO(n)!==void 0}function OO(n){var t=e.getAssignmentDeclarationKind(n.parent.parent);switch(t){case 1:case 3:return Rr(n.parent);case 4:case 2:case 5:return Rr(n.parent.parent)}}function PO(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;return t&&t.kind===198&&t.qualifier===n?t:void 0}function IA(n){if(e.isDeclarationName(n))return Rr(n.parent);if(e.isInJSFile(n)&&n.parent.kind===204&&n.parent===n.parent.parent.left&&(!e.isPrivateIdentifier(n)&&!e.isJSDocMemberName(n))){var t=OO(n);if(t)return t}if(n.parent.kind===269&&e.isEntityNameExpression(n)){var r=rs(n,111551|788968|1920|2097152,!0);if(r&&r!==Yn)return r}else if(e.isEntityName(n)&&Cv(n)){var i=e.getAncestor(n,263);return e.Debug.assert(i!==void 0),Sd(n,!0)}if(e.isEntityName(n)){var l=PO(n);if(l){La(l);var u=pa(n).resolvedSymbol;return u===Yn?void 0:u}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(n);)n=n.parent;if(LO(n)){var S=0;n.parent.kind===226?(S=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(S|=111551)):S=1920,S|=2097152;var M=e.isEntityNameExpression(n)?rs(n,S):void 0;if(M)return M}if(n.parent.kind===335)return e.getParameterSymbolFromJSDoc(n.parent);if(n.parent.kind===161&&n.parent.parent.kind===339){e.Debug.assert(!e.isInJSFile(n));var ge=e.getTypeParameterFromJsDoc(n.parent);return ge&&ge.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;var Ge=e.findAncestor(n,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),S=Ge?788968|1920|111551:111551;if(n.kind===79){if(e.isJSXTagName(n)&&Lh(n)){var We=GE(n.parent);return We===Yn?void 0:We}var ze=rs(n,S,!1,!Ge,e.getHostSignatureFromJSDoc(n));if(!ze&&Ge){var an=e.findAncestor(n,e.or(e.isClassLike,e.isInterfaceDeclaration));if(an)return kv(n,Rr(an))}return ze}else if(n.kind===204||n.kind===159){var Tn=pa(n);return Tn.resolvedSymbol?Tn.resolvedSymbol:(n.kind===204?Iw(n,0):Nw(n,0),!Tn.resolvedSymbol&&Ge&&e.isQualifiedName(n)?kv(n):Tn.resolvedSymbol)}else if(e.isJSDocMemberName(n))return kv(n)}else if(kA(n)){var S=n.parent.kind===176?788968:1920;return rs(n,S,!1,!0)}return n.parent.kind===175?rs(n,1):void 0}function kv(n,t){if(e.isEntityName(n)){var r=788968|1920|111551,i=rs(n,r,!1,!0,e.getHostSignatureFromJSDoc(n));if(!i&&e.isIdentifier(n)&&t&&(i=To(Vo(ul(t),n.escapedText,r))),i)return i}var l=e.isIdentifier(n)?t:kv(n.left),u=e.isIdentifier(n)?n.escapedText:n.right.escapedText;if(l){var S=l.flags&111551&&Rn(Ir(l),"prototype"),M=S?Ir(S):ls(l);return Rn(M,u)}}function tu(n,t){if(n.kind===300)return e.isExternalModule(n)?To(n.symbol):void 0;var r=n.parent,i=r.parent;if(n.flags&16777216)return;if(d(n)){var l=Rr(r);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?vw(l):l}else if(e.isLiteralComputedPropertyDeclarationName(n))return Rr(r.parent);if(n.kind===79){if(Cv(n))return IA(n);if(r.kind===201&&i.kind===199&&n===r.propertyName){var u=cm(i),S=Rn(u,n.escapedText);if(S)return S}else if(e.isMetaProperty(r)){var M=cm(r),S=Rn(M,n.escapedText);if(S)return S;if(r.keywordToken===103)return tT(r).symbol}}switch(n.kind){case 79:case 80:case 204:case 159:return IA(n);case 108:var ge=e.getThisContainer(n,!1);if(e.isFunctionLike(ge)){var Ge=Eu(ge);if(Ge.thisParameter)return Ge.thisParameter}if(e.isInExpressionContext(n))return hi(n).symbol;case 190:return __(n).symbol;case 106:return hi(n).symbol;case 133:var We=n.parent;return We&&We.kind===169?We.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(n.parent.kind===264||n.parent.kind===270)&&n.parent.moduleSpecifier===n||e.isInJSFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent)||e.isLiteralTypeNode(n.parent)&&e.isLiteralImportTypeNode(n.parent.parent)&&n.parent.parent.argument===n.parent)return Ko(n,n,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===n)return Rr(r);case 8:var ze=e.isElementAccessExpression(r)?r.argumentExpression===n?jl(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(i)?La(i.objectType):void 0;return ze&&Rn(ze,e.escapeLeadingUnderscores(n.text));case 88:case 98:case 38:case 84:return Rr(n.parent);case 198:return e.isLiteralImportTypeNode(n)?tu(n.argument.literal,t):void 0;case 93:return e.isExportAssignment(n.parent)?e.Debug.checkDefined(n.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(n.parent)?p1(n.parent).symbol:void 0;case 229:return hi(n).symbol;default:return}}function RO(n){if(e.isIdentifier(n)&&e.isPropertyAccessExpression(n.parent)&&n.parent.name===n){var t=np(n),r=jl(n.parent.expression),i=r.flags&1048576?r.types:[r];return e.flatMap(i,function(l){return e.filter(vi(l),function(u){return _i(t,u.keyType)})})}return}function MO(n){return n&&n.kind===292?rs(n.name,111551|2097152):void 0}function FO(n){return e.isExportSpecifier(n)?n.parent.parent.moduleSpecifier?Mf(n.parent.parent,n):rs(n.propertyName||n.name,111551|788968|1920|2097152):rs(n,111551|788968|1920|2097152)}function cm(n){if(e.isSourceFile(n)&&!e.isExternalModule(n))return K;if(n.flags&16777216)return K;var t=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),r=t&&yc(Rr(t.class));if(e.isPartOfTypeNode(n)){var i=La(n);return r?Rc(i,r.thisType):i}if(e.isExpressionNode(n))return NA(n);if(r&&!t.isImplements){var l=e.firstOrUndefined(Ac(r));return l?Rc(l,r.thisType):K}if(qy(n)){var u=Rr(n);return ls(u)}if(kO(n)){var u=tu(n);return u?ls(u):K}if(e.isDeclaration(n)){var u=Rr(n);return Ir(u)}if(d(n)){var u=tu(n);return u?Ir(u):K}if(e.isBindingPattern(n))return ss(n.parent,!0)||K;if(Cv(n)){var u=tu(n);if(u){var S=ls(u);return S!==K?S:Ir(u)}}return e.isMetaProperty(n.parent)&&n.parent.keywordToken===n.kind?p1(n.parent):K}function Lv(n){if(e.Debug.assert(n.kind===203||n.kind===202),n.parent.kind===242){var t=Hy(n.parent);return lm(n,t||K)}if(n.parent.kind===219){var t=jl(n.parent.right);return lm(n,t||K)}if(n.parent.kind===291){var r=e.cast(n.parent.parent,e.isObjectLiteralExpression),i=Lv(r)||K,l=e.indexOfNode(r.properties,n.parent);return A1(r,i,l)}var u=e.cast(n.parent,e.isArrayLiteralExpression),S=Lv(u)||K,M=If(65,S,Ln,n.parent)||K;return D1(u,S,u.elements.indexOf(n),M)}function GO(n){var t=Lv(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&Rn(t,n.escapedText)}function NA(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),_c(jl(n))}function BO(n){var t=Rr(n.parent);return e.isStatic(n)?Ir(t):ls(t)}function UO(n){var t=n.name;switch(t.kind){case 79:return nu(e.idText(t));case 8:case 10:return nu(t.text);case 160:var r=rf(t);return $s(r,12288)?r:ht;default:return e.Debug.fail("Unsupported property name.")}}function OT(n){n=Ul(n);var t=e.createSymbolTable(So(n)),r=qt(n,0).length?Ms:qt(n,1).length?yn:void 0;return r&&e.forEach(So(r),function(i){t.has(i.escapedName)||t.set(i.escapedName,i)}),ld(t)}function PT(n){return e.typeHasCallOrConstructSignatures(n,Be)}function OA(n){var t=VO(n);return t?e.flatMap(t,OA):[n]}function VO(n){if(e.getCheckFlags(n)&6)return e.mapDefined($a(n).containingType.types,function(u){return Rn(u,n.escapedName)});if(n.flags&33554432){var t=n,r=t.leftSpread,i=t.rightSpread,l=t.syntheticOrigin;return r?[r,i]:l?[l]:e.singleElementArray(jO(n))}return}function jO(n){for(var t,r=n;r=$a(r).target;)t=r;return t}function WO(n){if(e.isGeneratedIdentifier(n))return!1;var t=e.getParseTreeNode(n,e.isIdentifier);if(!t)return!1;var r=t.parent;if(!r)return!1;var i=(e.isPropertyAccessExpression(r)||e.isPropertyAssignment(r))&&r.name===t;return!i&&zy(t)===xe}function HO(n){var t=Ko(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=Rl(t);t=wr(t);var i=$a(t);return i.exportsSomeValue===void 0&&(i.exportsSomeValue=r?!!(t.flags&111551):e.forEachEntry(Bc(t),l)),i.exportsSomeValue;function l(u){return u=Ho(u),u&&!!(u.flags&111551)}}function KO(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}function JO(n,t){var r,i=e.getParseTreeNode(n,e.isIdentifier);if(i){var l=zy(i,KO(i));if(l){if(l.flags&1048576){var u=To(l.exportSymbol);if(!t&&u.flags&944&&!(u.flags&3))return;l=u}var S=$l(l);if(S){if(S.flags&512&&((r=S.valueDeclaration)===null||r===void 0?void 0:r.kind)===300){var M=S.valueDeclaration,ge=e.getSourceFileOfNode(i),Ge=M!==ge;return Ge?void 0:M}return e.findAncestor(i.parent,function(We){return e.isModuleOrEnumDeclaration(We)&&Rr(We)===S})}}}}function qO(n){if(n.generatedImportReference)return n.generatedImportReference;var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=zy(t);if(ku(r,111551)&&!hc(r))return es(r)}return}function zO(n){return n.valueDeclaration&&e.isBindingElement(n.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind===290}function PA(n){if(n.flags&418&&n.valueDeclaration&&!e.isSourceFile(n.valueDeclaration)){var t=$a(n);if(t.isDeclarationWithCollidingName===void 0){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||zO(n)){var i=pa(n.valueDeclaration);if(Zi(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(i.flags&262144){var l=i.flags&524288,u=e.isIterationStatement(r,!1),S=r.kind===233&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(r)&&(!l||!u&&!S)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function XO(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=zy(t);if(r&&PA(r))return r.valueDeclaration}}return}function YO(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=Rr(t);if(r)return PA(r)}return!1}function RA(n){switch(n.kind){case 263:return Iv(Rr(n)||Yn);case 265:case 266:case 268:case 273:var t=Rr(n)||Yn;return Iv(t)&&!hc(t);case 270:var r=n.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,RA));case 269:return n.expression&&n.expression.kind===79?Iv(Rr(n)||Yn):!0}return!1}function QO(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);if(t===void 0||t.parent.kind!==300||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=Iv(Rr(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function Iv(n){var t=ks(n);return t===Yn?!0:!!(t.flags&111551)&&(e.shouldPreserveConstEnums(pe)||!Fg(t))}function Fg(n){return cT(n)||!!n.constEnumOnlyModule}function Nv(n,t){if(qr(n)){var r=Rr(n),i=r&&$a(r);if(i==null?void 0:i.referenced)return!0;var l=$a(r).target;if(l&&e.getEffectiveModifierFlags(n)&1&&l.flags&111551&&(e.shouldPreserveConstEnums(pe)||!Fg(l)))return!0}return t?!!e.forEachChild(n,function(u){return Nv(u,t)}):!1}function MA(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=Rr(n),r=gd(t);return r.length>1||r.length===1&&r[0].declaration!==n}return!1}function FA(n){return!!je&&!Jd(n)&&!e.isJSDocParameterTag(n)&&!!n.initializer&&!e.hasSyntacticModifier(n,16476)}function ZO(n){return je&&Jd(n)&&!n.initializer&&e.hasSyntacticModifier(n,16476)}function $O(n){return!!je&&Jd(n)&&!n.initializer}function eP(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=Rr(t);return!r||!(r.flags&16)?!1:!!e.forEachEntry(ul(r),function(i){return i.flags&111551&&i.valueDeclaration&&e.isPropertyAccessExpression(i.valueDeclaration)})}function nP(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=Rr(t);return r&&So(Ir(r))||e.emptyArray}function eh(n){var t,r=n.id||0;return r<0||r>=lc.length?0:((t=lc[r])===null||t===void 0?void 0:t.flags)||0}function Ov(n){return TA(n.parent),pa(n).enumMemberValue}function GA(n){switch(n.kind){case 294:case 204:case 205:return!0}return!1}function RT(n){if(n.kind===294)return Ov(n);var t=pa(n).resolvedSymbol;if(t&&t.flags&8){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return Ov(r)}return}function MT(n){return!!(n.flags&524288)&&qt(n,0).length>0}function tP(n,t){var r,i,l=e.getParseTreeNode(n,e.isEntityName);if(!l)return e.TypeReferenceSerializationKind.Unknown;if(t&&(t=e.getParseTreeNode(t),!t))return e.TypeReferenceSerializationKind.Unknown;var u=!1;if(e.isQualifiedName(l)){var S=rs(e.getFirstIdentifier(l),111551,!0,!0,t);u=!!((r=S==null?void 0:S.declarations)===null||r===void 0?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))}var M=rs(l,111551,!0,!0,t),ge=M&&M.flags&2097152?ks(M):M;u||(u=!!((i=M==null?void 0:M.declarations)===null||i===void 0?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var Ge=rs(l,788968,!0,!1,t);if(ge&&ge===Ge){var We=ub(!1);if(We&&ge===We)return e.TypeReferenceSerializationKind.Promise;var ze=Ir(ge);if(ze&&ll(ze))return u?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!Ge)return u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var an=ls(Ge);return an===K?u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:an.flags&3?e.TypeReferenceSerializationKind.ObjectType:$s(an,16384|98304|131072)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:$s(an,528)?e.TypeReferenceSerializationKind.BooleanType:$s(an,296)?e.TypeReferenceSerializationKind.NumberLikeType:$s(an,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:$s(an,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Ki(an)?e.TypeReferenceSerializationKind.ArrayLikeType:$s(an,12288)?e.TypeReferenceSerializationKind.ESSymbolType:MT(an)?e.TypeReferenceSerializationKind.TypeWithCallSignature:zl(an)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function rP(n,t,r,i,l){var u=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!u)return e.factory.createToken(129);var S=Rr(u),M=S&&!(S.flags&(2048|131072))?wp(Ir(S)):K;return M.flags&8192&&M.symbol===S&&(r|=1048576),l&&(M=ef(M)),Pe.typeToTypeNode(M,t,r|1024,i)}function aP(n,t,r,i){var l=e.getParseTreeNode(n,e.isFunctionLike);if(!l)return e.factory.createToken(129);var u=Eu(l);return Pe.typeToTypeNode(_o(u),t,r|1024,i)}function iP(n,t,r,i){var l=e.getParseTreeNode(n,e.isExpression);if(!l)return e.factory.createToken(129);var u=bc(NA(l));return Pe.typeToTypeNode(u,t,r|1024,i)}function oP(n){return ke.has(e.escapeLeadingUnderscores(n))}function zy(n,t){var r=pa(n).resolvedSymbol;if(r)return r;var i=n;if(t){var l=n.parent;e.isDeclaration(l)&&n===l.name&&(i=Ud(l))}return Zi(i,n.escapedText,111551|1048576|2097152,void 0,void 0,!0)}function sP(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=zy(t);if(r)return pu(r).valueDeclaration}}return}function lP(n){return e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n)?xp(Ir(Rr(n))):!1}function cP(n,t,r){var i=n.flags&1024?Pe.symbolToExpression(n.symbol,111551,t,void 0,r):n===Jt?e.factory.createTrue():n===fr&&e.factory.createFalse();if(i)return i;var l=n.value;return typeof l=="object"?e.factory.createBigIntLiteral(l):typeof l=="number"?e.factory.createNumericLiteral(l):e.factory.createStringLiteral(l)}function uP(n,t){var r=Ir(Rr(n));return cP(r,n,t)}function BA(n){return n?(Eo(n),e.getSourceFileOfNode(n).localJsxFactory||Ri):Ri}function FT(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var r=t.pragmas.get("jsxfrag"),i=e.isArray(r)?r[0]:r;if(i)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,Me),t.localJsxFragmentFactory}}if(pe.jsxFragmentFactory)return e.parseIsolatedEntityName(pe.jsxFragmentFactory,Me)}function dP(){var n=D.getResolvedTypeReferenceDirectives(),t;return n&&(t=new e.Map,n.forEach(function(ge,Ge){if(!ge||!ge.resolvedFileName)return;var We=D.getSourceFile(ge.resolvedFileName);We&&M(We,Ge)})),{getReferencedExportContainer:JO,getReferencedImportDeclaration:qO,getReferencedDeclarationWithCollidingName:XO,isDeclarationWithCollidingName:YO,isValueAliasDeclaration:function(ge){var Ge=e.getParseTreeNode(ge);return Ge?RA(Ge):!0},hasGlobalName:oP,isReferencedAliasDeclaration:function(ge,Ge){var We=e.getParseTreeNode(ge);return We?Nv(We,Ge):!0},getNodeCheckFlags:function(ge){var Ge=e.getParseTreeNode(ge);return Ge?eh(Ge):0},isTopLevelValueImportEqualsWithEntityName:QO,isDeclarationVisible:mu,isImplementationOfOverload:MA,isRequiredInitializedParameter:FA,isOptionalUninitializedParameterProperty:ZO,isExpandoFunctionDeclaration:eP,getPropertiesOfContainerFunction:nP,createTypeOfDeclaration:rP,createReturnTypeOfSignatureDeclaration:aP,createTypeOfExpression:iP,createLiteralConstValue:uP,isSymbolAccessible:ud,isEntityNameVisible:hp,getConstantValue:function(ge){var Ge=e.getParseTreeNode(ge,GA);return Ge?RT(Ge):void 0},collectLinkedAliases:Kf,getReferencedValueDeclaration:sP,getTypeReferenceSerializationKind:tP,isOptionalParameter:Jd,moduleExportsSomeValue:HO,isArgumentsLocalBinding:WO,getExternalModuleFileFromDeclaration:function(ge){var Ge=e.getParseTreeNode(ge,e.hasPossibleExternalModuleReference);return Ge&>(Ge)},getTypeReferenceDirectivesForEntityName:l,getTypeReferenceDirectivesForSymbol:u,isLiteralConstDeclaration:lP,isLateBound:function(ge){var Ge=e.getParseTreeNode(ge,e.isDeclaration),We=Ge&&Rr(Ge);return!!(We&&e.getCheckFlags(We)&4096)},getJsxFactoryEntity:BA,getJsxFragmentFactoryEntity:FT,getAllAccessorDeclarations:function(ge){ge=e.getParseTreeNode(ge,e.isGetOrSetAccessorDeclaration);var Ge=ge.kind===171?170:171,We=e.getDeclarationOfKind(Rr(ge),Ge),ze=We&&We.pos<ge.pos?We:ge,an=We&&We.pos<ge.pos?ge:We,Tn=ge.kind===171?ge:We,et=ge.kind===170?ge:We;return{firstAccessor:ze,secondAccessor:an,setAccessor:Tn,getAccessor:et}},getSymbolOfExternalModuleSpecifier:function(ge){return mi(ge,ge,void 0)},isBindingCapturedByNode:function(ge,Ge){var We=e.getParseTreeNode(ge),ze=e.getParseTreeNode(Ge);return!!We&&!!ze&&(e.isVariableDeclaration(ze)||e.isBindingElement(ze))&&Ck(We,ze)},getDeclarationStatementsForSourceFile:function(ge,Ge,We,ze){var an=e.getParseTreeNode(ge);e.Debug.assert(an&&an.kind===300,"Non-sourcefile node passed into getDeclarationsForSourceFile");var Tn=Rr(ge);return Tn?Tn.exports?Pe.symbolTableToDeclarationStatements(Tn.exports,ge,Ge,We,ze):[]:ge.locals?Pe.symbolTableToDeclarationStatements(ge.locals,ge,Ge,We,ze):[]},isImportRequiredByAugmentation:r};function r(ge){var Ge=e.getSourceFileOfNode(ge);if(!Ge.symbol)return!1;var We=GT(ge);if(!We)return!1;if(We===Ge)return!1;for(var ze=Bc(Ge.symbol),an=0,Tn=e.arrayFrom(ze.values());an<Tn.length;an++){var et=Tn[an];if(et.mergeId){var st=To(et);if(st.declarations)for(var Ct=0,Dt=st.declarations;Ct<Dt.length;Ct++){var Bt=Dt[Ct],cr=e.getSourceFileOfNode(Bt);if(cr===We)return!0}}}return!1}function i(ge){return ge.parent&&ge.parent.kind===226&&ge.parent.parent&&ge.parent.parent.kind===289}function l(ge){if(!t)return;var Ge=788968|1920;(ge.kind===79&&Ah(ge)||ge.kind===204&&!i(ge))&&(Ge=111551|1048576);var We=rs(ge,Ge,!0);return We&&We!==Yn?u(We,Ge):void 0}function u(ge,Ge){if(!t||!S(ge))return;for(var We,ze=0,an=ge.declarations;ze<an.length;ze++){var Tn=an[ze];if(Tn.symbol&&Tn.symbol.flags&Ge){var et=e.getSourceFileOfNode(Tn),st=t.get(et.path);if(st)(We||(We=[])).push(st);else return}}return We}function S(ge){if(!ge.declarations)return!1;for(var Ge=ge;;){var We=$l(Ge);if(We)Ge=We;else break}if(Ge.valueDeclaration&&Ge.valueDeclaration.kind===300&&Ge.flags&512)return!1;for(var ze=0,an=ge.declarations;ze<an.length;ze++){var Tn=an[ze],et=e.getSourceFileOfNode(Tn);if(t.has(et.path))return!0}return!1}function M(ge,Ge){if(t.has(ge.path))return;t.set(ge.path,Ge);for(var We=0,ze=ge.referencedFiles;We<ze.length;We++){var an=ze[We].fileName,Tn=e.resolveTripleslashReference(an,ge.fileName),et=D.getSourceFile(Tn);et&&M(et,Ge)}}}function GT(n){var t=n.kind===259?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=mi(t,t,void 0);return r?e.getDeclarationOfKind(r,300):void 0}function fP(){for(var n=0,t=D.getSourceFiles();n<t.length;n++){var r=t[n];e.bindSourceFile(r,pe)}Pi=new e.Map;for(var i,l=0,u=D.getSourceFiles();l<u.length;l++){var r=u[l];if(r.redirectInfo)continue;if(!e.isExternalOrCommonJsModule(r)){var S=r.locals.get("globalThis");if(S==null?void 0:S.declarations)for(var M=0,ge=S.declarations;M<ge.length;M++){var Ge=ge[M];zr.add(e.createDiagnosticForNode(Ge,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Wl(ke,r.locals)}if(r.jsGlobalAugmentations&&Wl(ke,r.jsGlobalAugmentations),r.patternAmbientModules&&r.patternAmbientModules.length&&(Oi=e.concatenate(Oi,r.patternAmbientModules)),r.moduleAugmentations.length&&(i||(i=[])).push(r.moduleAugmentations),r.symbol&&r.symbol.globalExports){var We=r.symbol.globalExports;We.forEach(function(ba,ca){ke.has(ca)||ke.set(ca,ba)})}}if(i)for(var ze=0,an=i;ze<an.length;ze++)for(var Tn=an[ze],et=0,st=Tn;et<st.length;et++){var Ct=st[et];if(!e.isGlobalScopeAugmentation(Ct.parent))continue;ad(Ct)}if(id(ke,gi,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),$a(Qe).type=Xe,$a(xe).type=ql("IArguments",0,!0),$a(Yn).type=K,$a(gn).type=Tl(16,gn),_t=ql("Array",1,!0),fs=ql("Object",0,!0),Mo=ql("Function",0,!0),Ms=Wn&&ql("CallableFunction",0,!0)||Mo,yn=Wn&&ql("NewableFunction",0,!0)||Mo,oa=ql("String",0,!0),Za=ql("Number",0,!0),Ga=ql("Boolean",0,!0),He=ql("RegExp",0,!0),pn=Ll(lt),j=Ll(Fe),j===xt&&(j=ns(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray)),tr=mS("ReadonlyArray",1)||_t,De=tr?cg(tr,[lt]):pn,se=mS("ThisType",1),i)for(var Dt=0,Bt=i;Dt<Bt.length;Dt++)for(var Tn=Bt[Dt],cr=0,Vr=Tn;cr<Vr.length;cr++){var Ct=Vr[cr];if(e.isGlobalScopeAugmentation(Ct.parent))continue;ad(Ct)}Pi.forEach(function(yr){var ba=yr.firstFile,ca=yr.secondFile,fi=yr.conflictingSymbols;if(fi.size<8)fi.forEach(function(Ji,ni){for(var vo=Ji.isBlockScoped,Po=Ji.firstFileLocations,Xt=Ji.secondFileLocations,Ot=vo?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,xa=0,Ra=Po;xa<Ra.length;xa++){var ta=Ra[xa];cu(ta,Ot,ni,Xt)}for(var ri=0,Hr=Xt;ri<Hr.length;ri++){var ta=Hr[ri];cu(ta,Ot,ni,Po)}});else{var ei=e.arrayFrom(fi.keys()).join(", ");zr.add(e.addRelatedInfo(e.createDiagnosticForNode(ba,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,ei),e.createDiagnosticForNode(ca,e.Diagnostics.Conflicts_are_in_this_file))),zr.add(e.addRelatedInfo(e.createDiagnosticForNode(ca,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,ei),e.createDiagnosticForNode(ba,e.Diagnostics.Conflicts_are_in_this_file)))}}),Pi=void 0}function Xl(n,t){if((J&t)!==t&&pe.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,pe)&&!(n.flags&8388608)){var i=mP(r,n);if(i!==Yn){for(var l=t&~J,u=1;u<=2097152;u<<=1)if(l&u){var S=pP(u),M=Vo(i.exports,e.escapeLeadingUnderscores(S),111551);M?u&524288?e.some(gd(M),function(ge){return dc(ge)>3})||Hn(n,e.Diagnostics.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,e.externalHelpersModuleNameText,S,4):u&1048576?e.some(gd(M),function(ge){return dc(ge)>4})||Hn(n,e.Diagnostics.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,e.externalHelpersModuleNameText,S,5):u&1024&&(e.some(gd(M),function(ge){return dc(ge)>2})||Hn(n,e.Diagnostics.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,e.externalHelpersModuleNameText,S,3)):Hn(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,S)}}J|=t}}}function pP(n){switch(n){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";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"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function mP(n,t){return C||(C=du(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||Yn),C}function Nd(n){return hP(n)||gP(n)}function hP(n){if(!n.decorators)return!1;if(e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){if(n.kind===170||n.kind===171){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return Nl(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===167&&!e.nodeIsPresent(n.body)?Nl(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Nl(n,e.Diagnostics.Decorators_are_not_valid_here);return!1}function gP(n){var t=yP(n);if(t!==void 0)return t;for(var r,i,l,u,S,M=0,ge=0,Ge=n.modifiers;ge<Ge.length;ge++){var We=Ge[ge];if(We.kind!==143){if(n.kind===164||n.kind===166)return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(We.kind));if(n.kind===174&&(We.kind!==124||!e.isClassLike(n.parent)))return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(We.kind))}switch(We.kind){case 85:if(n.kind!==258)return Dr(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 157:if(M&16384)return Dr(We,e.Diagnostics._0_modifier_already_seen,"override");if(M&2)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(M&64)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(M&256)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");M|=16384,S=We;break;case 123:case 122:case 121:var ze=vf(e.modifierToFlag(We.kind));if(M&28)return Dr(We,e.Diagnostics.Accessibility_modifier_already_seen);if(M&16384)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"override");if(M&32)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"static");if(M&64)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"readonly");if(M&256)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"async");if(n.parent.kind===260||n.parent.kind===300)return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,ze);if(M&128)return We.kind===121?Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,ze,"abstract"):Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(n))return Dr(We,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);M|=e.modifierToFlag(We.kind);break;case 124:if(M&32)return Dr(We,e.Diagnostics._0_modifier_already_seen,"static");if(M&64)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(M&256)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(n.parent.kind===260||n.parent.kind===300)return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===162)return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(M&128)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(M&16384)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");M|=32,r=We;break;case 143:if(M&64)return Dr(We,e.Diagnostics._0_modifier_already_seen,"readonly");if(n.kind!==165&&n.kind!==164&&n.kind!==174&&n.kind!==162)return Dr(We,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);M|=64,u=We;break;case 93:if(M&1)return Dr(We,e.Diagnostics._0_modifier_already_seen,"export");if(M&2)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(M&128)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(M&256)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(n.parent))return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===162)return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");M|=1;break;case 88:var an=n.parent.kind===300?n.parent:n.parent.parent;if(an.kind===259&&!e.isAmbientModule(an))return Dr(We,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(M&1))return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");M|=512;break;case 134:if(M&2)return Dr(We,e.Diagnostics._0_modifier_already_seen,"declare");if(M&256)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(M&16384)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(n.parent)&&!e.isPropertyDeclaration(n))return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===162)return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&8388608&&n.parent.kind===260)return Dr(We,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(n))return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");M|=2,i=We;break;case 126:if(M&128)return Dr(We,e.Diagnostics._0_modifier_already_seen,"abstract");if(n.kind!==255&&n.kind!==178){if(n.kind!==167&&n.kind!==165&&n.kind!==170&&n.kind!==171)return Dr(We,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===255&&e.hasSyntacticModifier(n.parent,128)))return Dr(We,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(M&32)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(M&8)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(M&256&&l)return Dr(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(M&16384)return Dr(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(n)&&n.name.kind===80)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");M|=128;break;case 130:if(M&256)return Dr(We,e.Diagnostics._0_modifier_already_seen,"async");if(M&2||n.parent.flags&8388608)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===162)return Dr(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(M&128)return Dr(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");M|=256,l=We;break}}return n.kind===169?M&32?Dr(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):M&128?Dr(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):M&16384?Dr(S,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):M&256?Dr(l,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):M&64?Dr(u,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):!1:(n.kind===264||n.kind===263)&&M&2?Dr(i,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===162&&M&16476&&e.isBindingPattern(n.name)?Dr(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===162&&M&16476&&n.dotDotDotToken?Dr(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):M&256?vP(n,l):!1}function yP(n){return n.modifiers?_P(n)?Nl(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function _P(n){switch(n.kind){case 170:case 171:case 169:case 165:case 164:case 167:case 166:case 174:case 259:case 264:case 263:case 270:case 269:case 211:case 212:case 162:return!1;default:if(n.parent.kind===260||n.parent.kind===300)return!1;switch(n.kind){case 254:return BT(n,130);case 255:case 178:return BT(n,126);case 256:case 235:case 257:case 168:return!0;case 258:return BT(n,85);default:e.Debug.fail()}}}function BT(n,t){return n.modifiers.length>1||n.modifiers[0].kind!==t}function vP(n,t){switch(n.kind){case 167:case 254:case 211:case 212:return!1}return Dr(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Cm(n,t){return t===void 0&&(t=e.Diagnostics.Trailing_comma_not_allowed),n&&n.hasTrailingComma?lp(n[0],n.end-",".length,",".length,t):!1}function UA(n,t){if(n&&n.length===0){var r=n.pos-"<".length,i=e.skipTrivia(t.text,n.end)+">".length;return lp(t,r,i-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function bP(n){for(var t=!1,r=n.length,i=0;i<r;i++){var l=n[i];if(l.dotDotDotToken){if(i!==r-1)return Dr(l.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(l.flags&8388608||Cm(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),l.questionToken)return Dr(l.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(l.initializer)return Dr(l.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Jd(l)){if(t=!0,l.questionToken&&l.initializer)return Dr(l.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!l.initializer)return Dr(l.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function EP(n){return e.filter(n,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})}function TP(n){if(Me>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=EP(n.parameters);if(e.length(r)){e.forEach(r,function(l){e.addRelatedInfo(Hn(l,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))});var i=r.map(function(l,u){return u===0?e.createDiagnosticForNode(l,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(l,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,Mt([Hn(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i,!1)),!0}}}return!1}function Pv(n){var t=e.getSourceFileOfNode(n);return Nd(n)||UA(n.typeParameters,t)||bP(n.parameters)||xP(n,t)||e.isFunctionLikeDeclaration(n)&&TP(n)}function SP(n){var t=e.getSourceFileOfNode(n);return IP(n)||UA(n.typeParameters,t)}function xP(n,t){if(!e.isArrowFunction(n))return!1;var r=n.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(t,r.pos).line,l=e.getLineAndCharacterOfPosition(t,r.end).line;return i!==l&&Dr(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function wP(n){var t=n.parameters[0];if(n.parameters.length!==1)return Dr(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(Cm(n.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return Dr(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(t))return Dr(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Dr(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Dr(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Dr(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var r=La(t.type);return Dh(r,function(i){return!!(i.flags&8576)})||g_(r)?Dr(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):nf(r,u_)?n.type?!1:Dr(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation):Dr(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function AP(n){return Nd(n)||wP(n)}function DP(n,t){if(t&&t.length===0){var r=e.getSourceFileOfNode(n),i=t.pos-"<".length,l=e.skipTrivia(r.text,t.end)+">".length;return lp(r,i,l-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function Xy(n,t){return Cm(t)||DP(n,t)}function CP(n){return n.questionDotToken||n.flags&32?Dr(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function kP(n){if(n)for(var t=0,r=n;t<r.length;t++){var i=r[t];if(i.kind===225)return lp(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}function VA(n){return kP(n)}function jA(n){var t=n.types;if(Cm(t))return!0;if(t&&t.length===0){var r=e.tokenToString(n.token);return lp(n,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.some(t,LP)}function LP(n){return Xy(n,n.typeArguments)}function IP(n){var t=!1,r=!1;if(!Nd(n)&&n.heritageClauses)for(var i=0,l=n.heritageClauses;i<l.length;i++){var u=l[i];if(u.token===94){if(t)return Nl(u,e.Diagnostics.extends_clause_already_seen);if(r)return Nl(u,e.Diagnostics.extends_clause_must_precede_implements_clause);if(u.types.length>1)return Nl(u.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(u.token===117),r)return Nl(u,e.Diagnostics.implements_clause_already_seen);r=!0}jA(u)}}function NP(n){var t=!1;if(n.heritageClauses)for(var r=0,i=n.heritageClauses;r<i.length;r++){var l=i[r];if(l.token===94){if(t)return Nl(l,e.Diagnostics.extends_clause_already_seen);t=!0}else return e.Debug.assert(l.token===117),Nl(l,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);jA(l)}return!1}function Rv(n){if(n.kind!==160)return!1;var t=n;return t.expression.kind===219&&t.expression.operatorToken.kind===27?Dr(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function UT(n){if(n.asteriskToken){if(e.Debug.assert(n.kind===254||n.kind===211||n.kind===167),n.flags&8388608)return Dr(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Dr(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function WA(n,t){return!!n&&Dr(n,t)}function HA(n,t){return!!n&&Dr(n,t)}function OP(n,t){for(var r=new e.Map,i=0,l=n.properties;i<l.length;i++){var u=l[i];if(u.kind===293){if(t){var S=e.skipParentheses(u.expression);if(e.isArrayLiteralExpression(S)||e.isObjectLiteralExpression(S))return Dr(u.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var M=u.name;if(M.kind===160&&Rv(M),u.kind===292&&!t&&u.objectAssignmentInitializer)return Dr(u.equalsToken,e.Diagnostics.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);if(M.kind===80&&Dr(M,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),u.modifiers)for(var ge=0,Ge=u.modifiers;ge<Ge.length;ge++){var We=Ge[ge];(We.kind!==130||u.kind!==167)&&Dr(We,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(We))}var ze=void 0;switch(u.kind){case 292:HA(u.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 291:WA(u.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),M.kind===8&&WT(M),ze=4;break;case 167:ze=8;break;case 170:ze=1;break;case 171:ze=2;break;default:throw e.Debug.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!t){var an=e.getPropertyNameForPropertyNameNode(M);if(an===void 0)continue;var Tn=r.get(an);if(!Tn)r.set(an,ze);else if(ze&12&&Tn&12)Dr(M,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(M));else if(ze&3&&Tn&3)if(Tn!==3&&ze!==Tn)r.set(an,ze|Tn);else return Dr(M,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Dr(M,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function PP(n){RP(n.tagName),Xy(n,n.typeArguments);for(var t=new e.Map,r=0,i=n.attributes.properties;r<i.length;r++){var l=i[r];if(l.kind===285)continue;var u=l.name,S=l.initializer;if(!t.get(u.escapedText))t.set(u.escapedText,!0);else return Dr(u,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(S&&S.kind===286&&!S.expression)return Dr(S,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function RP(n){if(e.isPropertyAccessExpression(n)){var t=n;do{var r=l(t.name);if(r)return r;t=t.expression}while(e.isPropertyAccessExpression(t));var i=l(t);if(i)return i}function l(u){if(e.isIdentifier(u)&&e.idText(u).indexOf(":")!==-1)return Dr(u,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function MP(n){if(n.expression&&e.isCommaSequence(n.expression))return Dr(n.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function KA(n){if(Od(n))return!0;if(n.kind===242&&n.awaitModifier&&!(n.flags&32768)){var t=e.getSourceFileOfNode(n);if(e.isInTopLevelContext(n))um(t)||(e.isEffectiveExternalModule(t,pe)||zr.add(e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.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)),(fn!==e.ModuleKind.ESNext&&fn!==e.ModuleKind.System||Me<4)&&zr.add(e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher)));else if(!um(t)){var r=e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(n);if(i&&i.kind!==169){e.Debug.assert((e.getFunctionFlags(i)&2)===0,"Enclosing function should never be an async function.");var l=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,l)}return zr.add(r),!0}return!1}if(e.isForOfStatement(n)&&!(n.flags&32768)&&e.isIdentifier(n.initializer)&&n.initializer.escapedText==="async")return Dr(n.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===253){var u=n.initializer;if(!jT(u)){var S=u.declarations;if(!S.length)return!1;if(S.length>1){var r=n.kind===241?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Nl(u.declarations[1],r)}var M=S[0];if(M.initializer){var r=n.kind===241?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Dr(M.name,r)}if(M.type){var r=n.kind===241?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Dr(M,r)}}}return!1}function FP(n){if(!(n.flags&8388608)&&n.parent.kind!==180&&n.parent.kind!==256){if(Me<1)return Dr(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Me<2&&e.isPrivateIdentifier(n.name))return Dr(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!e.hasSyntacticModifier(n,128))return lp(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(n.body){if(e.hasSyntacticModifier(n,128))return Dr(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===180||n.parent.kind===256)return Dr(n.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Dr(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!GP(n))return Dr(n.name,n.kind===170?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===171){if(n.type)return Dr(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.checkDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return Dr(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return Dr(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return Dr(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function GP(n){return VT(n)||n.parameters.length===(n.kind===170?0:1)}function VT(n){if(n.parameters.length===(n.kind===170?1:2))return e.getThisParameter(n)}function BP(n){if(n.operator===152){if(n.type.kind!==149)return Dr(n.type,e.Diagnostics._0_expected,e.tokenToString(149));var t=e.walkUpParenthesizedTypes(n.parent);e.isInJSFile(t)&&e.isJSDocTypeExpression(t)&&(t=t.parent,e.isJSDocTypeTag(t)&&(t=t.parent.parent));switch(t.kind){case 252:var r=t;if(r.name.kind!==79)return Dr(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return Dr(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(r.parent.flags&2))return Dr(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 165:if(!e.isStatic(t)||!e.hasEffectiveReadonlyModifier(t))return Dr(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 164:if(!e.hasSyntacticModifier(t,64))return Dr(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Dr(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===143&&(n.type.kind!==181&&n.type.kind!==182))return Nl(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(149))}function jh(n,t){if(gu(n))return Dr(n,t)}function JA(n){if(Pv(n))return!0;if(n.kind===167){if(n.parent.kind===203){if(n.modifiers&&!(n.modifiers.length===1&&e.first(n.modifiers).kind===130))return Nl(n,e.Diagnostics.Modifiers_cannot_appear_here);if(WA(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(HA(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return lp(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(UT(n))return!0}if(e.isClassLike(n.parent)){if(Me<2&&e.isPrivateIdentifier(n.name))return Dr(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&8388608)return jh(n.name,e.Diagnostics.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===167&&!n.body)return jh(n.name,e.Diagnostics.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===256)return jh(n.name,e.Diagnostics.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===180)return jh(n.name,e.Diagnostics.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 UP(n){for(var t=n;t;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(t))return Dr(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 248:if(n.label&&t.label.escapedText===n.label.escapedText){var r=n.kind===243&&!e.isIterationStatement(t.statement,!0);return r?Dr(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 247:if(n.kind===244&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1;break}t=t.parent}if(n.label){var i=n.kind===244?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Dr(n,i)}else{var i=n.kind===244?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Dr(n,i)}}function VP(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return Dr(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Cm(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Dr(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return lp(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function qA(n){return e.isStringOrNumericLiteralLike(n)||n.kind===217&&n.operator===40&&n.operand.kind===8}function jP(n){return n.kind===9||n.kind===217&&n.operator===40&&n.operand.kind===9}function WP(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&qA(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(ml(n).flags&1024)}function zA(n){var t=n.initializer;if(t){var r=!(qA(t)||WP(t)||t.kind===110||t.kind===95||jP(t)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(i&&!n.type){if(r)return Dr(t,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Dr(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!i||r)return Dr(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function HP(n){if(n.parent.parent.kind!==241&&n.parent.parent.kind!==242){if(n.flags&8388608)zA(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return Dr(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return Dr(n,e.Diagnostics.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==235||!n.type||n.initializer||n.flags&8388608)){var t=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Dr(n.exclamationToken,t)}var r=e.getEmitModuleKind(pe);r<e.ModuleKind.ES2015&&r!==e.ModuleKind.System&&!(n.parent.parent.flags&8388608)&&e.hasSyntacticModifier(n.parent.parent,1)&&XA(n.name);var i=e.isLet(n)||e.isVarConst(n);return i&&YA(n.name)}function XA(n){if(n.kind===79){if(e.idText(n)==="__esModule")return qP("noEmit",n,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=n.elements,r=0,i=t;r<i.length;r++){var l=i[r];if(!e.isOmittedExpression(l))return XA(l.name)}return!1}function YA(n){if(n.kind===79){if(n.originalKeywordKind===119)return Dr(n,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=n.elements,r=0,i=t;r<i.length;r++){var l=i[r];e.isOmittedExpression(l)||YA(l.name)}return!1}function jT(n){var t=n.declarations;return Cm(n.declarations)?!0:n.declarations.length?!1:lp(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function QA(n){switch(n.kind){case 237:case 238:case 239:case 246:case 240:case 241:case 242:return!1;case 248:return QA(n.parent)}return!0}function KP(n){if(!QA(n.parent)){if(e.isLet(n.declarationList))return Dr(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(n.declarationList))return Dr(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function JP(n){var t=n.name.escapedText;switch(n.keywordToken){case 103:if(t!=="target")return Dr(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"target");break;case 100:if(t!=="meta")return Dr(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"meta");break}}function um(n){return n.parseDiagnostics.length>0}function Nl(n,t,r,i,l){var u=e.getSourceFileOfNode(n);if(!um(u)){var S=e.getSpanOfTokenAtPosition(u,n.pos);return zr.add(e.createFileDiagnostic(u,S.start,S.length,t,r,i,l)),!0}return!1}function lp(n,t,r,i,l,u,S){var M=e.getSourceFileOfNode(n);return um(M)?!1:(zr.add(e.createFileDiagnostic(M,t,r,i,l,u,S)),!0)}function qP(n,t,r,i,l,u){var S=e.getSourceFileOfNode(t);return um(S)?!1:(Li(n,t,r,i,l,u),!0)}function Dr(n,t,r,i,l){var u=e.getSourceFileOfNode(n);return um(u)?!1:(zr.add(e.createDiagnosticForNode(n,t,r,i,l)),!0)}function zP(n){var t=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,r=n.typeParameters||t&&e.firstOrUndefined(t);if(r){var i=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,r.pos);return lp(n,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function XP(n){var t=e.getEffectiveReturnTypeNode(n);if(t)return Dr(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function YP(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&n.name.text==="constructor")return Dr(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(jh(n.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Me<2&&e.isPrivateIdentifier(n.name))return Dr(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(n.parent.kind===256){if(jh(n.name,e.Diagnostics.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.initializer)return Dr(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(n.parent.kind===180){if(jh(n.name,e.Diagnostics.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.initializer)return Dr(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&8388608&&zA(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||n.flags&8388608||e.isStatic(n)||e.hasAbstractModifier(n))){var t=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Dr(n.exclamationToken,t)}}function QP(n){return n.kind===256||n.kind===257||n.kind===264||n.kind===263||n.kind===270||n.kind===269||n.kind===262||e.hasSyntacticModifier(n,2|1|512)?!1:Nl(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ZP(n){for(var t=0,r=n.statements;t<r.length;t++){var i=r[t];if((e.isDeclaration(i)||i.kind===235)&&QP(i))return!0}return!1}function $P(n){return!!(n.flags&8388608)&&ZP(n)}function Od(n){if(n.flags&8388608){var t=pa(n);if(!t.hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return pa(n).hasReportedStatementInAmbientContext=Nl(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===233||n.parent.kind===260||n.parent.kind===300){var r=pa(n.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=Nl(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function WT(n){if(n.numericLiteralFlags&32){var t=void 0;if(Me>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,194)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,294)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&n.parent.operator===40,i=(r?"-":"")+"0o"+n.text;return Dr(r?n.parent:n,t,i)}}return eR(n),!1}function eR(n){if(n.numericLiteralFlags&16||n.text.length<=15||n.text.indexOf(".")!==-1)return;var t=+e.getTextOfNode(n);if(t<=Math.pow(2,53)-1&&t+1>t)return;Zo(!1,e.createDiagnosticForNode(n,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function nR(n){var t=e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent);return!!(!t&&(Me<7&&Dr(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)))}function tR(n,t,r,i,l){var u=e.getSourceFileOfNode(n);if(!um(u)){var S=e.getSpanOfTokenAtPosition(u,n.pos);return zr.add(e.createFileDiagnostic(u,e.textSpanEnd(S),0,t,r,i,l)),!0}return!1}function rR(){return _s||(_s=[],ke.forEach(function(n,t){s.test(t)&&_s.push(n)})),_s}function aR(n){return n.isTypeOnly&&n.name&&n.namedBindings?Dr(n,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!1}function iR(n){if(fn===e.ModuleKind.ES2015)return Dr(n,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(n.typeArguments)return Dr(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;return t.length!==1?Dr(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(Cm(t),e.isSpreadElement(t[0])?Dr(t[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):!1)}function oR(n,t){var r=e.getObjectFlags(n);if(r&(4|16)&&t.flags&1048576)return e.find(t.types,function(i){if(i.flags&524288){var l=r&e.getObjectFlags(i);if(l&4)return n.target===i.target;if(l&16)return!!n.aliasSymbol&&n.aliasSymbol===i.aliasSymbol}return!1})}function sR(n,t){if(e.getObjectFlags(n)&128&&Dh(t,op))return e.find(t.types,function(r){return!op(r)})}function lR(n,t){var r=0,i=qt(n,r).length>0||(r=1,qt(n,r).length>0);if(i)return e.find(t.types,function(l){return qt(l,r).length>0})}function cR(n,t){for(var r,i=0,l=0,u=t.types;l<u.length;l++){var S=u[l],M=Go([yd(n),yd(S)]);if(M.flags&4194304)r=S,i=Infinity;else if(M.flags&1048576){var ge=e.length(e.filter(M.types,$u));ge>=i&&(r=S,i=ge)}else $u(M)&&1>=i&&(r=S,i=1)}return r}function uR(n){if(xs(n,67108864)){var t=Vl(n,function(r){return!(r.flags&131068)});if(!(t.flags&131072))return t}return n}function ZA(n,t,r,i){if(t.flags&1048576&&n.flags&(2097152|524288)){var l=Fx(t,n);if(l)return l;var u=So(n);if(u){var S=Mx(u,t);if(S)return Wb(t,e.map(S,function(M){return[function(){return Ir(M)},M.escapedName]}),r,void 0,i)}}return}}e.createTypeChecker=F;function g(D){return!e.isAccessor(D)}function p(D){return D.kind!==254&&D.kind!==167||!!D.body}function d(D){switch(D.parent.kind){case 268:case 273:return e.isIdentifier(D);default:return e.isDeclarationName(D)}}var T;(function(D){D.JSX="JSX",D.IntrinsicElements="IntrinsicElements",D.ElementClass="ElementClass",D.ElementAttributesPropertyNameContainer="ElementAttributesProperty",D.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",D.Element="Element",D.IntrinsicAttributes="IntrinsicAttributes",D.IntrinsicClassAttributes="IntrinsicClassAttributes",D.LibraryManagedAttributes="LibraryManagedAttributes"})(T||(T={}));function m(D){switch(D){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function k(D){return!!(D.flags&1)}e.signatureHasRestParameter=k;function N(D){return!!(D.flags&2)}e.signatureHasLiteralTypes=N})(mn||(mn={}));var mn;(function(e){function s(_,U,Z,v){if(_===void 0||U===void 0)return _;var W=U(_);if(W===_)return _;var x;return W===void 0?void 0:(e.isArray(W)?x=(v||fe)(W):x=W,e.Debug.assertNode(x,Z),x)}e.visitNode=s;function ue(_,U,Z,v,W){if(_===void 0||U===void 0)return _;var x,$=_.length;(v===void 0||v<0)&&(v=0),(W===void 0||W>$-v)&&(W=$-v);var L,E=-1,ae=-1;(v>0||W<$)&&(x=[],L=_.hasTrailingComma&&v+W===$);for(var X=0;X<W;X++){var ie=_[X+v],le=ie!==void 0?U(ie):void 0;if((x!==void 0||le===void 0||le!==ie)&&(x===void 0&&(x=_.slice(0,X),L=_.hasTrailingComma,E=_.pos,ae=_.end),le))if(e.isArray(le))for(var P=0,I=le;P<I.length;P++){var re=I[P];void e.Debug.assertNode(re,Z),x.push(re)}else void e.Debug.assertNode(le,Z),x.push(le)}if(x){var B=e.factory.createNodeArray(x,L);return e.setTextRangePosEnd(B,E,ae),B}return _}e.visitNodes=ue;function ee(_,U,Z,v,W,x){return x===void 0&&(x=ue),Z.startLexicalEnvironment(),_=x(_,U,e.isStatement,v),W&&(_=Z.factory.ensureUseStrict(_)),e.factory.mergeLexicalEnvironment(_,Z.endLexicalEnvironment())}e.visitLexicalEnvironment=ee;function Y(_,U,Z,v){v===void 0&&(v=ue);var W;return Z.startLexicalEnvironment(),_&&(Z.setLexicalEnvironmentFlags(1,!0),W=v(_,U,e.isParameterDeclaration),Z.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(Z.getCompilerOptions())>=2&&(W=V(W,Z)),Z.setLexicalEnvironmentFlags(1,!1)),Z.suspendLexicalEnvironment(),W}e.visitParameterList=Y;function V(_,U){for(var Z,v=0;v<_.length;v++){var W=_[v],x=ne(W,U);(Z||x!==W)&&(Z||(Z=_.slice(0,v)),Z[v]=x)}return Z?e.setTextRange(U.factory.createNodeArray(Z,_.hasTrailingComma),_):_}function ne(_,U){return _.dotDotDotToken?_:e.isBindingPattern(_.name)?_e(_,U):_.initializer?O(_,_.name,_.initializer,U):_}function _e(_,U){var Z=U.factory;return U.addInitializationStatement(Z.createVariableStatement(void 0,Z.createVariableDeclarationList([Z.createVariableDeclaration(_.name,void 0,_.type,_.initializer?Z.createConditionalExpression(Z.createStrictEquality(Z.getGeneratedNameForNode(_),Z.createVoidZero()),void 0,_.initializer,void 0,Z.getGeneratedNameForNode(_)):Z.getGeneratedNameForNode(_))]))),Z.updateParameterDeclaration(_,_.decorators,_.modifiers,_.dotDotDotToken,Z.getGeneratedNameForNode(_),_.questionToken,_.type,void 0)}function O(_,U,Z,v){var W=v.factory;return v.addInitializationStatement(W.createIfStatement(W.createTypeCheck(W.cloneNode(U),"undefined"),e.setEmitFlags(e.setTextRange(W.createBlock([W.createExpressionStatement(e.setEmitFlags(e.setTextRange(W.createAssignment(e.setEmitFlags(W.cloneNode(U),48),e.setEmitFlags(Z,48|e.getEmitFlags(Z)|1536)),_),1536))]),_),1|32|384|1536))),W.updateParameterDeclaration(_,_.decorators,_.modifiers,_.dotDotDotToken,_.name,_.questionToken,_.type,void 0)}function w(_,U,Z,v){v===void 0&&(v=s),Z.resumeLexicalEnvironment();var W=v(_,U,e.isConciseBody),x=Z.endLexicalEnvironment();if(e.some(x)){if(!W)return Z.factory.createBlock(x);var $=Z.factory.converters.convertToFunctionBlock(W),L=e.factory.mergeLexicalEnvironment($.statements,x);return Z.factory.updateBlock($,L)}return W}e.visitFunctionBody=w;function b(_,U,Z){Z.startBlockScope();var v=s(_,U,e.isStatement,Z.factory.liftToBlock),W=Z.endBlockScope();return e.some(W)?e.isBlock(v)?(W.push.apply(W,v.statements),Z.factory.updateBlock(v,W)):(W.push(v),Z.factory.createBlock(W)):v}e.visitIterationBody=b;function de(_,U,Z,v,W,x){if(v===void 0&&(v=ue),x===void 0&&(x=s),_===void 0)return;var $=_.kind;if($>0&&$<=158||$===190)return _;var L=Z.factory;switch($){case 79:return e.Debug.type(_),L.updateIdentifier(_,v(_.typeArguments,U,e.isTypeNodeOrTypeParameterDeclaration));case 159:return e.Debug.type(_),L.updateQualifiedName(_,x(_.left,U,e.isEntityName),x(_.right,U,e.isIdentifier));case 160:return e.Debug.type(_),L.updateComputedPropertyName(_,x(_.expression,U,e.isExpression));case 161:return e.Debug.type(_),L.updateTypeParameterDeclaration(_,x(_.name,U,e.isIdentifier),x(_.constraint,U,e.isTypeNode),x(_.default,U,e.isTypeNode));case 162:return e.Debug.type(_),L.updateParameterDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.dotDotDotToken,W,e.isDotDotDotToken),x(_.name,U,e.isBindingName),x(_.questionToken,W,e.isQuestionToken),x(_.type,U,e.isTypeNode),x(_.initializer,U,e.isExpression));case 163:return e.Debug.type(_),L.updateDecorator(_,x(_.expression,U,e.isExpression));case 164:return e.Debug.type(_),L.updatePropertySignature(_,v(_.modifiers,U,e.isModifier),x(_.name,U,e.isPropertyName),x(_.questionToken,W,e.isToken),x(_.type,U,e.isTypeNode));case 165:return e.Debug.type(_),L.updatePropertyDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isPropertyName),x(_.questionToken||_.exclamationToken,W,e.isQuestionOrExclamationToken),x(_.type,U,e.isTypeNode),x(_.initializer,U,e.isExpression));case 166:return e.Debug.type(_),L.updateMethodSignature(_,v(_.modifiers,U,e.isModifier),x(_.name,U,e.isPropertyName),x(_.questionToken,W,e.isQuestionToken),v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.parameters,U,e.isParameterDeclaration),x(_.type,U,e.isTypeNode));case 167:return e.Debug.type(_),L.updateMethodDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.asteriskToken,W,e.isAsteriskToken),x(_.name,U,e.isPropertyName),x(_.questionToken,W,e.isQuestionToken),v(_.typeParameters,U,e.isTypeParameterDeclaration),Y(_.parameters,U,Z,v),x(_.type,U,e.isTypeNode),w(_.body,U,Z,x));case 169:return e.Debug.type(_),L.updateConstructorDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),Y(_.parameters,U,Z,v),w(_.body,U,Z,x));case 170:return e.Debug.type(_),L.updateGetAccessorDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isPropertyName),Y(_.parameters,U,Z,v),x(_.type,U,e.isTypeNode),w(_.body,U,Z,x));case 171:return e.Debug.type(_),L.updateSetAccessorDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isPropertyName),Y(_.parameters,U,Z,v),w(_.body,U,Z,x));case 168:return e.Debug.type(_),Z.startLexicalEnvironment(),Z.suspendLexicalEnvironment(),L.updateClassStaticBlockDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),w(_.body,U,Z,x));case 172:return e.Debug.type(_),L.updateCallSignature(_,v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.parameters,U,e.isParameterDeclaration),x(_.type,U,e.isTypeNode));case 173:return e.Debug.type(_),L.updateConstructSignature(_,v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.parameters,U,e.isParameterDeclaration),x(_.type,U,e.isTypeNode));case 174:return e.Debug.type(_),L.updateIndexSignature(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),v(_.parameters,U,e.isParameterDeclaration),x(_.type,U,e.isTypeNode));case 175:return e.Debug.type(_),L.updateTypePredicateNode(_,x(_.assertsModifier,U,e.isAssertsKeyword),x(_.parameterName,U,e.isIdentifierOrThisTypeNode),x(_.type,U,e.isTypeNode));case 176:return e.Debug.type(_),L.updateTypeReferenceNode(_,x(_.typeName,U,e.isEntityName),v(_.typeArguments,U,e.isTypeNode));case 177:return e.Debug.type(_),L.updateFunctionTypeNode(_,v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.parameters,U,e.isParameterDeclaration),x(_.type,U,e.isTypeNode));case 178:return e.Debug.type(_),L.updateConstructorTypeNode(_,v(_.modifiers,U,e.isModifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.parameters,U,e.isParameterDeclaration),x(_.type,U,e.isTypeNode));case 179:return e.Debug.type(_),L.updateTypeQueryNode(_,x(_.exprName,U,e.isEntityName));case 180:return e.Debug.type(_),L.updateTypeLiteralNode(_,v(_.members,U,e.isTypeElement));case 181:return e.Debug.type(_),L.updateArrayTypeNode(_,x(_.elementType,U,e.isTypeNode));case 182:return e.Debug.type(_),L.updateTupleTypeNode(_,v(_.elements,U,e.isTypeNode));case 183:return e.Debug.type(_),L.updateOptionalTypeNode(_,x(_.type,U,e.isTypeNode));case 184:return e.Debug.type(_),L.updateRestTypeNode(_,x(_.type,U,e.isTypeNode));case 185:return e.Debug.type(_),L.updateUnionTypeNode(_,v(_.types,U,e.isTypeNode));case 186:return e.Debug.type(_),L.updateIntersectionTypeNode(_,v(_.types,U,e.isTypeNode));case 187:return e.Debug.type(_),L.updateConditionalTypeNode(_,x(_.checkType,U,e.isTypeNode),x(_.extendsType,U,e.isTypeNode),x(_.trueType,U,e.isTypeNode),x(_.falseType,U,e.isTypeNode));case 188:return e.Debug.type(_),L.updateInferTypeNode(_,x(_.typeParameter,U,e.isTypeParameterDeclaration));case 198:return e.Debug.type(_),L.updateImportTypeNode(_,x(_.argument,U,e.isTypeNode),x(_.qualifier,U,e.isEntityName),ue(_.typeArguments,U,e.isTypeNode),_.isTypeOf);case 195:return e.Debug.type(_),L.updateNamedTupleMember(_,s(_.dotDotDotToken,U,e.isDotDotDotToken),s(_.name,U,e.isIdentifier),s(_.questionToken,U,e.isQuestionToken),s(_.type,U,e.isTypeNode));case 189:return e.Debug.type(_),L.updateParenthesizedType(_,x(_.type,U,e.isTypeNode));case 191:return e.Debug.type(_),L.updateTypeOperatorNode(_,x(_.type,U,e.isTypeNode));case 192:return e.Debug.type(_),L.updateIndexedAccessTypeNode(_,x(_.objectType,U,e.isTypeNode),x(_.indexType,U,e.isTypeNode));case 193:return e.Debug.type(_),L.updateMappedTypeNode(_,x(_.readonlyToken,W,e.isReadonlyKeywordOrPlusOrMinusToken),x(_.typeParameter,U,e.isTypeParameterDeclaration),x(_.nameType,U,e.isTypeNode),x(_.questionToken,W,e.isQuestionOrPlusOrMinusToken),x(_.type,U,e.isTypeNode));case 194:return e.Debug.type(_),L.updateLiteralTypeNode(_,x(_.literal,U,e.isExpression));case 196:return e.Debug.type(_),L.updateTemplateLiteralType(_,x(_.head,U,e.isTemplateHead),v(_.templateSpans,U,e.isTemplateLiteralTypeSpan));case 197:return e.Debug.type(_),L.updateTemplateLiteralTypeSpan(_,x(_.type,U,e.isTypeNode),x(_.literal,U,e.isTemplateMiddleOrTemplateTail));case 199:return e.Debug.type(_),L.updateObjectBindingPattern(_,v(_.elements,U,e.isBindingElement));case 200:return e.Debug.type(_),L.updateArrayBindingPattern(_,v(_.elements,U,e.isArrayBindingElement));case 201:return e.Debug.type(_),L.updateBindingElement(_,x(_.dotDotDotToken,W,e.isDotDotDotToken),x(_.propertyName,U,e.isPropertyName),x(_.name,U,e.isBindingName),x(_.initializer,U,e.isExpression));case 202:return e.Debug.type(_),L.updateArrayLiteralExpression(_,v(_.elements,U,e.isExpression));case 203:return e.Debug.type(_),L.updateObjectLiteralExpression(_,v(_.properties,U,e.isObjectLiteralElementLike));case 204:return _.flags&32?(e.Debug.type(_),L.updatePropertyAccessChain(_,x(_.expression,U,e.isExpression),x(_.questionDotToken,W,e.isQuestionDotToken),x(_.name,U,e.isMemberName))):(e.Debug.type(_),L.updatePropertyAccessExpression(_,x(_.expression,U,e.isExpression),x(_.name,U,e.isMemberName)));case 205:return _.flags&32?(e.Debug.type(_),L.updateElementAccessChain(_,x(_.expression,U,e.isExpression),x(_.questionDotToken,W,e.isQuestionDotToken),x(_.argumentExpression,U,e.isExpression))):(e.Debug.type(_),L.updateElementAccessExpression(_,x(_.expression,U,e.isExpression),x(_.argumentExpression,U,e.isExpression)));case 206:return _.flags&32?(e.Debug.type(_),L.updateCallChain(_,x(_.expression,U,e.isExpression),x(_.questionDotToken,W,e.isQuestionDotToken),v(_.typeArguments,U,e.isTypeNode),v(_.arguments,U,e.isExpression))):(e.Debug.type(_),L.updateCallExpression(_,x(_.expression,U,e.isExpression),v(_.typeArguments,U,e.isTypeNode),v(_.arguments,U,e.isExpression)));case 207:return e.Debug.type(_),L.updateNewExpression(_,x(_.expression,U,e.isExpression),v(_.typeArguments,U,e.isTypeNode),v(_.arguments,U,e.isExpression));case 208:return e.Debug.type(_),L.updateTaggedTemplateExpression(_,x(_.tag,U,e.isExpression),ue(_.typeArguments,U,e.isTypeNode),x(_.template,U,e.isTemplateLiteral));case 209:return e.Debug.type(_),L.updateTypeAssertion(_,x(_.type,U,e.isTypeNode),x(_.expression,U,e.isExpression));case 210:return e.Debug.type(_),L.updateParenthesizedExpression(_,x(_.expression,U,e.isExpression));case 211:return e.Debug.type(_),L.updateFunctionExpression(_,v(_.modifiers,U,e.isModifier),x(_.asteriskToken,W,e.isAsteriskToken),x(_.name,U,e.isIdentifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),Y(_.parameters,U,Z,v),x(_.type,U,e.isTypeNode),w(_.body,U,Z,x));case 212:return e.Debug.type(_),L.updateArrowFunction(_,v(_.modifiers,U,e.isModifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),Y(_.parameters,U,Z,v),x(_.type,U,e.isTypeNode),x(_.equalsGreaterThanToken,W,e.isEqualsGreaterThanToken),w(_.body,U,Z,x));case 213:return e.Debug.type(_),L.updateDeleteExpression(_,x(_.expression,U,e.isExpression));case 214:return e.Debug.type(_),L.updateTypeOfExpression(_,x(_.expression,U,e.isExpression));case 215:return e.Debug.type(_),L.updateVoidExpression(_,x(_.expression,U,e.isExpression));case 216:return e.Debug.type(_),L.updateAwaitExpression(_,x(_.expression,U,e.isExpression));case 217:return e.Debug.type(_),L.updatePrefixUnaryExpression(_,x(_.operand,U,e.isExpression));case 218:return e.Debug.type(_),L.updatePostfixUnaryExpression(_,x(_.operand,U,e.isExpression));case 219:return e.Debug.type(_),L.updateBinaryExpression(_,x(_.left,U,e.isExpression),x(_.operatorToken,W,e.isBinaryOperatorToken),x(_.right,U,e.isExpression));case 220:return e.Debug.type(_),L.updateConditionalExpression(_,x(_.condition,U,e.isExpression),x(_.questionToken,W,e.isQuestionToken),x(_.whenTrue,U,e.isExpression),x(_.colonToken,W,e.isColonToken),x(_.whenFalse,U,e.isExpression));case 221:return e.Debug.type(_),L.updateTemplateExpression(_,x(_.head,U,e.isTemplateHead),v(_.templateSpans,U,e.isTemplateSpan));case 222:return e.Debug.type(_),L.updateYieldExpression(_,x(_.asteriskToken,W,e.isAsteriskToken),x(_.expression,U,e.isExpression));case 223:return e.Debug.type(_),L.updateSpreadElement(_,x(_.expression,U,e.isExpression));case 224:return e.Debug.type(_),L.updateClassExpression(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isIdentifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.heritageClauses,U,e.isHeritageClause),v(_.members,U,e.isClassElement));case 226:return e.Debug.type(_),L.updateExpressionWithTypeArguments(_,x(_.expression,U,e.isExpression),v(_.typeArguments,U,e.isTypeNode));case 227:return e.Debug.type(_),L.updateAsExpression(_,x(_.expression,U,e.isExpression),x(_.type,U,e.isTypeNode));case 228:return _.flags&32?(e.Debug.type(_),L.updateNonNullChain(_,x(_.expression,U,e.isExpression))):(e.Debug.type(_),L.updateNonNullExpression(_,x(_.expression,U,e.isExpression)));case 229:return e.Debug.type(_),L.updateMetaProperty(_,x(_.name,U,e.isIdentifier));case 231:return e.Debug.type(_),L.updateTemplateSpan(_,x(_.expression,U,e.isExpression),x(_.literal,U,e.isTemplateMiddleOrTemplateTail));case 233:return e.Debug.type(_),L.updateBlock(_,v(_.statements,U,e.isStatement));case 235:return e.Debug.type(_),L.updateVariableStatement(_,v(_.modifiers,U,e.isModifier),x(_.declarationList,U,e.isVariableDeclarationList));case 236:return e.Debug.type(_),L.updateExpressionStatement(_,x(_.expression,U,e.isExpression));case 237:return e.Debug.type(_),L.updateIfStatement(_,x(_.expression,U,e.isExpression),x(_.thenStatement,U,e.isStatement,L.liftToBlock),x(_.elseStatement,U,e.isStatement,L.liftToBlock));case 238:return e.Debug.type(_),L.updateDoStatement(_,b(_.statement,U,Z),x(_.expression,U,e.isExpression));case 239:return e.Debug.type(_),L.updateWhileStatement(_,x(_.expression,U,e.isExpression),b(_.statement,U,Z));case 240:return e.Debug.type(_),L.updateForStatement(_,x(_.initializer,U,e.isForInitializer),x(_.condition,U,e.isExpression),x(_.incrementor,U,e.isExpression),b(_.statement,U,Z));case 241:return e.Debug.type(_),L.updateForInStatement(_,x(_.initializer,U,e.isForInitializer),x(_.expression,U,e.isExpression),b(_.statement,U,Z));case 242:return e.Debug.type(_),L.updateForOfStatement(_,x(_.awaitModifier,W,e.isAwaitKeyword),x(_.initializer,U,e.isForInitializer),x(_.expression,U,e.isExpression),b(_.statement,U,Z));case 243:return e.Debug.type(_),L.updateContinueStatement(_,x(_.label,U,e.isIdentifier));case 244:return e.Debug.type(_),L.updateBreakStatement(_,x(_.label,U,e.isIdentifier));case 245:return e.Debug.type(_),L.updateReturnStatement(_,x(_.expression,U,e.isExpression));case 246:return e.Debug.type(_),L.updateWithStatement(_,x(_.expression,U,e.isExpression),x(_.statement,U,e.isStatement,L.liftToBlock));case 247:return e.Debug.type(_),L.updateSwitchStatement(_,x(_.expression,U,e.isExpression),x(_.caseBlock,U,e.isCaseBlock));case 248:return e.Debug.type(_),L.updateLabeledStatement(_,x(_.label,U,e.isIdentifier),x(_.statement,U,e.isStatement,L.liftToBlock));case 249:return e.Debug.type(_),L.updateThrowStatement(_,x(_.expression,U,e.isExpression));case 250:return e.Debug.type(_),L.updateTryStatement(_,x(_.tryBlock,U,e.isBlock),x(_.catchClause,U,e.isCatchClause),x(_.finallyBlock,U,e.isBlock));case 252:return e.Debug.type(_),L.updateVariableDeclaration(_,x(_.name,U,e.isBindingName),x(_.exclamationToken,W,e.isExclamationToken),x(_.type,U,e.isTypeNode),x(_.initializer,U,e.isExpression));case 253:return e.Debug.type(_),L.updateVariableDeclarationList(_,v(_.declarations,U,e.isVariableDeclaration));case 254:return e.Debug.type(_),L.updateFunctionDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.asteriskToken,W,e.isAsteriskToken),x(_.name,U,e.isIdentifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),Y(_.parameters,U,Z,v),x(_.type,U,e.isTypeNode),w(_.body,U,Z,x));case 255:return e.Debug.type(_),L.updateClassDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isIdentifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.heritageClauses,U,e.isHeritageClause),v(_.members,U,e.isClassElement));case 256:return e.Debug.type(_),L.updateInterfaceDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isIdentifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),v(_.heritageClauses,U,e.isHeritageClause),v(_.members,U,e.isTypeElement));case 257:return e.Debug.type(_),L.updateTypeAliasDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isIdentifier),v(_.typeParameters,U,e.isTypeParameterDeclaration),x(_.type,U,e.isTypeNode));case 258:return e.Debug.type(_),L.updateEnumDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isIdentifier),v(_.members,U,e.isEnumMember));case 259:return e.Debug.type(_),L.updateModuleDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.name,U,e.isModuleName),x(_.body,U,e.isModuleBody));case 260:return e.Debug.type(_),L.updateModuleBlock(_,v(_.statements,U,e.isStatement));case 261:return e.Debug.type(_),L.updateCaseBlock(_,v(_.clauses,U,e.isCaseOrDefaultClause));case 262:return e.Debug.type(_),L.updateNamespaceExportDeclaration(_,x(_.name,U,e.isIdentifier));case 263:return e.Debug.type(_),L.updateImportEqualsDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),_.isTypeOnly,x(_.name,U,e.isIdentifier),x(_.moduleReference,U,e.isModuleReference));case 264:return e.Debug.type(_),L.updateImportDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.importClause,U,e.isImportClause),x(_.moduleSpecifier,U,e.isExpression));case 265:return e.Debug.type(_),L.updateImportClause(_,_.isTypeOnly,x(_.name,U,e.isIdentifier),x(_.namedBindings,U,e.isNamedImportBindings));case 266:return e.Debug.type(_),L.updateNamespaceImport(_,x(_.name,U,e.isIdentifier));case 272:return e.Debug.type(_),L.updateNamespaceExport(_,x(_.name,U,e.isIdentifier));case 267:return e.Debug.type(_),L.updateNamedImports(_,v(_.elements,U,e.isImportSpecifier));case 268:return e.Debug.type(_),L.updateImportSpecifier(_,x(_.propertyName,U,e.isIdentifier),x(_.name,U,e.isIdentifier));case 269:return e.Debug.type(_),L.updateExportAssignment(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),x(_.expression,U,e.isExpression));case 270:return e.Debug.type(_),L.updateExportDeclaration(_,v(_.decorators,U,e.isDecorator),v(_.modifiers,U,e.isModifier),_.isTypeOnly,x(_.exportClause,U,e.isNamedExportBindings),x(_.moduleSpecifier,U,e.isExpression));case 271:return e.Debug.type(_),L.updateNamedExports(_,v(_.elements,U,e.isExportSpecifier));case 273:return e.Debug.type(_),L.updateExportSpecifier(_,x(_.propertyName,U,e.isIdentifier),x(_.name,U,e.isIdentifier));case 275:return e.Debug.type(_),L.updateExternalModuleReference(_,x(_.expression,U,e.isExpression));case 276:return e.Debug.type(_),L.updateJsxElement(_,x(_.openingElement,U,e.isJsxOpeningElement),v(_.children,U,e.isJsxChild),x(_.closingElement,U,e.isJsxClosingElement));case 277:return e.Debug.type(_),L.updateJsxSelfClosingElement(_,x(_.tagName,U,e.isJsxTagNameExpression),v(_.typeArguments,U,e.isTypeNode),x(_.attributes,U,e.isJsxAttributes));case 278:return e.Debug.type(_),L.updateJsxOpeningElement(_,x(_.tagName,U,e.isJsxTagNameExpression),v(_.typeArguments,U,e.isTypeNode),x(_.attributes,U,e.isJsxAttributes));case 279:return e.Debug.type(_),L.updateJsxClosingElement(_,x(_.tagName,U,e.isJsxTagNameExpression));case 280:return e.Debug.type(_),L.updateJsxFragment(_,x(_.openingFragment,U,e.isJsxOpeningFragment),v(_.children,U,e.isJsxChild),x(_.closingFragment,U,e.isJsxClosingFragment));case 283:return e.Debug.type(_),L.updateJsxAttribute(_,x(_.name,U,e.isIdentifier),x(_.initializer,U,e.isStringLiteralOrJsxExpression));case 284:return e.Debug.type(_),L.updateJsxAttributes(_,v(_.properties,U,e.isJsxAttributeLike));case 285:return e.Debug.type(_),L.updateJsxSpreadAttribute(_,x(_.expression,U,e.isExpression));case 286:return e.Debug.type(_),L.updateJsxExpression(_,x(_.expression,U,e.isExpression));case 287:return e.Debug.type(_),L.updateCaseClause(_,x(_.expression,U,e.isExpression),v(_.statements,U,e.isStatement));case 288:return e.Debug.type(_),L.updateDefaultClause(_,v(_.statements,U,e.isStatement));case 289:return e.Debug.type(_),L.updateHeritageClause(_,v(_.types,U,e.isExpressionWithTypeArguments));case 290:return e.Debug.type(_),L.updateCatchClause(_,x(_.variableDeclaration,U,e.isVariableDeclaration),x(_.block,U,e.isBlock));case 291:return e.Debug.type(_),L.updatePropertyAssignment(_,x(_.name,U,e.isPropertyName),x(_.initializer,U,e.isExpression));case 292:return e.Debug.type(_),L.updateShorthandPropertyAssignment(_,x(_.name,U,e.isIdentifier),x(_.objectAssignmentInitializer,U,e.isExpression));case 293:return e.Debug.type(_),L.updateSpreadAssignment(_,x(_.expression,U,e.isExpression));case 294:return e.Debug.type(_),L.updateEnumMember(_,x(_.name,U,e.isPropertyName),x(_.initializer,U,e.isExpression));case 300:return e.Debug.type(_),L.updateSourceFile(_,ee(_.statements,U,Z));case 345:return e.Debug.type(_),L.updatePartiallyEmittedExpression(_,x(_.expression,U,e.isExpression));case 346:return e.Debug.type(_),L.updateCommaListExpression(_,v(_.elements,U,e.isExpression));default:return _}}e.visitEachChild=de;function fe(_){return e.Debug.assert(_.length<=1,"Too many nodes written to output."),e.singleOrUndefined(_)}})(mn||(mn={}));var mn;(function(e){function s(E,ae,X,ie,le){var P=le.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,I=P.enter,re=P.exit,B=[],A=[],f=new e.Map,F,g=[],p,d=[],T="",m=0,k=0,N=0,D=0,R=0,me=0,q=!1,J=0,C=0,we=0,Oe=0,te=0,Te=0,be=!1,Ce=!1,Ue=!1;return{getSources:function(){return B},addSource:Se,setSourceContent:$e,addName:ce,addMapping:pe,appendSourceMap:Me,toJSON:xn,toString:function(){return JSON.stringify(xn())}};function Se(dn){I();var vn=e.getRelativePathToDirectoryOrUrl(ie,dn,E.getCurrentDirectory(),E.getCanonicalFileName,!0),o=f.get(vn);return o===void 0&&(o=A.length,A.push(vn),B.push(dn),f.set(vn,o)),re(),o}function $e(dn,vn){if(I(),vn!==null){for(F||(F=[]);F.length<dn;)F.push(null);F[dn]=vn}re()}function ce(dn){I(),p||(p=new e.Map);var vn=p.get(dn);return vn===void 0&&(vn=g.length,g.push(dn),p.set(dn,vn)),re(),vn}function Le(dn,vn){return!be||J!==dn||C!==vn}function qe(dn,vn,o){return dn!==void 0&&vn!==void 0&&o!==void 0&&we===dn&&(Oe>vn||Oe===vn&&te>o)}function pe(dn,vn,o,Cn,z,tn){e.Debug.assert(dn>=J,"generatedLine cannot backtrack"),e.Debug.assert(vn>=0,"generatedCharacter cannot be negative"),e.Debug.assert(o===void 0||o>=0,"sourceIndex cannot be negative"),e.Debug.assert(Cn===void 0||Cn>=0,"sourceLine cannot be negative"),e.Debug.assert(z===void 0||z>=0,"sourceCharacter cannot be negative"),I(),(Le(dn,vn)||qe(o,Cn,z))&&(Ne(),J=dn,C=vn,Ce=!1,Ue=!1,be=!0),o!==void 0&&Cn!==void 0&&z!==void 0&&(we=o,Oe=Cn,te=z,Ce=!0,tn!==void 0&&(Te=tn,Ue=!0)),re()}function Me(dn,vn,o,Cn,z,tn){e.Debug.assert(dn>=J,"generatedLine cannot backtrack"),e.Debug.assert(vn>=0,"generatedCharacter cannot be negative"),I();for(var $n=[],Un,oe=w(o.mappings),Pe=oe.next();!Pe.done;Pe=oe.next()){var ke=Pe.value;if(tn&&(ke.generatedLine>tn.line||ke.generatedLine===tn.line&&ke.generatedCharacter>tn.character))break;if(z&&(ke.generatedLine<z.line||z.line===ke.generatedLine&&ke.generatedCharacter<z.character))continue;var Qe=void 0,gn=void 0,xe=void 0,Ze=void 0;if(ke.sourceIndex!==void 0){if(Qe=$n[ke.sourceIndex],Qe===void 0){var wn=o.sources[ke.sourceIndex],Be=o.sourceRoot?e.combinePaths(o.sourceRoot,wn):wn,hn=e.combinePaths(e.getDirectoryPath(Cn),Be);$n[ke.sourceIndex]=Qe=Se(hn),o.sourcesContent&&typeof o.sourcesContent[ke.sourceIndex]=="string"&&$e(Qe,o.sourcesContent[ke.sourceIndex])}gn=ke.sourceLine,xe=ke.sourceCharacter,o.names&&ke.nameIndex!==void 0&&(Un||(Un=[]),Ze=Un[ke.nameIndex],Ze===void 0&&(Un[ke.nameIndex]=Ze=ce(o.names[ke.nameIndex])))}var Kn=ke.generatedLine-(z?z.line:0),Je=Kn+dn,En=z&&z.line===ke.generatedLine?ke.generatedCharacter-z.character:ke.generatedCharacter,Nn=Kn===0?En+vn:En;pe(Je,Nn,Qe,gn,xe,Ze)}re()}function fn(){return!q||m!==J||k!==C||N!==we||D!==Oe||R!==te||me!==Te}function Ye(dn){d.push(dn),d.length>=1024&&je()}function Ne(){if(!be||!fn())return;if(I(),m<J){do Ye(59),m++;while(m<J);k=0}else e.Debug.assertEqual(m,J,"generatedLine cannot backtrack"),q&&Ye(44);Wn(C-k),k=C,Ce&&(Wn(we-N),N=we,Wn(Oe-D),D=Oe,Wn(te-R),R=te,Ue&&(Wn(Te-me),me=Te)),q=!0,re()}function je(){d.length>0&&(T+=String.fromCharCode.apply(void 0,d),d.length=0)}function xn(){return Ne(),je(),{version:3,file:ae,sourceRoot:X,sources:A,names:g,mappings:T,sourcesContent:F}}function Wn(dn){dn<0?dn=(-dn<<1)+1:dn=dn<<1;do{var vn=dn&31;dn=dn>>5,dn>0&&(vn=vn|32),Ye(fe(vn))}while(dn>0)}}e.createSourceMapGenerator=s;var ue=/^\/\/[@#] source[M]appingURL=(.+)$/,ee=/^\s*(\/\/[@#] .*)?$/;function Y(E,ae){return{getLineCount:function(){return ae.length},getLineText:function(X){return E.substring(ae[X],ae[X+1])}}}e.getLineInfo=Y;function V(E){for(var ae=E.getLineCount()-1;ae>=0;ae--){var X=E.getLineText(ae),ie=ue.exec(X);if(ie)return e.trimStringEnd(ie[1]);if(!X.match(ee))break}}e.tryGetSourceMappingURL=V;function ne(E){return typeof E=="string"||E===null}function _e(E){return E!==null&&typeof E=="object"&&E.version===3&&typeof E.file=="string"&&typeof E.mappings=="string"&&e.isArray(E.sources)&&e.every(E.sources,e.isString)&&(E.sourceRoot===void 0||E.sourceRoot===null||typeof E.sourceRoot=="string")&&(E.sourcesContent===void 0||E.sourcesContent===null||e.isArray(E.sourcesContent)&&e.every(E.sourcesContent,ne))&&(E.names===void 0||E.names===null||e.isArray(E.names)&&e.every(E.names,e.isString))}e.isRawSourceMap=_e;function O(E){try{var ae=JSON.parse(E);if(_e(ae))return ae}catch(X){}return}e.tryParseRawSourceMap=O;function w(E){var ae=!1,X=0,ie=0,le=0,P=0,I=0,re=0,B=0,A;return{get pos(){return X},get error(){return A},get state(){return f(!0,!0)},next:function(){for(;!ae&&X<E.length;){var k=E.charCodeAt(X);if(k===59){ie++,le=0,X++;continue}if(k===44){X++;continue}var N=!1,D=!1;if(le+=m(),d())return F();if(le<0)return p("Invalid generatedCharacter found");if(!T()){if(N=!0,P+=m(),d())return F();if(P<0)return p("Invalid sourceIndex found");if(T())return p("Unsupported Format: No entries after sourceIndex");if(I+=m(),d())return F();if(I<0)return p("Invalid sourceLine found");if(T())return p("Unsupported Format: No entries after sourceLine");if(re+=m(),d())return F();if(re<0)return p("Invalid sourceCharacter found");if(!T()){if(D=!0,B+=m(),d())return F();if(B<0)return p("Invalid nameIndex found");if(!T())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:f(N,D),done:ae}}return F()}};function f(k,N){return{generatedLine:ie,generatedCharacter:le,sourceIndex:k?P:void 0,sourceLine:k?I:void 0,sourceCharacter:k?re:void 0,nameIndex:N?B:void 0}}function F(){return ae=!0,{value:void 0,done:!0}}function g(k){A===void 0&&(A=k)}function p(k){return g(k),F()}function d(){return A!==void 0}function T(){return X===E.length||E.charCodeAt(X)===44||E.charCodeAt(X)===59}function m(){for(var k=!0,N=0,D=0;k;X++){if(X>=E.length)return g("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var R=_(E.charCodeAt(X));if(R===-1)return g("Invalid character in VLQ"),-1;k=(R&32)!==0,D=D|(R&31)<<N,N+=5}return(D&1)===0?D=D>>1:(D=D>>1,D=-D),D}}e.decodeMappings=w;function b(E,ae){return E===ae||E.generatedLine===ae.generatedLine&&E.generatedCharacter===ae.generatedCharacter&&E.sourceIndex===ae.sourceIndex&&E.sourceLine===ae.sourceLine&&E.sourceCharacter===ae.sourceCharacter&&E.nameIndex===ae.nameIndex}e.sameMapping=b;function de(E){return E.sourceIndex!==void 0&&E.sourceLine!==void 0&&E.sourceCharacter!==void 0}e.isSourceMapping=de;function fe(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:e.Debug.fail(E+": not a base64 value")}function _(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 U(E){return E.sourceIndex!==void 0&&E.sourcePosition!==void 0}function Z(E,ae){return E.generatedPosition===ae.generatedPosition&&E.sourceIndex===ae.sourceIndex&&E.sourcePosition===ae.sourcePosition}function v(E,ae){return e.Debug.assert(E.sourceIndex===ae.sourceIndex),e.compareValues(E.sourcePosition,ae.sourcePosition)}function W(E,ae){return e.compareValues(E.generatedPosition,ae.generatedPosition)}function x(E){return E.sourcePosition}function $(E){return E.generatedPosition}function L(E,ae,X){var ie=e.getDirectoryPath(X),le=ae.sourceRoot?e.getNormalizedAbsolutePath(ae.sourceRoot,ie):ie,P=e.getNormalizedAbsolutePath(ae.file,ie),I=E.getSourceFileLike(P),re=ae.sources.map(function(N){return e.getNormalizedAbsolutePath(N,le)}),B=new e.Map(re.map(function(N,D){return[E.getCanonicalFileName(N),D]})),A,f,F;return{getSourcePosition:k,getGeneratedPosition:m};function g(N){var D=I!==void 0?e.getPositionOfLineAndCharacter(I,N.generatedLine,N.generatedCharacter,!0):-1,R,me;if(de(N)){var q=E.getSourceFileLike(re[N.sourceIndex]);R=ae.sources[N.sourceIndex],me=q!==void 0?e.getPositionOfLineAndCharacter(q,N.sourceLine,N.sourceCharacter,!0):-1}return{generatedPosition:D,source:R,sourceIndex:N.sourceIndex,sourcePosition:me,nameIndex:N.nameIndex}}function p(){if(A===void 0){var N=w(ae.mappings),D=e.arrayFrom(N,g);N.error!==void 0?(E.log&&E.log("Encountered error while decoding sourcemap: "+N.error),A=e.emptyArray):A=D}return A}function d(N){if(F===void 0){for(var D=[],R=0,me=p();R<me.length;R++){var q=me[R];if(!U(q))continue;var J=D[q.sourceIndex];J||(D[q.sourceIndex]=J=[]),J.push(q)}F=D.map(function(C){return e.sortAndDeduplicate(C,v,Z)})}return F[N]}function T(){if(f===void 0){for(var N=[],D=0,R=p();D<R.length;D++){var me=R[D];N.push(me)}f=e.sortAndDeduplicate(N,W,Z)}return f}function m(N){var D=B.get(E.getCanonicalFileName(N.fileName));if(D===void 0)return N;var R=d(D);if(!e.some(R))return N;var me=e.binarySearchKey(R,N.pos,x,e.compareValues);me<0&&(me=~me);var q=R[me];return q===void 0||q.sourceIndex!==D?N:{fileName:P,pos:q.generatedPosition}}function k(N){var D=T();if(!e.some(D))return N;var R=e.binarySearchKey(D,N.pos,$,e.compareValues);R<0&&(R=~R);var me=D[R];return me===void 0||!U(me)?N:{fileName:re[me.sourceIndex],pos:me.sourcePosition}}}e.createDocumentPositionMapper=L,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(mn||(mn={}));var mn;(function(e){function s(X){return X=e.getOriginalNode(X),X?e.getNodeId(X):0}e.getOriginalNodeId=s;function ue(X){return X&&e.isNamedImports(X)?e.some(X.elements,ee):!1}function ee(X){return X.propertyName!==void 0&&X.propertyName.escapedText==="default"}function Y(X,ie){return le;function le(I){return I.kind===300?ie(I):P(I)}function P(I){return X.factory.createBundle(e.map(I.sourceFiles,ie),I.prepends)}}e.chainBundle=Y;function V(X){return!!e.getNamespaceDeclarationNode(X)}e.getExportNeedsImportStarHelper=V;function ne(X){if(e.getNamespaceDeclarationNode(X))return!0;var ie=X.importClause&&X.importClause.namedBindings;if(!ie)return!1;if(!e.isNamedImports(ie))return!1;for(var le=0,P=0,I=ie.elements;P<I.length;P++){var re=I[P];ee(re)&&le++}return le>0&&le!==ie.elements.length||!!(ie.elements.length-le)&&e.isDefaultImport(X)}e.getImportNeedsImportStarHelper=ne;function _e(X){return!ne(X)&&(e.isDefaultImport(X)||!!X.importClause&&e.isNamedImports(X.importClause.namedBindings)&&ue(X.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=_e;function O(X,ie,le,P){for(var I=[],re=e.createMultiMap(),B=[],A=new e.Map,f,F=!1,g,p=!1,d=!1,T=!1,m=0,k=ie.statements;m<k.length;m++){var N=k[m];switch(N.kind){case 264:I.push(N),!d&&ne(N)&&(d=!0),!T&&_e(N)&&(T=!0);break;case 263:N.moduleReference.kind===275&&I.push(N);break;case 270:if(N.moduleSpecifier)if(!N.exportClause)I.push(N),p=!0;else if(I.push(N),e.isNamedExports(N.exportClause))C(N);else{var D=N.exportClause.name;A.get(e.idText(D))||(b(B,s(N),D),A.set(e.idText(D),!0),f=e.append(f,D)),d=!0}else C(N);break;case 269:N.isExportEquals&&!g&&(g=N);break;case 235:if(e.hasSyntacticModifier(N,1))for(var R=0,me=N.declarationList.declarations;R<me.length;R++){var q=me[R];f=w(q,A,f)}break;case 254:if(e.hasSyntacticModifier(N,1))if(e.hasSyntacticModifier(N,512))F||(b(B,s(N),X.factory.getDeclarationName(N)),F=!0);else{var D=N.name;A.get(e.idText(D))||(b(B,s(N),D),A.set(e.idText(D),!0),f=e.append(f,D))}break;case 255:if(e.hasSyntacticModifier(N,1))if(e.hasSyntacticModifier(N,512))F||(b(B,s(N),X.factory.getDeclarationName(N)),F=!0);else{var D=N.name;D&&!A.get(e.idText(D))&&(b(B,s(N),D),A.set(e.idText(D),!0),f=e.append(f,D))}break}}var J=e.createExternalHelpersImportDeclarationIfNeeded(X.factory,X.getEmitHelperFactory(),ie,P,p,d,T);return J&&I.unshift(J),{externalImports:I,exportSpecifiers:re,exportEquals:g,hasExportStarsToExportValues:p,exportedBindings:B,exportedNames:f,externalHelpersImportDeclaration:J};function C(we){for(var Oe=0,te=e.cast(we.exportClause,e.isNamedExports).elements;Oe<te.length;Oe++){var Te=te[Oe];if(!A.get(e.idText(Te.name))){var be=Te.propertyName||Te.name;we.moduleSpecifier||re.add(e.idText(be),Te);var Ce=le.getReferencedImportDeclaration(be)||le.getReferencedValueDeclaration(be);Ce&&b(B,s(Ce),Te.name),A.set(e.idText(Te.name),!0),f=e.append(f,Te.name)}}}}e.collectExternalModuleInfo=O;function w(X,ie,le){if(e.isBindingPattern(X.name))for(var P=0,I=X.name.elements;P<I.length;P++){var re=I[P];e.isOmittedExpression(re)||(le=w(re,ie,le))}else if(!e.isGeneratedIdentifier(X.name)){var B=e.idText(X.name);ie.get(B)||(ie.set(B,!0),le=e.append(le,X.name))}return le}function b(X,ie,le){var P=X[ie];return P?P.push(le):X[ie]=P=[le],P}function de(X){return e.isStringLiteralLike(X)||X.kind===8||e.isKeyword(X.kind)||e.isIdentifier(X)}e.isSimpleCopiableExpression=de;function fe(X){return!e.isIdentifier(X)&&de(X)}e.isSimpleInlineableExpression=fe;function _(X){return X>=64&&X<=78}e.isCompoundAssignment=_;function U(X){switch(X){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=U;function Z(X,ie,le,P){if(ie.body){var I=ie.body.statements,re=X.copyPrologue(I,le,!1,P);if(re===I.length)return re;var B=e.findIndex(I,function(f){return e.isExpressionStatement(f)&&e.isSuperCall(f.expression)},re);if(B>-1){for(var A=re;A<=B;A++)le.push(e.visitNode(I[A],P,e.isStatement));return B+1}return re}return 0}e.addPrologueDirectivesAndInitialSuperCall=Z;function v(X,ie,le){return e.filter(X.members,function(P){return $(P,ie,le)})}e.getProperties=v;function W(X){return L(X)||e.isClassStaticBlockDeclaration(X)}function x(X){return e.filter(X.members,W)}e.getStaticPropertiesAndClassStaticBlock=x;function $(X,ie,le){return e.isPropertyDeclaration(X)&&(!!X.initializer||!ie)&&e.hasStaticModifier(X)===le}function L(X){return e.isPropertyDeclaration(X)&&e.hasStaticModifier(X)}function E(X){return X.kind===165&&X.initializer!==void 0}e.isInitializedProperty=E;function ae(X){return!e.isStatic(X)&&e.isMethodOrAccessor(X)&&e.isPrivateIdentifier(X.name)}e.isNonStaticMethodOrAccessorWithPrivateName=ae})(mn||(mn={}));var mn;(function(e){var s;(function(E){E[E.All=0]="All",E[E.ObjectRest=1]="ObjectRest"})(s=e.FlattenLevel||(e.FlattenLevel={}));function ue(E,ae,X,ie,le,P){var I=E,re;if(e.isDestructuringAssignment(E))for(re=E.right;e.isEmptyArrayLiteral(E.left)||e.isEmptyObjectLiteral(E.left);)if(e.isDestructuringAssignment(re))I=E=re,re=E.right;else return e.visitNode(re,ae,e.isExpression);var B,A={context:X,level:ie,downlevelIteration:!!X.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:f,emitBindingOrAssignment:F,createArrayBindingOrAssignmentPattern:function(g){return v(X.factory,g)},createObjectBindingOrAssignmentPattern:function(g){return x(X.factory,g)},createArrayBindingOrAssignmentElement:L,visitor:ae};if(re&&(re=e.visitNode(re,ae,e.isExpression),e.isIdentifier(re)&&ee(E,re.escapedText)||V(E)?re=U(A,re,!1,I):le?re=U(A,re,!0,I):e.nodeIsSynthesized(E)&&(I=re)),O(A,E,re,I,e.isDestructuringAssignment(E)),re&&le){if(!e.some(B))return re;B.push(re)}return X.factory.inlineExpressions(B)||X.factory.createOmittedExpression();function f(g){B=e.append(B,g)}function F(g,p,d,T){e.Debug.assertNode(g,P?e.isIdentifier:e.isExpression);var m=P?P(g,p,d):e.setTextRange(X.factory.createAssignment(e.visitNode(g,ae,e.isExpression),p),d);m.original=T,f(m)}}e.flattenDestructuringAssignment=ue;function ee(E,ae){var X=e.getTargetOfBindingOrAssignmentElement(E);return e.isBindingOrAssignmentPattern(X)?Y(X,ae):e.isIdentifier(X)?X.escapedText===ae:!1}function Y(E,ae){for(var X=e.getElementsOfBindingOrAssignmentPattern(E),ie=0,le=X;ie<le.length;ie++){var P=le[ie];if(ee(P,ae))return!0}return!1}function V(E){var ae=e.tryGetPropertyNameOfBindingOrAssignmentElement(E);if(ae&&e.isComputedPropertyName(ae)&&!e.isLiteralExpression(ae.expression))return!0;var X=e.getTargetOfBindingOrAssignmentElement(E);return!!X&&e.isBindingOrAssignmentPattern(X)&&ne(X)}function ne(E){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(E),V)}function _e(E,ae,X,ie,le,P,I){P===void 0&&(P=!1);var re,B=[],A=[],f={context:X,level:ie,downlevelIteration:!!X.getCompilerOptions().downlevelIteration,hoistTempVariables:P,emitExpression:J,emitBindingOrAssignment:C,createArrayBindingOrAssignmentPattern:function(we){return Z(X.factory,we)},createObjectBindingOrAssignmentPattern:function(we){return W(X.factory,we)},createArrayBindingOrAssignmentElement:function(we){return $(X.factory,we)},visitor:ae};if(e.isVariableDeclaration(E)){var F=e.getInitializerOfBindingOrAssignmentElement(E);F&&(e.isIdentifier(F)&&ee(E,F.escapedText)||V(E))&&(F=U(f,e.visitNode(F,f.visitor),!1,F),E=X.factory.updateVariableDeclaration(E,E.name,void 0,void 0,F))}if(O(f,E,le,E,I),re){var g=X.factory.createTempVariable(void 0);if(P){var p=X.factory.inlineExpressions(re);re=void 0,C(g,p,void 0,void 0)}else{X.hoistVariableDeclaration(g);var d=e.last(B);d.pendingExpressions=e.append(d.pendingExpressions,X.factory.createAssignment(g,d.value)),e.addRange(d.pendingExpressions,re),d.value=g}}for(var T=0,m=B;T<m.length;T++){var k=m[T],N=k.pendingExpressions,D=k.name,p=k.value,R=k.location,me=k.original,q=X.factory.createVariableDeclaration(D,void 0,void 0,N?X.factory.inlineExpressions(e.append(N,p)):p);q.original=me,e.setTextRange(q,R),A.push(q)}return A;function J(we){re=e.append(re,we)}function C(we,Oe,te,Te){e.Debug.assertNode(we,e.isBindingName),re&&(Oe=X.factory.inlineExpressions(e.append(re,Oe)),re=void 0),B.push({pendingExpressions:re,name:we,value:Oe,location:te,original:Te})}}e.flattenDestructuringBinding=_e;function O(E,ae,X,ie,le){var P=e.getTargetOfBindingOrAssignmentElement(ae);if(!le){var I=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(ae),E.visitor,e.isExpression);I?X?(X=fe(E,X,I,ie),!e.isSimpleInlineableExpression(I)&&e.isBindingOrAssignmentPattern(P)&&(X=U(E,X,!0,ie))):X=I:X||(X=E.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(P)?w(E,ae,P,X,ie):e.isArrayBindingOrAssignmentPattern(P)?b(E,ae,P,X,ie):E.emitBindingOrAssignment(P,X,ie,ae)}function w(E,ae,X,ie,le){var P=e.getElementsOfBindingOrAssignmentPattern(X),I=P.length;if(I!==1){var re=!e.isDeclarationBindingElement(ae)||I!==0;ie=U(E,ie,re,le)}for(var B,A,f=0;f<I;f++){var F=P[f];if(e.getRestIndicatorOfBindingOrAssignmentElement(F)){if(f===I-1){B&&(E.emitBindingOrAssignment(E.createObjectBindingOrAssignmentPattern(B),ie,le,X),B=void 0);var p=E.context.getEmitHelperFactory().createRestHelper(ie,P,A,X);O(E,F,p,F)}}else{var g=e.getPropertyNameOfBindingOrAssignmentElement(F);if(E.level>=1&&!(F.transformFlags&(16384|32768))&&!(e.getTargetOfBindingOrAssignmentElement(F).transformFlags&(16384|32768))&&!e.isComputedPropertyName(g))B=e.append(B,e.visitNode(F,E.visitor));else{B&&(E.emitBindingOrAssignment(E.createObjectBindingOrAssignmentPattern(B),ie,le,X),B=void 0);var p=_(E,ie,g);e.isComputedPropertyName(g)&&(A=e.append(A,p.argumentExpression)),O(E,F,p,F)}}}B&&E.emitBindingOrAssignment(E.createObjectBindingOrAssignmentPattern(B),ie,le,X)}function b(E,ae,X,ie,le){var P=e.getElementsOfBindingOrAssignmentPattern(X),I=P.length;if(E.level<1&&E.downlevelIteration)ie=U(E,e.setTextRange(E.context.getEmitHelperFactory().createReadHelper(ie,I>0&&e.getRestIndicatorOfBindingOrAssignmentElement(P[I-1])?void 0:I),le),!1,le);else if(I!==1&&(E.level<1||I===0)||e.every(P,e.isOmittedExpression)){var re=!e.isDeclarationBindingElement(ae)||I!==0;ie=U(E,ie,re,le)}for(var B,A,f=0;f<I;f++){var F=P[f];if(E.level>=1)if(F.transformFlags&32768||E.hasTransformedPriorElement&&!de(F)){E.hasTransformedPriorElement=!0;var g=E.context.factory.createTempVariable(void 0);E.hoistTempVariables&&E.context.hoistVariableDeclaration(g),A=e.append(A,[g,F]),B=e.append(B,E.createArrayBindingOrAssignmentElement(g))}else B=e.append(B,F);else{if(e.isOmittedExpression(F))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(F)){if(f===I-1){var p=E.context.factory.createArraySliceCall(ie,f);O(E,F,p,F)}}else{var p=E.context.factory.createElementAccessExpression(ie,f);O(E,F,p,F)}}}if(B&&E.emitBindingOrAssignment(E.createArrayBindingOrAssignmentPattern(B),ie,le,X),A)for(var d=0,T=A;d<T.length;d++){var m=T[d],k=m[0],F=m[1];O(E,F,k,F)}}function de(E){var ae=e.getTargetOfBindingOrAssignmentElement(E);if(!ae||e.isOmittedExpression(ae))return!0;var X=e.tryGetPropertyNameOfBindingOrAssignmentElement(E);if(X&&!e.isPropertyNameLiteral(X))return!1;var ie=e.getInitializerOfBindingOrAssignmentElement(E);return ie&&!e.isSimpleInlineableExpression(ie)?!1:e.isBindingOrAssignmentPattern(ae)?e.every(e.getElementsOfBindingOrAssignmentPattern(ae),de):e.isIdentifier(ae)}function fe(E,ae,X,ie){return ae=U(E,ae,!0,ie),E.context.factory.createConditionalExpression(E.context.factory.createTypeCheck(ae,"undefined"),void 0,X,void 0,ae)}function _(E,ae,X){if(e.isComputedPropertyName(X)){var ie=U(E,e.visitNode(X.expression,E.visitor),!1,X);return E.context.factory.createElementAccessExpression(ae,ie)}else if(e.isStringOrNumericLiteralLike(X)){var ie=e.factory.cloneNode(X);return E.context.factory.createElementAccessExpression(ae,ie)}else{var le=E.context.factory.createIdentifier(e.idText(X));return E.context.factory.createPropertyAccessExpression(ae,le)}}function U(E,ae,X,ie){if(e.isIdentifier(ae)&&X)return ae;var le=E.context.factory.createTempVariable(void 0);return E.hoistTempVariables?(E.context.hoistVariableDeclaration(le),E.emitExpression(e.setTextRange(E.context.factory.createAssignment(le,ae),ie))):E.emitBindingOrAssignment(le,ae,ie,void 0),le}function Z(E,ae){return e.Debug.assertEachNode(ae,e.isArrayBindingElement),E.createArrayBindingPattern(ae)}function v(E,ae){return E.createArrayLiteralExpression(e.map(ae,E.converters.convertToArrayAssignmentElement))}function W(E,ae){return e.Debug.assertEachNode(ae,e.isBindingElement),E.createObjectBindingPattern(ae)}function x(E,ae){return E.createObjectLiteralExpression(e.map(ae,E.converters.convertToObjectAssignmentElement))}function $(E,ae){return E.createBindingElement(void 0,void 0,ae)}function L(E){return E}})(mn||(mn={}));var mn;(function(e){var s;(function(V){V[V.LiftRestriction=0]="LiftRestriction",V[V.All=1]="All"})(s=e.ProcessLevel||(e.ProcessLevel={}));function ue(V,ne,_e,O,w,b){var de=e.visitNode(ne.tag,_e,e.isExpression),fe=[void 0],_=[],U=[],Z=ne.template;if(b===s.LiftRestriction&&!e.hasInvalidEscape(Z))return e.visitEachChild(ne,_e,V);if(e.isNoSubstitutionTemplateLiteral(Z))_.push(ee(Z)),U.push(Y(Z,O));else{_.push(ee(Z.head)),U.push(Y(Z.head,O));for(var v=0,W=Z.templateSpans;v<W.length;v++){var x=W[v];_.push(ee(x.literal)),U.push(Y(x.literal,O)),fe.push(e.visitNode(x.expression,_e,e.isExpression))}}var $=V.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(_),e.factory.createArrayLiteralExpression(U));if(e.isExternalModule(O)){var L=e.factory.createUniqueName("templateObject");w(L),fe[0]=e.factory.createLogicalOr(L,e.factory.createAssignment(L,$))}else fe[0]=$;return e.factory.createCallExpression(de,void 0,fe)}e.processTaggedTemplateExpression=ue;function ee(V){return V.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(V.text)}function Y(V,ne){var _e=V.rawText;if(_e===void 0){e.Debug.assertIsDefined(ne,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),_e=e.getSourceTextOfNodeFromSourceFile(ne,V);var O=V.kind===14||V.kind===17;_e=_e.substring(1,_e.length-(O?1:2))}return _e=_e.replace(/\r\n?/g,`
|
|
|
`),e.setTextRange(e.factory.createStringLiteral(_e),V)}})(mn||(mn={}));var mn;(function(e){var s=!1,ue;(function(V){V[V.ClassAliases=1]="ClassAliases",V[V.NamespaceExports=2]="NamespaceExports",V[V.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(ue||(ue={}));var ee;(function(V){V[V.None=0]="None",V[V.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",V[V.HasConstructorDecorators=2]="HasConstructorDecorators",V[V.HasMemberDecorators=4]="HasMemberDecorators",V[V.IsExportOfNamespace=8]="IsExportOfNamespace",V[V.IsNamedExternalExport=16]="IsNamedExternalExport",V[V.IsDefaultExternalExport=32]="IsDefaultExternalExport",V[V.IsDerivedClass=64]="IsDerivedClass",V[V.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",V[V.HasAnyDecorators=6]="HasAnyDecorators",V[V.NeedsName=5]="NeedsName",V[V.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",V[V.IsExported=56]="IsExported"})(ee||(ee={}));function Y(V){var ne=V.factory,_e=V.getEmitHelperFactory,O=V.startLexicalEnvironment,w=V.resumeLexicalEnvironment,b=V.endLexicalEnvironment,de=V.hoistVariableDeclaration,fe=V.getEmitResolver(),_=V.getCompilerOptions(),U=e.getStrictOptionValue(_,"strictNullChecks"),Z=e.getEmitScriptTarget(_),v=e.getEmitModuleKind(_),W=V.onEmitNode,x=V.onSubstituteNode;V.onEmitNode=Oi,V.onSubstituteNode=Io,V.enableSubstitution(204),V.enableSubstitution(205);var $,L,E,ae,X,ie,le,P,I,re;return B;function B(He){return He.kind===301?A(He):f(He)}function A(He){return ne.createBundle(He.sourceFiles.map(f),e.mapDefined(He.prepends,function(se){return se.kind===303?e.createUnparsedSourceFile(se,"js"):se}))}function f(He){if(He.isDeclarationFile)return He;$=He;var se=F(He,C);return e.addEmitHelpers(se,V.readEmitHelpers()),$=void 0,se}function F(He,se){var pn=ae,j=X,De=ie,Ve=le;g(He);var un=se(He);return ae!==pn&&(ie=De),ae=pn,X=j,le=Ve,un}function g(He){switch(He.kind){case 300:case 261:case 260:case 233:ae=He,X=void 0,ie=void 0;break;case 255:case 254:if(e.hasSyntacticModifier(He,2))break;He.name?eo(He):e.Debug.assert(He.kind===255||e.hasSyntacticModifier(He,512)),e.isClassDeclaration(He)&&(X=He);break}}function p(He){return F(He,d)}function d(He){return He.transformFlags&1?J(He):He}function T(He){return F(He,m)}function m(He){switch(He.kind){case 264:case 263:case 269:case 270:return k(He);default:return d(He)}}function k(He){var se=e.getParseTreeNode(He);if(se!==He)return He.transformFlags&1?e.visitEachChild(He,p,V):He;switch(He.kind){case 264:return ra(He);case 263:return Qr(He);case 269:return Qt(He);case 270:return sr(He);default:e.Debug.fail("Unhandled ellided statement")}}function N(He){return F(He,D)}function D(He){return He.kind===270||He.kind===264||He.kind===265||He.kind===263&&He.moduleReference.kind===275?void 0:He.transformFlags&1||e.hasSyntacticModifier(He,1)?J(He):He}function R(He){return F(He,me)}function me(He){switch(He.kind){case 169:return Yn(He);case 165:return rt(He);case 174:case 170:case 171:case 167:case 168:return d(He);case 232:return He;default:return e.Debug.failBadSyntaxKind(He)}}function q(He){return e.modifierToFlag(He.kind)&18654||L&&He.kind===93?void 0:He}function J(He){if(e.isStatement(He)&&e.hasSyntacticModifier(He,2))return ne.createNotEmittedStatement(He);switch(He.kind){case 93:case 88:return L?void 0:He;case 123:case 121:case 122:case 126:case 157:case 85:case 134:case 143:case 181:case 182:case 183:case 184:case 180:case 175:case 161:case 129:case 153:case 132:case 148:case 145:case 142:case 114:case 149:case 178:case 177:case 179:case 176:case 185:case 186:case 187:case 189:case 190:case 191:case 192:case 193:case 194:case 174:case 163:return;case 257:return ne.createNotEmittedStatement(He);case 165:return rt(He);case 262:return;case 169:return Yn(He);case 256:return ne.createNotEmittedStatement(He);case 255:return Te(He);case 224:return Ue(He);case 289:return Zn(He);case 226:return Re(He);case 167:return Fe(He);case 170:return K(He);case 171:return An(He);case 254:return Fn(He);case 211:return ln(He);case 212:return Ln(He);case 162:return Xe(He);case 210:return it(He);case 209:case 227:return ht(He);case 206:return zt(He);case 207:return fr(He);case 208:return br(He);case 228:return Et(He);case 258:return Xr(He);case 235:return Dn(He);case 252:return qn(He);case 259:return rr(He);case 263:return Qr(He);case 277:return Jt(He);case 278:return mr(He);default:return e.visitEachChild(He,p,V)}}function C(He){var se=e.getStrictOptionValue(_,"alwaysStrict")&&!(e.isExternalModule(He)&&v>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(He);return ne.updateSourceFile(He,e.visitLexicalEnvironment(He.statements,T,V,0,se))}function we(He,se){var pn=0;e.some(se)&&(pn|=1);var j=e.getEffectiveBaseTypeNode(He);return j&&e.skipOuterExpressions(j.expression).kind!==104&&(pn|=64),e.classOrConstructorParameterIsDecorated(He)&&(pn|=2),e.childIsDecorated(He)&&(pn|=4),ci(He)?pn|=8:xi(He)?pn|=32:ro(He)&&(pn|=16),Z<=1&&pn&7&&(pn|=128),pn}function Oe(He){return!!(He.transformFlags&4096)}function te(He){return e.some(He.decorators)||e.some(He.typeParameters)||e.some(He.heritageClauses,Oe)||e.some(He.members,Oe)}function Te(He){if(!te(He)&&!(L&&e.hasSyntacticModifier(He,1)))return e.visitEachChild(He,p,V);var se=e.getProperties(He,!0,!0),pn=we(He,se);pn&128&&V.startLexicalEnvironment();var j=He.name||(pn&5?ne.getGeneratedNameForNode(He):void 0),De=pn&2?Ce(He,j):be(He,j,pn),Ve=[De];if(Wn(Ve,He,!1),Wn(Ve,He,!0),o(Ve,He),pn&128){var un=e.createTokenRange(e.skipTrivia($.text,He.members.end),19),jn=ne.getInternalName(He),mt=ne.createPartiallyEmittedExpression(jn);e.setTextRangeEnd(mt,un.end),e.setEmitFlags(mt,1536);var St=ne.createReturnStatement(mt);e.setTextRangePos(St,un.pos),e.setEmitFlags(St,1536|384),Ve.push(St),e.insertStatementsAfterStandardPrologue(Ve,V.endLexicalEnvironment());var ir=ne.createImmediatelyInvokedArrowFunction(Ve);e.setEmitFlags(ir,33554432);var _r=ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(ne.getLocalName(He,!1,!1),void 0,void 0,ir)]));e.setOriginalNode(_r,He),e.setCommentRange(_r,He),e.setSourceMapRange(_r,e.moveRangePastDecorators(He)),e.startOnNewLine(_r),Ve=[_r]}return pn&8?lo(Ve,He):(pn&128||pn&2)&&(pn&32?Ve.push(ne.createExportDefault(ne.getLocalName(He,!1,!0))):pn&16&&Ve.push(ne.createExternalModuleExport(ne.getLocalName(He,!1,!0)))),Ve.length>1&&(Ve.push(ne.createEndOfDeclarationMarker(He)),e.setEmitFlags(De,e.getEmitFlags(De)|4194304)),e.singleOrMany(Ve)}function be(He,se,pn){var j=pn&128?void 0:e.visitNodes(He.modifiers,q,e.isModifier),De=ne.createClassDeclaration(void 0,j,se,void 0,e.visitNodes(He.heritageClauses,p,e.isHeritageClause),Se(He)),Ve=e.getEmitFlags(He);return pn&1&&(Ve|=32),e.setTextRange(De,He),e.setOriginalNode(De,He),e.setEmitFlags(De,Ve),De}function Ce(He,se){var pn=e.moveRangePastDecorators(He),j=Rs(He),De=Z<=2?ne.getInternalName(He,!1,!0):ne.getLocalName(He,!1,!0),Ve=e.visitNodes(He.heritageClauses,p,e.isHeritageClause),un=Se(He),jn=ne.createClassExpression(void 0,void 0,se,void 0,Ve,un);e.setOriginalNode(jn,He),e.setTextRange(jn,pn);var mt=ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(De,void 0,void 0,j?ne.createAssignment(j,jn):jn)],1));return e.setOriginalNode(mt,He),e.setTextRange(mt,pn),e.setCommentRange(mt,He),mt}function Ue(He){if(!te(He))return e.visitEachChild(He,p,V);var se=ne.createClassExpression(void 0,void 0,He.name,void 0,e.visitNodes(He.heritageClauses,p,e.isHeritageClause),Se(He));return e.setOriginalNode(se,He),e.setTextRange(se,He),se}function Se(He){var se=[],pn=e.getFirstConstructorWithBody(He),j=pn&&e.filter(pn.parameters,function(jn){return e.isParameterPropertyDeclaration(jn,pn)});if(j)for(var De=0,Ve=j;De<Ve.length;De++){var un=Ve[De];e.isIdentifier(un.name)&&se.push(e.setOriginalNode(ne.createPropertyDeclaration(void 0,void 0,un.name,void 0,void 0,void 0),un))}return e.addRange(se,e.visitNodes(He.members,R,e.isClassElement)),e.setTextRange(ne.createNodeArray(se),He.members)}function $e(He,se){return e.filter(He.members,se?function(pn){return ce(pn,He)}:function(pn){return Le(pn,He)})}function ce(He,se){return qe(He,!0,se)}function Le(He,se){return qe(He,!1,se)}function qe(He,se,pn){return e.nodeOrChildIsDecorated(He,pn)&&se===e.isStatic(He)}function pe(He){var se;if(He)for(var pn=He.parameters,j=pn.length>0&&e.parameterIsThisKeyword(pn[0]),De=j?1:0,Ve=j?pn.length-1:pn.length,un=0;un<Ve;un++){var jn=pn[un+De];(se||jn.decorators)&&(se||(se=new Array(Ve)),se[un]=jn.decorators)}return se}function Me(He){var se=He.decorators,pn=pe(e.getFirstConstructorWithBody(He));return!se&&!pn?void 0:{decorators:se,parameters:pn}}function fn(He,se){switch(se.kind){case 170:case 171:return Ye(He,se);case 167:return Ne(se);case 165:return je(se);default:return}}function Ye(He,se){if(!se.body)return;var pn=e.getAllAccessorDeclarations(He.members,se),j=pn.firstAccessor,De=pn.secondAccessor,Ve=pn.setAccessor,un=j.decorators?j:De&&De.decorators?De:void 0;if(!un||se!==un)return;var jn=un.decorators,mt=pe(Ve);return!jn&&!mt?void 0:{decorators:jn,parameters:mt}}function Ne(He){if(!He.body)return;var se=He.decorators,pn=pe(He);return!se&&!pn?void 0:{decorators:se,parameters:pn}}function je(He){var se=He.decorators;return se?{decorators:se}:void 0}function xn(He,se,pn){if(!pn)return;var j=[];return e.addRange(j,e.map(pn.decorators,z)),e.addRange(j,e.flatMap(pn.parameters,tn)),$n(He,se,j),j}function Wn(He,se,pn){e.addRange(He,e.map(dn(se,pn),ui))}function dn(He,se){for(var pn=$e(He,se),j,De=0,Ve=pn;De<Ve.length;De++){var un=Ve[De],jn=vn(He,un);jn&&(j?j.push(jn):j=[jn])}return j}function vn(He,se){var pn=fn(He,se),j=xn(se,He,pn);if(!j)return;var De=Ca(He,se),Ve=Ke(se,!0),un=Z>0?se.kind===165?ne.createVoidZero():ne.createNull():void 0,jn=_e().createDecorateHelper(j,De,Ve,un);return e.setTextRange(jn,e.moveRangePastDecorators(se)),e.setEmitFlags(jn,1536),jn}function o(He,se){var pn=Cn(se);pn&&He.push(e.setOriginalNode(ne.createExpressionStatement(pn),se))}function Cn(He){var se=Me(He),pn=xn(He,He,se);if(!pn)return;var j=I&&I[e.getOriginalNodeId(He)],De=Z<=2?ne.getInternalName(He,!1,!0):ne.getLocalName(He,!1,!0),Ve=_e().createDecorateHelper(pn,De),un=ne.createAssignment(De,j?ne.createAssignment(j,Ve):Ve);return e.setEmitFlags(un,1536),e.setSourceMapRange(un,e.moveRangePastDecorators(He)),un}function z(He){return e.visitNode(He.expression,p,e.isExpression)}function tn(He,se){var pn;if(He){pn=[];for(var j=0,De=He;j<De.length;j++){var Ve=De[j],un=_e().createParamHelper(z(Ve),se);e.setTextRange(un,Ve.expression),e.setEmitFlags(un,1536),pn.push(un)}}return pn}function $n(He,se,pn){s?oe(He,se,pn):Un(He,se,pn)}function Un(He,se,pn){_.emitDecoratorMetadata&&(Pe(He)&&pn.push(_e().createMetadataHelper("design:type",xe(He))),Qe(He)&&pn.push(_e().createMetadataHelper("design:paramtypes",Ze(He,se))),ke(He)&&pn.push(_e().createMetadataHelper("design:returntype",Be(He))))}function oe(He,se,pn){if(_.emitDecoratorMetadata){var j=void 0;Pe(He)&&(j||(j=[])).push(ne.createPropertyAssignment("type",ne.createArrowFunction(void 0,void 0,[],void 0,ne.createToken(38),xe(He)))),Qe(He)&&(j||(j=[])).push(ne.createPropertyAssignment("paramTypes",ne.createArrowFunction(void 0,void 0,[],void 0,ne.createToken(38),Ze(He,se)))),ke(He)&&(j||(j=[])).push(ne.createPropertyAssignment("returnType",ne.createArrowFunction(void 0,void 0,[],void 0,ne.createToken(38),Be(He)))),j&&pn.push(_e().createMetadataHelper("design:typeinfo",ne.createObjectLiteralExpression(j,!0)))}}function Pe(He){var se=He.kind;return se===167||se===170||se===171||se===165}function ke(He){return He.kind===167}function Qe(He){switch(He.kind){case 255:case 224:return e.getFirstConstructorWithBody(He)!==void 0;case 167:case 170:case 171:return!0}return!1}function gn(He){var se=fe.getAllAccessorDeclarations(He);return se.setAccessor&&e.getSetAccessorTypeAnnotationNode(se.setAccessor)||se.getAccessor&&e.getEffectiveReturnTypeNode(se.getAccessor)}function xe(He){switch(He.kind){case 165:case 162:return hn(He.type);case 171:case 170:return hn(gn(He));case 255:case 224:case 167:return ne.createIdentifier("Function");default:return ne.createVoidZero()}}function Ze(He,se){var pn=e.isClassLike(He)?e.getFirstConstructorWithBody(He):e.isFunctionLike(He)&&e.nodeIsPresent(He.body)?He:void 0,j=[];if(pn)for(var De=wn(pn,se),Ve=De.length,un=0;un<Ve;un++){var jn=De[un];if(un===0&&e.isIdentifier(jn.name)&&jn.name.escapedText==="this")continue;jn.dotDotDotToken?j.push(hn(e.getRestParameterElementType(jn.type))):j.push(xe(jn))}return ne.createArrayLiteralExpression(j)}function wn(He,se){if(se&&He.kind===170){var pn=e.getAllAccessorDeclarations(se.members,He).setAccessor;if(pn)return pn.parameters}return He.parameters}function Be(He){return e.isFunctionLike(He)&&He.type?hn(He.type):e.isAsyncFunction(He)?ne.createIdentifier("Promise"):ne.createVoidZero()}function hn(He){if(He===void 0)return ne.createIdentifier("Object");switch(He.kind){case 114:case 151:case 142:return ne.createVoidZero();case 189:return hn(He.type);case 177:case 178:return ne.createIdentifier("Function");case 181:case 182:return ne.createIdentifier("Array");case 175:case 132:return ne.createIdentifier("Boolean");case 148:return ne.createIdentifier("String");case 146:return ne.createIdentifier("Object");case 194:switch(He.literal.kind){case 10:case 14:return ne.createIdentifier("String");case 217:case 8:return ne.createIdentifier("Number");case 9:return $t();case 110:case 95:return ne.createIdentifier("Boolean");case 104:return ne.createVoidZero();default:return e.Debug.failBadSyntaxKind(He.literal)}case 145:return ne.createIdentifier("Number");case 156:return $t();case 149:return Z<2?Gt():ne.createIdentifier("Symbol");case 176:return Je(He);case 186:case 185:return Kn(He.types);case 187:return Kn([He.trueType,He.falseType]);case 191:if(He.operator===143)return hn(He.type);break;case 179:case 192:case 193:case 180:case 129:case 153:case 190:case 198:break;case 307:case 308:case 312:case 313:case 314:break;case 309:case 310:case 311:return hn(He.type);default:return e.Debug.failBadSyntaxKind(He)}return ne.createIdentifier("Object")}function Kn(He){for(var se,pn=0,j=He;pn<j.length;pn++){for(var De=j[pn];De.kind===189;)De=De.type;if(De.kind===142)continue;if(!U&&(De.kind===194&&De.literal.kind===104||De.kind===151))continue;var Ve=hn(De);if(e.isIdentifier(Ve)&&Ve.escapedText==="Object")return Ve;if(se){if(!e.isIdentifier(se)||!e.isIdentifier(Ve)||se.escapedText!==Ve.escapedText)return ne.createIdentifier("Object")}else se=Ve}return se||ne.createVoidZero()}function Je(He){var se=fe.getTypeReferenceSerializationKind(He.typeName,X||ae);switch(se){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(He,function(De){return De.parent&&e.isConditionalTypeNode(De.parent)&&(De.parent.trueType===De||De.parent.falseType===De)}))return ne.createIdentifier("Object");var pn=Nn(He.typeName),j=ne.createTempVariable(de);return ne.createConditionalExpression(ne.createTypeCheck(ne.createAssignment(j,pn),"function"),void 0,j,void 0,ne.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ct(He.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return ne.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return $t();case e.TypeReferenceSerializationKind.BooleanType:return ne.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return ne.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return ne.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return ne.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return Z<2?Gt():ne.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return ne.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return ne.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return ne.createIdentifier("Object");default:return e.Debug.assertNever(se)}}function En(He,se){return ne.createLogicalAnd(ne.createStrictInequality(ne.createTypeOfExpression(He),ne.createStringLiteral("undefined")),se)}function Nn(He){if(He.kind===79){var se=ct(He);return En(se,se)}if(He.left.kind===79)return En(ct(He.left),ct(He));var pn=Nn(He.left),j=ne.createTempVariable(de);return ne.createLogicalAnd(ne.createLogicalAnd(pn.left,ne.createStrictInequality(ne.createAssignment(j,pn.right),ne.createVoidZero())),ne.createPropertyAccessExpression(j,He.right))}function ct(He){switch(He.kind){case 79:var se=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(He),He),He.parent);return se.original=void 0,e.setParent(se,e.getParseTreeNode(ae)),se;case 159:return yt(He)}}function yt(He){return ne.createPropertyAccessExpression(ct(He.left),He.right)}function Gt(){return ne.createConditionalExpression(ne.createTypeCheck(ne.createIdentifier("Symbol"),"function"),void 0,ne.createIdentifier("Symbol"),void 0,ne.createIdentifier("Object"))}function $t(){return Z<99?ne.createConditionalExpression(ne.createTypeCheck(ne.createIdentifier("BigInt"),"function"),void 0,ne.createIdentifier("BigInt"),void 0,ne.createIdentifier("Object")):ne.createIdentifier("BigInt")}function Ke(He,se){var pn=He.name;return e.isPrivateIdentifier(pn)?ne.createIdentifier(""):e.isComputedPropertyName(pn)?se&&!e.isSimpleInlineableExpression(pn.expression)?ne.getGeneratedNameForNode(pn):pn.expression:e.isIdentifier(pn)?ne.createStringLiteral(e.idText(pn)):ne.cloneNode(pn)}function Vn(He){var se=He.name;if(e.isComputedPropertyName(se)&&(!e.hasStaticModifier(He)&&le||e.some(He.decorators))){var pn=e.visitNode(se.expression,p,e.isExpression),j=e.skipPartiallyEmittedExpressions(pn);if(!e.isSimpleInlineableExpression(j)){var De=ne.getGeneratedNameForNode(se);return de(De),ne.updateComputedPropertyName(se,ne.createAssignment(De,pn))}}return e.visitNode(se,p,e.isPropertyName)}function Zn(He){return He.token===117?void 0:e.visitEachChild(He,p,V)}function Re(He){return ne.updateExpressionWithTypeArguments(He,e.visitNode(He.expression,p,e.isLeftHandSideExpression),void 0)}function Pn(He){return!e.nodeIsMissing(He.body)}function rt(He){if(He.flags&8388608||e.hasSyntacticModifier(He,128))return;var se=ne.updatePropertyDeclaration(He,void 0,e.visitNodes(He.modifiers,p,e.isModifier),Vn(He),void 0,void 0,e.visitNode(He.initializer,p));return se!==He&&(e.setCommentRange(se,He),e.setSourceMapRange(se,e.moveRangePastDecorators(He))),se}function Yn(He){return Pn(He)?ne.updateConstructorDeclaration(He,void 0,void 0,e.visitParameterList(He.parameters,p,V),gt(He.body,He)):void 0}function gt(He,se){var pn=se&&e.filter(se.parameters,function(un){return e.isParameterPropertyDeclaration(un,se)});if(!e.some(pn))return e.visitFunctionBody(He,p,V);var j=[],De=0;w(),De=e.addPrologueDirectivesAndInitialSuperCall(ne,se,j,p),e.addRange(j,e.map(pn,lt)),e.addRange(j,e.visitNodes(He.statements,p,e.isStatement,De)),j=ne.mergeLexicalEnvironment(j,b());var Ve=ne.createBlock(e.setTextRange(ne.createNodeArray(j),He.statements),!0);return e.setTextRange(Ve,He),e.setOriginalNode(Ve,He),Ve}function lt(He){var se=He.name;if(!e.isIdentifier(se))return;var pn=e.setParent(e.setTextRange(ne.cloneNode(se),se),se.parent);e.setEmitFlags(pn,1536|48);var j=e.setParent(e.setTextRange(ne.cloneNode(se),se),se.parent);return e.setEmitFlags(j,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(ne.createExpressionStatement(ne.createAssignment(e.setTextRange(ne.createPropertyAccessExpression(ne.createThis(),pn),He.name),j)),He),e.moveRangePos(He,-1))))}function Fe(He){if(!Pn(He))return;var se=ne.updateMethodDeclaration(He,void 0,e.visitNodes(He.modifiers,q,e.isModifier),He.asteriskToken,Vn(He),void 0,void 0,e.visitParameterList(He.parameters,p,V),void 0,e.visitFunctionBody(He.body,p,V));return se!==He&&(e.setCommentRange(se,He),e.setSourceMapRange(se,e.moveRangePastDecorators(He))),se}function Bn(He){return!(e.nodeIsMissing(He.body)&&e.hasSyntacticModifier(He,128))}function K(He){if(!Bn(He))return;var se=ne.updateGetAccessorDeclaration(He,void 0,e.visitNodes(He.modifiers,q,e.isModifier),Vn(He),e.visitParameterList(He.parameters,p,V),void 0,e.visitFunctionBody(He.body,p,V)||ne.createBlock([]));return se!==He&&(e.setCommentRange(se,He),e.setSourceMapRange(se,e.moveRangePastDecorators(He))),se}function An(He){if(!Bn(He))return;var se=ne.updateSetAccessorDeclaration(He,void 0,e.visitNodes(He.modifiers,q,e.isModifier),Vn(He),e.visitParameterList(He.parameters,p,V),e.visitFunctionBody(He.body,p,V)||ne.createBlock([]));return se!==He&&(e.setCommentRange(se,He),e.setSourceMapRange(se,e.moveRangePastDecorators(He))),se}function Fn(He){if(!Pn(He))return ne.createNotEmittedStatement(He);var se=ne.updateFunctionDeclaration(He,void 0,e.visitNodes(He.modifiers,q,e.isModifier),He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,p,V),void 0,e.visitFunctionBody(He.body,p,V)||ne.createBlock([]));if(ci(He)){var pn=[se];return lo(pn,He),pn}return se}function ln(He){if(!Pn(He))return ne.createOmittedExpression();var se=ne.updateFunctionExpression(He,e.visitNodes(He.modifiers,q,e.isModifier),He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,p,V),void 0,e.visitFunctionBody(He.body,p,V)||ne.createBlock([]));return se}function Ln(He){var se=ne.updateArrowFunction(He,e.visitNodes(He.modifiers,q,e.isModifier),void 0,e.visitParameterList(He.parameters,p,V),void 0,He.equalsGreaterThanToken,e.visitFunctionBody(He.body,p,V));return se}function Xe(He){if(e.parameterIsThisKeyword(He))return;var se=ne.updateParameterDeclaration(He,void 0,void 0,He.dotDotDotToken,e.visitNode(He.name,p,e.isBindingName),void 0,void 0,e.visitNode(He.initializer,p,e.isExpression));return se!==He&&(e.setCommentRange(se,He),e.setTextRange(se,e.moveRangePastModifiers(He)),e.setSourceMapRange(se,e.moveRangePastModifiers(He)),e.setEmitFlags(se.name,32)),se}function Dn(He){if(ci(He)){var se=e.getInitializedVariables(He.declarationList);return se.length===0?void 0:e.setTextRange(ne.createExpressionStatement(ne.inlineExpressions(e.map(se,rn))),He)}else return e.visitEachChild(He,p,V)}function rn(He){var se=He.name;return e.isBindingPattern(se)?e.flattenDestructuringAssignment(He,p,V,0,!1,Vi):e.setTextRange(ne.createAssignment(os(se),e.visitNode(He.initializer,p,e.isExpression)),He)}function qn(He){return ne.updateVariableDeclaration(He,e.visitNode(He.name,p,e.isBindingName),void 0,void 0,e.visitNode(He.initializer,p,e.isExpression))}function it(He){var se=e.skipOuterExpressions(He.expression,~6);if(e.isAssertionExpression(se)){var pn=e.visitNode(He.expression,p,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(pn,$))?ne.updateParenthesizedExpression(He,pn):ne.createPartiallyEmittedExpression(pn,He)}return e.visitEachChild(He,p,V)}function ht(He){var se=e.visitNode(He.expression,p,e.isExpression);return ne.createPartiallyEmittedExpression(se,He)}function Et(He){var se=e.visitNode(He.expression,p,e.isLeftHandSideExpression);return ne.createPartiallyEmittedExpression(se,He)}function zt(He){return ne.updateCallExpression(He,e.visitNode(He.expression,p,e.isExpression),void 0,e.visitNodes(He.arguments,p,e.isExpression))}function fr(He){return ne.updateNewExpression(He,e.visitNode(He.expression,p,e.isExpression),void 0,e.visitNodes(He.arguments,p,e.isExpression))}function br(He){return ne.updateTaggedTemplateExpression(He,e.visitNode(He.tag,p,e.isExpression),void 0,e.visitNode(He.template,p,e.isExpression))}function Jt(He){return ne.updateJsxSelfClosingElement(He,e.visitNode(He.tagName,p,e.isJsxTagNameExpression),void 0,e.visitNode(He.attributes,p,e.isJsxAttributes))}function mr(He){return ne.updateJsxOpeningElement(He,e.visitNode(He.tagName,p,e.isJsxTagNameExpression),void 0,e.visitNode(He.attributes,p,e.isJsxAttributes))}function Ht(He){return!e.isEnumConst(He)||e.shouldPreserveConstEnums(_)}function Xr(He){if(!Ht(He))return ne.createNotEmittedStatement(He);var se=[],pn=2,j=wt(se,He);j&&((v!==e.ModuleKind.System||ae!==$)&&(pn|=512));var De=Qi(He),Ve=mo(He),un=e.hasSyntacticModifier(He,1)?ne.getExternalModuleOrNamespaceExportName(E,He,!1,!0):ne.getLocalName(He,!1,!0),jn=ne.createLogicalOr(un,ne.createAssignment(un,ne.createObjectLiteralExpression()));if(qa(He)){var mt=ne.getLocalName(He,!1,!0);jn=ne.createAssignment(mt,jn)}var St=ne.createExpressionStatement(ne.createCallExpression(ne.createFunctionExpression(void 0,void 0,void 0,void 0,[ne.createParameterDeclaration(void 0,void 0,void 0,De)],void 0,At(He,Ve)),void 0,[jn]));return e.setOriginalNode(St,He),j&&(e.setSyntheticLeadingComments(St,void 0),e.setSyntheticTrailingComments(St,void 0)),e.setTextRange(St,He),e.addEmitFlags(St,pn),se.push(St),se.push(ne.createEndOfDeclarationMarker(He)),se}function At(He,se){var pn=E;E=se;var j=[];O();var De=e.map(He.members,Wr);return e.insertStatementsAfterStandardPrologue(j,b()),e.addRange(j,De),E=pn,ne.createBlock(e.setTextRange(ne.createNodeArray(j),He.members),!0)}function Wr(He){var se=Ke(He,!1),pn=Or(He),j=ne.createAssignment(ne.createElementAccessExpression(E,se),pn),De=pn.kind===10?j:ne.createAssignment(ne.createElementAccessExpression(E,j),se);return e.setTextRange(ne.createExpressionStatement(e.setTextRange(De,He)),He)}function Or(He){var se=fe.getConstantValue(He);return se!==void 0?typeof se=="string"?ne.createStringLiteral(se):ne.createNumericLiteral(se):(ai(),He.initializer?e.visitNode(He.initializer,p,e.isExpression):ne.createVoidZero())}function Ja(He){var se=e.getParseTreeNode(He,e.isModuleDeclaration);return se?e.isInstantiatedModule(se,e.shouldPreserveConstEnums(_)):!0}function qa(He){return ci(He)||Mi(He)&&v!==e.ModuleKind.ES2015&&v!==e.ModuleKind.ES2020&&v!==e.ModuleKind.ESNext&&v!==e.ModuleKind.System}function eo(He){ie||(ie=new e.Map);var se=la(He);ie.has(se)||ie.set(se,He)}function Va(He){if(ie){var se=la(He);return ie.get(se)===He}return!0}function la(He){return e.Debug.assertNode(He.name,e.isIdentifier),He.name.escapedText}function wt(He,se){var pn=ne.createVariableStatement(e.visitNodes(se.modifiers,q,e.isModifier),ne.createVariableDeclarationList([ne.createVariableDeclaration(ne.getLocalName(se,!1,!0))],ae.kind===300?0:1));if(e.setOriginalNode(pn,se),eo(se),Va(se))return se.kind===258?e.setSourceMapRange(pn.declarationList,se):e.setSourceMapRange(pn,se),e.setCommentRange(pn,se),e.addEmitFlags(pn,1024|4194304),He.push(pn),!0;var j=ne.createMergeDeclarationMarker(pn);return e.setEmitFlags(j,1536|4194304),He.push(j),!1}function rr(He){if(!Ja(He))return ne.createNotEmittedStatement(He);e.Debug.assertNode(He.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),wo();var se=[],pn=2,j=wt(se,He);j&&((v!==e.ModuleKind.System||ae!==$)&&(pn|=512));var De=Qi(He),Ve=mo(He),un=e.hasSyntacticModifier(He,1)?ne.getExternalModuleOrNamespaceExportName(E,He,!1,!0):ne.getLocalName(He,!1,!0),jn=ne.createLogicalOr(un,ne.createAssignment(un,ne.createObjectLiteralExpression()));if(qa(He)){var mt=ne.getLocalName(He,!1,!0);jn=ne.createAssignment(mt,jn)}var St=ne.createExpressionStatement(ne.createCallExpression(ne.createFunctionExpression(void 0,void 0,void 0,void 0,[ne.createParameterDeclaration(void 0,void 0,void 0,De)],void 0,Wt(He,Ve)),void 0,[jn]));return e.setOriginalNode(St,He),j&&(e.setSyntheticLeadingComments(St,void 0),e.setSyntheticTrailingComments(St,void 0)),e.setTextRange(St,He),e.addEmitFlags(St,pn),se.push(St),se.push(ne.createEndOfDeclarationMarker(He)),se}function Wt(He,se){var pn=E,j=L,De=ie;E=se,L=He,ie=void 0;var Ve=[];O();var un,jn;if(He.body)if(He.body.kind===260)F(He.body,function(_r){return e.addRange(Ve,e.visitNodes(_r.statements,N,e.isStatement))}),un=He.body.statements,jn=He.body;else{var mt=rr(He.body);mt&&(e.isArray(mt)?e.addRange(Ve,mt):Ve.push(mt));var St=Pr(He).body;un=e.moveRangePos(St.statements,-1)}e.insertStatementsAfterStandardPrologue(Ve,b()),E=pn,L=j,ie=De;var ir=ne.createBlock(e.setTextRange(ne.createNodeArray(Ve),un),!0);return e.setTextRange(ir,jn),(!He.body||He.body.kind!==260)&&e.setEmitFlags(ir,e.getEmitFlags(ir)|1536),ir}function Pr(He){if(He.body.kind===259){var se=Pr(He.body);return se||He.body}}function ra(He){if(!He.importClause)return He;if(He.importClause.isTypeOnly)return;var se=e.visitNode(He.importClause,Lt,e.isImportClause);return se||_.importsNotUsedAsValues===1||_.importsNotUsedAsValues===2?ne.updateImportDeclaration(He,void 0,void 0,se,He.moduleSpecifier):void 0}function Lt(He){if(He.isTypeOnly)return;var se=fe.isReferencedAliasDeclaration(He)?He.name:void 0,pn=e.visitNode(He.namedBindings,xt,e.isNamedImportBindings);return se||pn?ne.updateImportClause(He,!1,se,pn):void 0}function xt(He){if(He.kind===266)return fe.isReferencedAliasDeclaration(He)?He:void 0;var se=e.visitNodes(He.elements,Yt,e.isImportSpecifier);return e.some(se)?ne.updateNamedImports(He,se):void 0}function Yt(He){return fe.isReferencedAliasDeclaration(He)?He:void 0}function Qt(He){return fe.isValueAliasDeclaration(He)?e.visitEachChild(He,p,V):void 0}function sr(He){if(He.isTypeOnly)return;if(!He.exportClause||e.isNamespaceExport(He.exportClause))return He;if(!fe.isValueAliasDeclaration(He))return;var se=e.visitNode(He.exportClause,Fa,e.isNamedExportBindings);return se?ne.updateExportDeclaration(He,void 0,void 0,He.isTypeOnly,se,He.moduleSpecifier):void 0}function at(He){var se=e.visitNodes(He.elements,li,e.isExportSpecifier);return e.some(se)?ne.updateNamedExports(He,se):void 0}function ea(He){return ne.updateNamespaceExport(He,e.visitNode(He.name,p,e.isIdentifier))}function Fa(He){return e.isNamespaceExport(He)?ea(He):at(He)}function li(He){return fe.isValueAliasDeclaration(He)?He:void 0}function Si(He){return fe.isReferencedAliasDeclaration(He)||!e.isExternalModule($)&&fe.isTopLevelValueImportEqualsWithEntityName(He)}function Qr(He){if(He.isTypeOnly)return;if(e.isExternalModuleImportEqualsDeclaration(He)){var se=fe.isReferencedAliasDeclaration(He);return!se&&_.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(ne.createImportDeclaration(void 0,void 0,void 0,He.moduleReference.expression),He),He):se?e.visitEachChild(He,p,V):void 0}if(!Si(He))return;var pn=e.createExpressionFromEntityName(ne,He.moduleReference);return e.setEmitFlags(pn,1536|2048),ro(He)||!ci(He)?e.setOriginalNode(e.setTextRange(ne.createVariableStatement(e.visitNodes(He.modifiers,q,e.isModifier),ne.createVariableDeclarationList([e.setOriginalNode(ne.createVariableDeclaration(He.name,void 0,void 0,pn),He)])),He),He):e.setOriginalNode(xo(He.name,pn,He),He)}function ci(He){return L!==void 0&&e.hasSyntacticModifier(He,1)}function Mi(He){return L===void 0&&e.hasSyntacticModifier(He,1)}function ro(He){return Mi(He)&&!e.hasSyntacticModifier(He,512)}function xi(He){return Mi(He)&&e.hasSyntacticModifier(He,512)}function ui(He){return ne.createExpressionStatement(He)}function lo(He,se){var pn=ne.createAssignment(ne.getExternalModuleOrNamespaceExportName(E,se,!1,!0),ne.getLocalName(se));e.setSourceMapRange(pn,e.createRange(se.name?se.name.pos:se.pos,se.end));var j=ne.createExpressionStatement(pn);e.setSourceMapRange(j,e.createRange(-1,se.end)),He.push(j)}function xo(He,se,pn){return e.setTextRange(ne.createExpressionStatement(ne.createAssignment(ne.getNamespaceMemberName(E,He,!1,!0),se)),pn)}function Vi(He,se,pn){return e.setTextRange(ne.createAssignment(os(He),se),pn)}function os(He){return ne.getNamespaceMemberName(E,He,!1,!0)}function Qi(He){var se=ne.getGeneratedNameForNode(He);return e.setSourceMapRange(se,He.name),se}function mo(He){return ne.getGeneratedNameForNode(He)}function Rs(He){if(fe.getNodeCheckFlags(He)&16777216){Pi();var se=ne.createUniqueName(He.name&&!e.isGeneratedIdentifier(He.name)?e.idText(He.name):"default");return I[e.getOriginalNodeId(He)]=se,de(se),se}}function Ls(He){return ne.createPropertyAccessExpression(ne.getDeclarationName(He),"prototype")}function Ca(He,se){return e.isStatic(se)?ne.getDeclarationName(He):Ls(He)}function ai(){(P&8)===0&&(P|=8,V.enableSubstitution(79))}function Pi(){(P&1)===0&&(P|=1,V.enableSubstitution(79),I=[])}function wo(){(P&2)===0&&(P|=2,V.enableSubstitution(79),V.enableSubstitution(292),V.enableEmitNotification(259))}function Lo(He){return e.getOriginalNode(He).kind===259}function _s(He){return e.getOriginalNode(He).kind===258}function Oi(He,se,pn){var j=re,De=$;e.isSourceFile(se)&&($=se),P&2&&Lo(se)&&(re|=2),P&8&&_s(se)&&(re|=8),W(He,se,pn),re=j,$=De}function Io(He,se){return se=x(He,se),He===1?Mo(se):e.isShorthandPropertyAssignment(se)?fs(se):se}function fs(He){if(P&2){var se=He.name,pn=_t(se);if(pn){if(He.objectAssignmentInitializer){var j=ne.createAssignment(pn,He.objectAssignmentInitializer);return e.setTextRange(ne.createPropertyAssignment(se,j),He)}return e.setTextRange(ne.createPropertyAssignment(se,pn),He)}}return He}function Mo(He){switch(He.kind){case 79:return Ms(He);case 204:return tr(He);case 205:return oa(He)}return He}function Ms(He){return yn(He)||_t(He)||He}function yn(He){if(P&1&&fe.getNodeCheckFlags(He)&33554432){var se=fe.getReferencedValueDeclaration(He);if(se){var pn=I[se.id];if(pn){var j=ne.cloneNode(pn);return e.setSourceMapRange(j,He),e.setCommentRange(j,He),j}}}return}function _t(He){if(P&re&&!e.isGeneratedIdentifier(He)&&!e.isLocalName(He)){var se=fe.getReferencedExportContainer(He,!1);if(se&&se.kind!==300){var pn=re&2&&se.kind===259||re&8&&se.kind===258;if(pn)return e.setTextRange(ne.createPropertyAccessExpression(ne.getGeneratedNameForNode(se),He),He)}}return}function tr(He){return Za(He)}function oa(He){return Za(He)}function Za(He){var se=Ga(He);if(se!==void 0){e.setConstantValue(He,se);var pn=typeof se=="string"?ne.createStringLiteral(se):ne.createNumericLiteral(se);if(!_.removeComments){var j=e.getOriginalNode(He,e.isAccessExpression),De=e.isPropertyAccessExpression(j)?e.declarationNameToString(j.name):e.getTextOfNode(j.argumentExpression);e.addSyntheticTrailingComment(pn,3," "+De+" ")}return pn}return He}function Ga(He){return _.isolatedModules?void 0:e.isPropertyAccessExpression(He)||e.isElementAccessExpression(He)?fe.getConstantValue(He):void 0}}e.transformTypeScript=Y})(mn||(mn={}));var mn;(function(e){var s;(function(w){w[w.ClassAliases=1]="ClassAliases",w[w.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(s||(s={}));var ue;(function(w){w.Field="f",w.Method="m",w.Accessor="a"})(ue=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var ee;(function(w){w[w.None=0]="None",w[w.ClassWasDecorated=1]="ClassWasDecorated",w[w.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",w[w.NeedsClassSuperReference=4]="NeedsClassSuperReference",w[w.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(ee||(ee={}));function Y(w){var b=w.factory,de=w.hoistVariableDeclaration,fe=w.endLexicalEnvironment,_=w.startLexicalEnvironment,U=w.resumeLexicalEnvironment,Z=w.addBlockScopedVariable,v=w.getEmitResolver(),W=w.getCompilerOptions(),x=e.getEmitScriptTarget(W),$=e.getUseDefineForClassFields(W),L=x<99,E=(x<=8||!$)&&x>=2,ae=x<=8||!$,X=w.onSubstituteNode;w.onSubstituteNode=Be;var ie=w.onEmitNode;w.onEmitNode=wn;var le,P,I,re,B=[],A=new e.Map,f,F,g;return e.chainBundle(w,p);function p(Fe){var Bn=w.getCompilerOptions();if(Fe.isDeclarationFile||$&&Bn.target===99)return Fe;var K=e.visitEachChild(Fe,m,w);return e.addEmitHelpers(K,w.readEmitHelpers()),K}function d(Fe,Bn){if(Fe.transformFlags&8388608)switch(Fe.kind){case 224:case 255:return fn(Fe);case 165:return we(Fe);case 235:return me(Fe);case 80:return D(Fe);case 168:return vn(Fe)}if(Fe.transformFlags&8388608||Fe.transformFlags&33554432&&E&&g&&f)switch(Fe.kind){case 217:case 218:return Ce(Fe,Bn);case 219:return pe(Fe,Bn);case 206:return ce(Fe);case 208:return Le(Fe);case 204:return Te(Fe);case 205:return be(Fe);case 236:return Se(Fe);case 240:return Ue(Fe);case 254:case 211:case 169:case 167:case 170:case 171:{var K=g;g=void 0;var An=e.visitEachChild(Fe,m,w);return g=K,An}}return e.visitEachChild(Fe,m,w)}function T(Fe){return d(Fe,!0)}function m(Fe){return d(Fe,!1)}function k(Fe){switch(Fe.kind){case 289:return e.visitEachChild(Fe,k,w);case 226:return xn(Fe)}return m(Fe)}function N(Fe){switch(Fe.kind){case 203:case 202:return lt(Fe);default:return m(Fe)}}function D(Fe){return L?e.setOriginalNode(b.createIdentifier(""),Fe):Fe}function R(Fe){switch(Fe.kind){case 169:return;case 170:case 171:case 167:return J(Fe);case 165:return we(Fe);case 160:return q(Fe);case 232:return Fe;default:return m(Fe)}}function me(Fe){var Bn=re;re=[];var K=e.visitEachChild(Fe,m,w),An=e.some(re)?Mt([K],re,!0):K;return re=Bn,An}function q(Fe){var Bn=e.visitEachChild(Fe,m,w);if(e.some(I)){var K=I;K.push(Bn.expression),I=[],Bn=b.updateComputedPropertyName(Bn,b.inlineExpressions(K))}return Bn}function J(Fe){if(e.Debug.assert(!e.some(Fe.decorators)),!L||!e.isPrivateIdentifier(Fe.name))return e.visitEachChild(Fe,R,w);var Bn=Pn(Fe.name);if(e.Debug.assert(Bn,"Undeclared private name for property declaration."),!Bn.isValid)return Fe;var K=C(Fe);K&&Ke().push(b.createAssignment(K,b.createFunctionExpression(e.filter(Fe.modifiers,function(An){return!e.isStaticModifier(An)}),Fe.asteriskToken,K,void 0,e.visitParameterList(Fe.parameters,R,w),void 0,e.visitFunctionBody(Fe.body,R,w))));return}function C(Fe){e.Debug.assert(e.isPrivateIdentifier(Fe.name));var Bn=Pn(Fe.name);if(e.Debug.assert(Bn,"Undeclared private name for property declaration."),Bn.kind==="m")return Bn.methodName;if(Bn.kind==="a"){if(e.isGetAccessor(Fe))return Bn.getterName;if(e.isSetAccessor(Fe))return Bn.setterName}}function we(Fe){if(e.Debug.assert(!e.some(Fe.decorators)),e.isPrivateIdentifier(Fe.name)){if(!L)return b.updatePropertyDeclaration(Fe,void 0,e.visitNodes(Fe.modifiers,m,e.isModifier),Fe.name,void 0,void 0,void 0);var Bn=Pn(Fe.name);if(e.Debug.assert(Bn,"Undeclared private name for property declaration."),!Bn.isValid)return Fe}var K=Nn(Fe.name,!!Fe.initializer||$);K&&!e.isSimpleInlineableExpression(K)&&Ke().push(K);return}function Oe(Fe,Bn){return te(Fe,e.visitNode(Bn,m,e.isExpression))}function te(Fe,Bn){e.setCommentRange(Bn,e.moveRangePos(Bn,-1));switch(Fe.kind){case"a":return w.getEmitHelperFactory().createClassPrivateFieldGetHelper(Bn,Fe.brandCheckIdentifier,Fe.kind,Fe.getterName);case"m":return w.getEmitHelperFactory().createClassPrivateFieldGetHelper(Bn,Fe.brandCheckIdentifier,Fe.kind,Fe.methodName);case"f":return w.getEmitHelperFactory().createClassPrivateFieldGetHelper(Bn,Fe.brandCheckIdentifier,Fe.kind,Fe.variableName);default:e.Debug.assertNever(Fe,"Unknown private element type")}}function Te(Fe){if(L&&e.isPrivateIdentifier(Fe.name)){var Bn=Pn(Fe.name);if(Bn)return e.setTextRange(e.setOriginalNode(Oe(Bn,Fe.expression),Fe),Fe)}if(E&&e.isSuperProperty(Fe)&&e.isIdentifier(Fe.name)&&g&&f){var K=f.classConstructor,An=f.superClassReference,Fn=f.facts;if(Fn&1)return Ze(Fe);if(K&&An){var ln=b.createReflectGetCall(An,b.createStringLiteralFromNode(Fe.name),K);return e.setOriginalNode(ln,Fe.expression),e.setTextRange(ln,Fe.expression),ln}}return e.visitEachChild(Fe,m,w)}function be(Fe){if(E&&e.isSuperProperty(Fe)&&g&&f){var Bn=f.classConstructor,K=f.superClassReference,An=f.facts;if(An&1)return Ze(Fe);if(Bn&&K){var Fn=b.createReflectGetCall(K,e.visitNode(Fe.argumentExpression,m,e.isExpression),Bn);return e.setOriginalNode(Fn,Fe.expression),e.setTextRange(Fn,Fe.expression),Fn}}return e.visitEachChild(Fe,m,w)}function Ce(Fe,Bn){if(Fe.operator===45||Fe.operator===46){if(L&&e.isPrivateIdentifierPropertyAccessExpression(Fe.operand)){var K=void 0;if(K=Pn(Fe.operand.name)){var An=e.visitNode(Fe.operand.expression,m,e.isExpression),Fn=$e(An),ln=Fn.readExpression,Ln=Fn.initializeExpression,Xe=Oe(K,ln),Dn=e.isPrefixUnaryExpression(Fe)||Bn?void 0:b.createTempVariable(de);return Xe=e.expandPreOrPostfixIncrementOrDecrementExpression(b,Fe,Xe,de,Dn),Xe=Me(K,Ln||ln,Xe,63),e.setOriginalNode(Xe,Fe),e.setTextRange(Xe,Fe),Dn&&(Xe=b.createComma(Xe,Dn),e.setTextRange(Xe,Fe)),Xe}}else if(E&&e.isSuperProperty(Fe.operand)&&g&&f){var rn=f.classConstructor,qn=f.superClassReference,it=f.facts;if(it&1){var ht=Ze(Fe.operand);return e.isPrefixUnaryExpression(Fe)?b.updatePrefixUnaryExpression(Fe,ht):b.updatePostfixUnaryExpression(Fe,ht)}if(rn&&qn){var Et=void 0,zt=void 0;if(e.isPropertyAccessExpression(Fe.operand)?e.isIdentifier(Fe.operand.name)&&(zt=Et=b.createStringLiteralFromNode(Fe.operand.name)):e.isSimpleInlineableExpression(Fe.operand.argumentExpression)?zt=Et=Fe.operand.argumentExpression:(zt=b.createTempVariable(de),Et=b.createAssignment(zt,e.visitNode(Fe.operand.argumentExpression,m,e.isExpression))),Et&&zt){var Xe=b.createReflectGetCall(qn,zt,rn);e.setTextRange(Xe,Fe.operand);var Dn=Bn?void 0:b.createTempVariable(de);return Xe=e.expandPreOrPostfixIncrementOrDecrementExpression(b,Fe,Xe,de,Dn),Xe=b.createReflectSetCall(qn,Et,Xe,rn),e.setOriginalNode(Xe,Fe),e.setTextRange(Xe,Fe),Dn&&(Xe=b.createComma(Xe,Dn),e.setTextRange(Xe,Fe)),Xe}}}}return e.visitEachChild(Fe,m,w)}function Ue(Fe){return b.updateForStatement(Fe,e.visitNode(Fe.initializer,T,e.isForInitializer),e.visitNode(Fe.condition,m,e.isExpression),e.visitNode(Fe.incrementor,T,e.isExpression),e.visitIterationBody(Fe.statement,m,w))}function Se(Fe){return b.updateExpressionStatement(Fe,e.visitNode(Fe.expression,T,e.isExpression))}function $e(Fe){var Bn=e.nodeIsSynthesized(Fe)?Fe:b.cloneNode(Fe);if(e.isSimpleInlineableExpression(Fe))return{readExpression:Bn,initializeExpression:void 0};var K=b.createTempVariable(de),An=b.createAssignment(K,Bn);return{readExpression:K,initializeExpression:An}}function ce(Fe){if(L&&e.isPrivateIdentifierPropertyAccessExpression(Fe.expression)){var Bn=b.createCallBinding(Fe.expression,de,x),K=Bn.thisArg,An=Bn.target;return e.isCallChain(Fe)?b.updateCallChain(Fe,b.createPropertyAccessChain(e.visitNode(An,m),Fe.questionDotToken,"call"),void 0,void 0,Mt([e.visitNode(K,m,e.isExpression)],e.visitNodes(Fe.arguments,m,e.isExpression),!0)):b.updateCallExpression(Fe,b.createPropertyAccessExpression(e.visitNode(An,m),"call"),void 0,Mt([e.visitNode(K,m,e.isExpression)],e.visitNodes(Fe.arguments,m,e.isExpression),!0))}if(E&&e.isSuperProperty(Fe.expression)&&g&&(f==null?void 0:f.classConstructor)){var Fn=b.createFunctionCallCall(e.visitNode(Fe.expression,m,e.isExpression),f.classConstructor,e.visitNodes(Fe.arguments,m,e.isExpression));return e.setOriginalNode(Fn,Fe),e.setTextRange(Fn,Fe),Fn}return e.visitEachChild(Fe,m,w)}function Le(Fe){if(L&&e.isPrivateIdentifierPropertyAccessExpression(Fe.tag)){var Bn=b.createCallBinding(Fe.tag,de,x),K=Bn.thisArg,An=Bn.target;return b.updateTaggedTemplateExpression(Fe,b.createCallExpression(b.createPropertyAccessExpression(e.visitNode(An,m),"bind"),void 0,[e.visitNode(K,m,e.isExpression)]),void 0,e.visitNode(Fe.template,m,e.isTemplateLiteral))}if(E&&e.isSuperProperty(Fe.tag)&&g&&(f==null?void 0:f.classConstructor)){var Fn=b.createFunctionBindCall(e.visitNode(Fe.tag,m,e.isExpression),f.classConstructor,[]);return e.setOriginalNode(Fn,Fe),e.setTextRange(Fn,Fe),b.updateTaggedTemplateExpression(Fe,Fn,void 0,e.visitNode(Fe.template,m,e.isTemplateLiteral))}return e.visitEachChild(Fe,m,w)}function qe(Fe){if(L){f&&A.set(e.getOriginalNodeId(Fe),f),_();var Bn=g;g=Fe;var K=e.visitNodes(Fe.body.statements,m,e.isStatement);K=b.mergeLexicalEnvironment(K,fe()),g=Bn;var An=b.createImmediatelyInvokedArrowFunction(K);return e.setOriginalNode(An,Fe),e.setTextRange(An,Fe),e.addEmitFlags(An,2),An}}function pe(Fe,Bn){if(e.isDestructuringAssignment(Fe)){var K=I;I=void 0,Fe=b.updateBinaryExpression(Fe,e.visitNode(Fe.left,N),Fe.operatorToken,e.visitNode(Fe.right,m));var An=e.some(I)?b.inlineExpressions(e.compact(Mt(Mt([],I,!0),[Fe],!1))):Fe;return I=K,An}if(e.isAssignmentExpression(Fe)){if(L&&e.isPrivateIdentifierPropertyAccessExpression(Fe.left)){var Fn=Pn(Fe.left.name);if(Fn)return e.setTextRange(e.setOriginalNode(Me(Fn,Fe.left.expression,Fe.right,Fe.operatorToken.kind),Fe),Fe)}else if(E&&e.isSuperProperty(Fe.left)&&g&&f){var ln=f.classConstructor,Ln=f.superClassReference,Xe=f.facts;if(Xe&1)return b.updateBinaryExpression(Fe,Ze(Fe.left),Fe.operatorToken,e.visitNode(Fe.right,m,e.isExpression));if(ln&&Ln){var Dn=e.isElementAccessExpression(Fe.left)?e.visitNode(Fe.left.argumentExpression,m,e.isExpression):e.isIdentifier(Fe.left.name)?b.createStringLiteralFromNode(Fe.left.name):void 0;if(Dn){var rn=e.visitNode(Fe.right,m,e.isExpression);if(e.isCompoundAssignment(Fe.operatorToken.kind)){var qn=Dn;e.isSimpleInlineableExpression(Dn)||(qn=b.createTempVariable(de),Dn=b.createAssignment(qn,Dn));var it=b.createReflectGetCall(Ln,qn,ln);e.setOriginalNode(it,Fe.left),e.setTextRange(it,Fe.left),rn=b.createBinaryExpression(it,e.getNonAssignmentOperatorForCompoundAssignment(Fe.operatorToken.kind),rn),e.setTextRange(rn,Fe)}var ht=Bn?void 0:b.createTempVariable(de);return ht&&(rn=b.createAssignment(ht,rn),e.setTextRange(ht,Fe)),rn=b.createReflectSetCall(Ln,Dn,rn,ln),e.setOriginalNode(rn,Fe),e.setTextRange(rn,Fe),ht&&(rn=b.createComma(rn,ht),e.setTextRange(rn,Fe)),rn}}}}return e.visitEachChild(Fe,m,w)}function Me(Fe,Bn,K,An){if(Bn=e.visitNode(Bn,m,e.isExpression),K=e.visitNode(K,m,e.isExpression),e.isCompoundAssignment(An)){var Fn=$e(Bn),ln=Fn.readExpression,Ln=Fn.initializeExpression;Bn=Ln||ln,K=b.createBinaryExpression(te(Fe,ln),e.getNonAssignmentOperatorForCompoundAssignment(An),K)}e.setCommentRange(Bn,e.moveRangePos(Bn,-1));switch(Fe.kind){case"a":return w.getEmitHelperFactory().createClassPrivateFieldSetHelper(Bn,Fe.brandCheckIdentifier,K,Fe.kind,Fe.setterName);case"m":return w.getEmitHelperFactory().createClassPrivateFieldSetHelper(Bn,Fe.brandCheckIdentifier,K,Fe.kind,void 0);case"f":return w.getEmitHelperFactory().createClassPrivateFieldSetHelper(Bn,Fe.brandCheckIdentifier,K,Fe.kind,Fe.variableName);default:e.Debug.assertNever(Fe,"Unknown private element type")}}function fn(Fe){if(!e.forEach(Fe.members,Ye))return e.visitEachChild(Fe,m,w);var Bn=I;if(I=void 0,ct(),L){var K=e.getNameOfDeclaration(Fe);K&&e.isIdentifier(K)&&($t().className=e.idText(K));var An=Ne(Fe);e.some(An)&&($t().weakSetName=Zn("instances",An[0].name))}var Fn=e.isClassDeclaration(Fe)?Wn(Fe):dn(Fe);return yt(),I=Bn,Fn}function Ye(Fe){return e.isPropertyDeclaration(Fe)||e.isClassStaticBlockDeclaration(Fe)||L&&Fe.name&&e.isPrivateIdentifier(Fe.name)}function Ne(Fe){return e.filter(Fe.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function je(Fe){var Bn=0,K=e.getOriginalNode(Fe);e.isClassDeclaration(K)&&e.classOrConstructorParameterIsDecorated(K)&&(Bn|=1);for(var An=0,Fn=Fe.members;An<Fn.length;An++){var ln=Fn[An];if(!e.isStatic(ln))continue;ln.name&&e.isPrivateIdentifier(ln.name)&&L&&(Bn|=2),(e.isPropertyDeclaration(ln)||e.isClassStaticBlockDeclaration(ln))&&(ae&&ln.transformFlags&8192&&(Bn|=8,Bn&1||(Bn|=2)),E&&ln.transformFlags&33554432&&(Bn&1||(Bn|=2|4)))}return Bn}function xn(Fe){var Bn=(f==null?void 0:f.facts)||0;if(Bn&4){var K=b.createTempVariable(de,!0);return Gt().superClassReference=K,b.updateExpressionWithTypeArguments(Fe,b.createAssignment(K,e.visitNode(Fe.expression,m,e.isExpression)),void 0)}return e.visitEachChild(Fe,m,w)}function Wn(Fe){var Bn=je(Fe);Bn&&(Gt().facts=Bn),Bn&8&&gn();var K=e.getStaticPropertiesAndClassStaticBlock(Fe),An;if(Bn&2){var Fn=b.createTempVariable(de,!0);Gt().classConstructor=b.cloneNode(Fn),An=b.createAssignment(Fn,b.getInternalName(Fe))}var ln=e.getEffectiveBaseTypeNode(Fe),Ln=!!(ln&&e.skipOuterExpressions(ln.expression).kind!==104),Xe=[b.updateClassDeclaration(Fe,void 0,Fe.modifiers,Fe.name,void 0,e.visitNodes(Fe.heritageClauses,k,e.isHeritageClause),o(Fe,Ln))];return An&&Ke().unshift(An),e.some(I)&&Xe.push(b.createExpressionStatement(b.inlineExpressions(I))),e.some(K)&&Un(Xe,K,b.getInternalName(Fe)),Xe}function dn(Fe){var Bn=je(Fe);Bn&&(Gt().facts=Bn),Bn&8&&gn();var K=!!(Bn&1),An=e.getStaticPropertiesAndClassStaticBlock(Fe),Fn=e.getEffectiveBaseTypeNode(Fe),ln=!!(Fn&&e.skipOuterExpressions(Fn.expression).kind!==104),Ln=v.getNodeCheckFlags(Fe)&16777216,Xe;function Dn(){var Et=v.getNodeCheckFlags(Fe),zt=Et&16777216,fr=Et&524288;return b.createTempVariable(fr?Z:de,!!zt)}Bn&2&&(Xe=Dn(),Gt().classConstructor=b.cloneNode(Xe));var rn=b.updateClassExpression(Fe,e.visitNodes(Fe.decorators,m,e.isDecorator),Fe.modifiers,Fe.name,void 0,e.visitNodes(Fe.heritageClauses,k,e.isHeritageClause),o(Fe,ln)),qn=e.some(An,function(Et){return e.isClassStaticBlockDeclaration(Et)||!!Et.initializer||L&&e.isPrivateIdentifier(Et.name)});if(qn||e.some(I)){if(K)return e.Debug.assertIsDefined(re,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),re&&I&&e.some(I)&&re.push(b.createExpressionStatement(b.inlineExpressions(I))),re&&e.some(An)&&Un(re,An,b.getInternalName(Fe)),Xe?b.inlineExpressions([b.createAssignment(Xe,rn),Xe]):rn;var it=[];if(Xe||(Xe=Dn()),Ln){Qe();var ht=b.cloneNode(Xe);ht.autoGenerateFlags&=~8,P[e.getOriginalNodeId(Fe)]=ht}return e.setEmitFlags(rn,65536|e.getEmitFlags(rn)),it.push(e.startOnNewLine(b.createAssignment(Xe,rn))),e.addRange(it,e.map(I,e.startOnNewLine)),e.addRange(it,oe(An,Xe)),it.push(e.startOnNewLine(Xe)),b.inlineExpressions(it)}return rn}function vn(Fe){return L?void 0:e.visitEachChild(Fe,R,w)}function o(Fe,Bn){if(L){for(var K=0,An=Fe.members;K<An.length;K++){var Fn=An[K];e.isPrivateIdentifierClassElementDeclaration(Fn)&&Vn(Fn)}e.some(Ne(Fe))&&Cn()}var ln=[],Ln=tn(Fe,Bn);return Ln&&ln.push(Ln),e.addRange(ln,e.visitNodes(Fe.members,R,e.isClassElement)),e.setTextRange(b.createNodeArray(ln),Fe.members)}function Cn(){var Fe=$t().weakSetName;e.Debug.assert(Fe,"weakSetName should be set in private identifier environment"),Ke().push(b.createAssignment(Fe,b.createNewExpression(b.createIdentifier("WeakSet"),void 0,[])))}function z(Fe){return e.isStatic(Fe)||e.hasSyntacticModifier(e.getOriginalNode(Fe),128)?!1:$?x<99:e.isInitializedProperty(Fe)||L&&e.isPrivateIdentifierClassElementDeclaration(Fe)}function tn(Fe,Bn){var K=e.visitNode(e.getFirstConstructorWithBody(Fe),m,e.isConstructorDeclaration),An=Fe.members.filter(z);if(!e.some(An))return K;var Fn=e.visitParameterList(K?K.parameters:void 0,m,w),ln=$n(Fe,K,Bn);return ln?e.startOnNewLine(e.setOriginalNode(e.setTextRange(b.createConstructorDeclaration(void 0,void 0,Fn!=null?Fn:[],ln),K||Fe),K)):void 0}function $n(Fe,Bn,K){var An=e.getProperties(Fe,!1,!1);$||(An=e.filter(An,function(qn){return!!qn.initializer||e.isPrivateIdentifier(qn.name)}));var Fn=Ne(Fe),ln=e.some(An)||e.some(Fn);if(!Bn&&!ln)return e.visitFunctionBody(void 0,m,w);U();var Ln=0,Xe=[];if(!Bn&&K&&Xe.push(b.createExpressionStatement(b.createCallExpression(b.createSuper(),void 0,[b.createSpreadElement(b.createIdentifier("arguments"))]))),Bn&&(Ln=e.addPrologueDirectivesAndInitialSuperCall(b,Bn,Xe,m)),Bn==null?void 0:Bn.body){var Dn=e.findIndex(Bn.body.statements,function(qn){return!e.isParameterPropertyDeclaration(e.getOriginalNode(qn),Bn)},Ln);Dn===-1&&(Dn=Bn.body.statements.length),Dn>Ln&&($||e.addRange(Xe,e.visitNodes(Bn.body.statements,m,e.isStatement,Ln,Dn-Ln)),Ln=Dn)}var rn=b.createThis();return xe(Xe,Fn,rn),Un(Xe,An,rn),Bn&&e.addRange(Xe,e.visitNodes(Bn.body.statements,m,e.isStatement,Ln)),Xe=b.mergeLexicalEnvironment(Xe,fe()),e.setTextRange(b.createBlock(e.setTextRange(b.createNodeArray(Xe),Bn?Bn.body.statements:Fe.members),!0),Bn?Bn.body:void 0)}function Un(Fe,Bn,K){for(var An=0,Fn=Bn;An<Fn.length;An++){var ln=Fn[An],Ln=e.isClassStaticBlockDeclaration(ln)?qe(ln):Pe(ln,K);if(!Ln)continue;var Xe=b.createExpressionStatement(Ln);e.setSourceMapRange(Xe,e.moveRangePastModifiers(ln)),e.setCommentRange(Xe,ln),e.setOriginalNode(Xe,ln),Fe.push(Xe)}}function oe(Fe,Bn){for(var K=[],An=0,Fn=Fe;An<Fn.length;An++){var ln=Fn[An],Ln=e.isClassStaticBlockDeclaration(ln)?qe(ln):Pe(ln,Bn);if(!Ln)continue;e.startOnNewLine(Ln),e.setSourceMapRange(Ln,e.moveRangePastModifiers(ln)),e.setCommentRange(Ln,ln),e.setOriginalNode(Ln,ln),K.push(Ln)}return K}function Pe(Fe,Bn){var K=g,An=ke(Fe,Bn);return An&&e.hasStaticModifier(Fe)&&(f==null?void 0:f.facts)&&(e.setOriginalNode(An,Fe),e.addEmitFlags(An,2),A.set(e.getOriginalNodeId(An),f)),g=K,An}function ke(Fe,Bn){var K,An=!$,Fn=e.isComputedPropertyName(Fe.name)&&!e.isSimpleInlineableExpression(Fe.name.expression)?b.updateComputedPropertyName(Fe.name,b.getGeneratedNameForNode(Fe.name)):Fe.name;if(e.hasStaticModifier(Fe)&&(g=Fe),L&&e.isPrivateIdentifier(Fn)){var ln=Pn(Fn);if(ln)return ln.kind==="f"?ln.isStatic?V(ln.variableName,e.visitNode(Fe.initializer,m,e.isExpression)):ne(Bn,e.visitNode(Fe.initializer,m,e.isExpression),ln.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if((e.isPrivateIdentifier(Fn)||e.hasStaticModifier(Fe))&&!Fe.initializer)return;var Ln=e.getOriginalNode(Fe);if(e.hasSyntacticModifier(Ln,128))return;var Xe=Fe.initializer||An?(K=e.visitNode(Fe.initializer,m,e.isExpression))!==null&&K!==void 0?K:b.createVoidZero():e.isParameterPropertyDeclaration(Ln,Ln.parent)&&e.isIdentifier(Fn)?Fn:b.createVoidZero();if(An||e.isPrivateIdentifier(Fn)){var Dn=e.createMemberAccessForPropertyName(b,Bn,Fn,Fn);return b.createAssignment(Dn,Xe)}else{var rn=e.isComputedPropertyName(Fn)?Fn.expression:e.isIdentifier(Fn)?b.createStringLiteral(e.unescapeLeadingUnderscores(Fn.escapedText)):Fn,qn=b.createPropertyDescriptor({value:Xe,configurable:!0,writable:!0,enumerable:!0});return b.createObjectDefinePropertyCall(Bn,rn,qn)}}function Qe(){(le&1)===0&&(le|=1,w.enableSubstitution(79),P=[])}function gn(){(le&2)===0&&(le|=2,w.enableSubstitution(108),w.enableEmitNotification(254),w.enableEmitNotification(211),w.enableEmitNotification(169),w.enableEmitNotification(170),w.enableEmitNotification(171),w.enableEmitNotification(167),w.enableEmitNotification(165),w.enableEmitNotification(160))}function xe(Fe,Bn,K){if(!L||!e.some(Bn))return;var An=$t().weakSetName;e.Debug.assert(An,"weakSetName should be set in private identifier environment"),Fe.push(b.createExpressionStatement(_e(K,An)))}function Ze(Fe){return e.isPropertyAccessExpression(Fe)?b.updatePropertyAccessExpression(Fe,b.createVoidZero(),Fe.name):b.updateElementAccessExpression(Fe,b.createVoidZero(),e.visitNode(Fe.argumentExpression,m,e.isExpression))}function wn(Fe,Bn,K){var An=e.getOriginalNode(Bn);if(An.id){var Fn=A.get(An.id);if(Fn){var ln=f,Ln=F;f=Fn,F=Fn,ie(Fe,Bn,K),f=ln,F=Ln;return}}switch(Bn.kind){case 211:if(e.isArrowFunction(An)||e.getEmitFlags(Bn)&262144)break;case 254:case 169:{var ln=f,Ln=F;f=void 0,F=void 0,ie(Fe,Bn,K),f=ln,F=Ln;return}case 170:case 171:case 167:case 165:{var ln=f,Ln=F;F=f,f=void 0,ie(Fe,Bn,K),f=ln,F=Ln;return}case 160:{var ln=f,Ln=F;f=F,F=void 0,ie(Fe,Bn,K),f=ln,F=Ln;return}}ie(Fe,Bn,K)}function Be(Fe,Bn){return Bn=X(Fe,Bn),Fe===1?hn(Bn):Bn}function hn(Fe){switch(Fe.kind){case 79:return Je(Fe);case 108:return Kn(Fe)}return Fe}function Kn(Fe){if(le&2&&f){var Bn=f.facts,K=f.classConstructor;if(Bn&1)return b.createParenthesizedExpression(b.createVoidZero());if(K)return e.setTextRange(e.setOriginalNode(b.cloneNode(K),Fe),Fe)}return Fe}function Je(Fe){return En(Fe)||Fe}function En(Fe){if(le&1&&v.getNodeCheckFlags(Fe)&33554432){var Bn=v.getReferencedValueDeclaration(Fe);if(Bn){var K=P[Bn.id];if(K){var An=b.cloneNode(K);return e.setSourceMapRange(An,Fe),e.setCommentRange(An,Fe),An}}}return}function Nn(Fe,Bn){if(e.isComputedPropertyName(Fe)){var K=e.visitNode(Fe.expression,m,e.isExpression),An=e.skipPartiallyEmittedExpressions(K),Fn=e.isSimpleInlineableExpression(An),ln=e.isAssignmentExpression(An)&&e.isGeneratedIdentifier(An.left);if(!ln&&!Fn&&Bn){var Ln=b.getGeneratedNameForNode(Fe);return v.getNodeCheckFlags(Fe)&524288?Z(Ln):de(Ln),b.createAssignment(Ln,K)}return Fn||e.isIdentifier(An)?void 0:K}}function ct(){B.push(f),f=void 0}function yt(){f=B.pop()}function Gt(){return f||(f={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function $t(){var Fe=Gt();return Fe.privateIdentifierEnvironment||(Fe.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),Fe.privateIdentifierEnvironment}function Ke(){return I||(I=[])}function Vn(Fe){var Bn,K=e.getTextOfPropertyName(Fe.name),An=Gt(),Fn=An.classConstructor,ln=$t(),Ln=ln.weakSetName,Xe=[],Dn=Fe.name.escapedText,rn=ln.identifiers.get(Dn),qn=!O(Fe.name)&&rn===void 0;if(e.hasStaticModifier(Fe))if(e.Debug.assert(Fn,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(Fe)){var it=Re(K,Fe);ln.identifiers.set(Dn,{kind:"f",variableName:it,brandCheckIdentifier:Fn,isStatic:!0,isValid:qn})}else if(e.isMethodDeclaration(Fe)){var ht=Re(K,Fe);ln.identifiers.set(Dn,{kind:"m",methodName:ht,brandCheckIdentifier:Fn,isStatic:!0,isValid:qn})}else if(e.isGetAccessorDeclaration(Fe)){var Et=Re(K+"_get",Fe);(rn==null?void 0:rn.kind)==="a"&&rn.isStatic&&!rn.getterName?rn.getterName=Et:ln.identifiers.set(Dn,{kind:"a",getterName:Et,setterName:void 0,brandCheckIdentifier:Fn,isStatic:!0,isValid:qn})}else if(e.isSetAccessorDeclaration(Fe)){var zt=Re(K+"_set",Fe);(rn==null?void 0:rn.kind)==="a"&&rn.isStatic&&!rn.setterName?rn.setterName=zt:ln.identifiers.set(Dn,{kind:"a",getterName:void 0,setterName:zt,brandCheckIdentifier:Fn,isStatic:!0,isValid:qn})}else e.Debug.assertNever(Fe,"Unknown class element type.");else if(e.isPropertyDeclaration(Fe)){var fr=Re(K,Fe);ln.identifiers.set(Dn,{kind:"f",brandCheckIdentifier:fr,isStatic:!1,variableName:void 0,isValid:qn}),Xe.push(b.createAssignment(fr,b.createNewExpression(b.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration(Fe))e.Debug.assert(Ln,"weakSetName should be set in private identifier environment"),ln.identifiers.set(Dn,{kind:"m",methodName:Re(K,Fe),brandCheckIdentifier:Ln,isStatic:!1,isValid:qn});else if(e.isAccessor(Fe))if(e.Debug.assert(Ln,"weakSetName should be set in private identifier environment"),e.isGetAccessor(Fe)){var Et=Re(K+"_get",Fe);(rn==null?void 0:rn.kind)==="a"&&!rn.isStatic&&!rn.getterName?rn.getterName=Et:ln.identifiers.set(Dn,{kind:"a",getterName:Et,setterName:void 0,brandCheckIdentifier:Ln,isStatic:!1,isValid:qn})}else{var zt=Re(K+"_set",Fe);(rn==null?void 0:rn.kind)==="a"&&!rn.isStatic&&!rn.setterName?rn.setterName=zt:ln.identifiers.set(Dn,{kind:"a",getterName:void 0,setterName:zt,brandCheckIdentifier:Ln,isStatic:!1,isValid:qn})}else e.Debug.assertNever(Fe,"Unknown class element type.");(Bn=Ke()).push.apply(Bn,Xe)}function Zn(Fe,Bn){var K=$t().className,An=K?"_"+K:"",Fn=b.createUniqueName(An+"_"+Fe,16);return v.getNodeCheckFlags(Bn)&524288?Z(Fn):de(Fn),Fn}function Re(Fe,Bn){return Zn(Fe.substring(1),Bn.name)}function Pn(Fe){var Bn;if(f==null?void 0:f.privateIdentifierEnvironment){var K=f.privateIdentifierEnvironment.identifiers.get(Fe.escapedText);if(K)return K}for(var An=B.length-1;An>=0;--An){var Fn=B[An];if(!Fn)continue;var K=(Bn=Fn.privateIdentifierEnvironment)===null||Bn===void 0?void 0:Bn.identifiers.get(Fe.escapedText);if(K)return K}return}function rt(Fe){var Bn=b.getGeneratedNameForNode(Fe),K=Pn(Fe.name);if(!K)return e.visitEachChild(Fe,m,w);var An=Fe.expression;return(e.isThisProperty(Fe)||e.isSuperProperty(Fe)||!e.isSimpleCopiableExpression(Fe.expression))&&(An=b.createTempVariable(de,!0),Ke().push(b.createBinaryExpression(An,63,e.visitNode(Fe.expression,m,e.isExpression)))),b.createAssignmentTargetWrapper(Bn,Me(K,An,Bn,63))}function Yn(Fe){var Bn=e.getTargetOfBindingOrAssignmentElement(Fe);if(Bn){var K=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(Bn))K=rt(Bn);else if(E&&e.isSuperProperty(Bn)&&g&&f){var An=f.classConstructor,Fn=f.superClassReference,ln=f.facts;if(ln&1)K=Ze(Bn);else if(An&&Fn){var Ln=e.isElementAccessExpression(Bn)?e.visitNode(Bn.argumentExpression,m,e.isExpression):e.isIdentifier(Bn.name)?b.createStringLiteralFromNode(Bn.name):void 0;if(Ln){var Xe=b.createTempVariable(void 0);K=b.createAssignmentTargetWrapper(Xe,b.createReflectSetCall(Fn,Ln,Xe,An))}}}if(K)return e.isAssignmentExpression(Fe)?b.updateBinaryExpression(Fe,K,Fe.operatorToken,e.visitNode(Fe.right,m,e.isExpression)):e.isSpreadElement(Fe)?b.updateSpreadElement(Fe,K):K}return e.visitNode(Fe,N)}function gt(Fe){if(e.isObjectBindingOrAssignmentElement(Fe)&&!e.isShorthandPropertyAssignment(Fe)){var Bn=e.getTargetOfBindingOrAssignmentElement(Fe),K=void 0;if(Bn){if(e.isPrivateIdentifierPropertyAccessExpression(Bn))K=rt(Bn);else if(E&&e.isSuperProperty(Bn)&&g&&f){var An=f.classConstructor,Fn=f.superClassReference,ln=f.facts;if(ln&1)K=Ze(Bn);else if(An&&Fn){var Ln=e.isElementAccessExpression(Bn)?e.visitNode(Bn.argumentExpression,m,e.isExpression):e.isIdentifier(Bn.name)?b.createStringLiteralFromNode(Bn.name):void 0;if(Ln){var Xe=b.createTempVariable(void 0);K=b.createAssignmentTargetWrapper(Xe,b.createReflectSetCall(Fn,Ln,Xe,An))}}}}if(e.isPropertyAssignment(Fe)){var Dn=e.getInitializerOfBindingOrAssignmentElement(Fe);return b.updatePropertyAssignment(Fe,e.visitNode(Fe.name,m,e.isPropertyName),K?Dn?b.createAssignment(K,e.visitNode(Dn,m)):K:e.visitNode(Fe.initializer,N,e.isExpression))}if(e.isSpreadAssignment(Fe))return b.updateSpreadAssignment(Fe,K||e.visitNode(Fe.expression,N,e.isExpression));e.Debug.assert(K===void 0,"Should not have generated a wrapped target")}return e.visitNode(Fe,m)}function lt(Fe){return e.isArrayLiteralExpression(Fe)?b.updateArrayLiteralExpression(Fe,e.visitNodes(Fe.elements,Yn,e.isExpression)):b.updateObjectLiteralExpression(Fe,e.visitNodes(Fe.properties,gt,e.isObjectLiteralElementLike))}}e.transformClassFields=Y;function V(w,b){return e.factory.createAssignment(w,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",b||e.factory.createVoidZero())]))}function ne(w,b,de){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(de,"set"),void 0,[w,b||e.factory.createVoidZero()])}function _e(w,b){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(b,"add"),void 0,[w])}function O(w){return w.escapedText==="#constructor"}})(mn||(mn={}));var mn;(function(e){var s;(function(V){V[V.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(s||(s={}));var ue;(function(V){V[V.NonTopLevel=1]="NonTopLevel",V[V.HasLexicalThis=2]="HasLexicalThis"})(ue||(ue={}));function ee(V){var ne=V.factory,_e=V.getEmitHelperFactory,O=V.resumeLexicalEnvironment,w=V.endLexicalEnvironment,b=V.hoistVariableDeclaration,de=V.getEmitResolver(),fe=V.getCompilerOptions(),_=e.getEmitScriptTarget(fe),U,Z=0,v,W,x,$=[],L=0,E=V.onEmitNode,ae=V.onSubstituteNode;return V.onEmitNode=Se,V.onSubstituteNode=$e,e.chainBundle(V,X);function X(Ye){if(Ye.isDeclarationFile)return Ye;ie(1,!1),ie(2,!e.isEffectiveStrictModeSourceFile(Ye,fe));var Ne=e.visitEachChild(Ye,A,V);return e.addEmitHelpers(Ne,V.readEmitHelpers()),Ne}function ie(Ye,Ne){L=Ne?L|Ye:L&~Ye}function le(Ye){return(L&Ye)!==0}function P(){return!le(1)}function I(){return le(2)}function re(Ye,Ne,je){var xn=Ye&~L;if(xn){ie(xn,!0);var Wn=Ne(je);return ie(xn,!1),Wn}return Ne(je)}function B(Ye){return e.visitEachChild(Ye,A,V)}function A(Ye){if((Ye.transformFlags&128)===0)return Ye;switch(Ye.kind){case 130:return;case 216:return m(Ye);case 167:return re(1|2,k,Ye);case 254:return re(1|2,N,Ye);case 211:return re(1|2,D,Ye);case 212:return re(1,R,Ye);case 204:return W&&e.isPropertyAccessExpression(Ye)&&Ye.expression.kind===106&&W.add(Ye.name.escapedText),e.visitEachChild(Ye,A,V);case 205:return W&&Ye.expression.kind===106&&(x=!0),e.visitEachChild(Ye,A,V);case 170:case 171:case 169:case 255:case 224:return re(1|2,B,Ye);default:return e.visitEachChild(Ye,A,V)}}function f(Ye){if(e.isNodeWithPossibleHoistedDeclaration(Ye))switch(Ye.kind){case 235:return g(Ye);case 240:return T(Ye);case 241:return p(Ye);case 242:return d(Ye);case 290:return F(Ye);case 233:case 247:case 261:case 287:case 288:case 250:case 238:case 239:case 237:case 246:case 248:return e.visitEachChild(Ye,f,V);default:return e.Debug.assertNever(Ye,"Unhandled node.")}return A(Ye)}function F(Ye){var Ne=new e.Set;me(Ye.variableDeclaration,Ne);var je;if(Ne.forEach(function(dn,vn){v.has(vn)&&(je||(je=new e.Set(v)),je.delete(vn))}),je){var xn=v;v=je;var Wn=e.visitEachChild(Ye,f,V);return v=xn,Wn}else return e.visitEachChild(Ye,f,V)}function g(Ye){if(q(Ye.declarationList)){var Ne=J(Ye.declarationList,!1);return Ne?ne.createExpressionStatement(Ne):void 0}return e.visitEachChild(Ye,A,V)}function p(Ye){return ne.updateForInStatement(Ye,q(Ye.initializer)?J(Ye.initializer,!0):e.visitNode(Ye.initializer,A,e.isForInitializer),e.visitNode(Ye.expression,A,e.isExpression),e.visitIterationBody(Ye.statement,f,V))}function d(Ye){return ne.updateForOfStatement(Ye,e.visitNode(Ye.awaitModifier,A,e.isToken),q(Ye.initializer)?J(Ye.initializer,!0):e.visitNode(Ye.initializer,A,e.isForInitializer),e.visitNode(Ye.expression,A,e.isExpression),e.visitIterationBody(Ye.statement,f,V))}function T(Ye){var Ne=Ye.initializer;return ne.updateForStatement(Ye,q(Ne)?J(Ne,!1):e.visitNode(Ye.initializer,A,e.isForInitializer),e.visitNode(Ye.condition,A,e.isExpression),e.visitNode(Ye.incrementor,A,e.isExpression),e.visitIterationBody(Ye.statement,f,V))}function m(Ye){return P()?e.visitEachChild(Ye,A,V):e.setOriginalNode(e.setTextRange(ne.createYieldExpression(void 0,e.visitNode(Ye.expression,A,e.isExpression)),Ye),Ye)}function k(Ye){return ne.updateMethodDeclaration(Ye,void 0,e.visitNodes(Ye.modifiers,A,e.isModifier),Ye.asteriskToken,Ye.name,void 0,void 0,e.visitParameterList(Ye.parameters,A,V),void 0,e.getFunctionFlags(Ye)&2?Te(Ye):e.visitFunctionBody(Ye.body,A,V))}function N(Ye){return ne.updateFunctionDeclaration(Ye,void 0,e.visitNodes(Ye.modifiers,A,e.isModifier),Ye.asteriskToken,Ye.name,void 0,e.visitParameterList(Ye.parameters,A,V),void 0,e.getFunctionFlags(Ye)&2?Te(Ye):e.visitFunctionBody(Ye.body,A,V))}function D(Ye){return ne.updateFunctionExpression(Ye,e.visitNodes(Ye.modifiers,A,e.isModifier),Ye.asteriskToken,Ye.name,void 0,e.visitParameterList(Ye.parameters,A,V),void 0,e.getFunctionFlags(Ye)&2?Te(Ye):e.visitFunctionBody(Ye.body,A,V))}function R(Ye){return ne.updateArrowFunction(Ye,e.visitNodes(Ye.modifiers,A,e.isModifier),void 0,e.visitParameterList(Ye.parameters,A,V),void 0,Ye.equalsGreaterThanToken,e.getFunctionFlags(Ye)&2?Te(Ye):e.visitFunctionBody(Ye.body,A,V))}function me(Ye,Ne){var je=Ye.name;if(e.isIdentifier(je))Ne.add(je.escapedText);else for(var xn=0,Wn=je.elements;xn<Wn.length;xn++){var dn=Wn[xn];e.isOmittedExpression(dn)||me(dn,Ne)}}function q(Ye){return!!Ye&&e.isVariableDeclarationList(Ye)&&!(Ye.flags&3)&&Ye.declarations.some(te)}function J(Ye,Ne){C(Ye);var je=e.getInitializedVariables(Ye);return je.length===0?Ne?e.visitNode(ne.converters.convertToAssignmentElementTarget(Ye.declarations[0].name),A,e.isExpression):void 0:ne.inlineExpressions(e.map(je,Oe))}function C(Ye){e.forEach(Ye.declarations,we)}function we(Ye){var Ne=Ye.name;if(e.isIdentifier(Ne))b(Ne);else for(var je=0,xn=Ne.elements;je<xn.length;je++){var Wn=xn[je];e.isOmittedExpression(Wn)||we(Wn)}}function Oe(Ye){var Ne=e.setSourceMapRange(ne.createAssignment(ne.converters.convertToAssignmentElementTarget(Ye.name),Ye.initializer),Ye);return e.visitNode(Ne,A,e.isExpression)}function te(Ye){var Ne=Ye.name;if(e.isIdentifier(Ne))return v.has(Ne.escapedText);for(var je=0,xn=Ne.elements;je<xn.length;je++){var Wn=xn[je];if(!e.isOmittedExpression(Wn)&&te(Wn))return!0}return!1}function Te(Ye){O();var Ne=e.getOriginalNode(Ye,e.isFunctionLike),je=Ne.type,xn=_<2?Ce(je):void 0,Wn=Ye.kind===212,dn=(de.getNodeCheckFlags(Ye)&8192)!==0,vn=v;v=new e.Set;for(var o=0,Cn=Ye.parameters;o<Cn.length;o++){var z=Cn[o];me(z,v)}var tn=W,$n=x;Wn||(W=new e.Set,x=!1);var Un;if(Wn){var xe=_e().createAwaiterHelper(I(),dn,xn,be(Ye.body)),Ze=w();if(e.some(Ze)){var gn=ne.converters.convertToFunctionBlock(xe);Un=ne.updateBlock(gn,e.setTextRange(ne.createNodeArray(e.concatenate(Ze,gn.statements)),gn.statements))}else Un=xe}else{var oe=[],Pe=ne.copyPrologue(Ye.body.statements,oe,!1,A);oe.push(ne.createReturnStatement(_e().createAwaiterHelper(I(),dn,xn,be(Ye.body,Pe)))),e.insertStatementsAfterStandardPrologue(oe,w());var ke=_>=2&&de.getNodeCheckFlags(Ye)&(4096|2048);if(ke&&(Ue(),W.size)){var Qe=Y(ne,de,Ye,W);$[e.getNodeId(Qe)]=!0,e.insertStatementsAfterStandardPrologue(oe,[Qe])}var gn=ne.createBlock(oe,!0);e.setTextRange(gn,Ye.body),ke&&x&&(de.getNodeCheckFlags(Ye)&4096?e.addEmitHelper(gn,e.advancedAsyncSuperHelper):de.getNodeCheckFlags(Ye)&2048&&e.addEmitHelper(gn,e.asyncSuperHelper)),Un=gn}return v=vn,Wn||(W=tn,x=$n),Un}function be(Ye,Ne){return e.isBlock(Ye)?ne.updateBlock(Ye,e.visitNodes(Ye.statements,f,e.isStatement,Ne)):ne.converters.convertToFunctionBlock(e.visitNode(Ye,f,e.isConciseBody))}function Ce(Ye){var Ne=Ye&&e.getEntityNameFromTypeNode(Ye);if(Ne&&e.isEntityName(Ne)){var je=de.getTypeReferenceSerializationKind(Ne);if(je===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||je===e.TypeReferenceSerializationKind.Unknown)return Ne}return}function Ue(){(U&1)===0&&(U|=1,V.enableSubstitution(206),V.enableSubstitution(204),V.enableSubstitution(205),V.enableEmitNotification(255),V.enableEmitNotification(167),V.enableEmitNotification(170),V.enableEmitNotification(171),V.enableEmitNotification(169),V.enableEmitNotification(235))}function Se(Ye,Ne,je){if(U&1&&Me(Ne)){var xn=de.getNodeCheckFlags(Ne)&(2048|4096);if(xn!==Z){var Wn=Z;Z=xn,E(Ye,Ne,je),Z=Wn;return}}else if(U&&$[e.getNodeId(Ne)]){var Wn=Z;Z=0,E(Ye,Ne,je),Z=Wn;return}E(Ye,Ne,je)}function $e(Ye,Ne){return Ne=ae(Ye,Ne),Ye===1&&Z?ce(Ne):Ne}function ce(Ye){switch(Ye.kind){case 204:return Le(Ye);case 205:return qe(Ye);case 206:return pe(Ye)}return Ye}function Le(Ye){return Ye.expression.kind===106?e.setTextRange(ne.createPropertyAccessExpression(ne.createUniqueName("_super",16|32),Ye.name),Ye):Ye}function qe(Ye){return Ye.expression.kind===106?fn(Ye.argumentExpression,Ye):Ye}function pe(Ye){var Ne=Ye.expression;if(e.isSuperProperty(Ne)){var je=e.isPropertyAccessExpression(Ne)?Le(Ne):qe(Ne);return ne.createCallExpression(ne.createPropertyAccessExpression(je,"call"),void 0,Mt([ne.createThis()],Ye.arguments,!0))}return Ye}function Me(Ye){var Ne=Ye.kind;return Ne===255||Ne===169||Ne===167||Ne===170||Ne===171}function fn(Ye,Ne){return Z&4096?e.setTextRange(ne.createPropertyAccessExpression(ne.createCallExpression(ne.createUniqueName("_superIndex",16|32),void 0,[Ye]),"value"),Ne):e.setTextRange(ne.createCallExpression(ne.createUniqueName("_superIndex",16|32),void 0,[Ye]),Ne)}}e.transformES2017=ee;function Y(V,ne,_e,O){var w=(ne.getNodeCheckFlags(_e)&4096)!==0,b=[];return O.forEach(function(de,fe){var _=e.unescapeLeadingUnderscores(fe),U=[];U.push(V.createPropertyAssignment("get",V.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(V.createPropertyAccessExpression(e.setEmitFlags(V.createSuper(),4),_),4)))),w&&U.push(V.createPropertyAssignment("set",V.createArrowFunction(void 0,void 0,[V.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,V.createAssignment(e.setEmitFlags(V.createPropertyAccessExpression(e.setEmitFlags(V.createSuper(),4),_),4),V.createIdentifier("v"))))),b.push(V.createPropertyAssignment(_,V.createObjectLiteralExpression(U)))}),V.createVariableStatement(void 0,V.createVariableDeclarationList([V.createVariableDeclaration(V.createUniqueName("_super",16|32),void 0,void 0,V.createCallExpression(V.createPropertyAccessExpression(V.createIdentifier("Object"),"create"),void 0,[V.createNull(),V.createObjectLiteralExpression(b,!0)]))],2))}e.createSuperAccessVariableStatement=Y})(mn||(mn={}));var mn;(function(e){var s;(function(Y){Y[Y.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(s||(s={}));var ue;(function(Y){Y[Y.None=0]="None",Y[Y.HasLexicalThis=1]="HasLexicalThis",Y[Y.IterationContainer=2]="IterationContainer",Y[Y.AncestorFactsMask=3]="AncestorFactsMask",Y[Y.SourceFileIncludes=1]="SourceFileIncludes",Y[Y.SourceFileExcludes=2]="SourceFileExcludes",Y[Y.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",Y[Y.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",Y[Y.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",Y[Y.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",Y[Y.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",Y[Y.IterationStatementIncludes=2]="IterationStatementIncludes",Y[Y.IterationStatementExcludes=0]="IterationStatementExcludes"})(ue||(ue={}));function ee(Y){var V=Y.factory,ne=Y.getEmitHelperFactory,_e=Y.resumeLexicalEnvironment,O=Y.endLexicalEnvironment,w=Y.hoistVariableDeclaration,b=Y.getEmitResolver(),de=Y.getCompilerOptions(),fe=e.getEmitScriptTarget(de),_=Y.onEmitNode;Y.onEmitNode=tn;var U=Y.onSubstituteNode;Y.onSubstituteNode=$n;var Z=!1,v,W,x=0,$=0,L,E,ae,X,ie=[];return e.chainBundle(Y,B);function le(xe,Ze){return $!==($&~xe|Ze)}function P(xe,Ze){var wn=$;return $=($&~xe|Ze)&3,wn}function I(xe){$=xe}function re(xe){E=e.append(E,V.createVariableDeclaration(xe))}function B(xe){if(xe.isDeclarationFile)return xe;L=xe;var Ze=J(xe);return e.addEmitHelpers(Ze,Y.readEmitHelpers()),L=void 0,E=void 0,Ze}function A(xe){return d(xe,!1)}function f(xe){return d(xe,!0)}function F(xe){return xe.kind===130?void 0:xe}function g(xe,Ze,wn,Be){if(le(wn,Be)){var hn=P(wn,Be),Kn=xe(Ze);return I(hn),Kn}return xe(Ze)}function p(xe){return e.visitEachChild(xe,A,Y)}function d(xe,Ze){if((xe.transformFlags&64)===0)return xe;switch(xe.kind){case 216:return T(xe);case 222:return m(xe);case 245:return k(xe);case 248:return N(xe);case 203:return R(xe);case 219:return we(xe,Ze);case 346:return Oe(xe,Ze);case 290:return te(xe);case 235:return Te(xe);case 252:return be(xe);case 238:case 239:case 241:return g(p,xe,0,2);case 242:return $e(xe,void 0);case 240:return g(Ue,xe,0,2);case 215:return Se(xe);case 169:return g(fn,xe,2,1);case 167:return g(je,xe,2,1);case 170:return g(Ye,xe,2,1);case 171:return g(Ne,xe,2,1);case 254:return g(xn,xe,2,1);case 211:return g(dn,xe,2,1);case 212:return g(Wn,xe,2,0);case 162:return Me(xe);case 236:return me(xe);case 210:return q(xe,Ze);case 208:return C(xe);case 204:return ae&&e.isPropertyAccessExpression(xe)&&xe.expression.kind===106&&ae.add(xe.name.escapedText),e.visitEachChild(xe,A,Y);case 205:return ae&&xe.expression.kind===106&&(X=!0),e.visitEachChild(xe,A,Y);case 255:case 224:return g(p,xe,2,1);default:return e.visitEachChild(xe,A,Y)}}function T(xe){return W&2&&W&1?e.setOriginalNode(e.setTextRange(V.createYieldExpression(void 0,ne().createAwaitHelper(e.visitNode(xe.expression,A,e.isExpression))),xe),xe):e.visitEachChild(xe,A,Y)}function m(xe){if(W&2&&W&1){if(xe.asteriskToken){var Ze=e.visitNode(e.Debug.assertDefined(xe.expression),A,e.isExpression);return e.setOriginalNode(e.setTextRange(V.createYieldExpression(void 0,ne().createAwaitHelper(V.updateYieldExpression(xe,xe.asteriskToken,e.setTextRange(ne().createAsyncDelegatorHelper(e.setTextRange(ne().createAsyncValuesHelper(Ze),Ze)),Ze)))),xe),xe)}return e.setOriginalNode(e.setTextRange(V.createYieldExpression(void 0,qe(xe.expression?e.visitNode(xe.expression,A,e.isExpression):V.createVoidZero())),xe),xe)}return e.visitEachChild(xe,A,Y)}function k(xe){return W&2&&W&1?V.updateReturnStatement(xe,qe(xe.expression?e.visitNode(xe.expression,A,e.isExpression):V.createVoidZero())):e.visitEachChild(xe,A,Y)}function N(xe){if(W&2){var Ze=e.unwrapInnermostStatementOfLabel(xe);return Ze.kind===242&&Ze.awaitModifier?$e(Ze,xe):V.restoreEnclosingLabel(e.visitNode(Ze,A,e.isStatement,V.liftToBlock),xe)}return e.visitEachChild(xe,A,Y)}function D(xe){for(var Ze,wn=[],Be=0,hn=xe;Be<hn.length;Be++){var Kn=hn[Be];if(Kn.kind===293){Ze&&(wn.push(V.createObjectLiteralExpression(Ze)),Ze=void 0);var Je=Kn.expression;wn.push(e.visitNode(Je,A,e.isExpression))}else Ze=e.append(Ze,Kn.kind===291?V.createPropertyAssignment(Kn.name,e.visitNode(Kn.initializer,A,e.isExpression)):e.visitNode(Kn,A,e.isObjectLiteralElementLike))}return Ze&&wn.push(V.createObjectLiteralExpression(Ze)),wn}function R(xe){if(xe.transformFlags&32768){var Ze=D(xe.properties);Ze.length&&Ze[0].kind!==203&&Ze.unshift(V.createObjectLiteralExpression());var wn=Ze[0];if(Ze.length>1){for(var Be=1;Be<Ze.length;Be++)wn=ne().createAssignHelper([wn,Ze[Be]]);return wn}else return ne().createAssignHelper(Ze)}return e.visitEachChild(xe,A,Y)}function me(xe){return e.visitEachChild(xe,f,Y)}function q(xe,Ze){return e.visitEachChild(xe,Ze?f:A,Y)}function J(xe){var Ze=P(2,e.isEffectiveStrictModeSourceFile(xe,de)?0:1);Z=!1;var wn=e.visitEachChild(xe,A,Y),Be=e.concatenate(wn.statements,E&&[V.createVariableStatement(void 0,V.createVariableDeclarationList(E))]),hn=V.updateSourceFile(wn,e.setTextRange(V.createNodeArray(Be),xe.statements));return I(Ze),hn}function C(xe){return e.processTaggedTemplateExpression(Y,xe,A,L,re,e.ProcessLevel.LiftRestriction)}function we(xe,Ze){return e.isDestructuringAssignment(xe)&&xe.left.transformFlags&32768?e.flattenDestructuringAssignment(xe,A,Y,1,!Ze):xe.operatorToken.kind===27?V.updateBinaryExpression(xe,e.visitNode(xe.left,f,e.isExpression),xe.operatorToken,e.visitNode(xe.right,Ze?f:A,e.isExpression)):e.visitEachChild(xe,A,Y)}function Oe(xe,Ze){if(Ze)return e.visitEachChild(xe,f,Y);for(var wn,Be=0;Be<xe.elements.length;Be++){var hn=xe.elements[Be],Kn=e.visitNode(hn,Be<xe.elements.length-1?f:A,e.isExpression);(wn||Kn!==hn)&&(wn||(wn=xe.elements.slice(0,Be)),wn.push(Kn))}var Je=wn?e.setTextRange(V.createNodeArray(wn),xe.elements):xe.elements;return V.updateCommaListExpression(xe,Je)}function te(xe){if(xe.variableDeclaration&&e.isBindingPattern(xe.variableDeclaration.name)&&xe.variableDeclaration.name.transformFlags&32768){var Ze=V.getGeneratedNameForNode(xe.variableDeclaration.name),wn=V.updateVariableDeclaration(xe.variableDeclaration,xe.variableDeclaration.name,void 0,void 0,Ze),Be=e.flattenDestructuringBinding(wn,A,Y,1),hn=e.visitNode(xe.block,A,e.isBlock);return e.some(Be)&&(hn=V.updateBlock(hn,Mt([V.createVariableStatement(void 0,Be)],hn.statements,!0))),V.updateCatchClause(xe,V.updateVariableDeclaration(xe.variableDeclaration,Ze,void 0,void 0,void 0),hn)}return e.visitEachChild(xe,A,Y)}function Te(xe){if(e.hasSyntacticModifier(xe,1)){var Ze=Z;Z=!0;var wn=e.visitEachChild(xe,A,Y);return Z=Ze,wn}return e.visitEachChild(xe,A,Y)}function be(xe){if(Z){var Ze=Z;Z=!1;var wn=Ce(xe,!0);return Z=Ze,wn}return Ce(xe,!1)}function Ce(xe,Ze){return e.isBindingPattern(xe.name)&&xe.name.transformFlags&32768?e.flattenDestructuringBinding(xe,A,Y,1,void 0,Ze):e.visitEachChild(xe,A,Y)}function Ue(xe){return V.updateForStatement(xe,e.visitNode(xe.initializer,f,e.isForInitializer),e.visitNode(xe.condition,A,e.isExpression),e.visitNode(xe.incrementor,f,e.isExpression),e.visitIterationBody(xe.statement,A,Y))}function Se(xe){return e.visitEachChild(xe,f,Y)}function $e(xe,Ze){var wn=P(0,2);xe.initializer.transformFlags&32768&&(xe=ce(xe));var Be=xe.awaitModifier?pe(xe,Ze,wn):V.restoreEnclosingLabel(e.visitEachChild(xe,A,Y),Ze);return I(wn),Be}function ce(xe){var Ze=e.skipParentheses(xe.initializer);if(e.isVariableDeclarationList(Ze)||e.isAssignmentPattern(Ze)){var wn=void 0,Be=void 0,hn=V.createTempVariable(void 0),Kn=[e.createForOfBindingStatement(V,Ze,hn)];return e.isBlock(xe.statement)?(e.addRange(Kn,xe.statement.statements),wn=xe.statement,Be=xe.statement.statements):xe.statement&&(e.append(Kn,xe.statement),wn=xe.statement,Be=xe.statement),V.updateForOfStatement(xe,xe.awaitModifier,e.setTextRange(V.createVariableDeclarationList([e.setTextRange(V.createVariableDeclaration(hn),xe.initializer)],1),xe.initializer),xe.expression,e.setTextRange(V.createBlock(e.setTextRange(V.createNodeArray(Kn),Be),!0),wn))}return xe}function Le(xe,Ze){var wn=e.createForOfBindingStatement(V,xe.initializer,Ze),Be,hn,Kn=[e.visitNode(wn,A,e.isStatement)],Je=e.visitIterationBody(xe.statement,A,Y);return e.isBlock(Je)?(e.addRange(Kn,Je.statements),Be=Je,hn=Je.statements):Kn.push(Je),e.setEmitFlags(e.setTextRange(V.createBlock(e.setTextRange(V.createNodeArray(Kn),hn),!0),Be),48|384)}function qe(xe){return W&1?V.createYieldExpression(void 0,ne().createAwaitHelper(xe)):V.createAwaitExpression(xe)}function pe(xe,Ze,wn){var Be=e.visitNode(xe.expression,A,e.isExpression),hn=e.isIdentifier(Be)?V.getGeneratedNameForNode(Be):V.createTempVariable(void 0),Kn=e.isIdentifier(Be)?V.getGeneratedNameForNode(hn):V.createTempVariable(void 0),Je=V.createUniqueName("e"),En=V.getGeneratedNameForNode(Je),Nn=V.createTempVariable(void 0),ct=e.setTextRange(ne().createAsyncValuesHelper(Be),xe.expression),yt=V.createCallExpression(V.createPropertyAccessExpression(hn,"next"),void 0,[]),Gt=V.createPropertyAccessExpression(Kn,"done"),$t=V.createPropertyAccessExpression(Kn,"value"),Ke=V.createFunctionCallCall(Nn,hn,[]);w(Je),w(Nn);var Vn=wn&2?V.inlineExpressions([V.createAssignment(Je,V.createVoidZero()),ct]):ct,Zn=e.setEmitFlags(e.setTextRange(V.createForStatement(e.setEmitFlags(e.setTextRange(V.createVariableDeclarationList([e.setTextRange(V.createVariableDeclaration(hn,void 0,void 0,Vn),xe.expression),V.createVariableDeclaration(Kn)]),xe.expression),2097152),V.createComma(V.createAssignment(Kn,qe(yt)),V.createLogicalNot(Gt)),void 0,Le(xe,$t)),xe),256);return V.createTryStatement(V.createBlock([V.restoreEnclosingLabel(Zn,Ze)]),V.createCatchClause(V.createVariableDeclaration(En),e.setEmitFlags(V.createBlock([V.createExpressionStatement(V.createAssignment(Je,V.createObjectLiteralExpression([V.createPropertyAssignment("error",En)])))]),1)),V.createBlock([V.createTryStatement(V.createBlock([e.setEmitFlags(V.createIfStatement(V.createLogicalAnd(V.createLogicalAnd(Kn,V.createLogicalNot(Gt)),V.createAssignment(Nn,V.createPropertyAccessExpression(hn,"return"))),V.createExpressionStatement(qe(Ke))),1)]),void 0,e.setEmitFlags(V.createBlock([e.setEmitFlags(V.createIfStatement(Je,V.createThrowStatement(V.createPropertyAccessExpression(Je,"error"))),1)]),1))]))}function Me(xe){return xe.transformFlags&32768?V.updateParameterDeclaration(xe,void 0,void 0,xe.dotDotDotToken,V.getGeneratedNameForNode(xe),void 0,void 0,e.visitNode(xe.initializer,A,e.isExpression)):e.visitEachChild(xe,A,Y)}function fn(xe){var Ze=W;W=0;var wn=V.updateConstructorDeclaration(xe,void 0,xe.modifiers,e.visitParameterList(xe.parameters,A,Y),o(xe));return W=Ze,wn}function Ye(xe){var Ze=W;W=0;var wn=V.updateGetAccessorDeclaration(xe,void 0,xe.modifiers,e.visitNode(xe.name,A,e.isPropertyName),e.visitParameterList(xe.parameters,A,Y),void 0,o(xe));return W=Ze,wn}function Ne(xe){var Ze=W;W=0;var wn=V.updateSetAccessorDeclaration(xe,void 0,xe.modifiers,e.visitNode(xe.name,A,e.isPropertyName),e.visitParameterList(xe.parameters,A,Y),o(xe));return W=Ze,wn}function je(xe){var Ze=W;W=e.getFunctionFlags(xe);var wn=V.updateMethodDeclaration(xe,void 0,W&1?e.visitNodes(xe.modifiers,F,e.isModifier):xe.modifiers,W&2?void 0:xe.asteriskToken,e.visitNode(xe.name,A,e.isPropertyName),e.visitNode(void 0,A,e.isToken),void 0,e.visitParameterList(xe.parameters,A,Y),void 0,W&2&&W&1?vn(xe):o(xe));return W=Ze,wn}function xn(xe){var Ze=W;W=e.getFunctionFlags(xe);var wn=V.updateFunctionDeclaration(xe,void 0,W&1?e.visitNodes(xe.modifiers,F,e.isModifier):xe.modifiers,W&2?void 0:xe.asteriskToken,xe.name,void 0,e.visitParameterList(xe.parameters,A,Y),void 0,W&2&&W&1?vn(xe):o(xe));return W=Ze,wn}function Wn(xe){var Ze=W;W=e.getFunctionFlags(xe);var wn=V.updateArrowFunction(xe,xe.modifiers,void 0,e.visitParameterList(xe.parameters,A,Y),void 0,xe.equalsGreaterThanToken,o(xe));return W=Ze,wn}function dn(xe){var Ze=W;W=e.getFunctionFlags(xe);var wn=V.updateFunctionExpression(xe,W&1?e.visitNodes(xe.modifiers,F,e.isModifier):xe.modifiers,W&2?void 0:xe.asteriskToken,xe.name,void 0,e.visitParameterList(xe.parameters,A,Y),void 0,W&2&&W&1?vn(xe):o(xe));return W=Ze,wn}function vn(xe){_e();var Ze=[],wn=V.copyPrologue(xe.body.statements,Ze,!1,A);Cn(Ze,xe);var Be=ae,hn=X;ae=new e.Set,X=!1;var Kn=V.createReturnStatement(ne().createAsyncGeneratorHelper(V.createFunctionExpression(void 0,V.createToken(41),xe.name&&V.getGeneratedNameForNode(xe.name),void 0,[],void 0,V.updateBlock(xe.body,e.visitLexicalEnvironment(xe.body.statements,A,Y,wn))),!!($&1))),Je=fe>=2&&b.getNodeCheckFlags(xe)&(4096|2048);if(Je){z();var En=e.createSuperAccessVariableStatement(V,b,xe,ae);ie[e.getNodeId(En)]=!0,e.insertStatementsAfterStandardPrologue(Ze,[En])}Ze.push(Kn),e.insertStatementsAfterStandardPrologue(Ze,O());var Nn=V.updateBlock(xe.body,Ze);return Je&&X&&(b.getNodeCheckFlags(xe)&4096?e.addEmitHelper(Nn,e.advancedAsyncSuperHelper):b.getNodeCheckFlags(xe)&2048&&e.addEmitHelper(Nn,e.asyncSuperHelper)),ae=Be,X=hn,Nn}function o(xe){var Ze;_e();var wn=0,Be=[],hn=(Ze=e.visitNode(xe.body,A,e.isConciseBody))!==null&&Ze!==void 0?Ze:V.createBlock([]);e.isBlock(hn)&&(wn=V.copyPrologue(hn.statements,Be,!1,A)),e.addRange(Be,Cn(void 0,xe));var Kn=O();if(wn>0||e.some(Be)||e.some(Kn)){var Je=V.converters.convertToFunctionBlock(hn,!0);return e.insertStatementsAfterStandardPrologue(Be,Kn),e.addRange(Be,Je.statements.slice(wn)),V.updateBlock(Je,e.setTextRange(V.createNodeArray(Be),Je.statements))}return hn}function Cn(xe,Ze){for(var wn=0,Be=Ze.parameters;wn<Be.length;wn++){var hn=Be[wn];if(hn.transformFlags&32768){var Kn=V.getGeneratedNameForNode(hn),Je=e.flattenDestructuringBinding(hn,A,Y,1,Kn,!1,!0);if(e.some(Je)){var En=V.createVariableStatement(void 0,V.createVariableDeclarationList(Je));e.setEmitFlags(En,1048576),xe=e.append(xe,En)}}}return xe}function z(){(v&1)===0&&(v|=1,Y.enableSubstitution(206),Y.enableSubstitution(204),Y.enableSubstitution(205),Y.enableEmitNotification(255),Y.enableEmitNotification(167),Y.enableEmitNotification(170),Y.enableEmitNotification(171),Y.enableEmitNotification(169),Y.enableEmitNotification(235))}function tn(xe,Ze,wn){if(v&1&&Qe(Ze)){var Be=b.getNodeCheckFlags(Ze)&(2048|4096);if(Be!==x){var hn=x;x=Be,_(xe,Ze,wn),x=hn;return}}else if(v&&ie[e.getNodeId(Ze)]){var hn=x;x=0,_(xe,Ze,wn),x=hn;return}_(xe,Ze,wn)}function $n(xe,Ze){return Ze=U(xe,Ze),xe===1&&x?Un(Ze):Ze}function Un(xe){switch(xe.kind){case 204:return oe(xe);case 205:return Pe(xe);case 206:return ke(xe)}return xe}function oe(xe){return xe.expression.kind===106?e.setTextRange(V.createPropertyAccessExpression(V.createUniqueName("_super",16|32),xe.name),xe):xe}function Pe(xe){return xe.expression.kind===106?gn(xe.argumentExpression,xe):xe}function ke(xe){var Ze=xe.expression;if(e.isSuperProperty(Ze)){var wn=e.isPropertyAccessExpression(Ze)?oe(Ze):Pe(Ze);return V.createCallExpression(V.createPropertyAccessExpression(wn,"call"),void 0,Mt([V.createThis()],xe.arguments,!0))}return xe}function Qe(xe){var Ze=xe.kind;return Ze===255||Ze===169||Ze===167||Ze===170||Ze===171}function gn(xe,Ze){return x&4096?e.setTextRange(V.createPropertyAccessExpression(V.createCallExpression(V.createIdentifier("_superIndex"),void 0,[xe]),"value"),Ze):e.setTextRange(V.createCallExpression(V.createIdentifier("_superIndex"),void 0,[xe]),Ze)}}e.transformES2018=ee})(mn||(mn={}));var mn;(function(e){function s(ue){var ee=ue.factory;return e.chainBundle(ue,Y);function Y(_e){return _e.isDeclarationFile?_e:e.visitEachChild(_e,V,ue)}function V(_e){if((_e.transformFlags&32)===0)return _e;switch(_e.kind){case 290:return ne(_e);default:return e.visitEachChild(_e,V,ue)}}function ne(_e){return _e.variableDeclaration?e.visitEachChild(_e,V,ue):ee.updateCatchClause(_e,ee.createVariableDeclaration(ee.createTempVariable(void 0)),e.visitNode(_e.block,V,e.isBlock))}}e.transformES2019=s})(mn||(mn={}));var mn;(function(e){function s(ue){var ee=ue.factory,Y=ue.hoistVariableDeclaration;return e.chainBundle(ue,V);function V(v){return v.isDeclarationFile?v:e.visitEachChild(v,ne,ue)}function ne(v){if((v.transformFlags&16)===0)return v;switch(v.kind){case 206:{var W=b(v,!1);return e.Debug.assertNotNode(W,e.isSyntheticReference),W}case 204:case 205:if(e.isOptionalChain(v)){var W=fe(v,!1,!1);return e.Debug.assertNotNode(W,e.isSyntheticReference),W}return e.visitEachChild(v,ne,ue);case 219:return v.operatorToken.kind===60?U(v):e.visitEachChild(v,ne,ue);case 213:return Z(v);default:return e.visitEachChild(v,ne,ue)}}function _e(v){e.Debug.assertNotNode(v,e.isNonNullChain);for(var W=[v];!v.questionDotToken&&!e.isTaggedTemplateExpression(v);)v=e.cast(e.skipPartiallyEmittedExpressions(v.expression),e.isOptionalChain),e.Debug.assertNotNode(v,e.isNonNullChain),W.unshift(v);return{expression:v.expression,chain:W}}function O(v,W,x){var $=de(v.expression,W,x);return e.isSyntheticReference($)?ee.createSyntheticReferenceExpression(ee.updateParenthesizedExpression(v,$.expression),$.thisArg):ee.updateParenthesizedExpression(v,$)}function w(v,W,x){if(e.isOptionalChain(v))return fe(v,W,x);var $=e.visitNode(v.expression,ne,e.isExpression);e.Debug.assertNotNode($,e.isSyntheticReference);var L;return W&&(e.isSimpleCopiableExpression($)?L=$:(L=ee.createTempVariable(Y),$=ee.createAssignment(L,$))),$=v.kind===204?ee.updatePropertyAccessExpression(v,$,e.visitNode(v.name,ne,e.isIdentifier)):ee.updateElementAccessExpression(v,$,e.visitNode(v.argumentExpression,ne,e.isExpression)),L?ee.createSyntheticReferenceExpression($,L):$}function b(v,W){if(e.isOptionalChain(v))return fe(v,W,!1);if(e.isParenthesizedExpression(v.expression)&&e.isOptionalChain(e.skipParentheses(v.expression))){var x=O(v.expression,!0,!1),$=e.visitNodes(v.arguments,ne,e.isExpression);return e.isSyntheticReference(x)?e.setTextRange(ee.createFunctionCallCall(x.expression,x.thisArg,$),v):ee.updateCallExpression(v,x,void 0,$)}return e.visitEachChild(v,ne,ue)}function de(v,W,x){switch(v.kind){case 210:return O(v,W,x);case 204:case 205:return w(v,W,x);case 206:return b(v,W);default:return e.visitNode(v,ne,e.isExpression)}}function fe(v,W,x){var $=_e(v),L=$.expression,E=$.chain,ae=de(L,e.isCallChain(E[0]),!1),X=e.isSyntheticReference(ae)?ae.thisArg:void 0,ie=e.isSyntheticReference(ae)?ae.expression:ae,le=ie;e.isSimpleCopiableExpression(ie)||(le=ee.createTempVariable(Y),ie=ee.createAssignment(le,ie));for(var P=le,I,re=0;re<E.length;re++){var B=E[re];switch(B.kind){case 204:case 205:re===E.length-1&&W&&(e.isSimpleCopiableExpression(P)?I=P:(I=ee.createTempVariable(Y),P=ee.createAssignment(I,P))),P=B.kind===204?ee.createPropertyAccessExpression(P,e.visitNode(B.name,ne,e.isIdentifier)):ee.createElementAccessExpression(P,e.visitNode(B.argumentExpression,ne,e.isExpression));break;case 206:re===0&&X?P=ee.createFunctionCallCall(P,X.kind===106?ee.createThis():X,e.visitNodes(B.arguments,ne,e.isExpression)):P=ee.createCallExpression(P,void 0,e.visitNodes(B.arguments,ne,e.isExpression));break}e.setOriginalNode(P,B)}var A=x?ee.createConditionalExpression(_(ie,le,!0),void 0,ee.createTrue(),void 0,ee.createDeleteExpression(P)):ee.createConditionalExpression(_(ie,le,!0),void 0,ee.createVoidZero(),void 0,P);return e.setTextRange(A,v),I?ee.createSyntheticReferenceExpression(A,I):A}function _(v,W,x){return ee.createBinaryExpression(ee.createBinaryExpression(v,ee.createToken(x?36:37),ee.createNull()),ee.createToken(x?56:55),ee.createBinaryExpression(W,ee.createToken(x?36:37),ee.createVoidZero()))}function U(v){var W=e.visitNode(v.left,ne,e.isExpression),x=W;return e.isSimpleCopiableExpression(W)||(x=ee.createTempVariable(Y),W=ee.createAssignment(x,W)),e.setTextRange(ee.createConditionalExpression(_(W,x),void 0,x,void 0,e.visitNode(v.right,ne,e.isExpression)),v)}function Z(v){return e.isOptionalChain(e.skipParentheses(v.expression))?e.setOriginalNode(de(v.expression,!1,!0),v):ee.updateDeleteExpression(v,e.visitNode(v.expression,ne,e.isExpression))}}e.transformES2020=s})(mn||(mn={}));var mn;(function(e){function s(ue){var ee=ue.hoistVariableDeclaration,Y=ue.factory;return e.chainBundle(ue,V);function V(O){return O.isDeclarationFile?O:e.visitEachChild(O,ne,ue)}function ne(O){if((O.transformFlags&8)===0)return O;switch(O.kind){case 219:var w=O;if(e.isLogicalOrCoalescingAssignmentExpression(w))return _e(w);default:return e.visitEachChild(O,ne,ue)}}function _e(O){var w=O.operatorToken,b=e.getNonAssignmentOperatorForCompoundAssignment(w.kind),de=e.skipParentheses(e.visitNode(O.left,ne,e.isLeftHandSideExpression)),fe=de,_=e.skipParentheses(e.visitNode(O.right,ne,e.isExpression));if(e.isAccessExpression(de)){var U=e.isSimpleCopiableExpression(de.expression),Z=U?de.expression:Y.createTempVariable(ee),v=U?de.expression:Y.createAssignment(Z,de.expression);if(e.isPropertyAccessExpression(de))fe=Y.createPropertyAccessExpression(Z,de.name),de=Y.createPropertyAccessExpression(v,de.name);else{var W=e.isSimpleCopiableExpression(de.argumentExpression),x=W?de.argumentExpression:Y.createTempVariable(ee);fe=Y.createElementAccessExpression(Z,x),de=Y.createElementAccessExpression(v,W?de.argumentExpression:Y.createAssignment(x,de.argumentExpression))}}return Y.createBinaryExpression(de,b,Y.createParenthesizedExpression(Y.createAssignment(fe,_)))}}e.transformES2021=s})(mn||(mn={}));var mn;(function(e){function s(ue){return e.chainBundle(ue,ee);function ee(V){return V.isDeclarationFile?V:e.visitEachChild(V,Y,ue)}function Y(V){if((V.transformFlags&4)===0)return V;switch(V.kind){default:return e.visitEachChild(V,Y,ue)}}}e.transformESNext=s})(mn||(mn={}));var mn;(function(e){function s(ee){var Y=ee.factory,V=ee.getEmitHelperFactory,ne=ee.getCompilerOptions(),_e,O;return e.chainBundle(ee,U);function w(){if(O.filenameDeclaration)return O.filenameDeclaration.name;var R=Y.createVariableDeclaration(Y.createUniqueName("_jsxFileName",16|32),void 0,void 0,Y.createStringLiteral(_e.fileName));return O.filenameDeclaration=R,O.filenameDeclaration.name}function b(R){return ne.jsx===5?"jsxDEV":R>1?"jsxs":"jsx"}function de(R){var me=b(R);return _(me)}function fe(){return _("Fragment")}function _(R){var me,q,J=R==="createElement"?O.importSpecifier:e.getJSXRuntimeImport(O.importSpecifier,ne),C=(q=(me=O.utilizedImplicitRuntimeImports)===null||me===void 0?void 0:me.get(J))===null||q===void 0?void 0:q.get(R);if(C)return C.name;O.utilizedImplicitRuntimeImports||(O.utilizedImplicitRuntimeImports=e.createMap());var we=O.utilizedImplicitRuntimeImports.get(J);we||(we=e.createMap(),O.utilizedImplicitRuntimeImports.set(J,we));var Oe=Y.createUniqueName("_"+R,16|32|64),te=Y.createImportSpecifier(Y.createIdentifier(R),Oe);return Oe.generatedImportReference=te,we.set(R,te),Oe}function U(R){if(R.isDeclarationFile)return R;_e=R,O={},O.importSpecifier=e.getJSXImplicitImportBase(ne,R);var me=e.visitEachChild(R,Z,ee);e.addEmitHelpers(me,ee.readEmitHelpers());var q=me.statements;if(O.filenameDeclaration&&(q=e.insertStatementAfterCustomPrologue(q.slice(),Y.createVariableStatement(void 0,Y.createVariableDeclarationList([O.filenameDeclaration],2)))),O.utilizedImplicitRuntimeImports)for(var J=0,C=e.arrayFrom(O.utilizedImplicitRuntimeImports.entries());J<C.length;J++){var we=C[J],Oe=we[0],te=we[1];if(e.isExternalModule(R)){var Te=Y.createImportDeclaration(void 0,void 0,Y.createImportClause(!1,void 0,Y.createNamedImports(e.arrayFrom(te.values()))),Y.createStringLiteral(Oe));e.setParentRecursive(Te,!1),q=e.insertStatementAfterCustomPrologue(q.slice(),Te)}else if(e.isExternalOrCommonJsModule(R)){var be=Y.createVariableStatement(void 0,Y.createVariableDeclarationList([Y.createVariableDeclaration(Y.createObjectBindingPattern(e.map(e.arrayFrom(te.values()),function(Ce){return Y.createBindingElement(void 0,Ce.propertyName,Ce.name)})),void 0,void 0,Y.createCallExpression(Y.createIdentifier("require"),void 0,[Y.createStringLiteral(Oe)]))],2));e.setParentRecursive(be,!1),q=e.insertStatementAfterCustomPrologue(q.slice(),be)}}return q!==me.statements&&(me=Y.updateSourceFile(me,q)),O=void 0,me}function Z(R){return R.transformFlags&2?v(R):R}function v(R){switch(R.kind){case 276:return L(R,!1);case 277:return E(R,!1);case 280:return ae(R,!1);case 286:return D(R);default:return e.visitEachChild(R,Z,ee)}}function W(R){switch(R.kind){case 11:return g(R);case 286:return D(R);case 276:return L(R,!0);case 277:return E(R,!0);case 280:return ae(R,!0);default:return e.Debug.failBadSyntaxKind(R)}}function x(R){for(var me=!1,q=0,J=R.attributes.properties;q<J.length;q++){var C=J[q];if(e.isJsxSpreadAttribute(C))me=!0;else if(me&&e.isJsxAttribute(C)&&C.name.escapedText==="key")return!0}return!1}function $(R){return O.importSpecifier===void 0||x(R)}function L(R,me){var q=$(R.openingElement)?P:ie;return q(R.openingElement,R.children,me,R)}function E(R,me){var q=$(R)?P:ie;return q(R,void 0,me,R)}function ae(R,me){var q=O.importSpecifier===void 0?re:I;return q(R.openingFragment,R.children,me,R)}function X(R){var me=e.getSemanticJsxChildren(R);if(e.length(me)===1){var q=W(me[0]);return q&&Y.createObjectLiteralExpression([Y.createPropertyAssignment("children",q)])}var J=e.mapDefined(R,W);return J.length?Y.createObjectLiteralExpression([Y.createPropertyAssignment("children",Y.createArrayLiteralExpression(J))]):void 0}function ie(R,me,q,J){var C=k(R),we,Oe=e.find(R.attributes.properties,function(Ce){return!!Ce.name&&e.isIdentifier(Ce.name)&&Ce.name.escapedText==="key"}),te=Oe?e.filter(R.attributes.properties,function(Ce){return Ce!==Oe}):R.attributes.properties,Te=[];if(te.length&&(Te=e.flatten(e.spanMap(te,e.isJsxSpreadAttribute,function(Ce,Ue){return Ue?e.map(Ce,A):Y.createObjectLiteralExpression(e.map(Ce,f))})),e.isJsxSpreadAttribute(te[0])&&Te.unshift(Y.createObjectLiteralExpression())),me&&me.length){var be=X(me);be&&Te.push(be)}return Te.length===0?we=Y.createObjectLiteralExpression([]):we=e.singleOrUndefined(Te)||V().createAssignHelper(Te),le(C,we,Oe,e.length(e.getSemanticJsxChildren(me||e.emptyArray)),q,J)}function le(R,me,q,J,C,we){var Oe=[R,me,q?F(q.initializer):Y.createVoidZero()];if(ne.jsx===5){var te=e.getOriginalNode(_e);if(te&&e.isSourceFile(te)){Oe.push(J>1?Y.createTrue():Y.createFalse());var Te=e.getLineAndCharacterOfPosition(te,we.pos);Oe.push(Y.createObjectLiteralExpression([Y.createPropertyAssignment("fileName",w()),Y.createPropertyAssignment("lineNumber",Y.createNumericLiteral(Te.line+1)),Y.createPropertyAssignment("columnNumber",Y.createNumericLiteral(Te.character+1))])),Oe.push(Y.createThis())}}var be=e.setTextRange(Y.createCallExpression(de(J),void 0,Oe),we);return C&&e.startOnNewLine(be),be}function P(R,me,q,J){var C=k(R),we,Oe=R.attributes.properties;if(Oe.length===0)we=Y.createNull();else{var te=ne.target;if(te&&te>=5)we=Y.createObjectLiteralExpression(e.flatten(e.spanMap(Oe,e.isJsxSpreadAttribute,function(Ue,Se){return Se?e.map(Ue,B):e.map(Ue,f)})));else{var Te=e.flatten(e.spanMap(Oe,e.isJsxSpreadAttribute,function(Ue,Se){return Se?e.map(Ue,A):Y.createObjectLiteralExpression(e.map(Ue,f))}));e.isJsxSpreadAttribute(Oe[0])&&Te.unshift(Y.createObjectLiteralExpression()),we=e.singleOrUndefined(Te),we||(we=V().createAssignHelper(Te))}}var be=O.importSpecifier===void 0?e.createJsxFactoryExpression(Y,ee.getEmitResolver().getJsxFactoryEntity(_e),ne.reactNamespace,R):_("createElement"),Ce=e.createExpressionForJsxElement(Y,be,C,we,e.mapDefined(me,W),J);return q&&e.startOnNewLine(Ce),Ce}function I(R,me,q,J){var C;if(me&&me.length){var we=X(me);we&&(C=we)}return le(fe(),C||Y.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(me)),q,J)}function re(R,me,q,J){var C=e.createExpressionForJsxFragment(Y,ee.getEmitResolver().getJsxFactoryEntity(_e),ee.getEmitResolver().getJsxFragmentFactoryEntity(_e),ne.reactNamespace,e.mapDefined(me,W),R,J);return q&&e.startOnNewLine(C),C}function B(R){return Y.createSpreadAssignment(e.visitNode(R.expression,Z,e.isExpression))}function A(R){return e.visitNode(R.expression,Z,e.isExpression)}function f(R){var me=N(R),q=F(R.initializer);return Y.createPropertyAssignment(me,q)}function F(R){if(R===void 0)return Y.createTrue();if(R.kind===10){var me=R.singleQuote!==void 0?R.singleQuote:!e.isStringDoubleQuoted(R,_e),q=Y.createStringLiteral(m(R.text)||R.text,me);return e.setTextRange(q,R)}else return R.kind===286?R.expression===void 0?Y.createTrue():e.visitNode(R.expression,Z,e.isExpression):e.Debug.failBadSyntaxKind(R)}function g(R){var me=p(R.text);return me===void 0?void 0:Y.createStringLiteral(me)}function p(R){for(var me,q=0,J=-1,C=0;C<R.length;C++){var we=R.charCodeAt(C);e.isLineBreak(we)?(q!==-1&&J!==-1&&(me=d(me,R.substr(q,J-q+1))),q=-1):e.isWhiteSpaceSingleLine(we)||(J=C,q===-1&&(q=C))}return q!==-1?d(me,R.substr(q)):me}function d(R,me){var q=T(me);return R===void 0?q:R+" "+q}function T(R){return R.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(me,q,J,C,we,Oe,te){if(we)return e.utf16EncodeAsString(parseInt(we,10));if(Oe)return e.utf16EncodeAsString(parseInt(Oe,16));var Te=ue.get(te);return Te?e.utf16EncodeAsString(Te):me})}function m(R){var me=T(R);return me===R?void 0:me}function k(R){if(R.kind===276)return k(R.openingElement);var me=R.tagName;return e.isIdentifier(me)&&e.isIntrinsicJsxName(me.escapedText)?Y.createStringLiteral(e.idText(me)):e.createExpressionFromEntityName(Y,me)}function N(R){var me=R.name,q=e.idText(me);return/^[A-Za-z_]\w*$/.test(q)?me:Y.createStringLiteral(q)}function D(R){return e.visitNode(R.expression,Z,e.isExpression)}}e.transformJsx=s;var ue=new e.Map(e.getEntries({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}))})(mn||(mn={}));var mn;(function(e){function s(ue){var ee=ue.factory,Y=ue.hoistVariableDeclaration;return e.chainBundle(ue,V);function V(b){return b.isDeclarationFile?b:e.visitEachChild(b,ne,ue)}function ne(b){if((b.transformFlags&256)===0)return b;switch(b.kind){case 219:return _e(b);default:return e.visitEachChild(b,ne,ue)}}function _e(b){switch(b.operatorToken.kind){case 67:return O(b);case 42:return w(b);default:return e.visitEachChild(b,ne,ue)}}function O(b){var de,fe,_=e.visitNode(b.left,ne,e.isExpression),U=e.visitNode(b.right,ne,e.isExpression);if(e.isElementAccessExpression(_)){var Z=ee.createTempVariable(Y),v=ee.createTempVariable(Y);de=e.setTextRange(ee.createElementAccessExpression(e.setTextRange(ee.createAssignment(Z,_.expression),_.expression),e.setTextRange(ee.createAssignment(v,_.argumentExpression),_.argumentExpression)),_),fe=e.setTextRange(ee.createElementAccessExpression(Z,v),_)}else if(e.isPropertyAccessExpression(_)){var Z=ee.createTempVariable(Y);de=e.setTextRange(ee.createPropertyAccessExpression(e.setTextRange(ee.createAssignment(Z,_.expression),_.expression),_.name),_),fe=e.setTextRange(ee.createPropertyAccessExpression(Z,_.name),_)}else de=_,fe=_;return e.setTextRange(ee.createAssignment(de,e.setTextRange(ee.createGlobalMethodCall("Math","pow",[fe,U]),b)),b)}function w(b){var de=e.visitNode(b.left,ne,e.isExpression),fe=e.visitNode(b.right,ne,e.isExpression);return e.setTextRange(ee.createGlobalMethodCall("Math","pow",[de,fe]),b)}}e.transformES2016=s})(mn||(mn={}));var mn;(function(e){var s;(function(w){w[w.CapturedThis=1]="CapturedThis",w[w.BlockScopedBindings=2]="BlockScopedBindings"})(s||(s={}));var ue;(function(w){w[w.Body=1]="Body",w[w.Initializer=2]="Initializer"})(ue||(ue={}));var ee;(function(w){w[w.ToOriginal=0]="ToOriginal",w[w.ToOutParameter=1]="ToOutParameter"})(ee||(ee={}));var Y;(function(w){w[w.Break=2]="Break",w[w.Continue=4]="Continue",w[w.Return=8]="Return"})(Y||(Y={}));var V;(function(w){w[w.None=0]="None",w[w.Function=1]="Function",w[w.ArrowFunction=2]="ArrowFunction",w[w.AsyncFunctionBody=4]="AsyncFunctionBody",w[w.NonStaticClassElement=8]="NonStaticClassElement",w[w.CapturesThis=16]="CapturesThis",w[w.ExportedVariableStatement=32]="ExportedVariableStatement",w[w.TopLevel=64]="TopLevel",w[w.Block=128]="Block",w[w.IterationStatement=256]="IterationStatement",w[w.IterationStatementBlock=512]="IterationStatementBlock",w[w.IterationContainer=1024]="IterationContainer",w[w.ForStatement=2048]="ForStatement",w[w.ForInOrForOfStatement=4096]="ForInOrForOfStatement",w[w.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",w[w.StaticInitializer=16384]="StaticInitializer",w[w.AncestorFactsMask=32767]="AncestorFactsMask",w[w.BlockScopeIncludes=0]="BlockScopeIncludes",w[w.BlockScopeExcludes=7104]="BlockScopeExcludes",w[w.SourceFileIncludes=64]="SourceFileIncludes",w[w.SourceFileExcludes=8064]="SourceFileExcludes",w[w.FunctionIncludes=65]="FunctionIncludes",w[w.FunctionExcludes=32670]="FunctionExcludes",w[w.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",w[w.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",w[w.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",w[w.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",w[w.ConstructorIncludes=73]="ConstructorIncludes",w[w.ConstructorExcludes=32662]="ConstructorExcludes",w[w.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",w[w.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",w[w.ForStatementIncludes=3328]="ForStatementIncludes",w[w.ForStatementExcludes=5056]="ForStatementExcludes",w[w.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",w[w.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",w[w.BlockIncludes=128]="BlockIncludes",w[w.BlockExcludes=6976]="BlockExcludes",w[w.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",w[w.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",w[w.StaticInitializerIncludes=16449]="StaticInitializerIncludes",w[w.StaticInitializerExcludes=32670]="StaticInitializerExcludes",w[w.NewTarget=32768]="NewTarget",w[w.CapturedLexicalThis=65536]="CapturedLexicalThis",w[w.SubtreeFactsMask=-32768]="SubtreeFactsMask",w[w.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",w[w.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(V||(V={}));var ne;(function(w){w[w.None=0]="None",w[w.UnpackedSpread=1]="UnpackedSpread",w[w.PackedSpread=2]="PackedSpread"})(ne||(ne={}));function _e(w,b){return{kind:w,expression:b}}function O(w){var b=w.factory,de=w.getEmitHelperFactory,fe=w.startLexicalEnvironment,_=w.resumeLexicalEnvironment,U=w.endLexicalEnvironment,Z=w.hoistVariableDeclaration,v=w.getCompilerOptions(),W=w.getEmitResolver(),x=w.onSubstituteNode,$=w.onEmitNode;w.onEmitNode=Oi,w.onSubstituteNode=Mo;var L,E,ae,X;function ie(se){X=e.append(X,b.createVariableDeclaration(se))}var le,P;return e.chainBundle(w,I);function I(se){if(se.isDeclarationFile)return se;L=se,E=se.text;var pn=k(se);return e.addEmitHelpers(pn,w.readEmitHelpers()),L=void 0,E=void 0,X=void 0,ae=0,pn}function re(se,pn){var j=ae;return ae=(ae&~se|pn)&32767,j}function B(se,pn,j){ae=(ae&~pn|j)&-32768|se}function A(se){return(ae&8192)!==0&&se.kind===245&&!se.expression}function f(se){return se.transformFlags&2097152&&(e.isReturnStatement(se)||e.isIfStatement(se)||e.isWithStatement(se)||e.isSwitchStatement(se)||e.isCaseBlock(se)||e.isCaseClause(se)||e.isDefaultClause(se)||e.isTryStatement(se)||e.isCatchClause(se)||e.isLabeledStatement(se)||e.isIterationStatement(se,!1)||e.isBlock(se))}function F(se){return(se.transformFlags&512)!==0||le!==void 0||ae&8192&&f(se)||e.isIterationStatement(se,!1)&&rn(se)||(e.getEmitFlags(se)&33554432)!==0}function g(se){return F(se)?m(se,!1):se}function p(se){return F(se)?m(se,!0):se}function d(se){if(F(se)){var pn=e.getOriginalNode(se);if(e.isPropertyDeclaration(pn)&&e.hasStaticModifier(pn)){var j=re(32670,16449),De=m(se,!1);return B(j,98304,0),De}return m(se,!1)}return se}function T(se){return se.kind===106?Lo(!0):g(se)}function m(se,pn){switch(se.kind){case 124:return;case 255:return Oe(se);case 224:return te(se);case 162:return Me(se);case 254:return ke(se);case 212:return oe(se);case 211:return Pe(se);case 252:return Gt(se);case 79:return C(se);case 253:return En(se);case 247:return N(se);case 261:return D(se);case 233:return xe(se,!1);case 244:case 243:return we(se);case 248:return Vn(se);case 238:case 239:return Pn(se,void 0);case 240:return rt(se,void 0);case 241:return gt(se,void 0);case 242:return lt(se,void 0);case 236:return Ze(se);case 203:return Fn(se);case 290:return xt(se);case 292:return at(se);case 160:return ea(se);case 202:return li(se);case 206:return Si(se);case 207:return ro(se);case 210:return wn(se,pn);case 219:return Be(se,pn);case 346:return hn(se,pn);case 14:case 15:case 16:case 17:return Qi(se);case 10:return mo(se);case 8:return Rs(se);case 208:return Ls(se);case 221:return Ca(se);case 222:return Fa(se);case 223:return os(se);case 106:return Lo(!1);case 108:return q(se);case 229:return _s(se);case 167:return Qt(se);case 170:case 171:return sr(se);case 235:return Je(se);case 245:return me(se);case 215:return J(se);default:return e.visitEachChild(se,g,w)}}function k(se){var pn=re(8064,64),j=[],De=[];fe();var Ve=b.copyPrologue(se.statements,j,!1,g);return e.addRange(De,e.visitNodes(se.statements,g,e.isStatement,Ve)),X&&De.push(b.createVariableStatement(void 0,b.createVariableDeclarationList(X))),b.mergeLexicalEnvironment(j,U()),dn(j,se),B(pn,0,0),b.updateSourceFile(se,e.setTextRange(b.createNodeArray(e.concatenate(j,De)),se.statements))}function N(se){if(le!==void 0){var pn=le.allowedNonLabeledJumps;le.allowedNonLabeledJumps|=2;var j=e.visitEachChild(se,g,w);return le.allowedNonLabeledJumps=pn,j}return e.visitEachChild(se,g,w)}function D(se){var pn=re(7104,0),j=e.visitEachChild(se,g,w);return B(pn,0,0),j}function R(se){return e.setOriginalNode(b.createReturnStatement(b.createUniqueName("_this",16|32)),se)}function me(se){return le?(le.nonLocalJumps|=8,A(se)&&(se=R(se)),b.createReturnStatement(b.createObjectLiteralExpression([b.createPropertyAssignment(b.createIdentifier("value"),se.expression?e.visitNode(se.expression,g,e.isExpression):b.createVoidZero())]))):A(se)?R(se):e.visitEachChild(se,g,w)}function q(se){return ae&2&&!(ae&16384)&&(ae|=65536),le?ae&2?(le.containsLexicalThis=!0,se):le.thisName||(le.thisName=b.createUniqueName("this")):se}function J(se){return e.visitEachChild(se,p,w)}function C(se){return le&&W.isArgumentsLocalBinding(se)?le.argumentsName||(le.argumentsName=b.createUniqueName("arguments")):se}function we(se){if(le){var pn=se.kind===244?2:4,j=se.label&&le.labels&&le.labels.get(e.idText(se.label))||!se.label&&le.allowedNonLabeledJumps&pn;if(!j){var De=void 0,Ve=se.label;Ve?se.kind===244?(De="break-"+Ve.escapedText,la(le,!0,e.idText(Ve),De)):(De="continue-"+Ve.escapedText,la(le,!1,e.idText(Ve),De)):se.kind===244?(le.nonLocalJumps|=2,De="break"):(le.nonLocalJumps|=4,De="continue");var un=b.createStringLiteral(De);if(le.loopOutParameters.length){for(var jn=le.loopOutParameters,mt=void 0,St=0;St<jn.length;St++){var ir=Ja(jn[St],1);St===0?mt=ir:mt=b.createBinaryExpression(mt,27,ir)}un=b.createBinaryExpression(mt,27,un)}return b.createReturnStatement(un)}}return e.visitEachChild(se,g,w)}function Oe(se){var pn=b.createVariableDeclaration(b.getLocalName(se,!0),void 0,void 0,Te(se));e.setOriginalNode(pn,se);var j=[],De=b.createVariableStatement(void 0,b.createVariableDeclarationList([pn]));if(e.setOriginalNode(De,se),e.setTextRange(De,se),e.startOnNewLine(De),j.push(De),e.hasSyntacticModifier(se,1)){var Ve=e.hasSyntacticModifier(se,512)?b.createExportDefault(b.getLocalName(se)):b.createExternalModuleExport(b.getLocalName(se));e.setOriginalNode(Ve,De),j.push(Ve)}var un=e.getEmitFlags(se);return(un&4194304)===0&&(j.push(b.createEndOfDeclarationMarker(se)),e.setEmitFlags(De,un|4194304)),e.singleOrMany(j)}function te(se){return Te(se)}function Te(se){se.name&&Io();var pn=e.getClassExtendsHeritageElement(se),j=b.createFunctionExpression(void 0,void 0,void 0,void 0,pn?[b.createParameterDeclaration(void 0,void 0,void 0,b.createUniqueName("_super",16|32))]:[],void 0,be(se,pn));e.setEmitFlags(j,e.getEmitFlags(se)&65536|524288);var De=b.createPartiallyEmittedExpression(j);e.setTextRangeEnd(De,se.end),e.setEmitFlags(De,1536);var Ve=b.createPartiallyEmittedExpression(De);e.setTextRangeEnd(Ve,e.skipTrivia(E,se.pos)),e.setEmitFlags(Ve,1536);var un=b.createParenthesizedExpression(b.createCallExpression(Ve,void 0,pn?[e.visitNode(pn.expression,g,e.isExpression)]:[]));return e.addSyntheticLeadingComment(un,3,"* @class "),un}function be(se,pn){var j=[],De=b.getInternalName(se),Ve=e.isIdentifierANonContextualKeyword(De)?b.getGeneratedNameForNode(De):De;fe(),Ce(j,se,pn),Ue(j,se,Ve,pn),Cn(j,se);var un=e.createTokenRange(e.skipTrivia(E,se.members.end),19),jn=b.createPartiallyEmittedExpression(Ve);e.setTextRangeEnd(jn,un.end),e.setEmitFlags(jn,1536);var mt=b.createReturnStatement(jn);e.setTextRangePos(mt,un.pos),e.setEmitFlags(mt,1536|384),j.push(mt),e.insertStatementsAfterStandardPrologue(j,U());var St=b.createBlock(e.setTextRange(b.createNodeArray(j),se.members),!0);return e.setEmitFlags(St,1536),St}function Ce(se,pn,j){j&&se.push(e.setTextRange(b.createExpressionStatement(de().createExtendsHelper(b.getInternalName(pn))),j))}function Ue(se,pn,j,De){var Ve=le;le=void 0;var un=re(32662,73),jn=e.getFirstConstructorWithBody(pn),mt=He(jn,De!==void 0),St=b.createFunctionDeclaration(void 0,void 0,void 0,j,void 0,Se(jn,mt),void 0,ce(jn,pn,De,mt));e.setTextRange(St,jn||pn),De&&e.setEmitFlags(St,8),se.push(St),B(un,98304,0),le=Ve}function Se(se,pn){return e.visitParameterList(se&&!pn?se.parameters:void 0,g,w)||[]}function $e(se,pn){var j=[];_(),b.mergeLexicalEnvironment(j,U()),pn&&j.push(b.createReturnStatement(pe()));var De=b.createNodeArray(j);e.setTextRange(De,se.members);var Ve=b.createBlock(De,!0);return e.setTextRange(Ve,se),e.setEmitFlags(Ve,1536),Ve}function ce(se,pn,j,De){var Ve=!!j&&e.skipOuterExpressions(j.expression).kind!==104;if(!se)return $e(pn,Ve);var un=[],jn=[];_();var mt=0;De||(mt=b.copyStandardPrologue(se.body.statements,un,!1)),Ye(jn,se),Wn(jn,se,De),De||(mt=b.copyCustomPrologue(se.body.statements,jn,mt,g));var St;if(De)St=pe();else if(Ve&&mt<se.body.statements.length){var ir=se.body.statements[mt];e.isExpressionStatement(ir)&&e.isSuperCall(ir.expression)&&(St=ci(ir.expression))}if(St&&(ae|=8192,mt++),e.addRange(jn,e.visitNodes(se.body.statements,g,e.isStatement,mt)),b.mergeLexicalEnvironment(un,U()),o(un,se,!1),Ve)if(St&&mt===se.body.statements.length&&!(se.body.transformFlags&8192)){var _r=e.cast(e.cast(St,e.isBinaryExpression).left,e.isCallExpression),na=b.createReturnStatement(St);e.setCommentRange(na,e.getCommentRange(_r)),e.setEmitFlags(_r,1536),jn.push(na)}else vn(jn,se,St||qe()),Le(se.body)||jn.push(b.createReturnStatement(b.createUniqueName("_this",16|32)));else dn(un,se);var wa=b.createBlock(e.setTextRange(b.createNodeArray(e.concatenate(un,jn)),se.body.statements),!0);return e.setTextRange(wa,se.body),wa}function Le(se){if(se.kind===245)return!0;if(se.kind===237){var pn=se;if(pn.elseStatement)return Le(pn.thenStatement)&&Le(pn.elseStatement)}else if(se.kind===233){var j=e.lastOrUndefined(se.statements);if(j&&Le(j))return!0}return!1}function qe(){return e.setEmitFlags(b.createThis(),4)}function pe(){return b.createLogicalOr(b.createLogicalAnd(b.createStrictInequality(b.createUniqueName("_super",16|32),b.createNull()),b.createFunctionApplyCall(b.createUniqueName("_super",16|32),qe(),b.createIdentifier("arguments"))),qe())}function Me(se){return se.dotDotDotToken?void 0:e.isBindingPattern(se.name)?e.setOriginalNode(e.setTextRange(b.createParameterDeclaration(void 0,void 0,void 0,b.getGeneratedNameForNode(se),void 0,void 0,void 0),se),se):se.initializer?e.setOriginalNode(e.setTextRange(b.createParameterDeclaration(void 0,void 0,void 0,se.name,void 0,void 0,void 0),se),se):se}function fn(se){return se.initializer!==void 0||e.isBindingPattern(se.name)}function Ye(se,pn){if(!e.some(pn.parameters,fn))return!1;for(var j=!1,De=0,Ve=pn.parameters;De<Ve.length;De++){var un=Ve[De],jn=un.name,mt=un.initializer,St=un.dotDotDotToken;if(St)continue;e.isBindingPattern(jn)?j=Ne(se,un,jn,mt)||j:mt&&(je(se,un,jn,mt),j=!0)}return j}function Ne(se,pn,j,De){return j.elements.length>0?(e.insertStatementAfterCustomPrologue(se,e.setEmitFlags(b.createVariableStatement(void 0,b.createVariableDeclarationList(e.flattenDestructuringBinding(pn,g,w,0,b.getGeneratedNameForNode(pn)))),1048576)),!0):De?(e.insertStatementAfterCustomPrologue(se,e.setEmitFlags(b.createExpressionStatement(b.createAssignment(b.getGeneratedNameForNode(pn),e.visitNode(De,g,e.isExpression))),1048576)),!0):!1}function je(se,pn,j,De){De=e.visitNode(De,g,e.isExpression);var Ve=b.createIfStatement(b.createTypeCheck(b.cloneNode(j),"undefined"),e.setEmitFlags(e.setTextRange(b.createBlock([b.createExpressionStatement(e.setEmitFlags(e.setTextRange(b.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(b.cloneNode(j),j),j.parent),48),e.setEmitFlags(De,48|e.getEmitFlags(De)|1536)),pn),1536))]),pn),1|32|384|1536));e.startOnNewLine(Ve),e.setTextRange(Ve,pn),e.setEmitFlags(Ve,384|32|1048576|1536),e.insertStatementAfterCustomPrologue(se,Ve)}function xn(se,pn){return!!(se&&se.dotDotDotToken&&!pn)}function Wn(se,pn,j){var De=[],Ve=e.lastOrUndefined(pn.parameters);if(!xn(Ve,j))return!1;var un=Ve.name.kind===79?e.setParent(e.setTextRange(b.cloneNode(Ve.name),Ve.name),Ve.name.parent):b.createTempVariable(void 0);e.setEmitFlags(un,48);var jn=Ve.name.kind===79?b.cloneNode(Ve.name):un,mt=pn.parameters.length-1,St=b.createLoopVariable();De.push(e.setEmitFlags(e.setTextRange(b.createVariableStatement(void 0,b.createVariableDeclarationList([b.createVariableDeclaration(un,void 0,void 0,b.createArrayLiteralExpression([]))])),Ve),1048576));var ir=b.createForStatement(e.setTextRange(b.createVariableDeclarationList([b.createVariableDeclaration(St,void 0,void 0,b.createNumericLiteral(mt))]),Ve),e.setTextRange(b.createLessThan(St,b.createPropertyAccessExpression(b.createIdentifier("arguments"),"length")),Ve),e.setTextRange(b.createPostfixIncrement(St),Ve),b.createBlock([e.startOnNewLine(e.setTextRange(b.createExpressionStatement(b.createAssignment(b.createElementAccessExpression(jn,mt===0?St:b.createSubtract(St,b.createNumericLiteral(mt))),b.createElementAccessExpression(b.createIdentifier("arguments"),St))),Ve))]));return e.setEmitFlags(ir,1048576),e.startOnNewLine(ir),De.push(ir),Ve.name.kind!==79&&De.push(e.setEmitFlags(e.setTextRange(b.createVariableStatement(void 0,b.createVariableDeclarationList(e.flattenDestructuringBinding(Ve,g,w,0,jn))),Ve),1048576)),e.insertStatementsAfterCustomPrologue(se,De),!0}function dn(se,pn){return ae&65536&&pn.kind!==212?(vn(se,pn,b.createThis()),!0):!1}function vn(se,pn,j){fs();var De=b.createVariableStatement(void 0,b.createVariableDeclarationList([b.createVariableDeclaration(b.createUniqueName("_this",16|32),void 0,void 0,j)]));e.setEmitFlags(De,1536|1048576),e.setSourceMapRange(De,pn),e.insertStatementAfterCustomPrologue(se,De)}function o(se,pn,j){if(ae&32768){var De=void 0;switch(pn.kind){case 212:return se;case 167:case 170:case 171:De=b.createVoidZero();break;case 169:De=b.createPropertyAccessExpression(e.setEmitFlags(b.createThis(),4),"constructor");break;case 254:case 211:De=b.createConditionalExpression(b.createLogicalAnd(e.setEmitFlags(b.createThis(),4),b.createBinaryExpression(e.setEmitFlags(b.createThis(),4),102,b.getLocalName(pn))),void 0,b.createPropertyAccessExpression(e.setEmitFlags(b.createThis(),4),"constructor"),void 0,b.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(pn)}var Ve=b.createVariableStatement(void 0,b.createVariableDeclarationList([b.createVariableDeclaration(b.createUniqueName("_newTarget",16|32),void 0,void 0,De)]));e.setEmitFlags(Ve,1536|1048576),j&&(se=se.slice()),e.insertStatementAfterCustomPrologue(se,Ve)}return se}function Cn(se,pn){for(var j=0,De=pn.members;j<De.length;j++){var Ve=De[j];switch(Ve.kind){case 232:se.push(z(Ve));break;case 167:se.push(tn(Ga(pn,Ve),Ve,pn));break;case 170:case 171:var un=e.getAllAccessorDeclarations(pn.members,Ve);Ve===un.firstAccessor&&se.push($n(Ga(pn,Ve),un,pn));break;case 169:case 168:break;default:e.Debug.failBadSyntaxKind(Ve,L&&L.fileName);break}}}function z(se){return e.setTextRange(b.createEmptyStatement(),se)}function tn(se,pn,j){var De=e.getCommentRange(pn),Ve=e.getSourceMapRange(pn),un=Qe(pn,pn,void 0,j),jn=e.visitNode(pn.name,g,e.isPropertyName),mt;if(!e.isPrivateIdentifier(jn)&&e.getUseDefineForClassFields(w.getCompilerOptions())){var St=e.isComputedPropertyName(jn)?jn.expression:e.isIdentifier(jn)?b.createStringLiteral(e.unescapeLeadingUnderscores(jn.escapedText)):jn;mt=b.createObjectDefinePropertyCall(se,St,b.createPropertyDescriptor({value:un,enumerable:!1,writable:!0,configurable:!0}))}else{var ir=e.createMemberAccessForPropertyName(b,se,jn,pn.name);mt=b.createAssignment(ir,un)}e.setEmitFlags(un,1536),e.setSourceMapRange(un,Ve);var _r=e.setTextRange(b.createExpressionStatement(mt),pn);return e.setOriginalNode(_r,pn),e.setCommentRange(_r,De),e.setEmitFlags(_r,48),_r}function $n(se,pn,j){var De=b.createExpressionStatement(Un(se,pn,j,!1));return e.setEmitFlags(De,1536),e.setSourceMapRange(De,e.getSourceMapRange(pn.firstAccessor)),De}function Un(se,pn,j,De){var Ve=pn.firstAccessor,un=pn.getAccessor,jn=pn.setAccessor,mt=e.setParent(e.setTextRange(b.cloneNode(se),se),se.parent);e.setEmitFlags(mt,1536|32),e.setSourceMapRange(mt,Ve.name);var St=e.visitNode(Ve.name,g,e.isPropertyName);if(e.isPrivateIdentifier(St))return e.Debug.failBadSyntaxKind(St,"Encountered unhandled private identifier while transforming ES2015.");var ir=e.createExpressionForPropertyName(b,St);e.setEmitFlags(ir,1536|16),e.setSourceMapRange(ir,Ve.name);var _r=[];if(un){var na=Qe(un,void 0,void 0,j);e.setSourceMapRange(na,e.getSourceMapRange(un)),e.setEmitFlags(na,512);var wa=b.createPropertyAssignment("get",na);e.setCommentRange(wa,e.getCommentRange(un)),_r.push(wa)}if(jn){var za=Qe(jn,void 0,void 0,j);e.setSourceMapRange(za,e.getSourceMapRange(jn)),e.setEmitFlags(za,512);var bi=b.createPropertyAssignment("set",za);e.setCommentRange(bi,e.getCommentRange(jn)),_r.push(bi)}_r.push(b.createPropertyAssignment("enumerable",un||jn?b.createFalse():b.createTrue()),b.createPropertyAssignment("configurable",b.createTrue()));var Xi=b.createCallExpression(b.createPropertyAccessExpression(b.createIdentifier("Object"),"defineProperty"),void 0,[mt,ir,b.createObjectLiteralExpression(_r,!0)]);return De&&e.startOnNewLine(Xi),Xi}function oe(se){se.transformFlags&8192&&!(ae&16384)&&(ae|=65536);var pn=le;le=void 0;var j=re(15232,66),De=b.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(se.parameters,g,w),void 0,gn(se));return e.setTextRange(De,se),e.setOriginalNode(De,se),e.setEmitFlags(De,8),B(j,0,0),le=pn,De}function Pe(se){var pn=e.getEmitFlags(se)&262144?re(32662,69):re(32670,65),j=le;le=void 0;var De=e.visitParameterList(se.parameters,g,w),Ve=gn(se),un=ae&32768?b.getLocalName(se):se.name;return B(pn,98304,0),le=j,b.updateFunctionExpression(se,void 0,se.asteriskToken,un,void 0,De,void 0,Ve)}function ke(se){var pn=le;le=void 0;var j=re(32670,65),De=e.visitParameterList(se.parameters,g,w),Ve=gn(se),un=ae&32768?b.getLocalName(se):se.name;return B(j,98304,0),le=pn,b.updateFunctionDeclaration(se,void 0,e.visitNodes(se.modifiers,g,e.isModifier),se.asteriskToken,un,void 0,De,void 0,Ve)}function Qe(se,pn,j,De){var Ve=le;le=void 0;var un=De&&e.isClassLike(De)&&!e.isStatic(se)?re(32670,65|8):re(32670,65),jn=e.visitParameterList(se.parameters,g,w),mt=gn(se);return ae&32768&&!j&&(se.kind===254||se.kind===211)&&(j=b.getGeneratedNameForNode(se)),B(un,98304,0),le=Ve,e.setOriginalNode(e.setTextRange(b.createFunctionExpression(void 0,se.asteriskToken,j,void 0,jn,void 0,mt),pn),se)}function gn(se){var pn=!1,j=!1,De,Ve,un=[],jn=[],mt=se.body,St;if(_(),e.isBlock(mt)&&(St=b.copyStandardPrologue(mt.statements,un,!1),St=b.copyCustomPrologue(mt.statements,jn,St,g,e.isHoistedFunction),St=b.copyCustomPrologue(mt.statements,jn,St,g,e.isHoistedVariableStatement)),pn=Ye(jn,se)||pn,pn=Wn(jn,se,!1)||pn,e.isBlock(mt))St=b.copyCustomPrologue(mt.statements,jn,St,g),De=mt.statements,e.addRange(jn,e.visitNodes(mt.statements,g,e.isStatement,St)),!pn&&mt.multiLine&&(pn=!0);else{e.Debug.assert(se.kind===212),De=e.moveRangeEnd(mt,-1);var ir=se.equalsGreaterThanToken;!e.nodeIsSynthesized(ir)&&!e.nodeIsSynthesized(mt)&&(e.rangeEndIsOnSameLineAsRangeStart(ir,mt,L)?j=!0:pn=!0);var _r=e.visitNode(mt,g,e.isExpression),na=b.createReturnStatement(_r);e.setTextRange(na,mt),e.moveSyntheticComments(na,mt),e.setEmitFlags(na,384|32|1024),jn.push(na),Ve=mt}if(b.mergeLexicalEnvironment(un,U()),o(un,se,!1),dn(un,se),e.some(un)&&(pn=!0),jn.unshift.apply(jn,un),e.isBlock(mt)&&e.arrayIsEqualTo(jn,mt.statements))return mt;var wa=b.createBlock(e.setTextRange(b.createNodeArray(jn),De),pn);return e.setTextRange(wa,se.body),!pn&&j&&e.setEmitFlags(wa,1),Ve&&e.setTokenSourceMapRange(wa,19,Ve),e.setOriginalNode(wa,se.body),wa}function xe(se,pn){if(pn)return e.visitEachChild(se,g,w);var j=ae&256?re(7104,512):re(6976,128),De=e.visitEachChild(se,g,w);return B(j,0,0),De}function Ze(se){return e.visitEachChild(se,p,w)}function wn(se,pn){return e.visitEachChild(se,pn?p:g,w)}function Be(se,pn){return e.isDestructuringAssignment(se)?e.flattenDestructuringAssignment(se,g,w,0,!pn):se.operatorToken.kind===27?b.updateBinaryExpression(se,e.visitNode(se.left,p,e.isExpression),se.operatorToken,e.visitNode(se.right,pn?p:g,e.isExpression)):e.visitEachChild(se,g,w)}function hn(se,pn){if(pn)return e.visitEachChild(se,p,w);for(var j,De=0;De<se.elements.length;De++){var Ve=se.elements[De],un=e.visitNode(Ve,De<se.elements.length-1?p:g,e.isExpression);(j||un!==Ve)&&(j||(j=se.elements.slice(0,De)),j.push(un))}var jn=j?e.setTextRange(b.createNodeArray(j),se.elements):se.elements;return b.updateCommaListExpression(se,jn)}function Kn(se){return se.declarationList.declarations.length===1&&!!se.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(se.declarationList.declarations[0].initializer)&33554432)}function Je(se){var pn=re(0,e.hasSyntacticModifier(se,1)?32:0),j;if(le&&(se.declarationList.flags&3)===0&&!Kn(se)){for(var De=void 0,Ve=0,un=se.declarationList.declarations;Ve<un.length;Ve++){var jn=un[Ve];if(it(le,jn),jn.initializer){var mt=void 0;e.isBindingPattern(jn.name)?mt=e.flattenDestructuringAssignment(jn,g,w,0):(mt=b.createBinaryExpression(jn.name,63,e.visitNode(jn.initializer,g,e.isExpression)),e.setTextRange(mt,jn)),De=e.append(De,mt)}}De?j=e.setTextRange(b.createExpressionStatement(b.inlineExpressions(De)),se):j=void 0}else j=e.visitEachChild(se,g,w);return B(pn,0,0),j}function En(se){if(se.flags&3||se.transformFlags&262144){se.flags&3&&Io();var pn=e.flatMap(se.declarations,se.flags&1?yt:Gt),j=b.createVariableDeclarationList(pn);return e.setOriginalNode(j,se),e.setTextRange(j,se),e.setCommentRange(j,se),se.transformFlags&262144&&(e.isBindingPattern(se.declarations[0].name)||e.isBindingPattern(e.last(se.declarations).name))&&e.setSourceMapRange(j,Nn(pn)),j}return e.visitEachChild(se,g,w)}function Nn(se){for(var pn=-1,j=-1,De=0,Ve=se;De<Ve.length;De++){var un=Ve[De];pn=pn===-1?un.pos:un.pos===-1?pn:Math.min(pn,un.pos),j=Math.max(j,un.end)}return e.createRange(pn,j)}function ct(se){var pn=W.getNodeCheckFlags(se),j=pn&262144,De=pn&524288,Ve=(ae&64)!==0||j&&De&&(ae&512)!==0,un=!Ve&&(ae&4096)===0&&(!W.isDeclarationWithCollidingName(se)||De&&!j&&(ae&(2048|4096))===0);return un}function yt(se){var pn=se.name;return e.isBindingPattern(pn)?Gt(se):!se.initializer&&ct(se)?b.updateVariableDeclaration(se,se.name,void 0,void 0,b.createVoidZero()):e.visitEachChild(se,g,w)}function Gt(se){var pn=re(32,0),j;return e.isBindingPattern(se.name)?j=e.flattenDestructuringBinding(se,g,w,0,void 0,(pn&32)!==0):j=e.visitEachChild(se,g,w),B(pn,0,0),j}function $t(se){le.labels.set(e.idText(se.label),!0)}function Ke(se){le.labels.set(e.idText(se.label),!1)}function Vn(se){le&&!le.labels&&(le.labels=new e.Map);var pn=e.unwrapInnermostStatementOfLabel(se,le&&$t);return e.isIterationStatement(pn,!1)?Zn(pn,se):b.restoreEnclosingLabel(e.visitNode(pn,g,e.isStatement,b.liftToBlock),se,le&&Ke)}function Zn(se,pn){switch(se.kind){case 238:case 239:return Pn(se,pn);case 240:return rt(se,pn);case 241:return gt(se,pn);case 242:return lt(se,pn)}}function Re(se,pn,j,De,Ve){var un=re(se,pn),jn=ht(j,De,un,Ve);return B(un,0,0),jn}function Pn(se,pn){return Re(0,1280,se,pn)}function rt(se,pn){return Re(5056,3328,se,pn)}function Yn(se){return b.updateForStatement(se,e.visitNode(se.initializer,p,e.isForInitializer),e.visitNode(se.condition,g,e.isExpression),e.visitNode(se.incrementor,p,e.isExpression),e.visitNode(se.statement,g,e.isStatement,b.liftToBlock))}function gt(se,pn){return Re(3008,5376,se,pn)}function lt(se,pn){return Re(3008,5376,se,pn,v.downlevelIteration?An:K)}function Fe(se,pn,j){var De=[],Ve=se.initializer;if(e.isVariableDeclarationList(Ve)){se.initializer.flags&3&&Io();var un=e.firstOrUndefined(Ve.declarations);if(un&&e.isBindingPattern(un.name)){var jn=e.flattenDestructuringBinding(un,g,w,0,pn),mt=e.setTextRange(b.createVariableDeclarationList(jn),se.initializer);e.setOriginalNode(mt,se.initializer),e.setSourceMapRange(mt,e.createRange(jn[0].pos,e.last(jn).end)),De.push(b.createVariableStatement(void 0,mt))}else De.push(e.setTextRange(b.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(b.createVariableDeclarationList([b.createVariableDeclaration(un?un.name:b.createTempVariable(void 0),void 0,void 0,pn)]),e.moveRangePos(Ve,-1)),Ve)),e.moveRangeEnd(Ve,-1)))}else{var St=b.createAssignment(Ve,pn);e.isDestructuringAssignment(St)?De.push(b.createExpressionStatement(Be(St,!0))):(e.setTextRangeEnd(St,Ve.end),De.push(e.setTextRange(b.createExpressionStatement(e.visitNode(St,g,e.isExpression)),e.moveRangeEnd(Ve,-1))))}if(j)return Bn(e.addRange(De,j));var ir=e.visitNode(se.statement,g,e.isStatement,b.liftToBlock);return e.isBlock(ir)?b.updateBlock(ir,e.setTextRange(b.createNodeArray(e.concatenate(De,ir.statements)),ir.statements)):(De.push(ir),Bn(De))}function Bn(se){return e.setEmitFlags(b.createBlock(b.createNodeArray(se),!0),48|384)}function K(se,pn,j){var De=e.visitNode(se.expression,g,e.isExpression),Ve=b.createLoopVariable(),un=e.isIdentifier(De)?b.getGeneratedNameForNode(De):b.createTempVariable(void 0);e.setEmitFlags(De,48|e.getEmitFlags(De));var jn=e.setTextRange(b.createForStatement(e.setEmitFlags(e.setTextRange(b.createVariableDeclarationList([e.setTextRange(b.createVariableDeclaration(Ve,void 0,void 0,b.createNumericLiteral(0)),e.moveRangePos(se.expression,-1)),e.setTextRange(b.createVariableDeclaration(un,void 0,void 0,De),se.expression)]),se.expression),2097152),e.setTextRange(b.createLessThan(Ve,b.createPropertyAccessExpression(un,"length")),se.expression),e.setTextRange(b.createPostfixIncrement(Ve),se.expression),Fe(se,b.createElementAccessExpression(un,Ve),j)),se);return e.setEmitFlags(jn,256),e.setTextRange(jn,se),b.restoreEnclosingLabel(jn,pn,le&&Ke)}function An(se,pn,j,De){var Ve=e.visitNode(se.expression,g,e.isExpression),un=e.isIdentifier(Ve)?b.getGeneratedNameForNode(Ve):b.createTempVariable(void 0),jn=e.isIdentifier(Ve)?b.getGeneratedNameForNode(un):b.createTempVariable(void 0),mt=b.createUniqueName("e"),St=b.getGeneratedNameForNode(mt),ir=b.createTempVariable(void 0),_r=e.setTextRange(de().createValuesHelper(Ve),se.expression),na=b.createCallExpression(b.createPropertyAccessExpression(un,"next"),void 0,[]);Z(mt),Z(ir);var wa=De&1024?b.inlineExpressions([b.createAssignment(mt,b.createVoidZero()),_r]):_r,za=e.setEmitFlags(e.setTextRange(b.createForStatement(e.setEmitFlags(e.setTextRange(b.createVariableDeclarationList([e.setTextRange(b.createVariableDeclaration(un,void 0,void 0,wa),se.expression),b.createVariableDeclaration(jn,void 0,void 0,na)]),se.expression),2097152),b.createLogicalNot(b.createPropertyAccessExpression(jn,"done")),b.createAssignment(jn,na),Fe(se,b.createPropertyAccessExpression(jn,"value"),j)),se),256);return b.createTryStatement(b.createBlock([b.restoreEnclosingLabel(za,pn,le&&Ke)]),b.createCatchClause(b.createVariableDeclaration(St),e.setEmitFlags(b.createBlock([b.createExpressionStatement(b.createAssignment(mt,b.createObjectLiteralExpression([b.createPropertyAssignment("error",St)])))]),1)),b.createBlock([b.createTryStatement(b.createBlock([e.setEmitFlags(b.createIfStatement(b.createLogicalAnd(b.createLogicalAnd(jn,b.createLogicalNot(b.createPropertyAccessExpression(jn,"done"))),b.createAssignment(ir,b.createPropertyAccessExpression(un,"return"))),b.createExpressionStatement(b.createFunctionCallCall(ir,un,[]))),1)]),void 0,e.setEmitFlags(b.createBlock([e.setEmitFlags(b.createIfStatement(mt,b.createThrowStatement(b.createPropertyAccessExpression(mt,"error"))),1)]),1))]))}function Fn(se){for(var pn=se.properties,j=-1,De=!1,Ve=0;Ve<pn.length;Ve++){var un=pn[Ve];if(un.transformFlags&524288&&ae&4||(De=e.Debug.checkDefined(un.name).kind===160)){j=Ve;break}}if(j<0)return e.visitEachChild(se,g,w);var jn=b.createTempVariable(Z),mt=[],St=b.createAssignment(jn,e.setEmitFlags(b.createObjectLiteralExpression(e.visitNodes(pn,g,e.isObjectLiteralElementLike,0,j),se.multiLine),De?65536:0));return se.multiLine&&e.startOnNewLine(St),mt.push(St),Wt(mt,se,jn,j),mt.push(se.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(b.cloneNode(jn),jn),jn.parent)):jn),b.inlineExpressions(mt)}function ln(se){return(W.getNodeCheckFlags(se)&131072)!==0}function Ln(se){return e.isForStatement(se)&&!!se.initializer&&ln(se.initializer)}function Xe(se){return e.isForStatement(se)&&!!se.condition&&ln(se.condition)}function Dn(se){return e.isForStatement(se)&&!!se.incrementor&&ln(se.incrementor)}function rn(se){return qn(se)||Ln(se)}function qn(se){return(W.getNodeCheckFlags(se)&65536)!==0}function it(se,pn){se.hoistedLocalVariables||(se.hoistedLocalVariables=[]),j(pn.name);function j(De){if(De.kind===79)se.hoistedLocalVariables.push(De);else for(var Ve=0,un=De.elements;Ve<un.length;Ve++){var jn=un[Ve];e.isOmittedExpression(jn)||j(jn.name)}}}function ht(se,pn,j,De){if(!rn(se)){var Ve=void 0;le&&(Ve=le.allowedNonLabeledJumps,le.allowedNonLabeledJumps=2|4);var un=De?De(se,pn,void 0,j):b.restoreEnclosingLabel(e.isForStatement(se)?Yn(se):e.visitEachChild(se,g,w),pn,le&&Ke);return le&&(le.allowedNonLabeledJumps=Ve),un}var jn=Ht(se),mt=[],St=le;le=jn;var ir=Ln(se)?Wr(se,jn):void 0,_r=qn(se)?Or(se,jn,St):void 0;le=St,ir&&mt.push(ir.functionDeclaration),_r&&mt.push(_r.functionDeclaration),Xr(mt,jn,St),ir&&mt.push(eo(ir.functionName,ir.containsYield));var na;if(_r)if(De)na=De(se,pn,_r.part,j);else{var wa=Et(se,ir,b.createBlock(_r.part,!0));na=b.restoreEnclosingLabel(wa,pn,le&&Ke)}else{var za=Et(se,ir,e.visitNode(se.statement,g,e.isStatement,b.liftToBlock));na=b.restoreEnclosingLabel(za,pn,le&&Ke)}return mt.push(na),mt}function Et(se,pn,j){switch(se.kind){case 240:return zt(se,pn,j);case 241:return br(se,j);case 242:return fr(se,j);case 238:return Jt(se,j);case 239:return mr(se,j);default:return e.Debug.failBadSyntaxKind(se,"IterationStatement expected")}}function zt(se,pn,j){var De=se.condition&&ln(se.condition),Ve=De||se.incrementor&&ln(se.incrementor);return b.updateForStatement(se,e.visitNode(pn?pn.part:se.initializer,p,e.isForInitializer),e.visitNode(De?void 0:se.condition,g,e.isExpression),e.visitNode(Ve?void 0:se.incrementor,p,e.isExpression),j)}function fr(se,pn){return b.updateForOfStatement(se,void 0,e.visitNode(se.initializer,g,e.isForInitializer),e.visitNode(se.expression,g,e.isExpression),pn)}function br(se,pn){return b.updateForInStatement(se,e.visitNode(se.initializer,g,e.isForInitializer),e.visitNode(se.expression,g,e.isExpression),pn)}function Jt(se,pn){return b.updateDoStatement(se,pn,e.visitNode(se.expression,g,e.isExpression))}function mr(se,pn){return b.updateWhileStatement(se,e.visitNode(se.expression,g,e.isExpression),pn)}function Ht(se){var pn;switch(se.kind){case 240:case 241:case 242:var j=se.initializer;j&&j.kind===253&&(pn=j);break}var De=[],Ve=[];if(pn&&e.getCombinedNodeFlags(pn)&3)for(var un=Ln(se),jn=0,mt=pn.declarations;jn<mt.length;jn++){var St=mt[jn];rr(se,St,De,Ve,un)}var ir={loopParameters:De,loopOutParameters:Ve};return le&&(le.argumentsName&&(ir.argumentsName=le.argumentsName),le.thisName&&(ir.thisName=le.thisName),le.hoistedLocalVariables&&(ir.hoistedLocalVariables=le.hoistedLocalVariables)),ir}function Xr(se,pn,j){var De;if(pn.argumentsName&&(j?j.argumentsName=pn.argumentsName:(De||(De=[])).push(b.createVariableDeclaration(pn.argumentsName,void 0,void 0,b.createIdentifier("arguments")))),pn.thisName&&(j?j.thisName=pn.thisName:(De||(De=[])).push(b.createVariableDeclaration(pn.thisName,void 0,void 0,b.createIdentifier("this")))),pn.hoistedLocalVariables)if(j)j.hoistedLocalVariables=pn.hoistedLocalVariables;else{De||(De=[]);for(var Ve=0,un=pn.hoistedLocalVariables;Ve<un.length;Ve++){var jn=un[Ve];De.push(b.createVariableDeclaration(jn))}}if(pn.loopOutParameters.length){De||(De=[]);for(var mt=0,St=pn.loopOutParameters;mt<St.length;mt++){var ir=St[mt];De.push(b.createVariableDeclaration(ir.outParamName))}}pn.conditionVariable&&(De||(De=[]),De.push(b.createVariableDeclaration(pn.conditionVariable,void 0,void 0,b.createFalse()))),De&&se.push(b.createVariableStatement(void 0,b.createVariableDeclarationList(De)))}function At(se){return b.createVariableDeclaration(se.originalName,void 0,void 0,se.outParamName)}function Wr(se,pn){var j=b.createUniqueName("_loop_init"),De=(se.initializer.transformFlags&524288)!==0,Ve=0;pn.containsLexicalThis&&(Ve|=8),De&&ae&4&&(Ve|=262144);var un=[];un.push(b.createVariableStatement(void 0,se.initializer)),qa(pn.loopOutParameters,2,1,un);var jn=b.createVariableStatement(void 0,e.setEmitFlags(b.createVariableDeclarationList([b.createVariableDeclaration(j,void 0,void 0,e.setEmitFlags(b.createFunctionExpression(void 0,De?b.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(b.createBlock(un,!0),g,e.isBlock)),Ve))]),2097152)),mt=b.createVariableDeclarationList(e.map(pn.loopOutParameters,At));return{functionName:j,containsYield:De,functionDeclaration:jn,part:mt}}function Or(se,pn,j){var De=b.createUniqueName("_loop");fe();var Ve=e.visitNode(se.statement,g,e.isStatement,b.liftToBlock),un=U(),jn=[];(Xe(se)||Dn(se))&&(pn.conditionVariable=b.createUniqueName("inc"),se.incrementor?jn.push(b.createIfStatement(pn.conditionVariable,b.createExpressionStatement(e.visitNode(se.incrementor,g,e.isExpression)),b.createExpressionStatement(b.createAssignment(pn.conditionVariable,b.createTrue())))):jn.push(b.createIfStatement(b.createLogicalNot(pn.conditionVariable),b.createExpressionStatement(b.createAssignment(pn.conditionVariable,b.createTrue())))),Xe(se)&&jn.push(b.createIfStatement(b.createPrefixUnaryExpression(53,e.visitNode(se.condition,g,e.isExpression)),e.visitNode(b.createBreakStatement(),g,e.isStatement)))),e.isBlock(Ve)?e.addRange(jn,Ve.statements):jn.push(Ve),qa(pn.loopOutParameters,1,1,jn),e.insertStatementsAfterStandardPrologue(jn,un);var mt=b.createBlock(jn,!0);e.isBlock(Ve)&&e.setOriginalNode(mt,Ve);var St=(se.statement.transformFlags&524288)!==0,ir=524288;pn.containsLexicalThis&&(ir|=8),St&&(ae&4)!==0&&(ir|=262144);var _r=b.createVariableStatement(void 0,e.setEmitFlags(b.createVariableDeclarationList([b.createVariableDeclaration(De,void 0,void 0,e.setEmitFlags(b.createFunctionExpression(void 0,St?b.createToken(41):void 0,void 0,void 0,pn.loopParameters,void 0,mt),ir))]),2097152)),na=Va(De,pn,j,St);return{functionName:De,containsYield:St,functionDeclaration:_r,part:na}}function Ja(se,pn){var j=pn===0?se.outParamName:se.originalName,De=pn===0?se.originalName:se.outParamName;return b.createBinaryExpression(De,63,j)}function qa(se,pn,j,De){for(var Ve=0,un=se;Ve<un.length;Ve++){var jn=un[Ve];jn.flags&pn&&De.push(b.createExpressionStatement(Ja(jn,j)))}}function eo(se,pn){var j=b.createCallExpression(se,void 0,[]),De=pn?b.createYieldExpression(b.createToken(41),e.setEmitFlags(j,8388608)):j;return b.createExpressionStatement(De)}function Va(se,pn,j,De){var Ve=[],un=!(pn.nonLocalJumps&~4)&&!pn.labeledNonLocalBreaks&&!pn.labeledNonLocalContinues,jn=b.createCallExpression(se,void 0,e.map(pn.loopParameters,function(wa){return wa.name})),mt=De?b.createYieldExpression(b.createToken(41),e.setEmitFlags(jn,8388608)):jn;if(un)Ve.push(b.createExpressionStatement(mt)),qa(pn.loopOutParameters,1,0,Ve);else{var St=b.createUniqueName("state"),ir=b.createVariableStatement(void 0,b.createVariableDeclarationList([b.createVariableDeclaration(St,void 0,void 0,mt)]));if(Ve.push(ir),qa(pn.loopOutParameters,1,0,Ve),pn.nonLocalJumps&8){var _r=void 0;j?(j.nonLocalJumps|=8,_r=b.createReturnStatement(St)):_r=b.createReturnStatement(b.createPropertyAccessExpression(St,"value")),Ve.push(b.createIfStatement(b.createTypeCheck(St,"object"),_r))}if(pn.nonLocalJumps&2&&Ve.push(b.createIfStatement(b.createStrictEquality(St,b.createStringLiteral("break")),b.createBreakStatement())),pn.labeledNonLocalBreaks||pn.labeledNonLocalContinues){var na=[];wt(pn.labeledNonLocalBreaks,!0,St,j,na),wt(pn.labeledNonLocalContinues,!1,St,j,na),Ve.push(b.createSwitchStatement(St,b.createCaseBlock(na)))}}return Ve}function la(se,pn,j,De){pn?(se.labeledNonLocalBreaks||(se.labeledNonLocalBreaks=new e.Map),se.labeledNonLocalBreaks.set(j,De)):(se.labeledNonLocalContinues||(se.labeledNonLocalContinues=new e.Map),se.labeledNonLocalContinues.set(j,De))}function wt(se,pn,j,De,Ve){if(!se)return;se.forEach(function(un,jn){var mt=[];if(!De||De.labels&&De.labels.get(jn)){var St=b.createIdentifier(jn);mt.push(pn?b.createBreakStatement(St):b.createContinueStatement(St))}else la(De,pn,jn,un),mt.push(b.createReturnStatement(j));Ve.push(b.createCaseClause(b.createStringLiteral(un),mt))})}function rr(se,pn,j,De,Ve){var un=pn.name;if(e.isBindingPattern(un))for(var jn=0,mt=un.elements;jn<mt.length;jn++){var St=mt[jn];e.isOmittedExpression(St)||rr(se,St,j,De,Ve)}else{j.push(b.createParameterDeclaration(void 0,void 0,void 0,un));var ir=W.getNodeCheckFlags(pn);if(ir&4194304||Ve){var _r=b.createUniqueName("out_"+e.idText(un)),na=0;ir&4194304&&(na|=1),e.isForStatement(se)&&se.initializer&&W.isBindingCapturedByNode(se.initializer,pn)&&(na|=2),De.push({flags:na,originalName:un,outParamName:_r})}}}function Wt(se,pn,j,De){for(var Ve=pn.properties,un=Ve.length,jn=De;jn<un;jn++){var mt=Ve[jn];switch(mt.kind){case 170:case 171:var St=e.getAllAccessorDeclarations(pn.properties,mt);mt===St.firstAccessor&&se.push(Un(j,St,pn,!!pn.multiLine));break;case 167:se.push(Lt(mt,j,pn,pn.multiLine));break;case 291:se.push(Pr(mt,j,pn.multiLine));break;case 292:se.push(ra(mt,j,pn.multiLine));break;default:e.Debug.failBadSyntaxKind(pn);break}}}function Pr(se,pn,j){var De=b.createAssignment(e.createMemberAccessForPropertyName(b,pn,e.visitNode(se.name,g,e.isPropertyName)),e.visitNode(se.initializer,g,e.isExpression));return e.setTextRange(De,se),j&&e.startOnNewLine(De),De}function ra(se,pn,j){var De=b.createAssignment(e.createMemberAccessForPropertyName(b,pn,e.visitNode(se.name,g,e.isPropertyName)),b.cloneNode(se.name));return e.setTextRange(De,se),j&&e.startOnNewLine(De),De}function Lt(se,pn,j,De){var Ve=b.createAssignment(e.createMemberAccessForPropertyName(b,pn,e.visitNode(se.name,g,e.isPropertyName)),Qe(se,se,void 0,j));return e.setTextRange(Ve,se),De&&e.startOnNewLine(Ve),Ve}function xt(se){var pn=re(7104,0),j;if(e.Debug.assert(!!se.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(se.variableDeclaration.name)){var De=b.createTempVariable(void 0),Ve=b.createVariableDeclaration(De);e.setTextRange(Ve,se.variableDeclaration);var un=e.flattenDestructuringBinding(se.variableDeclaration,g,w,0,De),jn=b.createVariableDeclarationList(un);e.setTextRange(jn,se.variableDeclaration);var mt=b.createVariableStatement(void 0,jn);j=b.updateCatchClause(se,Ve,Yt(se.block,mt))}else j=e.visitEachChild(se,g,w);return B(pn,0,0),j}function Yt(se,pn){var j=e.visitNodes(se.statements,g,e.isStatement);return b.updateBlock(se,Mt([pn],j,!0))}function Qt(se){e.Debug.assert(!e.isComputedPropertyName(se.name));var pn=Qe(se,e.moveRangePos(se,-1),void 0,void 0);return e.setEmitFlags(pn,512|e.getEmitFlags(pn)),e.setTextRange(b.createPropertyAssignment(se.name,pn),se)}function sr(se){e.Debug.assert(!e.isComputedPropertyName(se.name));var pn=le;le=void 0;var j=re(32670,65),De,Ve=e.visitParameterList(se.parameters,g,w),un=gn(se);return se.kind===170?De=b.updateGetAccessorDeclaration(se,se.decorators,se.modifiers,se.name,Ve,se.type,un):De=b.updateSetAccessorDeclaration(se,se.decorators,se.modifiers,se.name,Ve,un),B(j,98304,0),le=pn,De}function at(se){return e.setTextRange(b.createPropertyAssignment(se.name,C(b.cloneNode(se.name))),se)}function ea(se){return e.visitEachChild(se,g,w)}function Fa(se){return e.visitEachChild(se,g,w)}function li(se){return e.some(se.elements,e.isSpreadElement)?xi(se.elements,!1,!!se.multiLine,!!se.elements.hasTrailingComma):e.visitEachChild(se,g,w)}function Si(se){if(e.getEmitFlags(se)&33554432)return Qr(se);var pn=e.skipOuterExpressions(se.expression);return pn.kind===106||e.isSuperProperty(pn)||e.some(se.arguments,e.isSpreadElement)?Mi(se,!0):b.updateCallExpression(se,e.visitNode(se.expression,T,e.isExpression),void 0,e.visitNodes(se.arguments,g,e.isExpression))}function Qr(se){var pn=e.cast(e.cast(e.skipOuterExpressions(se.expression),e.isArrowFunction).body,e.isBlock),j=function(No){return e.isVariableStatement(No)&&!!e.first(No.declarationList.declarations).initializer},De=le;le=void 0;var Ve=e.visitNodes(pn.statements,d,e.isStatement);le=De;var un=e.filter(Ve,j),jn=e.filter(Ve,function(No){return!j(No)}),mt=e.cast(e.first(un),e.isVariableStatement),St=mt.declarationList.declarations[0],ir=e.skipOuterExpressions(St.initializer),_r=e.tryCast(ir,e.isAssignmentExpression);!_r&&e.isBinaryExpression(ir)&&ir.operatorToken.kind===27&&(_r=e.tryCast(ir.left,e.isAssignmentExpression));var na=e.cast(_r?e.skipOuterExpressions(_r.right):ir,e.isCallExpression),wa=e.cast(e.skipOuterExpressions(na.expression),e.isFunctionExpression),za=wa.body.statements,bi=0,Xi=-1,co=[];if(_r){var Ss=e.tryCast(za[bi],e.isExpressionStatement);Ss&&(co.push(Ss),bi++),co.push(za[bi]),bi++,co.push(b.createExpressionStatement(b.createAssignment(_r.left,e.cast(St.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(za,Xi));)Xi--;return e.addRange(co,za,bi,Xi),Xi<-1&&e.addRange(co,za,Xi+1),e.addRange(co,jn),e.addRange(co,un,1),b.restoreOuterExpressions(se.expression,b.restoreOuterExpressions(St.initializer,b.restoreOuterExpressions(_r&&_r.right,b.updateCallExpression(na,b.restoreOuterExpressions(na.expression,b.updateFunctionExpression(wa,void 0,void 0,void 0,void 0,wa.parameters,void 0,b.updateBlock(wa.body,co))),void 0,na.arguments))))}function ci(se){return Mi(se,!1)}function Mi(se,pn){if(se.transformFlags&16384||se.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(se.expression))){var j=b.createCallBinding(se.expression,Z),De=j.target,Ve=j.thisArg;se.expression.kind===106&&e.setEmitFlags(Ve,4);var un=void 0;if(se.transformFlags&16384?un=b.createFunctionApplyCall(e.visitNode(De,T,e.isExpression),se.expression.kind===106?Ve:e.visitNode(Ve,g,e.isExpression),xi(se.arguments,!0,!1,!1)):un=e.setTextRange(b.createFunctionCallCall(e.visitNode(De,T,e.isExpression),se.expression.kind===106?Ve:e.visitNode(Ve,g,e.isExpression),e.visitNodes(se.arguments,g,e.isExpression)),se),se.expression.kind===106){var jn=b.createLogicalOr(un,qe());un=pn?b.createAssignment(b.createUniqueName("_this",16|32),jn):jn}return e.setOriginalNode(un,se)}return e.visitEachChild(se,g,w)}function ro(se){if(e.some(se.arguments,e.isSpreadElement)){var pn=b.createCallBinding(b.createPropertyAccessExpression(se.expression,"bind"),Z),j=pn.target,De=pn.thisArg;return b.createNewExpression(b.createFunctionApplyCall(e.visitNode(j,g,e.isExpression),De,xi(b.createNodeArray(Mt([b.createVoidZero()],se.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(se,g,w)}function xi(se,pn,j,De){var Ve=se.length,un=e.flatten(e.spanMap(se,ui,function(wa,za,bi,Xi){return za(wa,j,De&&Xi===Ve)}));if(un.length===1){var jn=un[0];if(pn&&!v.downlevelIteration||e.isPackedArrayLiteral(jn.expression)||e.isCallToHelper(jn.expression,"___spreadArray"))return jn.expression}for(var mt=de(),St=un[0].kind!==0,ir=St?b.createArrayLiteralExpression():un[0].expression,_r=St?0:1;_r<un.length;_r++){var na=un[_r];ir=mt.createSpreadArrayHelper(ir,na.expression,na.kind===1&&!pn)}return ir}function ui(se){return e.isSpreadElement(se)?lo:Vi}function lo(se){return e.map(se,xo)}function xo(se){var pn=e.visitNode(se.expression,g,e.isExpression),j=e.isCallToHelper(pn,"___read"),De=j||e.isPackedArrayLiteral(pn)?2:1;return v.downlevelIteration&&De===1&&!e.isArrayLiteralExpression(pn)&&!j&&(pn=de().createReadHelper(pn,void 0),De=2),_e(De,pn)}function Vi(se,pn,j){var De=b.createArrayLiteralExpression(e.visitNodes(b.createNodeArray(se,j),g,e.isExpression),pn);return _e(0,De)}function os(se){return e.visitNode(se.expression,g,e.isExpression)}function Qi(se){return e.setTextRange(b.createStringLiteral(se.text),se)}function mo(se){return se.hasExtendedUnicodeEscape?e.setTextRange(b.createStringLiteral(se.text),se):se}function Rs(se){return se.numericLiteralFlags&384?e.setTextRange(b.createNumericLiteral(se.text),se):se}function Ls(se){return e.processTaggedTemplateExpression(w,se,g,L,ie,e.ProcessLevel.All)}function Ca(se){var pn=[];Pi(pn,se),wo(pn,se);var j=e.reduceLeft(pn,b.createAdd);return e.nodeIsSynthesized(j)&&e.setTextRange(j,se),j}function ai(se){return e.Debug.assert(se.templateSpans.length!==0),se.head.text.length!==0||se.templateSpans[0].literal.text.length===0}function Pi(se,pn){if(!ai(pn))return;se.push(b.createStringLiteral(pn.head.text))}function wo(se,pn){for(var j=0,De=pn.templateSpans;j<De.length;j++){var Ve=De[j];se.push(e.visitNode(Ve.expression,g,e.isExpression)),Ve.literal.text.length!==0&&se.push(b.createStringLiteral(Ve.literal.text))}}function Lo(se){return ae&8&&!se?b.createPropertyAccessExpression(b.createUniqueName("_super",16|32),"prototype"):b.createUniqueName("_super",16|32)}function _s(se){return se.keywordToken===103&&se.name.escapedText==="target"?(ae|=32768,b.createUniqueName("_newTarget",16|32)):se}function Oi(se,pn,j){if(P&1&&e.isFunctionLike(pn)){var De=re(32670,e.getEmitFlags(pn)&8?65|16:65);$(se,pn,j),B(De,0,0);return}$(se,pn,j)}function Io(){(P&2)===0&&(P|=2,w.enableSubstitution(79))}function fs(){(P&1)===0&&(P|=1,w.enableSubstitution(108),w.enableEmitNotification(169),w.enableEmitNotification(167),w.enableEmitNotification(170),w.enableEmitNotification(171),w.enableEmitNotification(212),w.enableEmitNotification(211),w.enableEmitNotification(254))}function Mo(se,pn){return pn=x(se,pn),se===1?_t(pn):e.isIdentifier(pn)?Ms(pn):pn}function Ms(se){if(P&2&&!e.isInternalName(se)){var pn=e.getParseTreeNode(se,e.isIdentifier);if(pn&&yn(pn))return e.setTextRange(b.getGeneratedNameForNode(pn),se)}return se}function yn(se){switch(se.parent.kind){case 201:case 255:case 258:case 252:return se.parent.name===se&&W.isDeclarationWithCollidingName(se.parent)}return!1}function _t(se){switch(se.kind){case 79:return tr(se);case 108:return Za(se)}return se}function tr(se){if(P&2&&!e.isInternalName(se)){var pn=W.getReferencedDeclarationWithCollidingName(se);if(pn&&!(e.isClassLike(pn)&&oa(pn,se)))return e.setTextRange(b.getGeneratedNameForNode(e.getNameOfDeclaration(pn)),se)}return se}function oa(se,pn){var j=e.getParseTreeNode(pn);if(!j||j===se||j.end<=se.pos||j.pos>=se.end)return!1;for(var De=e.getEnclosingBlockScopeContainer(se);j;){if(j===De||j===se)return!1;if(e.isClassElement(j)&&j.parent===se)return!0;j=j.parent}return!1}function Za(se){return P&1&&ae&16?e.setTextRange(b.createUniqueName("_this",16|32),se):se}function Ga(se,pn){return e.isStatic(pn)?b.getInternalName(se):b.createPropertyAccessExpression(b.getInternalName(se),"prototype")}function He(se,pn){if(!se||!pn)return!1;if(e.some(se.parameters))return!1;var j=e.firstOrUndefined(se.body.statements);if(!j||!e.nodeIsSynthesized(j)||j.kind!==236)return!1;var De=j.expression;if(!e.nodeIsSynthesized(De)||De.kind!==206)return!1;var Ve=De.expression;if(!e.nodeIsSynthesized(Ve)||Ve.kind!==106)return!1;var un=e.singleOrUndefined(De.arguments);if(!un||!e.nodeIsSynthesized(un)||un.kind!==223)return!1;var jn=un.expression;return e.isIdentifier(jn)&&jn.escapedText==="arguments"}}e.transformES2015=O})(mn||(mn={}));var mn;(function(e){function s(ue){var ee=ue.factory,Y=ue.getCompilerOptions(),V,ne;(Y.jsx===1||Y.jsx===3)&&(V=ue.onEmitNode,ue.onEmitNode=w,ue.enableEmitNotification(278),ue.enableEmitNotification(279),ue.enableEmitNotification(277),ne=[]);var _e=ue.onSubstituteNode;return ue.onSubstituteNode=b,ue.enableSubstitution(204),ue.enableSubstitution(291),e.chainBundle(ue,O);function O(U){return U}function w(U,Z,v){switch(Z.kind){case 278:case 279:case 277:var W=Z.tagName;ne[e.getOriginalNodeId(W)]=!0;break}V(U,Z,v)}function b(U,Z){return Z.id&&ne&&ne[Z.id]?_e(U,Z):(Z=_e(U,Z),e.isPropertyAccessExpression(Z)?de(Z):e.isPropertyAssignment(Z)?fe(Z):Z)}function de(U){if(e.isPrivateIdentifier(U.name))return U;var Z=_(U.name);return Z?e.setTextRange(ee.createElementAccessExpression(U.expression,Z),U):U}function fe(U){var Z=e.isIdentifier(U.name)&&_(U.name);return Z?ee.updatePropertyAssignment(U,Z,U.initializer):U}function _(U){var Z=U.originalKeywordKind||(e.nodeIsSynthesized(U)?e.stringToToken(e.idText(U)):void 0);return Z!==void 0&&Z>=81&&Z<=116?e.setTextRange(ee.createStringLiteralFromNode(U),U):void 0}}e.transformES5=s})(mn||(mn={}));var mn;(function(e){var s;(function(O){O[O.Nop=0]="Nop",O[O.Statement=1]="Statement",O[O.Assign=2]="Assign",O[O.Break=3]="Break",O[O.BreakWhenTrue=4]="BreakWhenTrue",O[O.BreakWhenFalse=5]="BreakWhenFalse",O[O.Yield=6]="Yield",O[O.YieldStar=7]="YieldStar",O[O.Return=8]="Return",O[O.Throw=9]="Throw",O[O.Endfinally=10]="Endfinally"})(s||(s={}));var ue;(function(O){O[O.Open=0]="Open",O[O.Close=1]="Close"})(ue||(ue={}));var ee;(function(O){O[O.Exception=0]="Exception",O[O.With=1]="With",O[O.Switch=2]="Switch",O[O.Loop=3]="Loop",O[O.Labeled=4]="Labeled"})(ee||(ee={}));var Y;(function(O){O[O.Try=0]="Try",O[O.Catch=1]="Catch",O[O.Finally=2]="Finally",O[O.Done=3]="Done"})(Y||(Y={}));var V;(function(O){O[O.Next=0]="Next",O[O.Throw=1]="Throw",O[O.Return=2]="Return",O[O.Break=3]="Break",O[O.Yield=4]="Yield",O[O.YieldStar=5]="YieldStar",O[O.Catch=6]="Catch",O[O.Endfinally=7]="Endfinally"})(V||(V={}));function ne(O){switch(O){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function _e(O){var w=O.factory,b=O.getEmitHelperFactory,de=O.resumeLexicalEnvironment,fe=O.endLexicalEnvironment,_=O.hoistFunctionDeclaration,U=O.hoistVariableDeclaration,Z=O.getCompilerOptions(),v=e.getEmitScriptTarget(Z),W=O.getEmitResolver(),x=O.onSubstituteNode;O.onSubstituteNode=Fe;var $,L,E,ae,X,ie,le,P,I,re,B=1,A,f,F,g,p=0,d=0,T,m,k,N,D,R,me,q;return e.chainBundle(O,J);function J(yn){if(yn.isDeclarationFile||(yn.transformFlags&1024)===0)return yn;var _t=e.visitEachChild(yn,C,O);return e.addEmitHelpers(_t,O.readEmitHelpers()),_t}function C(yn){var _t=yn.transformFlags;return ae?we(yn):E?Oe(yn):e.isFunctionLikeDeclaration(yn)&&yn.asteriskToken?Te(yn):_t&1024?e.visitEachChild(yn,C,O):yn}function we(yn){switch(yn.kind){case 238:return xe(yn);case 239:return wn(yn);case 247:return Zn(yn);case 248:return Pn(yn);default:return Oe(yn)}}function Oe(yn){switch(yn.kind){case 254:return be(yn);case 211:return Ce(yn);case 170:case 171:return Ue(yn);case 235:return $e(yn);case 240:return hn(yn);case 241:return Je(yn);case 244:return yt(yn);case 243:return Nn(yn);case 245:return $t(yn);default:return yn.transformFlags&524288?te(yn):yn.transformFlags&(1024|2097152)?e.visitEachChild(yn,C,O):yn}}function te(yn){switch(yn.kind){case 219:return ce(yn);case 346:return Me(yn);case 220:return Ye(yn);case 222:return Ne(yn);case 202:return je(yn);case 203:return Wn(yn);case 205:return dn(yn);case 206:return vn(yn);case 207:return o(yn);default:return e.visitEachChild(yn,C,O)}}function Te(yn){switch(yn.kind){case 254:return be(yn);case 211:return Ce(yn);default:return e.Debug.failBadSyntaxKind(yn)}}function be(yn){if(yn.asteriskToken)yn=e.setOriginalNode(e.setTextRange(w.createFunctionDeclaration(void 0,yn.modifiers,void 0,yn.name,void 0,e.visitParameterList(yn.parameters,C,O),void 0,Se(yn.body)),yn),yn);else{var _t=E,tr=ae;E=!1,ae=!1,yn=e.visitEachChild(yn,C,O),E=_t,ae=tr}if(E){_(yn);return}else return yn}function Ce(yn){if(yn.asteriskToken)yn=e.setOriginalNode(e.setTextRange(w.createFunctionExpression(void 0,void 0,yn.name,void 0,e.visitParameterList(yn.parameters,C,O),void 0,Se(yn.body)),yn),yn);else{var _t=E,tr=ae;E=!1,ae=!1,yn=e.visitEachChild(yn,C,O),E=_t,ae=tr}return yn}function Ue(yn){var _t=E,tr=ae;return E=!1,ae=!1,yn=e.visitEachChild(yn,C,O),E=_t,ae=tr,yn}function Se(yn){var _t=[],tr=E,oa=ae,Za=X,Ga=ie,He=le,se=P,pn=I,j=re,De=B,Ve=A,un=f,jn=F,mt=g;E=!0,ae=!1,X=void 0,ie=void 0,le=void 0,P=void 0,I=void 0,re=void 0,B=1,A=void 0,f=void 0,F=void 0,g=w.createTempVariable(void 0),de();var St=w.copyPrologue(yn.statements,_t,!1,C);Cn(yn.statements,St);var ir=ui();return e.insertStatementsAfterStandardPrologue(_t,fe()),_t.push(w.createReturnStatement(ir)),E=tr,ae=oa,X=Za,ie=Ga,le=He,P=se,I=pn,re=j,B=De,A=Ve,f=un,F=jn,g=mt,e.setTextRange(w.createBlock(_t,yn.multiLine),yn)}function $e(yn){if(yn.transformFlags&524288){Pe(yn.declarationList);return}else{if(e.getEmitFlags(yn)&1048576)return yn;for(var _t=0,tr=yn.declarationList.declarations;_t<tr.length;_t++){var oa=tr[_t];U(oa.name)}var Za=e.getInitializedVariables(yn.declarationList);return Za.length===0?void 0:e.setSourceMapRange(w.createExpressionStatement(w.inlineExpressions(e.map(Za,ke))),yn)}}function ce(yn){var _t=e.getExpressionAssociativity(yn);switch(_t){case 0:return qe(yn);case 1:return Le(yn);default:return e.Debug.assertNever(_t)}}function Le(yn){var _t=yn.left,tr=yn.right;if(gt(tr)){var oa=void 0;switch(_t.kind){case 204:oa=w.updatePropertyAccessExpression(_t,An(e.visitNode(_t.expression,C,e.isLeftHandSideExpression)),_t.name);break;case 205:oa=w.updateElementAccessExpression(_t,An(e.visitNode(_t.expression,C,e.isLeftHandSideExpression)),An(e.visitNode(_t.argumentExpression,C,e.isExpression)));break;default:oa=e.visitNode(_t,C,e.isExpression);break}var Za=yn.operatorToken.kind;return e.isCompoundAssignment(Za)?e.setTextRange(w.createAssignment(oa,e.setTextRange(w.createBinaryExpression(An(oa),e.getNonAssignmentOperatorForCompoundAssignment(Za),e.visitNode(tr,C,e.isExpression)),yn)),yn):w.updateBinaryExpression(yn,oa,yn.operatorToken,e.visitNode(tr,C,e.isExpression))}return e.visitEachChild(yn,C,O)}function qe(yn){return gt(yn.right)?e.isLogicalOperator(yn.operatorToken.kind)?fn(yn):yn.operatorToken.kind===27?pe(yn):w.updateBinaryExpression(yn,An(e.visitNode(yn.left,C,e.isExpression)),yn.operatorToken,e.visitNode(yn.right,C,e.isExpression)):e.visitEachChild(yn,C,O)}function pe(yn){var _t=[];return tr(yn.left),tr(yn.right),w.inlineExpressions(_t);function tr(oa){e.isBinaryExpression(oa)&&oa.operatorToken.kind===27?(tr(oa.left),tr(oa.right)):(gt(oa)&&_t.length>0&&(xi(1,[w.createExpressionStatement(w.inlineExpressions(_t))]),_t=[]),_t.push(e.visitNode(oa,C,e.isExpression)))}}function Me(yn){for(var _t=[],tr=0,oa=yn.elements;tr<oa.length;tr++){var Za=oa[tr];e.isBinaryExpression(Za)&&Za.operatorToken.kind===27?_t.push(pe(Za)):(gt(Za)&&_t.length>0&&(xi(1,[w.createExpressionStatement(w.inlineExpressions(_t))]),_t=[]),_t.push(e.visitNode(Za,C,e.isExpression)))}return w.inlineExpressions(_t)}function fn(yn){var _t=ln(),tr=Fn();return at(tr,e.visitNode(yn.left,C,e.isExpression),yn.left),yn.operatorToken.kind===55?li(_t,tr,yn.left):Fa(_t,tr,yn.left),at(tr,e.visitNode(yn.right,C,e.isExpression),yn.right),Ln(_t),tr}function Ye(yn){if(gt(yn.whenTrue)||gt(yn.whenFalse)){var _t=ln(),tr=ln(),oa=Fn();return li(_t,e.visitNode(yn.condition,C,e.isExpression),yn.condition),at(oa,e.visitNode(yn.whenTrue,C,e.isExpression),yn.whenTrue),ea(tr),Ln(_t),at(oa,e.visitNode(yn.whenFalse,C,e.isExpression),yn.whenFalse),Ln(tr),oa}return e.visitEachChild(yn,C,O)}function Ne(yn){var _t=ln(),tr=e.visitNode(yn.expression,C,e.isExpression);if(yn.asteriskToken){var oa=(e.getEmitFlags(yn.expression)&8388608)===0?e.setTextRange(b().createValuesHelper(tr),yn):tr;Si(oa,yn)}else Qr(tr,yn);return Ln(_t),Yt(yn)}function je(yn){return xn(yn.elements,void 0,void 0,yn.multiLine)}function xn(yn,_t,tr,oa){var Za=lt(yn),Ga;if(Za>0){Ga=Fn();var He=e.visitNodes(yn,C,e.isExpression,0,Za);at(Ga,w.createArrayLiteralExpression(_t?Mt([_t],He,!0):He)),_t=void 0}var se=e.reduceLeft(yn,pn,[],Za);return Ga?w.createArrayConcatCall(Ga,[w.createArrayLiteralExpression(se,oa)]):e.setTextRange(w.createArrayLiteralExpression(_t?Mt([_t],se,!0):se,oa),tr);function pn(j,De){if(gt(De)&&j.length>0){var Ve=Ga!==void 0;Ga||(Ga=Fn()),at(Ga,Ve?w.createArrayConcatCall(Ga,[w.createArrayLiteralExpression(j,oa)]):w.createArrayLiteralExpression(_t?Mt([_t],j,!0):j,oa)),_t=void 0,j=[]}return j.push(e.visitNode(De,C,e.isExpression)),j}}function Wn(yn){var _t=yn.properties,tr=yn.multiLine,oa=lt(_t),Za=Fn();at(Za,w.createObjectLiteralExpression(e.visitNodes(_t,C,e.isObjectLiteralElementLike,0,oa),tr));var Ga=e.reduceLeft(_t,He,[],oa);return Ga.push(tr?e.startOnNewLine(e.setParent(e.setTextRange(w.cloneNode(Za),Za),Za.parent)):Za),w.inlineExpressions(Ga);function He(se,pn){gt(pn)&&se.length>0&&(sr(w.createExpressionStatement(w.inlineExpressions(se))),se=[]);var j=e.createExpressionForObjectLiteralElementLike(w,yn,pn,Za),De=e.visitNode(j,C,e.isExpression);return De&&(tr&&e.startOnNewLine(De),se.push(De)),se}}function dn(yn){return gt(yn.argumentExpression)?w.updateElementAccessExpression(yn,An(e.visitNode(yn.expression,C,e.isLeftHandSideExpression)),e.visitNode(yn.argumentExpression,C,e.isExpression)):e.visitEachChild(yn,C,O)}function vn(yn){if(!e.isImportCall(yn)&&e.forEach(yn.arguments,gt)){var _t=w.createCallBinding(yn.expression,U,v,!0),tr=_t.target,oa=_t.thisArg;return e.setOriginalNode(e.setTextRange(w.createFunctionApplyCall(An(e.visitNode(tr,C,e.isLeftHandSideExpression)),oa,xn(yn.arguments)),yn),yn)}return e.visitEachChild(yn,C,O)}function o(yn){if(e.forEach(yn.arguments,gt)){var _t=w.createCallBinding(w.createPropertyAccessExpression(yn.expression,"bind"),U),tr=_t.target,oa=_t.thisArg;return e.setOriginalNode(e.setTextRange(w.createNewExpression(w.createFunctionApplyCall(An(e.visitNode(tr,C,e.isExpression)),oa,xn(yn.arguments,w.createVoidZero())),void 0,[]),yn),yn)}return e.visitEachChild(yn,C,O)}function Cn(yn,_t){_t===void 0&&(_t=0);for(var tr=yn.length,oa=_t;oa<tr;oa++)tn(yn[oa])}function z(yn){e.isBlock(yn)?Cn(yn.statements):tn(yn)}function tn(yn){var _t=ae;ae||(ae=gt(yn)),$n(yn),ae=_t}function $n(yn){switch(yn.kind){case 233:return Un(yn);case 236:return oe(yn);case 237:return Qe(yn);case 238:return gn(yn);case 239:return Ze(yn);case 240:return Be(yn);case 241:return Kn(yn);case 243:return En(yn);case 244:return ct(yn);case 245:return Gt(yn);case 246:return Ke(yn);case 247:return Vn(yn);case 248:return Re(yn);case 249:return rt(yn);case 250:return Yn(yn);default:return sr(e.visitNode(yn,C,e.isStatement))}}function Un(yn){gt(yn)?Cn(yn.statements):sr(e.visitNode(yn,C,e.isStatement))}function oe(yn){sr(e.visitNode(yn,C,e.isStatement))}function Pe(yn){for(var _t=0,tr=yn.declarations;_t<tr.length;_t++){var oa=tr[_t],Za=w.cloneNode(oa.name);e.setCommentRange(Za,oa.name),U(Za)}for(var Ga=e.getInitializedVariables(yn),He=Ga.length,se=0,pn=[];se<He;){for(var j=se;j<He;j++){var oa=Ga[j];if(gt(oa.initializer)&&pn.length>0)break;pn.push(ke(oa))}pn.length&&(sr(w.createExpressionStatement(w.inlineExpressions(pn))),se+=pn.length,pn=[])}return}function ke(yn){return e.setSourceMapRange(w.createAssignment(e.setSourceMapRange(w.cloneNode(yn.name),yn.name),e.visitNode(yn.initializer,C,e.isExpression)),yn)}function Qe(yn){if(gt(yn))if(gt(yn.thenStatement)||gt(yn.elseStatement)){var _t=ln(),tr=yn.elseStatement?ln():void 0;li(yn.elseStatement?tr:_t,e.visitNode(yn.expression,C,e.isExpression),yn.expression),z(yn.thenStatement),yn.elseStatement&&(ea(_t),Ln(tr),z(yn.elseStatement)),Ln(_t)}else sr(e.visitNode(yn,C,e.isStatement));else sr(e.visitNode(yn,C,e.isStatement))}function gn(yn){if(gt(yn)){var _t=ln(),tr=ln();mr(_t),Ln(tr),z(yn.statement),Ln(_t),Fa(tr,e.visitNode(yn.expression,C,e.isExpression)),Ht()}else sr(e.visitNode(yn,C,e.isStatement))}function xe(yn){return ae?(Jt(),yn=e.visitEachChild(yn,C,O),Ht(),yn):e.visitEachChild(yn,C,O)}function Ze(yn){if(gt(yn)){var _t=ln(),tr=mr(_t);Ln(_t),li(tr,e.visitNode(yn.expression,C,e.isExpression)),z(yn.statement),ea(_t),Ht()}else sr(e.visitNode(yn,C,e.isStatement))}function wn(yn){return ae?(Jt(),yn=e.visitEachChild(yn,C,O),Ht(),yn):e.visitEachChild(yn,C,O)}function Be(yn){if(gt(yn)){var _t=ln(),tr=ln(),oa=mr(tr);if(yn.initializer){var Za=yn.initializer;e.isVariableDeclarationList(Za)?Pe(Za):sr(e.setTextRange(w.createExpressionStatement(e.visitNode(Za,C,e.isExpression)),Za))}Ln(_t),yn.condition&&li(oa,e.visitNode(yn.condition,C,e.isExpression)),z(yn.statement),Ln(tr),yn.incrementor&&sr(e.setTextRange(w.createExpressionStatement(e.visitNode(yn.incrementor,C,e.isExpression)),yn.incrementor)),ea(_t),Ht()}else sr(e.visitNode(yn,C,e.isStatement))}function hn(yn){ae&&Jt();var _t=yn.initializer;if(_t&&e.isVariableDeclarationList(_t)){for(var tr=0,oa=_t.declarations;tr<oa.length;tr++){var Za=oa[tr];U(Za.name)}var Ga=e.getInitializedVariables(_t);yn=w.updateForStatement(yn,Ga.length>0?w.inlineExpressions(e.map(Ga,ke)):void 0,e.visitNode(yn.condition,C,e.isExpression),e.visitNode(yn.incrementor,C,e.isExpression),e.visitIterationBody(yn.statement,C,O))}else yn=e.visitEachChild(yn,C,O);return ae&&Ht(),yn}function Kn(yn){if(gt(yn)){var _t=Fn(),tr=Fn(),oa=w.createLoopVariable(),Za=yn.initializer;U(oa),at(_t,w.createArrayLiteralExpression()),sr(w.createForInStatement(tr,e.visitNode(yn.expression,C,e.isExpression),w.createExpressionStatement(w.createCallExpression(w.createPropertyAccessExpression(_t,"push"),void 0,[tr])))),at(oa,w.createNumericLiteral(0));var Ga=ln(),He=ln(),se=mr(He);Ln(Ga),li(se,w.createLessThan(oa,w.createPropertyAccessExpression(_t,"length")));var pn=void 0;if(e.isVariableDeclarationList(Za)){for(var j=0,De=Za.declarations;j<De.length;j++){var Ve=De[j];U(Ve.name)}pn=w.cloneNode(Za.declarations[0].name)}else pn=e.visitNode(Za,C,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(pn));at(pn,w.createElementAccessExpression(_t,oa)),z(yn.statement),Ln(He),sr(w.createExpressionStatement(w.createPostfixIncrement(oa))),ea(Ga),Ht()}else sr(e.visitNode(yn,C,e.isStatement))}function Je(yn){ae&&Jt();var _t=yn.initializer;if(e.isVariableDeclarationList(_t)){for(var tr=0,oa=_t.declarations;tr<oa.length;tr++){var Za=oa[tr];U(Za.name)}yn=w.updateForInStatement(yn,_t.declarations[0].name,e.visitNode(yn.expression,C,e.isExpression),e.visitNode(yn.statement,C,e.isStatement,w.liftToBlock))}else yn=e.visitEachChild(yn,C,O);return ae&&Ht(),yn}function En(yn){var _t=Wt(yn.label?e.idText(yn.label):void 0);_t>0?ea(_t,yn):sr(yn)}function Nn(yn){if(ae){var _t=Wt(yn.label&&e.idText(yn.label));if(_t>0)return Lt(_t,yn)}return e.visitEachChild(yn,C,O)}function ct(yn){var _t=rr(yn.label?e.idText(yn.label):void 0);_t>0?ea(_t,yn):sr(yn)}function yt(yn){if(ae){var _t=rr(yn.label&&e.idText(yn.label));if(_t>0)return Lt(_t,yn)}return e.visitEachChild(yn,C,O)}function Gt(yn){ci(e.visitNode(yn.expression,C,e.isExpression),yn)}function $t(yn){return xt(e.visitNode(yn.expression,C,e.isExpression),yn)}function Ke(yn){gt(yn)?(it(An(e.visitNode(yn.expression,C,e.isExpression))),z(yn.statement),ht()):sr(e.visitNode(yn,C,e.isStatement))}function Vn(yn){if(gt(yn.caseBlock)){for(var _t=yn.caseBlock,tr=_t.clauses.length,oa=At(),Za=An(e.visitNode(yn.expression,C,e.isExpression)),Ga=[],He=-1,se=0;se<tr;se++){var pn=_t.clauses[se];Ga.push(ln()),pn.kind===288&&He===-1&&(He=se)}for(var j=0,De=[];j<tr;){for(var Ve=0,se=j;se<tr;se++){var pn=_t.clauses[se];if(pn.kind===287){if(gt(pn.expression)&&De.length>0)break;De.push(w.createCaseClause(e.visitNode(pn.expression,C,e.isExpression),[Lt(Ga[se],pn.expression)]))}else Ve++}De.length&&(sr(w.createSwitchStatement(Za,w.createCaseBlock(De))),j+=De.length,De=[]),Ve>0&&(j+=Ve,Ve=0)}He>=0?ea(Ga[He]):ea(oa);for(var se=0;se<tr;se++)Ln(Ga[se]),Cn(_t.clauses[se].statements);Wr()}else sr(e.visitNode(yn,C,e.isStatement))}function Zn(yn){return ae&&Xr(),yn=e.visitEachChild(yn,C,O),ae&&Wr(),yn}function Re(yn){gt(yn)?(Ja(e.idText(yn.label)),z(yn.statement),qa()):sr(e.visitNode(yn,C,e.isStatement))}function Pn(yn){return ae&&Or(e.idText(yn.label)),yn=e.visitEachChild(yn,C,O),ae&&qa(),yn}function rt(yn){var _t;Mi(e.visitNode((_t=yn.expression)!==null&&_t!==void 0?_t:w.createVoidZero(),C,e.isExpression),yn)}function Yn(yn){gt(yn)?(Et(),z(yn.tryBlock),yn.catchClause&&(zt(yn.catchClause.variableDeclaration),z(yn.catchClause.block)),yn.finallyBlock&&(fr(),z(yn.finallyBlock)),br()):sr(e.visitEachChild(yn,C,O))}function gt(yn){return!!yn&&(yn.transformFlags&524288)!==0}function lt(yn){for(var _t=yn.length,tr=0;tr<_t;tr++)if(gt(yn[tr]))return tr;return-1}function Fe(yn,_t){return _t=x(yn,_t),yn===1?Bn(_t):_t}function Bn(yn){return e.isIdentifier(yn)?K(yn):yn}function K(yn){if(!e.isGeneratedIdentifier(yn)&&$&&$.has(e.idText(yn))){var _t=e.getOriginalNode(yn);if(e.isIdentifier(_t)&&_t.parent){var tr=W.getReferencedValueDeclaration(_t);if(tr){var oa=L[e.getOriginalNodeId(tr)];if(oa){var Za=e.setParent(e.setTextRange(w.cloneNode(oa),oa),oa.parent);return e.setSourceMapRange(Za,yn),e.setCommentRange(Za,yn),Za}}}}return yn}function An(yn){if(e.isGeneratedIdentifier(yn)||e.getEmitFlags(yn)&4096)return yn;var _t=w.createTempVariable(U);return at(_t,yn,yn),_t}function Fn(yn){var _t=yn?w.createUniqueName(yn):w.createTempVariable(void 0);return U(_t),_t}function ln(){I||(I=[]);var yn=B;return B++,I[yn]=-1,yn}function Ln(yn){e.Debug.assert(I!==void 0,"No labels were defined."),I[yn]=A?A.length:0}function Xe(yn){X||(X=[],le=[],ie=[],P=[]);var _t=le.length;return le[_t]=0,ie[_t]=A?A.length:0,X[_t]=yn,P.push(yn),_t}function Dn(){var yn=rn();if(yn===void 0)return e.Debug.fail("beginBlock was never called.");var _t=le.length;return le[_t]=1,ie[_t]=A?A.length:0,X[_t]=yn,P.pop(),yn}function rn(){return e.lastOrUndefined(P)}function qn(){var yn=rn();return yn&&yn.kind}function it(yn){var _t=ln(),tr=ln();Ln(_t),Xe({kind:1,expression:yn,startLabel:_t,endLabel:tr})}function ht(){e.Debug.assert(qn()===1);var yn=Dn();Ln(yn.endLabel)}function Et(){var yn=ln(),_t=ln();return Ln(yn),Xe({kind:0,state:0,startLabel:yn,endLabel:_t}),Qt(),_t}function zt(yn){e.Debug.assert(qn()===0);var _t;if(e.isGeneratedIdentifier(yn.name))_t=yn.name,U(yn.name);else{var tr=e.idText(yn.name);_t=Fn(tr),$||($=new e.Map,L=[],O.enableSubstitution(79)),$.set(tr,!0),L[e.getOriginalNodeId(yn)]=_t}var oa=rn();e.Debug.assert(oa.state<1);var Za=oa.endLabel;ea(Za);var Ga=ln();Ln(Ga),oa.state=1,oa.catchVariable=_t,oa.catchLabel=Ga,at(_t,w.createCallExpression(w.createPropertyAccessExpression(g,"sent"),void 0,[])),Qt()}function fr(){e.Debug.assert(qn()===0);var yn=rn();e.Debug.assert(yn.state<2);var _t=yn.endLabel;ea(_t);var tr=ln();Ln(tr),yn.state=2,yn.finallyLabel=tr}function br(){e.Debug.assert(qn()===0);var yn=Dn(),_t=yn.state;_t<2?ea(yn.endLabel):ro(),Ln(yn.endLabel),Qt(),yn.state=3}function Jt(){Xe({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function mr(yn){var _t=ln();return Xe({kind:3,isScript:!1,breakLabel:_t,continueLabel:yn}),_t}function Ht(){e.Debug.assert(qn()===3);var yn=Dn(),_t=yn.breakLabel;yn.isScript||Ln(_t)}function Xr(){Xe({kind:2,isScript:!0,breakLabel:-1})}function At(){var yn=ln();return Xe({kind:2,isScript:!1,breakLabel:yn}),yn}function Wr(){e.Debug.assert(qn()===2);var yn=Dn(),_t=yn.breakLabel;yn.isScript||Ln(_t)}function Or(yn){Xe({kind:4,isScript:!0,labelText:yn,breakLabel:-1})}function Ja(yn){var _t=ln();Xe({kind:4,isScript:!1,labelText:yn,breakLabel:_t})}function qa(){e.Debug.assert(qn()===4);var yn=Dn();yn.isScript||Ln(yn.breakLabel)}function eo(yn){return yn.kind===2||yn.kind===3}function Va(yn){return yn.kind===4}function la(yn){return yn.kind===3}function wt(yn,_t){for(var tr=_t;tr>=0;tr--){var oa=P[tr];if(Va(oa)){if(oa.labelText===yn)return!0}else break}return!1}function rr(yn){if(P)if(yn)for(var _t=P.length-1;_t>=0;_t--){var tr=P[_t];if(Va(tr)&&tr.labelText===yn)return tr.breakLabel;if(eo(tr)&&wt(yn,_t-1))return tr.breakLabel}else for(var _t=P.length-1;_t>=0;_t--){var tr=P[_t];if(eo(tr))return tr.breakLabel}return 0}function Wt(yn){if(P)if(yn)for(var _t=P.length-1;_t>=0;_t--){var tr=P[_t];if(la(tr)&&wt(yn,_t-1))return tr.continueLabel}else for(var _t=P.length-1;_t>=0;_t--){var tr=P[_t];if(la(tr))return tr.continueLabel}return 0}function Pr(yn){if(yn!==void 0&&yn>0){re===void 0&&(re=[]);var _t=w.createNumericLiteral(-1);return re[yn]===void 0?re[yn]=[_t]:re[yn].push(_t),_t}return w.createOmittedExpression()}function ra(yn){var _t=w.createNumericLiteral(yn);return e.addSyntheticTrailingComment(_t,3,ne(yn)),_t}function Lt(yn,_t){return e.Debug.assertLessThan(0,yn,"Invalid label"),e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression([ra(3),Pr(yn)])),_t)}function xt(yn,_t){return e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression(yn?[ra(2),yn]:[ra(2)])),_t)}function Yt(yn){return e.setTextRange(w.createCallExpression(w.createPropertyAccessExpression(g,"sent"),void 0,[]),yn)}function Qt(){xi(0)}function sr(yn){yn?xi(1,[yn]):Qt()}function at(yn,_t,tr){xi(2,[yn,_t],tr)}function ea(yn,_t){xi(3,[yn],_t)}function Fa(yn,_t,tr){xi(4,[yn,_t],tr)}function li(yn,_t,tr){xi(5,[yn,_t],tr)}function Si(yn,_t){xi(7,[yn],_t)}function Qr(yn,_t){xi(6,[yn],_t)}function ci(yn,_t){xi(8,[yn],_t)}function Mi(yn,_t){xi(9,[yn],_t)}function ro(){xi(10)}function xi(yn,_t,tr){A===void 0&&(A=[],f=[],F=[]),I===void 0&&Ln(ln());var oa=A.length;A[oa]=yn,f[oa]=_t,F[oa]=tr}function ui(){p=0,d=0,T=void 0,m=!1,k=!1,N=void 0,D=void 0,R=void 0,me=void 0,q=void 0;var yn=lo();return b().createGeneratorHelper(e.setEmitFlags(w.createFunctionExpression(void 0,void 0,void 0,void 0,[w.createParameterDeclaration(void 0,void 0,void 0,g)],void 0,w.createBlock(yn,yn.length>0)),524288))}function lo(){if(A){for(var yn=0;yn<A.length;yn++)Ca(yn);Vi(A.length)}else Vi(0);if(N){var _t=w.createPropertyAccessExpression(g,"label"),tr=w.createSwitchStatement(_t,w.createCaseBlock(N));return[e.startOnNewLine(tr)]}return D||[]}function xo(){if(!D)return;Qi(!m),m=!1,k=!1,d++}function Vi(yn){os(yn)&&(mo(yn),q=void 0,Lo(void 0,void 0)),D&&N&&Qi(!1),Rs()}function os(yn){if(!k)return!0;if(!I||!re)return!1;for(var _t=0;_t<I.length;_t++)if(I[_t]===yn&&re[_t])return!0;return!1}function Qi(yn){if(N||(N=[]),D){if(q)for(var _t=q.length-1;_t>=0;_t--){var tr=q[_t];D=[w.createWithStatement(tr.expression,w.createBlock(D))]}if(me){var oa=me.startLabel,Za=me.catchLabel,Ga=me.finallyLabel,He=me.endLabel;D.unshift(w.createExpressionStatement(w.createCallExpression(w.createPropertyAccessExpression(w.createPropertyAccessExpression(g,"trys"),"push"),void 0,[w.createArrayLiteralExpression([Pr(oa),Pr(Za),Pr(Ga),Pr(He)])]))),me=void 0}yn&&D.push(w.createExpressionStatement(w.createAssignment(w.createPropertyAccessExpression(g,"label"),w.createNumericLiteral(d+1))))}N.push(w.createCaseClause(w.createNumericLiteral(d),D||[])),D=void 0}function mo(yn){if(!I)return;for(var _t=0;_t<I.length;_t++)I[_t]===yn&&(xo(),T===void 0&&(T=[]),T[d]===void 0?T[d]=[_t]:T[d].push(_t))}function Rs(){if(re!==void 0&&T!==void 0)for(var yn=0;yn<T.length;yn++){var _t=T[yn];if(_t!==void 0)for(var tr=0,oa=_t;tr<oa.length;tr++){var Za=oa[tr],Ga=re[Za];if(Ga!==void 0)for(var He=0,se=Ga;He<se.length;He++){var pn=se[He];pn.text=String(yn)}}}}function Ls(yn){if(X)for(;p<le.length&&ie[p]<=yn;p++){var _t=X[p],tr=le[p];switch(_t.kind){case 0:tr===0?(R||(R=[]),D||(D=[]),R.push(me),me=_t):tr===1&&(me=R.pop());break;case 1:tr===0?(q||(q=[]),q.push(_t)):tr===1&&q.pop();break}}}function Ca(yn){if(mo(yn),Ls(yn),m)return;m=!1,k=!1;var _t=A[yn];if(_t===0)return;if(_t===10)return Ms();var tr=f[yn];if(_t===1)return ai(tr[0]);var oa=F[yn];switch(_t){case 2:return Pi(tr[0],tr[1],oa);case 3:return _s(tr[0],oa);case 4:return Oi(tr[0],tr[1],oa);case 5:return Io(tr[0],tr[1],oa);case 6:return fs(tr[0],oa);case 7:return Mo(tr[0],oa);case 8:return Lo(tr[0],oa);case 9:return wo(tr[0],oa)}}function ai(yn){yn&&(D?D.push(yn):D=[yn])}function Pi(yn,_t,tr){ai(e.setTextRange(w.createExpressionStatement(w.createAssignment(yn,_t)),tr))}function wo(yn,_t){m=!0,k=!0,ai(e.setTextRange(w.createThrowStatement(yn),_t))}function Lo(yn,_t){m=!0,k=!0,ai(e.setEmitFlags(e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression(yn?[ra(2),yn]:[ra(2)])),_t),384))}function _s(yn,_t){m=!0,ai(e.setEmitFlags(e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression([ra(3),Pr(yn)])),_t),384))}function Oi(yn,_t,tr){ai(e.setEmitFlags(w.createIfStatement(_t,e.setEmitFlags(e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression([ra(3),Pr(yn)])),tr),384)),1))}function Io(yn,_t,tr){ai(e.setEmitFlags(w.createIfStatement(w.createLogicalNot(_t),e.setEmitFlags(e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression([ra(3),Pr(yn)])),tr),384)),1))}function fs(yn,_t){m=!0,ai(e.setEmitFlags(e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression(yn?[ra(4),yn]:[ra(4)])),_t),384))}function Mo(yn,_t){m=!0,ai(e.setEmitFlags(e.setTextRange(w.createReturnStatement(w.createArrayLiteralExpression([ra(5),yn])),_t),384))}function Ms(){m=!0,ai(w.createReturnStatement(w.createArrayLiteralExpression([ra(7)])))}}e.transformGenerators=_e})(mn||(mn={}));var mn;(function(e){function s(ee){function Y(Be){switch(Be){case e.ModuleKind.AMD:return P;case e.ModuleKind.UMD:return I;default:return le}}var V=ee.factory,ne=ee.getEmitHelperFactory,_e=ee.startLexicalEnvironment,O=ee.endLexicalEnvironment,w=ee.hoistVariableDeclaration,b=ee.getCompilerOptions(),de=ee.getEmitResolver(),fe=ee.getEmitHost(),_=e.getEmitScriptTarget(b),U=e.getEmitModuleKind(b),Z=ee.onSubstituteNode,v=ee.onEmitNode;ee.onSubstituteNode=oe,ee.onEmitNode=Un,ee.enableSubstitution(206),ee.enableSubstitution(208),ee.enableSubstitution(79),ee.enableSubstitution(219),ee.enableSubstitution(292),ee.enableEmitNotification(300);var W=[],x=[],$,L,E=[],ae;return e.chainBundle(ee,X);function X(Be){if(Be.isDeclarationFile||!(e.isEffectiveExternalModule(Be,b)||Be.transformFlags&4194304||e.isJsonSourceFile(Be)&&e.hasJsonModuleEmitEnabled(b)&&e.outFile(b)))return Be;$=Be,L=e.collectExternalModuleInfo(ee,Be,de,b),W[e.getOriginalNodeId(Be)]=L;var hn=Y(U),Kn=hn(Be);return $=void 0,L=void 0,ae=!1,Kn}function ie(){return!!(!L.exportEquals&&e.isExternalModule($))}function le(Be){_e();var hn=[],Kn=e.getStrictOptionValue(b,"alwaysStrict")||!b.noImplicitUseStrict&&e.isExternalModule($),Je=V.copyPrologue(Be.statements,hn,Kn&&!e.isJsonSourceFile(Be),F);if(ie()&&e.append(hn,Cn()),e.length(L.exportedNames))for(var En=50,Nn=0;Nn<L.exportedNames.length;Nn+=En)e.append(hn,V.createExpressionStatement(e.reduceLeft(L.exportedNames.slice(Nn,Nn+En),function(yt,Gt){return V.createAssignment(V.createPropertyAccessExpression(V.createIdentifier("exports"),V.createIdentifier(e.idText(Gt))),yt)},V.createVoidZero())));e.append(hn,e.visitNode(L.externalHelpersImportDeclaration,F,e.isStatement)),e.addRange(hn,e.visitNodes(Be.statements,F,e.isStatement,Je)),f(hn,!1),e.insertStatementsAfterStandardPrologue(hn,O());var ct=V.updateSourceFile(Be,e.setTextRange(V.createNodeArray(hn),Be.statements));return e.addEmitHelpers(ct,ee.readEmitHelpers()),ct}function P(Be){var hn=V.createIdentifier("define"),Kn=e.tryGetModuleNameFromFile(V,Be,fe,b),Je=e.isJsonSourceFile(Be)&&Be,En=re(Be,!0),Nn=En.aliasedModuleNames,ct=En.unaliasedModuleNames,yt=En.importAliasNames,Gt=V.updateSourceFile(Be,e.setTextRange(V.createNodeArray([V.createExpressionStatement(V.createCallExpression(hn,void 0,Mt(Mt([],Kn?[Kn]:[],!0),[V.createArrayLiteralExpression(Je?e.emptyArray:Mt(Mt([V.createStringLiteral("require"),V.createStringLiteral("exports")],Nn,!0),ct,!0)),Je?Je.statements.length?Je.statements[0].expression:V.createObjectLiteralExpression():V.createFunctionExpression(void 0,void 0,void 0,void 0,Mt([V.createParameterDeclaration(void 0,void 0,void 0,"require"),V.createParameterDeclaration(void 0,void 0,void 0,"exports")],yt,!0),void 0,A(Be))],!1)))]),Be.statements));return e.addEmitHelpers(Gt,ee.readEmitHelpers()),Gt}function I(Be){var hn=re(Be,!1),Kn=hn.aliasedModuleNames,Je=hn.unaliasedModuleNames,En=hn.importAliasNames,Nn=e.tryGetModuleNameFromFile(V,Be,fe,b),ct=V.createFunctionExpression(void 0,void 0,void 0,void 0,[V.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(V.createBlock([V.createIfStatement(V.createLogicalAnd(V.createTypeCheck(V.createIdentifier("module"),"object"),V.createTypeCheck(V.createPropertyAccessExpression(V.createIdentifier("module"),"exports"),"object")),V.createBlock([V.createVariableStatement(void 0,[V.createVariableDeclaration("v",void 0,void 0,V.createCallExpression(V.createIdentifier("factory"),void 0,[V.createIdentifier("require"),V.createIdentifier("exports")]))]),e.setEmitFlags(V.createIfStatement(V.createStrictInequality(V.createIdentifier("v"),V.createIdentifier("undefined")),V.createExpressionStatement(V.createAssignment(V.createPropertyAccessExpression(V.createIdentifier("module"),"exports"),V.createIdentifier("v")))),1)]),V.createIfStatement(V.createLogicalAnd(V.createTypeCheck(V.createIdentifier("define"),"function"),V.createPropertyAccessExpression(V.createIdentifier("define"),"amd")),V.createBlock([V.createExpressionStatement(V.createCallExpression(V.createIdentifier("define"),void 0,Mt(Mt([],Nn?[Nn]:[],!0),[V.createArrayLiteralExpression(Mt(Mt([V.createStringLiteral("require"),V.createStringLiteral("exports")],Kn,!0),Je,!0)),V.createIdentifier("factory")],!1)))])))],!0),void 0)),yt=V.updateSourceFile(Be,e.setTextRange(V.createNodeArray([V.createExpressionStatement(V.createCallExpression(ct,void 0,[V.createFunctionExpression(void 0,void 0,void 0,void 0,Mt([V.createParameterDeclaration(void 0,void 0,void 0,"require"),V.createParameterDeclaration(void 0,void 0,void 0,"exports")],En,!0),void 0,A(Be))]))]),Be.statements));return e.addEmitHelpers(yt,ee.readEmitHelpers()),yt}function re(Be,hn){for(var Kn=[],Je=[],En=[],Nn=0,ct=Be.amdDependencies;Nn<ct.length;Nn++){var yt=ct[Nn];yt.name?(Kn.push(V.createStringLiteral(yt.path)),En.push(V.createParameterDeclaration(void 0,void 0,void 0,yt.name))):Je.push(V.createStringLiteral(yt.path))}for(var Gt=0,$t=L.externalImports;Gt<$t.length;Gt++){var Ke=$t[Gt],Vn=e.getExternalModuleNameLiteral(V,Ke,$,fe,de,b),Zn=e.getLocalNameForExternalImport(V,Ke,$);Vn&&(hn&&Zn?(e.setEmitFlags(Zn,4),Kn.push(Vn),En.push(V.createParameterDeclaration(void 0,void 0,void 0,Zn))):Je.push(Vn))}return{aliasedModuleNames:Kn,unaliasedModuleNames:Je,importAliasNames:En}}function B(Be){if(e.isImportEqualsDeclaration(Be)||e.isExportDeclaration(Be)||!e.getExternalModuleNameLiteral(V,Be,$,fe,de,b))return;var hn=e.getLocalNameForExternalImport(V,Be,$),Kn=te(Be,hn);return Kn===hn?void 0:V.createExpressionStatement(V.createAssignment(hn,Kn))}function A(Be){_e();var hn=[],Kn=V.copyPrologue(Be.statements,hn,!b.noImplicitUseStrict,F);ie()&&e.append(hn,Cn()),e.length(L.exportedNames)&&e.append(hn,V.createExpressionStatement(e.reduceLeft(L.exportedNames,function(En,Nn){return V.createAssignment(V.createPropertyAccessExpression(V.createIdentifier("exports"),V.createIdentifier(e.idText(Nn))),En)},V.createVoidZero()))),e.append(hn,e.visitNode(L.externalHelpersImportDeclaration,F,e.isStatement)),U===e.ModuleKind.AMD&&e.addRange(hn,e.mapDefined(L.externalImports,B)),e.addRange(hn,e.visitNodes(Be.statements,F,e.isStatement,Kn)),f(hn,!0),e.insertStatementsAfterStandardPrologue(hn,O());var Je=V.createBlock(hn,!0);return ae&&e.addEmitHelper(Je,ue),Je}function f(Be,hn){if(L.exportEquals){var Kn=e.visitNode(L.exportEquals.expression,p);if(Kn)if(hn){var Je=V.createReturnStatement(Kn);e.setTextRange(Je,L.exportEquals),e.setEmitFlags(Je,384|1536),Be.push(Je)}else{var Je=V.createExpressionStatement(V.createAssignment(V.createPropertyAccessExpression(V.createIdentifier("module"),"exports"),Kn));e.setTextRange(Je,L.exportEquals),e.setEmitFlags(Je,1536),Be.push(Je)}}}function F(Be){switch(Be.kind){case 264:return Te(Be);case 263:return Ce(Be);case 270:return Ue(Be);case 269:return Se(Be);case 235:return Le(Be);case 254:return $e(Be);case 255:return ce(Be);case 347:return Me(Be);case 348:return Ye(Be);default:return p(Be)}}function g(Be,hn){if(!(Be.transformFlags&(4194304|2048|67108864)))return Be;switch(Be.kind){case 240:return k(Be);case 236:return N(Be);case 210:return D(Be,hn);case 345:return R(Be,hn);case 206:if(e.isImportCall(Be))return q(Be);break;case 219:if(e.isDestructuringAssignment(Be))return m(Be,hn);break;case 217:case 218:return me(Be,hn)}return e.visitEachChild(Be,p,ee)}function p(Be){return g(Be,!1)}function d(Be){return g(Be,!0)}function T(Be){if(e.isObjectLiteralExpression(Be))for(var hn=0,Kn=Be.properties;hn<Kn.length;hn++){var Je=Kn[hn];switch(Je.kind){case 291:if(T(Je.initializer))return!0;break;case 292:if(T(Je.name))return!0;break;case 293:if(T(Je.expression))return!0;break;case 167:case 170:case 171:return!1;default:e.Debug.assertNever(Je,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(Be))for(var En=0,Nn=Be.elements;En<Nn.length;En++){var Je=Nn[En];if(e.isSpreadElement(Je)){if(T(Je.expression))return!0}else if(T(Je))return!0}else if(e.isIdentifier(Be))return e.length(wn(Be))>(e.isExportName(Be)?1:0);return!1}function m(Be,hn){return T(Be.left)?e.flattenDestructuringAssignment(Be,p,ee,0,!hn,qe):e.visitEachChild(Be,p,ee)}function k(Be){return V.updateForStatement(Be,e.visitNode(Be.initializer,d,e.isForInitializer),e.visitNode(Be.condition,p,e.isExpression),e.visitNode(Be.incrementor,d,e.isExpression),e.visitIterationBody(Be.statement,p,ee))}function N(Be){return V.updateExpressionStatement(Be,e.visitNode(Be.expression,d,e.isExpression))}function D(Be,hn){return V.updateParenthesizedExpression(Be,e.visitNode(Be.expression,hn?d:p,e.isExpression))}function R(Be,hn){return V.updatePartiallyEmittedExpression(Be,e.visitNode(Be.expression,hn?d:p,e.isExpression))}function me(Be,hn){if((Be.operator===45||Be.operator===46)&&e.isIdentifier(Be.operand)&&!e.isGeneratedIdentifier(Be.operand)&&!e.isLocalName(Be.operand)&&!e.isDeclarationNameOfEnumOrNamespace(Be.operand)){var Kn=wn(Be.operand);if(Kn){var Je=void 0,En=e.visitNode(Be.operand,p,e.isExpression);e.isPrefixUnaryExpression(Be)?En=V.updatePrefixUnaryExpression(Be,En):(En=V.updatePostfixUnaryExpression(Be,En),hn||(Je=V.createTempVariable(w),En=V.createAssignment(Je,En),e.setTextRange(En,Be)),En=V.createComma(En,V.cloneNode(Be.operand)),e.setTextRange(En,Be));for(var Nn=0,ct=Kn;Nn<ct.length;Nn++){var yt=ct[Nn];E[e.getNodeId(En)]=!0,En=tn(yt,En),e.setTextRange(En,Be)}return Je&&(E[e.getNodeId(En)]=!0,En=V.createComma(En,Je),e.setTextRange(En,Be)),En}}return e.visitEachChild(Be,p,ee)}function q(Be){var hn=e.getExternalModuleNameLiteral(V,Be,$,fe,de,b),Kn=e.visitNode(e.firstOrUndefined(Be.arguments),p),Je=hn&&(!Kn||!e.isStringLiteral(Kn)||Kn.text!==hn.text)?hn:Kn,En=!!(Be.transformFlags&8192);switch(b.module){case e.ModuleKind.AMD:return C(Je,En);case e.ModuleKind.UMD:return J(Je!=null?Je:V.createVoidZero(),En);case e.ModuleKind.CommonJS:default:return we(Je,En)}}function J(Be,hn){if(ae=!0,e.isSimpleCopiableExpression(Be)){var Kn=e.isGeneratedIdentifier(Be)?Be:e.isStringLiteral(Be)?V.createStringLiteralFromNode(Be):e.setEmitFlags(e.setTextRange(V.cloneNode(Be),Be),1536);return V.createConditionalExpression(V.createIdentifier("__syncRequire"),void 0,we(Be,hn),void 0,C(Kn,hn))}else{var Je=V.createTempVariable(w);return V.createComma(V.createAssignment(Je,Be),V.createConditionalExpression(V.createIdentifier("__syncRequire"),void 0,we(Je,hn),void 0,C(Je,hn)))}}function C(Be,hn){var Kn=V.createUniqueName("resolve"),Je=V.createUniqueName("reject"),En=[V.createParameterDeclaration(void 0,void 0,void 0,Kn),V.createParameterDeclaration(void 0,void 0,void 0,Je)],Nn=V.createBlock([V.createExpressionStatement(V.createCallExpression(V.createIdentifier("require"),void 0,[V.createArrayLiteralExpression([Be||V.createOmittedExpression()]),Kn,Je]))]),ct;_>=2?ct=V.createArrowFunction(void 0,void 0,En,void 0,void 0,Nn):(ct=V.createFunctionExpression(void 0,void 0,void 0,void 0,En,void 0,Nn),hn&&e.setEmitFlags(ct,8));var yt=V.createNewExpression(V.createIdentifier("Promise"),void 0,[ct]);return b.esModuleInterop?V.createCallExpression(V.createPropertyAccessExpression(yt,V.createIdentifier("then")),void 0,[ne().createImportStarCallbackHelper()]):yt}function we(Be,hn){var Kn=V.createCallExpression(V.createPropertyAccessExpression(V.createIdentifier("Promise"),"resolve"),void 0,[]),Je=V.createCallExpression(V.createIdentifier("require"),void 0,Be?[Be]:[]);b.esModuleInterop&&(Je=ne().createImportStarHelper(Je));var En;return _>=2?En=V.createArrowFunction(void 0,void 0,[],void 0,void 0,Je):(En=V.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,V.createBlock([V.createReturnStatement(Je)])),hn&&e.setEmitFlags(En,8)),V.createCallExpression(V.createPropertyAccessExpression(Kn,"then"),void 0,[En])}function Oe(Be,hn){return!b.esModuleInterop||e.getEmitFlags(Be)&67108864?hn:e.getExportNeedsImportStarHelper(Be)?ne().createImportStarHelper(hn):hn}function te(Be,hn){return!b.esModuleInterop||e.getEmitFlags(Be)&67108864?hn:e.getImportNeedsImportStarHelper(Be)?ne().createImportStarHelper(hn):e.getImportNeedsImportDefaultHelper(Be)?ne().createImportDefaultHelper(hn):hn}function Te(Be){var hn,Kn=e.getNamespaceDeclarationNode(Be);if(U!==e.ModuleKind.AMD)if(Be.importClause){var Je=[];Kn&&!e.isDefaultImport(Be)?Je.push(V.createVariableDeclaration(V.cloneNode(Kn.name),void 0,void 0,te(Be,be(Be)))):(Je.push(V.createVariableDeclaration(V.getGeneratedNameForNode(Be),void 0,void 0,te(Be,be(Be)))),Kn&&e.isDefaultImport(Be)&&Je.push(V.createVariableDeclaration(V.cloneNode(Kn.name),void 0,void 0,V.getGeneratedNameForNode(Be)))),hn=e.append(hn,e.setOriginalNode(e.setTextRange(V.createVariableStatement(void 0,V.createVariableDeclarationList(Je,_>=2?2:0)),Be),Be))}else return e.setOriginalNode(e.setTextRange(V.createExpressionStatement(be(Be)),Be),Be);else Kn&&e.isDefaultImport(Be)&&(hn=e.append(hn,V.createVariableStatement(void 0,V.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(V.createVariableDeclaration(V.cloneNode(Kn.name),void 0,void 0,V.getGeneratedNameForNode(Be)),Be),Be)],_>=2?2:0))));if(fn(Be)){var En=e.getOriginalNodeId(Be);x[En]=Ne(x[En],Be)}else hn=Ne(hn,Be);return e.singleOrMany(hn)}function be(Be){var hn=e.getExternalModuleNameLiteral(V,Be,$,fe,de,b),Kn=[];return hn&&Kn.push(hn),V.createCallExpression(V.createIdentifier("require"),void 0,Kn)}function Ce(Be){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Be),"import= for internal module references should be handled in an earlier transformer.");var hn;if(U!==e.ModuleKind.AMD?e.hasSyntacticModifier(Be,1)?hn=e.append(hn,e.setOriginalNode(e.setTextRange(V.createExpressionStatement(tn(Be.name,be(Be))),Be),Be)):hn=e.append(hn,e.setOriginalNode(e.setTextRange(V.createVariableStatement(void 0,V.createVariableDeclarationList([V.createVariableDeclaration(V.cloneNode(Be.name),void 0,void 0,be(Be))],_>=2?2:0)),Be),Be)):e.hasSyntacticModifier(Be,1)&&(hn=e.append(hn,e.setOriginalNode(e.setTextRange(V.createExpressionStatement(tn(V.getExportName(Be),V.getLocalName(Be))),Be),Be))),fn(Be)){var Kn=e.getOriginalNodeId(Be);x[Kn]=je(x[Kn],Be)}else hn=je(hn,Be);return e.singleOrMany(hn)}function Ue(Be){if(!Be.moduleSpecifier)return;var hn=V.getGeneratedNameForNode(Be);if(Be.exportClause&&e.isNamedExports(Be.exportClause)){var Kn=[];U!==e.ModuleKind.AMD&&Kn.push(e.setOriginalNode(e.setTextRange(V.createVariableStatement(void 0,V.createVariableDeclarationList([V.createVariableDeclaration(hn,void 0,void 0,be(Be))])),Be),Be));for(var Je=0,En=Be.exportClause.elements;Je<En.length;Je++){var Nn=En[Je];if(_===0)Kn.push(e.setOriginalNode(e.setTextRange(V.createExpressionStatement(ne().createCreateBindingHelper(hn,V.createStringLiteralFromNode(Nn.propertyName||Nn.name),Nn.propertyName?V.createStringLiteralFromNode(Nn.name):void 0)),Nn),Nn));else{var ct=!!b.esModuleInterop&&!(e.getEmitFlags(Be)&67108864)&&e.idText(Nn.propertyName||Nn.name)==="default",yt=V.createPropertyAccessExpression(ct?ne().createImportDefaultHelper(hn):hn,Nn.propertyName||Nn.name);Kn.push(e.setOriginalNode(e.setTextRange(V.createExpressionStatement(tn(V.getExportName(Nn),yt,void 0,!0)),Nn),Nn))}}return e.singleOrMany(Kn)}else if(Be.exportClause){var Kn=[];return Kn.push(e.setOriginalNode(e.setTextRange(V.createExpressionStatement(tn(V.cloneNode(Be.exportClause.name),Oe(Be,U!==e.ModuleKind.AMD?be(Be):e.isExportNamespaceAsDefaultDeclaration(Be)?hn:V.createIdentifier(e.idText(Be.exportClause.name))))),Be),Be)),e.singleOrMany(Kn)}else return e.setOriginalNode(e.setTextRange(V.createExpressionStatement(ne().createExportStarHelper(U!==e.ModuleKind.AMD?be(Be):hn)),Be),Be)}function Se(Be){if(Be.isExportEquals)return;var hn,Kn=Be.original;if(Kn&&fn(Kn)){var Je=e.getOriginalNodeId(Be);x[Je]=o(x[Je],V.createIdentifier("default"),e.visitNode(Be.expression,p),Be,!0)}else hn=o(hn,V.createIdentifier("default"),e.visitNode(Be.expression,p),Be,!0);return e.singleOrMany(hn)}function $e(Be){var hn;if(e.hasSyntacticModifier(Be,1)?hn=e.append(hn,e.setOriginalNode(e.setTextRange(V.createFunctionDeclaration(void 0,e.visitNodes(Be.modifiers,$n,e.isModifier),Be.asteriskToken,V.getDeclarationName(Be,!0,!0),void 0,e.visitNodes(Be.parameters,p),void 0,e.visitEachChild(Be.body,p,ee)),Be),Be)):hn=e.append(hn,e.visitEachChild(Be,p,ee)),fn(Be)){var Kn=e.getOriginalNodeId(Be);x[Kn]=dn(x[Kn],Be)}else hn=dn(hn,Be);return e.singleOrMany(hn)}function ce(Be){var hn;if(e.hasSyntacticModifier(Be,1)?hn=e.append(hn,e.setOriginalNode(e.setTextRange(V.createClassDeclaration(void 0,e.visitNodes(Be.modifiers,$n,e.isModifier),V.getDeclarationName(Be,!0,!0),void 0,e.visitNodes(Be.heritageClauses,p),e.visitNodes(Be.members,p)),Be),Be)):hn=e.append(hn,e.visitEachChild(Be,p,ee)),fn(Be)){var Kn=e.getOriginalNodeId(Be);x[Kn]=dn(x[Kn],Be)}else hn=dn(hn,Be);return e.singleOrMany(hn)}function Le(Be){var hn,Kn,Je;if(e.hasSyntacticModifier(Be,1)){for(var En=void 0,Nn=!1,ct=0,yt=Be.declarationList.declarations;ct<yt.length;ct++){var Gt=yt[ct];if(e.isIdentifier(Gt.name)&&e.isLocalName(Gt.name))En||(En=e.visitNodes(Be.modifiers,$n,e.isModifier)),Kn=e.append(Kn,Gt);else if(Gt.initializer)if(!e.isBindingPattern(Gt.name)&&(e.isArrowFunction(Gt.initializer)||e.isFunctionExpression(Gt.initializer)||e.isClassExpression(Gt.initializer))){var $t=V.createAssignment(e.setTextRange(V.createPropertyAccessExpression(V.createIdentifier("exports"),Gt.name),Gt.name),V.createIdentifier(e.getTextOfIdentifierOrLiteral(Gt.name))),Ke=V.createVariableDeclaration(Gt.name,Gt.exclamationToken,Gt.type,e.visitNode(Gt.initializer,p));Kn=e.append(Kn,Ke),Je=e.append(Je,$t),Nn=!0}else Je=e.append(Je,pe(Gt))}if(Kn&&(hn=e.append(hn,V.updateVariableStatement(Be,En,V.updateVariableDeclarationList(Be.declarationList,Kn)))),Je){var Vn=e.setOriginalNode(e.setTextRange(V.createExpressionStatement(V.inlineExpressions(Je)),Be),Be);Nn&&e.removeAllComments(Vn),hn=e.append(hn,Vn)}}else hn=e.append(hn,e.visitEachChild(Be,p,ee));if(fn(Be)){var Zn=e.getOriginalNodeId(Be);x[Zn]=xn(x[Zn],Be)}else hn=xn(hn,Be);return e.singleOrMany(hn)}function qe(Be,hn,Kn){var Je=wn(Be);if(Je){for(var En=e.isExportName(Be)?hn:V.createAssignment(Be,hn),Nn=0,ct=Je;Nn<ct.length;Nn++){var yt=ct[Nn];e.setEmitFlags(En,4),En=tn(yt,En,Kn)}return En}return V.createAssignment(Be,hn)}function pe(Be){return e.isBindingPattern(Be.name)?e.flattenDestructuringAssignment(e.visitNode(Be,p),void 0,ee,0,!1,qe):V.createAssignment(e.setTextRange(V.createPropertyAccessExpression(V.createIdentifier("exports"),Be.name),Be.name),Be.initializer?e.visitNode(Be.initializer,p):V.createVoidZero())}function Me(Be){if(fn(Be)&&Be.original.kind===235){var hn=e.getOriginalNodeId(Be);x[hn]=xn(x[hn],Be.original)}return Be}function fn(Be){return(e.getEmitFlags(Be)&4194304)!==0}function Ye(Be){var hn=e.getOriginalNodeId(Be),Kn=x[hn];return Kn?(delete x[hn],e.append(Kn,Be)):Be}function Ne(Be,hn){if(L.exportEquals)return Be;var Kn=hn.importClause;if(!Kn)return Be;Kn.name&&(Be=vn(Be,Kn));var Je=Kn.namedBindings;if(Je)switch(Je.kind){case 266:Be=vn(Be,Je);break;case 267:for(var En=0,Nn=Je.elements;En<Nn.length;En++){var ct=Nn[En];Be=vn(Be,ct,!0)}break}return Be}function je(Be,hn){return L.exportEquals?Be:vn(Be,hn)}function xn(Be,hn){if(L.exportEquals)return Be;for(var Kn=0,Je=hn.declarationList.declarations;Kn<Je.length;Kn++){var En=Je[Kn];Be=Wn(Be,En)}return Be}function Wn(Be,hn){if(L.exportEquals)return Be;if(e.isBindingPattern(hn.name))for(var Kn=0,Je=hn.name.elements;Kn<Je.length;Kn++){var En=Je[Kn];e.isOmittedExpression(En)||(Be=Wn(Be,En))}else e.isGeneratedIdentifier(hn.name)||(Be=vn(Be,hn));return Be}function dn(Be,hn){if(L.exportEquals)return Be;if(e.hasSyntacticModifier(hn,1)){var Kn=e.hasSyntacticModifier(hn,512)?V.createIdentifier("default"):V.getDeclarationName(hn);Be=o(Be,Kn,V.getLocalName(hn),hn)}return hn.name&&(Be=vn(Be,hn)),Be}function vn(Be,hn,Kn){var Je=V.getDeclarationName(hn),En=L.exportSpecifiers.get(e.idText(Je));if(En)for(var Nn=0,ct=En;Nn<ct.length;Nn++){var yt=ct[Nn];Be=o(Be,yt.name,Je,yt.name,void 0,Kn)}return Be}function o(Be,hn,Kn,Je,En,Nn){return Be=e.append(Be,z(hn,Kn,Je,En,Nn)),Be}function Cn(){var Be;return _===0?Be=V.createExpressionStatement(tn(V.createIdentifier("__esModule"),V.createTrue())):Be=V.createExpressionStatement(V.createCallExpression(V.createPropertyAccessExpression(V.createIdentifier("Object"),"defineProperty"),void 0,[V.createIdentifier("exports"),V.createStringLiteral("__esModule"),V.createObjectLiteralExpression([V.createPropertyAssignment("value",V.createTrue())])])),e.setEmitFlags(Be,1048576),Be}function z(Be,hn,Kn,Je,En){var Nn=e.setTextRange(V.createExpressionStatement(tn(Be,hn,void 0,En)),Kn);return e.startOnNewLine(Nn),Je||e.setEmitFlags(Nn,1536),Nn}function tn(Be,hn,Kn,Je){return e.setTextRange(Je&&_!==0?V.createCallExpression(V.createPropertyAccessExpression(V.createIdentifier("Object"),"defineProperty"),void 0,[V.createIdentifier("exports"),V.createStringLiteralFromNode(Be),V.createObjectLiteralExpression([V.createPropertyAssignment("enumerable",V.createTrue()),V.createPropertyAssignment("get",V.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,V.createBlock([V.createReturnStatement(hn)])))])]):V.createAssignment(V.createPropertyAccessExpression(V.createIdentifier("exports"),V.cloneNode(Be)),hn),Kn)}function $n(Be){switch(Be.kind){case 93:case 88:return}return Be}function Un(Be,hn,Kn){hn.kind===300?($=hn,L=W[e.getOriginalNodeId($)],v(Be,hn,Kn),$=void 0,L=void 0):v(Be,hn,Kn)}function oe(Be,hn){return hn=Z(Be,hn),hn.id&&E[hn.id]?hn:Be===1?ke(hn):e.isShorthandPropertyAssignment(hn)?Pe(hn):hn}function Pe(Be){var hn=Be.name,Kn=xe(hn);if(Kn!==hn){if(Be.objectAssignmentInitializer){var Je=V.createAssignment(Kn,Be.objectAssignmentInitializer);return e.setTextRange(V.createPropertyAssignment(hn,Je),Be)}return e.setTextRange(V.createPropertyAssignment(hn,Kn),Be)}return Be}function ke(Be){switch(Be.kind){case 79:return xe(Be);case 206:return Qe(Be);case 208:return gn(Be);case 219:return Ze(Be)}return Be}function Qe(Be){if(e.isIdentifier(Be.expression)){var hn=xe(Be.expression);if(E[e.getNodeId(hn)]=!0,!e.isIdentifier(hn))return e.addEmitFlags(V.updateCallExpression(Be,hn,void 0,Be.arguments),536870912)}return Be}function gn(Be){if(e.isIdentifier(Be.tag)){var hn=xe(Be.tag);if(E[e.getNodeId(hn)]=!0,!e.isIdentifier(hn))return e.addEmitFlags(V.updateTaggedTemplateExpression(Be,hn,void 0,Be.template),536870912)}return Be}function xe(Be){var hn,Kn;if(e.getEmitFlags(Be)&4096){var Je=e.getExternalHelpersModuleName($);return Je?V.createPropertyAccessExpression(Je,Be):Be}else if(!(e.isGeneratedIdentifier(Be)&&!(Be.autoGenerateFlags&64))&&!e.isLocalName(Be)){var En=de.getReferencedExportContainer(Be,e.isExportName(Be));if(En&&En.kind===300)return e.setTextRange(V.createPropertyAccessExpression(V.createIdentifier("exports"),V.cloneNode(Be)),Be);var Nn=de.getReferencedImportDeclaration(Be);if(Nn){if(e.isImportClause(Nn))return e.setTextRange(V.createPropertyAccessExpression(V.getGeneratedNameForNode(Nn.parent),V.createIdentifier("default")),Be);if(e.isImportSpecifier(Nn)){var ct=Nn.propertyName||Nn.name;return e.setTextRange(V.createPropertyAccessExpression(V.getGeneratedNameForNode(((Kn=(hn=Nn.parent)===null||hn===void 0?void 0:hn.parent)===null||Kn===void 0?void 0:Kn.parent)||Nn),V.cloneNode(ct)),Be)}}}return Be}function Ze(Be){if(e.isAssignmentOperator(Be.operatorToken.kind)&&e.isIdentifier(Be.left)&&!e.isGeneratedIdentifier(Be.left)&&!e.isLocalName(Be.left)&&!e.isDeclarationNameOfEnumOrNamespace(Be.left)){var hn=wn(Be.left);if(hn){for(var Kn=Be,Je=0,En=hn;Je<En.length;Je++){var Nn=En[Je];E[e.getNodeId(Kn)]=!0,Kn=tn(Nn,Kn,Be)}return Kn}}return Be}function wn(Be){if(!e.isGeneratedIdentifier(Be)){var hn=de.getReferencedImportDeclaration(Be)||de.getReferencedValueDeclaration(Be);if(hn)return L&&L.exportedBindings[e.getOriginalNodeId(hn)]}}}e.transformModule=s;var ue={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
|
|
|
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(mn||(mn={}));var mn;(function(e){function s(ue){var ee=ue.factory,Y=ue.startLexicalEnvironment,V=ue.endLexicalEnvironment,ne=ue.hoistVariableDeclaration,_e=ue.getCompilerOptions(),O=ue.getEmitResolver(),w=ue.getEmitHost(),b=ue.onSubstituteNode,de=ue.onEmitNode;ue.onSubstituteNode=Je,ue.onEmitNode=Kn,ue.enableSubstitution(79),ue.enableSubstitution(292),ue.enableSubstitution(219),ue.enableSubstitution(229),ue.enableEmitNotification(300);var fe=[],_=[],U=[],Z=[],v=[],W,x,$,L,E,ae,X;return e.chainBundle(ue,ie);function ie(Re){if(Re.isDeclarationFile||!(e.isEffectiveExternalModule(Re,_e)||Re.transformFlags&4194304))return Re;var Pn=e.getOriginalNodeId(Re);W=Re,ae=Re,x=fe[Pn]=e.collectExternalModuleInfo(ue,Re,O,_e),$=ee.createUniqueName("exports"),U[Pn]=$,L=v[Pn]=ee.createUniqueName("context");var rt=le(x.externalImports),Yn=P(Re,rt),gt=ee.createFunctionExpression(void 0,void 0,void 0,void 0,[ee.createParameterDeclaration(void 0,void 0,void 0,$),ee.createParameterDeclaration(void 0,void 0,void 0,L)],void 0,Yn),lt=e.tryGetModuleNameFromFile(ee,Re,w,_e),Fe=ee.createArrayLiteralExpression(e.map(rt,function(K){return K.name})),Bn=e.setEmitFlags(ee.updateSourceFile(Re,e.setTextRange(ee.createNodeArray([ee.createExpressionStatement(ee.createCallExpression(ee.createPropertyAccessExpression(ee.createIdentifier("System"),"register"),void 0,lt?[lt,Fe,gt]:[Fe,gt]))]),Re.statements)),1024);return e.outFile(_e)||e.moveEmitHelpers(Bn,Yn,function(K){return!K.scoped}),X&&(Z[Pn]=X,X=void 0),W=void 0,x=void 0,$=void 0,L=void 0,E=void 0,ae=void 0,Bn}function le(Re){for(var Pn=new e.Map,rt=[],Yn=0,gt=Re;Yn<gt.length;Yn++){var lt=gt[Yn],Fe=e.getExternalModuleNameLiteral(ee,lt,W,w,O,_e);if(Fe){var Bn=Fe.text,K=Pn.get(Bn);K!==void 0?rt[K].externalImports.push(lt):(Pn.set(Bn,rt.length),rt.push({name:Fe,externalImports:[lt]}))}}return rt}function P(Re,Pn){var rt=[];Y();var Yn=e.getStrictOptionValue(_e,"alwaysStrict")||!_e.noImplicitUseStrict&&e.isExternalModule(W),gt=ee.copyPrologue(Re.statements,rt,Yn,A);rt.push(ee.createVariableStatement(void 0,ee.createVariableDeclarationList([ee.createVariableDeclaration("__moduleName",void 0,void 0,ee.createLogicalAnd(L,ee.createPropertyAccessExpression(L,"id")))]))),e.visitNode(x.externalHelpersImportDeclaration,A,e.isStatement);var lt=e.visitNodes(Re.statements,A,e.isStatement,gt);e.addRange(rt,E),e.insertStatementsAfterStandardPrologue(rt,V());var Fe=I(rt),Bn=Re.transformFlags&1048576?ee.createModifiersFromModifierFlags(256):void 0,K=ee.createObjectLiteralExpression([ee.createPropertyAssignment("setters",B(Fe,Pn)),ee.createPropertyAssignment("execute",ee.createFunctionExpression(Bn,void 0,void 0,void 0,[],void 0,ee.createBlock(lt,!0)))],!0);return rt.push(ee.createReturnStatement(K)),ee.createBlock(rt,!0)}function I(Re){if(!x.hasExportStarsToExportValues)return;if(!x.exportedNames&&x.exportSpecifiers.size===0){for(var Pn=!1,rt=0,Yn=x.externalImports;rt<Yn.length;rt++){var gt=Yn[rt];if(gt.kind===270&>.exportClause){Pn=!0;break}}if(!Pn){var lt=re(void 0);return Re.push(lt),lt.name}}var Fe=[];if(x.exportedNames)for(var Bn=0,K=x.exportedNames;Bn<K.length;Bn++){var An=K[Bn];if(An.escapedText==="default")continue;Fe.push(ee.createPropertyAssignment(ee.createStringLiteralFromNode(An),ee.createTrue()))}var Fn=ee.createUniqueName("exportedNames");Re.push(ee.createVariableStatement(void 0,ee.createVariableDeclarationList([ee.createVariableDeclaration(Fn,void 0,void 0,ee.createObjectLiteralExpression(Fe,!0))])));var ln=re(Fn);return Re.push(ln),ln.name}function re(Re){var Pn=ee.createUniqueName("exportStar"),rt=ee.createIdentifier("m"),Yn=ee.createIdentifier("n"),gt=ee.createIdentifier("exports"),lt=ee.createStrictInequality(Yn,ee.createStringLiteral("default"));return Re&&(lt=ee.createLogicalAnd(lt,ee.createLogicalNot(ee.createCallExpression(ee.createPropertyAccessExpression(Re,"hasOwnProperty"),void 0,[Yn])))),ee.createFunctionDeclaration(void 0,void 0,void 0,Pn,void 0,[ee.createParameterDeclaration(void 0,void 0,void 0,rt)],void 0,ee.createBlock([ee.createVariableStatement(void 0,ee.createVariableDeclarationList([ee.createVariableDeclaration(gt,void 0,void 0,ee.createObjectLiteralExpression([]))])),ee.createForInStatement(ee.createVariableDeclarationList([ee.createVariableDeclaration(Yn)]),rt,ee.createBlock([e.setEmitFlags(ee.createIfStatement(lt,ee.createExpressionStatement(ee.createAssignment(ee.createElementAccessExpression(gt,Yn),ee.createElementAccessExpression(rt,Yn)))),1)])),ee.createExpressionStatement(ee.createCallExpression($,void 0,[gt]))],!0))}function B(Re,Pn){for(var rt=[],Yn=0,gt=Pn;Yn<gt.length;Yn++){for(var lt=gt[Yn],Fe=e.forEach(lt.externalImports,function(it){return e.getLocalNameForExternalImport(ee,it,W)}),Bn=Fe?ee.getGeneratedNameForNode(Fe):ee.createUniqueName(""),K=[],An=0,Fn=lt.externalImports;An<Fn.length;An++){var ln=Fn[An],Ln=e.getLocalNameForExternalImport(ee,ln,W);switch(ln.kind){case 264:if(!ln.importClause)break;case 263:e.Debug.assert(Ln!==void 0),K.push(ee.createExpressionStatement(ee.createAssignment(Ln,Bn)));break;case 270:if(e.Debug.assert(Ln!==void 0),ln.exportClause)if(e.isNamedExports(ln.exportClause)){for(var Xe=[],Dn=0,rn=ln.exportClause.elements;Dn<rn.length;Dn++){var qn=rn[Dn];Xe.push(ee.createPropertyAssignment(ee.createStringLiteral(e.idText(qn.name)),ee.createElementAccessExpression(Bn,ee.createStringLiteral(e.idText(qn.propertyName||qn.name)))))}K.push(ee.createExpressionStatement(ee.createCallExpression($,void 0,[ee.createObjectLiteralExpression(Xe,!0)])))}else K.push(ee.createExpressionStatement(ee.createCallExpression($,void 0,[ee.createStringLiteral(e.idText(ln.exportClause.name)),Bn])));else K.push(ee.createExpressionStatement(ee.createCallExpression(Re,void 0,[Bn])));break}}rt.push(ee.createFunctionExpression(void 0,void 0,void 0,void 0,[ee.createParameterDeclaration(void 0,void 0,void 0,Bn)],void 0,ee.createBlock(K,!0)))}return ee.createArrayLiteralExpression(rt,!0)}function A(Re){switch(Re.kind){case 264:return f(Re);case 263:return g(Re);case 270:return F(Re);case 269:return p(Re);default:return Le(Re)}}function f(Re){var Pn;if(Re.importClause&&ne(e.getLocalNameForExternalImport(ee,Re,W)),C(Re)){var rt=e.getOriginalNodeId(Re);_[rt]=Oe(_[rt],Re)}else Pn=Oe(Pn,Re);return e.singleOrMany(Pn)}function F(Re){e.Debug.assertIsDefined(Re);return}function g(Re){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Re),"import= for internal module references should be handled in an earlier transformer.");var Pn;if(ne(e.getLocalNameForExternalImport(ee,Re,W)),C(Re)){var rt=e.getOriginalNodeId(Re);_[rt]=te(_[rt],Re)}else Pn=te(Pn,Re);return e.singleOrMany(Pn)}function p(Re){if(Re.isExportEquals)return;var Pn=e.visitNode(Re.expression,oe,e.isExpression),rt=Re.original;if(rt&&C(rt)){var Yn=e.getOriginalNodeId(Re);_[Yn]=Se(_[Yn],ee.createIdentifier("default"),Pn,!0)}else return $e(ee.createIdentifier("default"),Pn,!0)}function d(Re){if(e.hasSyntacticModifier(Re,1)?E=e.append(E,ee.updateFunctionDeclaration(Re,Re.decorators,e.visitNodes(Re.modifiers,hn,e.isModifier),Re.asteriskToken,ee.getDeclarationName(Re,!0,!0),void 0,e.visitNodes(Re.parameters,oe,e.isParameterDeclaration),void 0,e.visitNode(Re.body,oe,e.isBlock))):E=e.append(E,e.visitEachChild(Re,oe,ue)),C(Re)){var Pn=e.getOriginalNodeId(Re);_[Pn]=Ce(_[Pn],Re)}else E=Ce(E,Re);return}function T(Re){var Pn,rt=ee.getLocalName(Re);if(ne(rt),Pn=e.append(Pn,e.setTextRange(ee.createExpressionStatement(ee.createAssignment(rt,e.setTextRange(ee.createClassExpression(e.visitNodes(Re.decorators,oe,e.isDecorator),void 0,Re.name,void 0,e.visitNodes(Re.heritageClauses,oe,e.isHeritageClause),e.visitNodes(Re.members,oe,e.isClassElement)),Re))),Re)),C(Re)){var Yn=e.getOriginalNodeId(Re);_[Yn]=Ce(_[Yn],Re)}else Pn=Ce(Pn,Re);return e.singleOrMany(Pn)}function m(Re){if(!N(Re.declarationList))return e.visitNode(Re,oe,e.isStatement);for(var Pn,rt=e.hasSyntacticModifier(Re,1),Yn=C(Re),gt=0,lt=Re.declarationList.declarations;gt<lt.length;gt++){var Fe=lt[gt];Fe.initializer?Pn=e.append(Pn,D(Fe,rt&&!Yn)):k(Fe)}var Bn;if(Pn&&(Bn=e.append(Bn,e.setTextRange(ee.createExpressionStatement(ee.inlineExpressions(Pn)),Re))),Yn){var K=e.getOriginalNodeId(Re);_[K]=Te(_[K],Re,rt)}else Bn=Te(Bn,Re,!1);return e.singleOrMany(Bn)}function k(Re){if(e.isBindingPattern(Re.name))for(var Pn=0,rt=Re.name.elements;Pn<rt.length;Pn++){var Yn=rt[Pn];e.isOmittedExpression(Yn)||k(Yn)}else ne(ee.cloneNode(Re.name))}function N(Re){return(e.getEmitFlags(Re)&2097152)===0&&(ae.kind===300||(e.getOriginalNode(Re).flags&3)===0)}function D(Re,Pn){var rt=Pn?R:me;return e.isBindingPattern(Re.name)?e.flattenDestructuringAssignment(Re,oe,ue,0,!1,rt):Re.initializer?rt(Re.name,e.visitNode(Re.initializer,oe,e.isExpression)):Re.name}function R(Re,Pn,rt){return q(Re,Pn,rt,!0)}function me(Re,Pn,rt){return q(Re,Pn,rt,!1)}function q(Re,Pn,rt,Yn){return ne(ee.cloneNode(Re)),Yn?ce(Re,Vn(e.setTextRange(ee.createAssignment(Re,Pn),rt))):Vn(e.setTextRange(ee.createAssignment(Re,Pn),rt))}function J(Re){if(C(Re)&&Re.original.kind===235){var Pn=e.getOriginalNodeId(Re),rt=e.hasSyntacticModifier(Re.original,1);_[Pn]=Te(_[Pn],Re.original,rt)}return Re}function C(Re){return(e.getEmitFlags(Re)&4194304)!==0}function we(Re){var Pn=e.getOriginalNodeId(Re),rt=_[Pn];if(rt)return delete _[Pn],e.append(rt,Re);var Yn=e.getOriginalNode(Re);return e.isModuleOrEnumDeclaration(Yn)?e.append(Ue(rt,Yn),Re):Re}function Oe(Re,Pn){if(x.exportEquals)return Re;var rt=Pn.importClause;if(!rt)return Re;rt.name&&(Re=Ue(Re,rt));var Yn=rt.namedBindings;if(Yn)switch(Yn.kind){case 266:Re=Ue(Re,Yn);break;case 267:for(var gt=0,lt=Yn.elements;gt<lt.length;gt++){var Fe=lt[gt];Re=Ue(Re,Fe)}break}return Re}function te(Re,Pn){return x.exportEquals?Re:Ue(Re,Pn)}function Te(Re,Pn,rt){if(x.exportEquals)return Re;for(var Yn=0,gt=Pn.declarationList.declarations;Yn<gt.length;Yn++){var lt=gt[Yn];(lt.initializer||rt)&&(Re=be(Re,lt,rt))}return Re}function be(Re,Pn,rt){if(x.exportEquals)return Re;if(e.isBindingPattern(Pn.name))for(var Yn=0,gt=Pn.name.elements;Yn<gt.length;Yn++){var lt=gt[Yn];e.isOmittedExpression(lt)||(Re=be(Re,lt,rt))}else if(!e.isGeneratedIdentifier(Pn.name)){var Fe=void 0;rt&&(Re=Se(Re,Pn.name,ee.getLocalName(Pn)),Fe=e.idText(Pn.name)),Re=Ue(Re,Pn,Fe)}return Re}function Ce(Re,Pn){if(x.exportEquals)return Re;var rt;if(e.hasSyntacticModifier(Pn,1)){var Yn=e.hasSyntacticModifier(Pn,512)?ee.createStringLiteral("default"):Pn.name;Re=Se(Re,Yn,ee.getLocalName(Pn)),rt=e.getTextOfIdentifierOrLiteral(Yn)}return Pn.name&&(Re=Ue(Re,Pn,rt)),Re}function Ue(Re,Pn,rt){if(x.exportEquals)return Re;var Yn=ee.getDeclarationName(Pn),gt=x.exportSpecifiers.get(e.idText(Yn));if(gt)for(var lt=0,Fe=gt;lt<Fe.length;lt++){var Bn=Fe[lt];Bn.name.escapedText!==rt&&(Re=Se(Re,Bn.name,Yn))}return Re}function Se(Re,Pn,rt,Yn){return Re=e.append(Re,$e(Pn,rt,Yn)),Re}function $e(Re,Pn,rt){var Yn=ee.createExpressionStatement(ce(Re,Pn));return e.startOnNewLine(Yn),rt||e.setEmitFlags(Yn,1536),Yn}function ce(Re,Pn){var rt=e.isIdentifier(Re)?ee.createStringLiteralFromNode(Re):Re;return e.setEmitFlags(Pn,e.getEmitFlags(Pn)|1536),e.setCommentRange(ee.createCallExpression($,void 0,[rt,Pn]),Pn)}function Le(Re){switch(Re.kind){case 235:return m(Re);case 254:return d(Re);case 255:return T(Re);case 240:return qe(Re,!0);case 241:return pe(Re);case 242:return Me(Re);case 238:return Ne(Re);case 239:return je(Re);case 248:return xn(Re);case 246:return Wn(Re);case 247:return dn(Re);case 261:return vn(Re);case 287:return o(Re);case 288:return Cn(Re);case 250:return z(Re);case 290:return tn(Re);case 233:return $n(Re);case 347:return J(Re);case 348:return we(Re);default:return oe(Re)}}function qe(Re,Pn){var rt=ae;return ae=Re,Re=ee.updateForStatement(Re,e.visitNode(Re.initializer,Pn?Ye:Pe,e.isForInitializer),e.visitNode(Re.condition,oe,e.isExpression),e.visitNode(Re.incrementor,Pe,e.isExpression),e.visitIterationBody(Re.statement,Pn?Le:oe,ue)),ae=rt,Re}function pe(Re){var Pn=ae;return ae=Re,Re=ee.updateForInStatement(Re,Ye(Re.initializer),e.visitNode(Re.expression,oe,e.isExpression),e.visitIterationBody(Re.statement,Le,ue)),ae=Pn,Re}function Me(Re){var Pn=ae;return ae=Re,Re=ee.updateForOfStatement(Re,Re.awaitModifier,Ye(Re.initializer),e.visitNode(Re.expression,oe,e.isExpression),e.visitIterationBody(Re.statement,Le,ue)),ae=Pn,Re}function fn(Re){return e.isVariableDeclarationList(Re)&&N(Re)}function Ye(Re){if(fn(Re)){for(var Pn=void 0,rt=0,Yn=Re.declarations;rt<Yn.length;rt++){var gt=Yn[rt];Pn=e.append(Pn,D(gt,!1)),gt.initializer||k(gt)}return Pn?ee.inlineExpressions(Pn):ee.createOmittedExpression()}else return e.visitNode(Re,Pe,e.isExpression)}function Ne(Re){return ee.updateDoStatement(Re,e.visitIterationBody(Re.statement,Le,ue),e.visitNode(Re.expression,oe,e.isExpression))}function je(Re){return ee.updateWhileStatement(Re,e.visitNode(Re.expression,oe,e.isExpression),e.visitIterationBody(Re.statement,Le,ue))}function xn(Re){return ee.updateLabeledStatement(Re,Re.label,e.visitNode(Re.statement,Le,e.isStatement,ee.liftToBlock))}function Wn(Re){return ee.updateWithStatement(Re,e.visitNode(Re.expression,oe,e.isExpression),e.visitNode(Re.statement,Le,e.isStatement,ee.liftToBlock))}function dn(Re){return ee.updateSwitchStatement(Re,e.visitNode(Re.expression,oe,e.isExpression),e.visitNode(Re.caseBlock,Le,e.isCaseBlock))}function vn(Re){var Pn=ae;return ae=Re,Re=ee.updateCaseBlock(Re,e.visitNodes(Re.clauses,Le,e.isCaseOrDefaultClause)),ae=Pn,Re}function o(Re){return ee.updateCaseClause(Re,e.visitNode(Re.expression,oe,e.isExpression),e.visitNodes(Re.statements,Le,e.isStatement))}function Cn(Re){return e.visitEachChild(Re,Le,ue)}function z(Re){return e.visitEachChild(Re,Le,ue)}function tn(Re){var Pn=ae;return ae=Re,Re=ee.updateCatchClause(Re,Re.variableDeclaration,e.visitNode(Re.block,Le,e.isBlock)),ae=Pn,Re}function $n(Re){var Pn=ae;return ae=Re,Re=e.visitEachChild(Re,Le,ue),ae=Pn,Re}function Un(Re,Pn){if(!(Re.transformFlags&(2048|4194304|67108864)))return Re;switch(Re.kind){case 240:return qe(Re,!1);case 236:return ke(Re);case 210:return Qe(Re,Pn);case 345:return gn(Re,Pn);case 219:if(e.isDestructuringAssignment(Re))return Ze(Re,Pn);break;case 206:if(e.isImportCall(Re))return xe(Re);break;case 217:case 218:return Be(Re,Pn)}return e.visitEachChild(Re,oe,ue)}function oe(Re){return Un(Re,!1)}function Pe(Re){return Un(Re,!0)}function ke(Re){return ee.updateExpressionStatement(Re,e.visitNode(Re.expression,Pe,e.isExpression))}function Qe(Re,Pn){return ee.updateParenthesizedExpression(Re,e.visitNode(Re.expression,Pn?Pe:oe,e.isExpression))}function gn(Re,Pn){return ee.updatePartiallyEmittedExpression(Re,e.visitNode(Re.expression,Pn?Pe:oe,e.isExpression))}function xe(Re){var Pn=e.getExternalModuleNameLiteral(ee,Re,W,w,O,_e),rt=e.visitNode(e.firstOrUndefined(Re.arguments),oe),Yn=Pn&&(!rt||!e.isStringLiteral(rt)||rt.text!==Pn.text)?Pn:rt;return ee.createCallExpression(ee.createPropertyAccessExpression(L,ee.createIdentifier("import")),void 0,Yn?[Yn]:[])}function Ze(Re,Pn){return wn(Re.left)?e.flattenDestructuringAssignment(Re,oe,ue,0,!Pn):e.visitEachChild(Re,oe,ue)}function wn(Re){if(e.isAssignmentExpression(Re,!0))return wn(Re.left);if(e.isSpreadElement(Re))return wn(Re.expression);if(e.isObjectLiteralExpression(Re))return e.some(Re.properties,wn);if(e.isArrayLiteralExpression(Re))return e.some(Re.elements,wn);if(e.isShorthandPropertyAssignment(Re))return wn(Re.name);if(e.isPropertyAssignment(Re))return wn(Re.initializer);if(e.isIdentifier(Re)){var Pn=O.getReferencedExportContainer(Re);return Pn!==void 0&&Pn.kind===300}else return!1}function Be(Re,Pn){if((Re.operator===45||Re.operator===46)&&e.isIdentifier(Re.operand)&&!e.isGeneratedIdentifier(Re.operand)&&!e.isLocalName(Re.operand)&&!e.isDeclarationNameOfEnumOrNamespace(Re.operand)){var rt=Ke(Re.operand);if(rt){var Yn=void 0,gt=e.visitNode(Re.operand,oe,e.isExpression);e.isPrefixUnaryExpression(Re)?gt=ee.updatePrefixUnaryExpression(Re,gt):(gt=ee.updatePostfixUnaryExpression(Re,gt),Pn||(Yn=ee.createTempVariable(ne),gt=ee.createAssignment(Yn,gt),e.setTextRange(gt,Re)),gt=ee.createComma(gt,ee.cloneNode(Re.operand)),e.setTextRange(gt,Re));for(var lt=0,Fe=rt;lt<Fe.length;lt++){var Bn=Fe[lt];gt=ce(Bn,Vn(gt))}return Yn&&(gt=ee.createComma(gt,Yn),e.setTextRange(gt,Re)),gt}}return e.visitEachChild(Re,oe,ue)}function hn(Re){switch(Re.kind){case 93:case 88:return}return Re}function Kn(Re,Pn,rt){if(Pn.kind===300){var Yn=e.getOriginalNodeId(Pn);W=Pn,x=fe[Yn],$=U[Yn],X=Z[Yn],L=v[Yn],X&&delete Z[Yn],de(Re,Pn,rt),W=void 0,x=void 0,$=void 0,L=void 0,X=void 0}else de(Re,Pn,rt)}function Je(Re,Pn){return Pn=b(Re,Pn),Zn(Pn)?Pn:Re===1?ct(Pn):Re===4?En(Pn):Pn}function En(Re){switch(Re.kind){case 292:return Nn(Re)}return Re}function Nn(Re){var Pn,rt,Yn=Re.name;if(!e.isGeneratedIdentifier(Yn)&&!e.isLocalName(Yn)){var gt=O.getReferencedImportDeclaration(Yn);if(gt){if(e.isImportClause(gt))return e.setTextRange(ee.createPropertyAssignment(ee.cloneNode(Yn),ee.createPropertyAccessExpression(ee.getGeneratedNameForNode(gt.parent),ee.createIdentifier("default"))),Re);if(e.isImportSpecifier(gt))return e.setTextRange(ee.createPropertyAssignment(ee.cloneNode(Yn),ee.createPropertyAccessExpression(ee.getGeneratedNameForNode(((rt=(Pn=gt.parent)===null||Pn===void 0?void 0:Pn.parent)===null||rt===void 0?void 0:rt.parent)||gt),ee.cloneNode(gt.propertyName||gt.name))),Re)}}return Re}function ct(Re){switch(Re.kind){case 79:return yt(Re);case 219:return Gt(Re);case 229:return $t(Re)}return Re}function yt(Re){var Pn,rt;if(e.getEmitFlags(Re)&4096){var Yn=e.getExternalHelpersModuleName(W);return Yn?ee.createPropertyAccessExpression(Yn,Re):Re}if(!e.isGeneratedIdentifier(Re)&&!e.isLocalName(Re)){var gt=O.getReferencedImportDeclaration(Re);if(gt){if(e.isImportClause(gt))return e.setTextRange(ee.createPropertyAccessExpression(ee.getGeneratedNameForNode(gt.parent),ee.createIdentifier("default")),Re);if(e.isImportSpecifier(gt))return e.setTextRange(ee.createPropertyAccessExpression(ee.getGeneratedNameForNode(((rt=(Pn=gt.parent)===null||Pn===void 0?void 0:Pn.parent)===null||rt===void 0?void 0:rt.parent)||gt),ee.cloneNode(gt.propertyName||gt.name)),Re)}}return Re}function Gt(Re){if(e.isAssignmentOperator(Re.operatorToken.kind)&&e.isIdentifier(Re.left)&&!e.isGeneratedIdentifier(Re.left)&&!e.isLocalName(Re.left)&&!e.isDeclarationNameOfEnumOrNamespace(Re.left)){var Pn=Ke(Re.left);if(Pn){for(var rt=Re,Yn=0,gt=Pn;Yn<gt.length;Yn++){var lt=gt[Yn];rt=ce(lt,Vn(rt))}return rt}}return Re}function $t(Re){return e.isImportMeta(Re)?ee.createPropertyAccessExpression(L,ee.createIdentifier("meta")):Re}function Ke(Re){var Pn;if(!e.isGeneratedIdentifier(Re)){var rt=O.getReferencedImportDeclaration(Re)||O.getReferencedValueDeclaration(Re);if(rt){var Yn=O.getReferencedExportContainer(Re,!1);Yn&&Yn.kind===300&&(Pn=e.append(Pn,ee.getDeclarationName(rt))),Pn=e.addRange(Pn,x&&x.exportedBindings[e.getOriginalNodeId(rt)])}}return Pn}function Vn(Re){return X===void 0&&(X=[]),X[e.getNodeId(Re)]=!0,Re}function Zn(Re){return X&&Re.id&&X[Re.id]}}e.transformSystemModule=s})(mn||(mn={}));var mn;(function(e){function s(ue){var ee=ue.factory,Y=ue.getEmitHelperFactory,V=ue.getCompilerOptions(),ne=ue.onEmitNode,_e=ue.onSubstituteNode;ue.onEmitNode=U,ue.onSubstituteNode=Z,ue.enableEmitNotification(300),ue.enableSubstitution(79);var O;return e.chainBundle(ue,w);function w(W){if(W.isDeclarationFile)return W;if(e.isExternalModule(W)||V.isolatedModules){var x=b(W);return!e.isExternalModule(W)||e.some(x.statements,e.isExternalModuleIndicator)?x:ee.updateSourceFile(x,e.setTextRange(ee.createNodeArray(Mt(Mt([],x.statements,!0),[e.createEmptyExports(ee)],!1)),x.statements))}return W}function b(W){var x=e.createExternalHelpersImportDeclarationIfNeeded(ee,Y(),W,V);if(x){var $=[],L=ee.copyPrologue(W.statements,$);return e.append($,x),e.addRange($,e.visitNodes(W.statements,de,e.isStatement,L)),ee.updateSourceFile(W,e.setTextRange(ee.createNodeArray($),W.statements))}else return e.visitEachChild(W,de,ue)}function de(W){switch(W.kind){case 263:return;case 269:return fe(W);case 270:var x=W;return _(x)}return W}function fe(W){return W.isExportEquals?void 0:W}function _(W){if(V.module!==void 0&&V.module>e.ModuleKind.ES2015)return W;if(!W.exportClause||!e.isNamespaceExport(W.exportClause)||!W.moduleSpecifier)return W;var x=W.exportClause.name,$=ee.getGeneratedNameForNode(x),L=ee.createImportDeclaration(void 0,void 0,ee.createImportClause(!1,void 0,ee.createNamespaceImport($)),W.moduleSpecifier);e.setOriginalNode(L,W.exportClause);var E=e.isExportNamespaceAsDefaultDeclaration(W)?ee.createExportDefault($):ee.createExportDeclaration(void 0,void 0,!1,ee.createNamedExports([ee.createExportSpecifier($,x)]));return e.setOriginalNode(E,W),[L,E]}function U(W,x,$){e.isSourceFile(x)?((e.isExternalModule(x)||V.isolatedModules)&&V.importHelpers&&(O=new e.Map),ne(W,x,$),O=void 0):ne(W,x,$)}function Z(W,x){return x=_e(W,x),O&&e.isIdentifier(x)&&e.getEmitFlags(x)&4096?v(x):x}function v(W){var x=e.idText(W),$=O.get(x);return $||O.set(x,$=ee.createUniqueName(x,16|32)),$}}e.transformECMAScriptModule=s})(mn||(mn={}));var mn;(function(e){function s(Y){return e.isVariableDeclaration(Y)||e.isPropertyDeclaration(Y)||e.isPropertySignature(Y)||e.isBindingElement(Y)||e.isSetAccessor(Y)||e.isGetAccessor(Y)||e.isConstructSignatureDeclaration(Y)||e.isCallSignatureDeclaration(Y)||e.isMethodDeclaration(Y)||e.isMethodSignature(Y)||e.isFunctionDeclaration(Y)||e.isParameter(Y)||e.isTypeParameterDeclaration(Y)||e.isExpressionWithTypeArguments(Y)||e.isImportEqualsDeclaration(Y)||e.isTypeAliasDeclaration(Y)||e.isConstructorDeclaration(Y)||e.isIndexSignatureDeclaration(Y)||e.isPropertyAccessExpression(Y)||e.isJSDocTypeAlias(Y)}e.canProduceDiagnostics=s;function ue(Y){if(e.isSetAccessor(Y)||e.isGetAccessor(Y))return V;return e.isMethodSignature(Y)||e.isMethodDeclaration(Y)?_e:ee(Y);function V(w){var b=ne(w);return b!==void 0?{diagnosticMessage:b,errorNode:Y,typeName:Y.name}:void 0}function ne(w){return e.isStatic(Y)?w.errorModuleName?w.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:Y.parent.kind===255?w.errorModuleName?w.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:w.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function _e(w){var b=O(w);return b!==void 0?{diagnosticMessage:b,errorNode:Y,typeName:Y.name}:void 0}function O(w){return e.isStatic(Y)?w.errorModuleName?w.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:Y.parent.kind===255?w.errorModuleName?w.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:w.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}e.createGetSymbolAccessibilityDiagnosticForNodeName=ue;function ee(Y){if(e.isVariableDeclaration(Y)||e.isPropertyDeclaration(Y)||e.isPropertySignature(Y)||e.isPropertyAccessExpression(Y)||e.isBindingElement(Y)||e.isConstructorDeclaration(Y))return ne;return e.isSetAccessor(Y)||e.isGetAccessor(Y)?_e:e.isConstructSignatureDeclaration(Y)||e.isCallSignatureDeclaration(Y)||e.isMethodDeclaration(Y)||e.isMethodSignature(Y)||e.isFunctionDeclaration(Y)||e.isIndexSignatureDeclaration(Y)?O:e.isParameter(Y)?e.isParameterPropertyDeclaration(Y,Y.parent)&&e.hasSyntacticModifier(Y.parent,8)?ne:w:e.isTypeParameterDeclaration(Y)?de:e.isExpressionWithTypeArguments(Y)?fe:e.isImportEqualsDeclaration(Y)?_:e.isTypeAliasDeclaration(Y)||e.isJSDocTypeAlias(Y)?U:e.Debug.assertNever(Y,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[Y.kind]);function V(Z){if(Y.kind===252||Y.kind===201)return Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;if(Y.kind===165||Y.kind===204||Y.kind===164||Y.kind===162&&e.hasSyntacticModifier(Y.parent,8))return e.isStatic(Y)?Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:Y.parent.kind===255||Y.kind===162?Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:Z.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function ne(Z){var v=V(Z);return v!==void 0?{diagnosticMessage:v,errorNode:Y,typeName:Y.name}:void 0}function _e(Z){var v;return Y.kind===171?e.isStatic(Y)?v=Z.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:v=Z.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(Y)?v=Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:v=Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:v,errorNode:Y.name,typeName:Y.name}}function O(Z){var v;switch(Y.kind){case 173:v=Z.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 172:v=Z.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:v=Z.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 167:case 166:e.isStatic(Y)?v=Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:Y.parent.kind===255?v=Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:v=Z.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 254:v=Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+Y.kind)}return{diagnosticMessage:v,errorNode:Y.name||Y}}function w(Z){var v=b(Z);return v!==void 0?{diagnosticMessage:v,errorNode:Y,typeName:Y.name}:void 0}function b(Z){switch(Y.parent.kind){case 169:return Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 173:case 178:return Z.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 172:return Z.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:return Z.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 167:case 166:return e.isStatic(Y.parent)?Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Y.parent.parent.kind===255?Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Z.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 254:case 177:return Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 171:case 170:return Z.errorModuleName?Z.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[Y.parent.kind])}}function de(){var Z;switch(Y.parent.kind){case 255:Z=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 256:Z=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 193:Z=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 178:case 173:Z=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:Z=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 167:case 166:e.isStatic(Y.parent)?Z=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Y.parent.parent.kind===255?Z=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Z=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 177:case 254:Z=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 257:Z=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+Y.parent.kind)}return{diagnosticMessage:Z,errorNode:Y,typeName:Y.name}}function fe(){var Z;return e.isClassDeclaration(Y.parent.parent)?Z=e.isHeritageClause(Y.parent)&&Y.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:Y.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:Z=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:Z,errorNode:Y,typeName:e.getNameOfDeclaration(Y.parent.parent)}}function _(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:Y,typeName:Y.name}}function U(Z){return{diagnosticMessage:Z.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(Y)?e.Debug.checkDefined(Y.typeExpression):Y.type,typeName:e.isJSDocTypeAlias(Y)?e.getNameOfDeclaration(Y):Y.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=ee})(mn||(mn={}));var mn;(function(e){function s(_,U,Z){var v=_.getCompilerOptions(),W=e.transformNodes(U,_,e.factory,v,Z?[Z]:e.filter(_.getSourceFiles(),e.isSourceFileNotJson),[V],!1);return W.diagnostics}e.getDeclarationDiagnostics=s;function ue(_,U){var Z=U.text.substring(_.pos,_.end);return e.stringContains(Z,"@internal")}function ee(_,U){var Z=e.getParseTreeNode(_);if(Z&&Z.kind===162){var v=Z.parent.parameters.indexOf(Z),W=v>0?Z.parent.parameters[v-1]:void 0,x=U.text,$=W?e.concatenate(e.getTrailingCommentRanges(x,e.skipTrivia(x,W.end+1,!1,!0)),e.getLeadingCommentRanges(x,_.pos)):e.getTrailingCommentRanges(x,e.skipTrivia(x,_.pos,!1,!0));return $&&$.length&&ue(e.last($),U)}var L=Z&&e.getLeadingCommentRangesOfNode(Z,U);return!!e.forEach(L,function(E){return ue(E,U)})}e.isInternalDeclaration=ee;var Y=1024|2048|4096|8|524288|4|1;function V(_){var U=function(){return e.Debug.fail("Diagnostic emitted without context")},Z=U,v=!0,W=!1,x=!1,$=!1,L=!1,E,ae,X,ie,le,P,I=_.factory,re=_.getEmitHost(),B={trackSymbol:J,reportInaccessibleThisError:Te,reportInaccessibleUniqueSymbolError:Oe,reportCyclicStructureError:te,reportPrivateInBaseOfClassExpression:C,reportLikelyUnsafeImportRequiredError:be,reportTruncationError:Ce,moduleResolverHost:re,trackReferencedAmbientModule:R,trackExternalModuleSymbolOfImportTypeNode:q,reportNonlocalAugmentation:Ue,reportNonSerializableProperty:Se},A,f,F,g,p,d,T=_.getEmitResolver(),m=_.getCompilerOptions(),k=m.noResolve,N=m.stripInternal;return ce;function D(Ke){if(!Ke)return;ae=ae||new e.Set;for(var Vn=0,Zn=Ke;Vn<Zn.length;Vn++){var Re=Zn[Vn];ae.add(Re)}}function R(Ke,Vn){var Zn=T.getTypeReferenceDirectivesForSymbol(Vn,67108863);if(e.length(Zn))return D(Zn);var Re=e.getSourceFileOfNode(Ke);g.set(e.getOriginalNodeId(Re),Re)}function me(Ke){if(Ke.accessibility===0){if(Ke&&Ke.aliasesToMakeVisible)if(!X)X=Ke.aliasesToMakeVisible;else for(var Vn=0,Zn=Ke.aliasesToMakeVisible;Vn<Zn.length;Vn++){var Re=Zn[Vn];e.pushIfUnique(X,Re)}}else{var Pn=Z(Ke);if(Pn)return Pn.typeName?_.addDiagnostic(e.createDiagnosticForNode(Ke.errorNode||Pn.errorNode,Pn.diagnosticMessage,e.getTextOfNode(Pn.typeName),Ke.errorSymbolName,Ke.errorModuleName)):_.addDiagnostic(e.createDiagnosticForNode(Ke.errorNode||Pn.errorNode,Pn.diagnosticMessage,Ke.errorSymbolName,Ke.errorModuleName)),!0}return!1}function q(Ke){W||(P||(P=[])).push(Ke)}function J(Ke,Vn,Zn){if(Ke.flags&262144)return!1;var Re=me(T.isSymbolAccessible(Ke,Vn,Zn,!0));return D(T.getTypeReferenceDirectivesForSymbol(Ke,Zn)),Re}function C(Ke){(A||f)&&_.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,Ke))}function we(){return A?e.declarationNameToString(A):f&&e.getNameOfDeclaration(f)?e.declarationNameToString(e.getNameOfDeclaration(f)):f&&e.isExportAssignment(f)?f.isExportEquals?"export=":"default":"(Missing)"}function Oe(){(A||f)&&_.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,we(),"unique symbol"))}function te(){(A||f)&&_.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,we()))}function Te(){(A||f)&&_.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,we(),"this"))}function be(Ke){(A||f)&&_.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,we(),Ke))}function Ce(){(A||f)&&_.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Ue(Ke,Vn,Zn){var Re,Pn=(Re=Vn.declarations)===null||Re===void 0?void 0:Re.find(function(Fe){return e.getSourceFileOfNode(Fe)===Ke}),rt=e.filter(Zn.declarations,function(Fe){return e.getSourceFileOfNode(Fe)!==Ke});if(rt)for(var Yn=0,gt=rt;Yn<gt.length;Yn++){var lt=gt[Yn];_.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(lt,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(Pn,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function Se(Ke){(A||f)&&_.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Ke))}function $e(Ke,Vn){var Zn=Z;Z=function(Pn){return Pn.errorNode&&e.canProduceDiagnostics(Pn.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(Pn.errorNode)(Pn):{diagnosticMessage:Pn.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Pn.errorNode||Ke}};var Re=T.getDeclarationStatementsForSourceFile(Ke,Y,B,Vn);return Z=Zn,Re}function ce(Ke){if(Ke.kind===300&&Ke.isDeclarationFile)return Ke;if(Ke.kind===301){W=!0,g=new e.Map,p=new e.Map;var Vn=!1,Zn=I.createBundle(e.map(Ke.sourceFiles,function(Ln){if(Ln.isDeclarationFile)return;if(Vn=Vn||Ln.hasNoDefaultLib,F=Ln,E=Ln,X=void 0,le=!1,ie=new e.Map,Z=U,$=!1,L=!1,Le(Ln,g),qe(Ln,p),e.isExternalOrCommonJsModule(Ln)||e.isJsonSourceFile(Ln)){x=!1,v=!1;var Xe=e.isSourceFileJS(Ln)?I.createNodeArray($e(Ln,!0)):e.visitNodes(Ln.statements,gn),Dn=I.updateSourceFile(Ln,[I.createModuleDeclaration([],[I.createModifier(134)],I.createStringLiteral(e.getResolvedExternalModuleName(_.getEmitHost(),Ln)),I.createModuleBlock(e.setTextRange(I.createNodeArray(Pe(Xe)),Ln.statements)))],!0,[],[],!1,[]);return Dn}v=!0;var rn=e.isSourceFileJS(Ln)?I.createNodeArray($e(Ln)):e.visitNodes(Ln.statements,gn);return I.updateSourceFile(Ln,Pe(rn),!0,[],[],!1,[])}),e.mapDefined(Ke.prepends,function(Ln){if(Ln.kind===303){var Xe=e.createUnparsedSourceFile(Ln,"dts",N);return Vn=Vn||!!Xe.hasNoDefaultLib,Le(Xe,g),D(Xe.typeReferenceDirectives),qe(Xe,p),Xe}return Ln}));Zn.syntheticFileReferences=[],Zn.syntheticTypeReferences=An(),Zn.syntheticLibReferences=K(),Zn.hasNoDefaultLib=Vn;var Re=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Ke,re,!0).declarationFilePath)),Pn=ln(Zn.syntheticFileReferences,Re);return g.forEach(Pn),Zn}v=!0,$=!1,L=!1,E=Ke,F=Ke,Z=U,W=!1,x=!1,le=!1,X=void 0,ie=new e.Map,ae=void 0,g=Le(F,new e.Map),p=qe(F,new e.Map);var rt=[],Yn=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Ke,re,!0).declarationFilePath)),gt=ln(rt,Yn),lt;if(e.isSourceFileJS(F))lt=I.createNodeArray($e(Ke)),g.forEach(gt),d=e.filter(lt,e.isAnyImportSyntax);else{var Fe=e.visitNodes(Ke.statements,gn);lt=e.setTextRange(I.createNodeArray(Pe(Fe)),Ke.statements),g.forEach(gt),d=e.filter(lt,e.isAnyImportSyntax),e.isExternalModule(Ke)&&(!x||$&&!L)&&(lt=e.setTextRange(I.createNodeArray(Mt(Mt([],lt,!0),[e.createEmptyExports(I)],!1)),lt))}var Bn=I.updateSourceFile(Ke,lt,!0,rt,An(),Ke.hasNoDefaultLib,K());return Bn.exportedModulesFromDeclarationEmit=P,Bn;function K(){return e.map(e.arrayFrom(p.keys()),function(Ln){return{fileName:Ln,pos:-1,end:-1}})}function An(){return ae?e.mapDefined(e.arrayFrom(ae.keys()),Fn):[]}function Fn(Ln){if(d)for(var Xe=0,Dn=d;Xe<Dn.length;Xe++){var rn=Dn[Xe];if(e.isImportEqualsDeclaration(rn)&&e.isExternalModuleReference(rn.moduleReference)){var qn=rn.moduleReference.expression;if(e.isStringLiteralLike(qn)&&qn.text===Ln)return}else if(e.isImportDeclaration(rn)&&e.isStringLiteral(rn.moduleSpecifier)&&rn.moduleSpecifier.text===Ln)return}return{fileName:Ln,pos:-1,end:-1}}function ln(Ln,Xe){return function(Dn){var rn;if(Dn.isDeclarationFile)rn=Dn.fileName;else{if(W&&e.contains(Ke.sourceFiles,Dn))return;var qn=e.getOutputPathsFor(Dn,re,!0);rn=qn.declarationFilePath||qn.jsFilePath||Dn.fileName}if(rn){var it=e.moduleSpecifiers.getModuleSpecifier(m,F,e.toPath(Xe,re.getCurrentDirectory(),re.getCanonicalFileName),e.toPath(rn,re.getCurrentDirectory(),re.getCanonicalFileName),re);if(!e.pathIsRelative(it)){D([it]);return}var ht=e.getRelativePathToDirectoryOrUrl(Xe,rn,re.getCurrentDirectory(),re.getCanonicalFileName,!1);if(e.startsWith(ht,"./")&&e.hasExtension(ht)&&(ht=ht.substring(2)),e.startsWith(ht,"node_modules/")||e.pathContainsNodeModules(ht))return;Ln.push({pos:-1,end:-1,fileName:ht})}}}}function Le(Ke,Vn){return k||!e.isUnparsedSource(Ke)&&e.isSourceFileJS(Ke)||e.forEach(Ke.referencedFiles,function(Zn){var Re=re.getSourceFileFromReference(Ke,Zn);Re&&Vn.set(e.getOriginalNodeId(Re),Re)}),Vn}function qe(Ke,Vn){return e.forEach(Ke.libReferenceDirectives,function(Zn){var Re=re.getLibFileFromReference(Zn);Re&&Vn.set(e.toFileNameLowerCase(Zn.fileName),!0)}),Vn}function pe(Ke){if(Ke.kind===79)return Ke;return Ke.kind===200?I.updateArrayBindingPattern(Ke,e.visitNodes(Ke.elements,Vn)):I.updateObjectBindingPattern(Ke,e.visitNodes(Ke.elements,Vn));function Vn(Zn){return Zn.kind===225?Zn:I.updateBindingElement(Zn,Zn.dotDotDotToken,Zn.propertyName,pe(Zn.name),fn(Zn)?Zn.initializer:void 0)}}function Me(Ke,Vn,Zn){var Re;le||(Re=Z,Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke));var Pn=I.updateParameterDeclaration(Ke,void 0,_e(Ke,Vn),Ke.dotDotDotToken,pe(Ke.name),T.isOptionalParameter(Ke)?Ke.questionToken||I.createToken(57):void 0,Ne(Ke,Zn||Ke.type,!0),Ye(Ke));return le||(Z=Re),Pn}function fn(Ke){return b(Ke)&&T.isLiteralConstDeclaration(e.getParseTreeNode(Ke))}function Ye(Ke){return fn(Ke)?T.createLiteralConstValue(e.getParseTreeNode(Ke),B):void 0}function Ne(Ke,Vn,Zn){if(!Zn&&e.hasEffectiveModifier(Ke,8))return;if(fn(Ke))return;var Re=Ke.kind===162&&(T.isRequiredInitializedParameter(Ke)||T.isOptionalUninitializedParameterProperty(Ke));if(Vn&&!Re)return e.visitNode(Vn,ke);if(!e.getParseTreeNode(Ke))return Vn?e.visitNode(Vn,ke):I.createKeywordTypeNode(129);if(Ke.kind===171)return I.createKeywordTypeNode(129);A=Ke.name;var Pn;if(le||(Pn=Z,Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke)),Ke.kind===252||Ke.kind===201)return rt(T.createTypeOfDeclaration(Ke,E,Y,B));if(Ke.kind===162||Ke.kind===165||Ke.kind===164)return Ke.initializer?rt(T.createTypeOfDeclaration(Ke,E,Y,B,Re)||T.createTypeOfExpression(Ke.initializer,E,Y,B)):rt(T.createTypeOfDeclaration(Ke,E,Y,B,Re));return rt(T.createReturnTypeOfSignatureDeclaration(Ke,E,Y,B));function rt(Yn){return A=void 0,le||(Z=Pn),Yn||I.createKeywordTypeNode(129)}}function je(Ke){Ke=e.getParseTreeNode(Ke);switch(Ke.kind){case 254:case 259:case 256:case 255:case 257:case 258:return!T.isDeclarationVisible(Ke);case 252:return!Wn(Ke);case 263:case 264:case 270:case 269:return!1;case 168:return!0}return!1}function xn(Ke){var Vn;if(Ke.body)return!0;var Zn=(Vn=Ke.symbol.declarations)===null||Vn===void 0?void 0:Vn.filter(function(Re){return e.isFunctionDeclaration(Re)&&!Re.body});return!Zn||Zn.indexOf(Ke)===Zn.length-1}function Wn(Ke){return e.isOmittedExpression(Ke)?!1:e.isBindingPattern(Ke.name)?e.some(Ke.name.elements,Wn):T.isDeclarationVisible(Ke)}function dn(Ke,Vn,Zn){if(e.hasEffectiveModifier(Ke,8))return;var Re=e.map(Vn,function(Pn){return Me(Pn,Zn)});return Re?I.createNodeArray(Re,Vn.hasTrailingComma):void 0}function vn(Ke,Vn){var Zn;if(!Vn){var Re=e.getThisParameter(Ke);Re&&(Zn=[Me(Re)])}if(e.isSetAccessorDeclaration(Ke)){var Pn=void 0;if(!Vn){var rt=e.getSetAccessorValueParameter(Ke);if(rt){var Yn=Gt(Ke,T.getAllAccessorDeclarations(Ke));Pn=Me(rt,void 0,Yn)}}Pn||(Pn=I.createParameterDeclaration(void 0,void 0,void 0,"value")),Zn=e.append(Zn,Pn)}return I.createNodeArray(Zn||e.emptyArray)}function o(Ke,Vn){return e.hasEffectiveModifier(Ke,8)?void 0:e.visitNodes(Vn,ke)}function Cn(Ke){return e.isSourceFile(Ke)||e.isTypeAliasDeclaration(Ke)||e.isModuleDeclaration(Ke)||e.isClassDeclaration(Ke)||e.isInterfaceDeclaration(Ke)||e.isFunctionLike(Ke)||e.isIndexSignatureDeclaration(Ke)||e.isMappedTypeNode(Ke)}function z(Ke,Vn){var Zn=T.isEntityNameVisible(Ke,Vn);me(Zn),D(T.getTypeReferenceDirectivesForEntityName(Ke))}function tn(Ke,Vn){return e.hasJSDocNodes(Ke)&&e.hasJSDocNodes(Vn)&&(Ke.jsDoc=Vn.jsDoc),e.setCommentRange(Ke,e.getCommentRange(Vn))}function $n(Ke,Vn){if(!Vn)return;if(x=x||Ke.kind!==259&&Ke.kind!==198,e.isStringLiteralLike(Vn))if(W){var Zn=e.getExternalModuleNameFromDeclaration(_.getEmitHost(),T,Ke);if(Zn)return I.createStringLiteral(Zn)}else{var Re=T.getSymbolOfExternalModuleSpecifier(Vn);Re&&(P||(P=[])).push(Re)}return Vn}function Un(Ke){if(!T.isDeclarationVisible(Ke))return;if(Ke.moduleReference.kind===275){var Vn=e.getExternalModuleImportEqualsDeclarationExpression(Ke);return I.updateImportEqualsDeclaration(Ke,void 0,Ke.modifiers,Ke.isTypeOnly,Ke.name,I.updateExternalModuleReference(Ke.moduleReference,$n(Ke,Vn)))}else{var Zn=Z;return Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke),z(Ke.moduleReference,E),Z=Zn,Ke}}function oe(Ke){if(!Ke.importClause)return I.updateImportDeclaration(Ke,void 0,Ke.modifiers,Ke.importClause,$n(Ke,Ke.moduleSpecifier));var Vn=Ke.importClause&&Ke.importClause.name&&T.isDeclarationVisible(Ke.importClause)?Ke.importClause.name:void 0;if(!Ke.importClause.namedBindings)return Vn&&I.updateImportDeclaration(Ke,void 0,Ke.modifiers,I.updateImportClause(Ke.importClause,Ke.importClause.isTypeOnly,Vn,void 0),$n(Ke,Ke.moduleSpecifier));if(Ke.importClause.namedBindings.kind===266){var Zn=T.isDeclarationVisible(Ke.importClause.namedBindings)?Ke.importClause.namedBindings:void 0;return Vn||Zn?I.updateImportDeclaration(Ke,void 0,Ke.modifiers,I.updateImportClause(Ke.importClause,Ke.importClause.isTypeOnly,Vn,Zn),$n(Ke,Ke.moduleSpecifier)):void 0}var Re=e.mapDefined(Ke.importClause.namedBindings.elements,function(Pn){return T.isDeclarationVisible(Pn)?Pn:void 0});if(Re&&Re.length||Vn)return I.updateImportDeclaration(Ke,void 0,Ke.modifiers,I.updateImportClause(Ke.importClause,Ke.importClause.isTypeOnly,Vn,Re&&Re.length?I.updateNamedImports(Ke.importClause.namedBindings,Re):void 0),$n(Ke,Ke.moduleSpecifier));if(T.isImportRequiredByAugmentation(Ke))return I.updateImportDeclaration(Ke,void 0,Ke.modifiers,void 0,$n(Ke,Ke.moduleSpecifier))}function Pe(Ke){for(;e.length(X);){var Vn=X.shift();if(!e.isLateVisibilityPaintedStatement(Vn))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[Vn.kind]:Vn.kind));var Zn=v;v=Vn.parent&&e.isSourceFile(Vn.parent)&&!(e.isExternalModule(Vn.parent)&&W);var Re=Ze(Vn);v=Zn,ie.set(e.getOriginalNodeId(Vn),Re)}return e.visitNodes(Ke,Pn);function Pn(rt){if(e.isLateVisibilityPaintedStatement(rt)){var Yn=e.getOriginalNodeId(rt);if(ie.has(Yn)){var gt=ie.get(Yn);return ie.delete(Yn),gt&&((e.isArray(gt)?e.some(gt,e.needsScopeMarker):e.needsScopeMarker(gt))&&($=!0),e.isSourceFile(rt.parent)&&(e.isArray(gt)?e.some(gt,e.isExternalModuleIndicator):e.isExternalModuleIndicator(gt))&&(x=!0)),gt}}return rt}}function ke(Ke){if(Je(Ke))return;if(e.isDeclaration(Ke)){if(je(Ke))return;if(e.hasDynamicName(Ke)&&!T.isLateBound(e.getParseTreeNode(Ke)))return}if(e.isFunctionLike(Ke)&&T.isImplementationOfOverload(Ke))return;if(e.isSemicolonClassElement(Ke))return;var Vn;Cn(Ke)&&(Vn=E,E=Ke);var Zn=Z,Re=e.canProduceDiagnostics(Ke),Pn=le,rt=(Ke.kind===180||Ke.kind===193)&&Ke.parent.kind!==257;if((e.isMethodDeclaration(Ke)||e.isMethodSignature(Ke))&&e.hasEffectiveModifier(Ke,8))return Ke.symbol&&Ke.symbol.declarations&&Ke.symbol.declarations[0]!==Ke?void 0:Ln(I.createPropertyDeclaration(void 0,ct(Ke),Ke.name,void 0,void 0,void 0));if(Re&&!le&&(Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke)),e.isTypeQueryNode(Ke)&&z(Ke.exprName,E),rt&&(le=!0),fe(Ke))switch(Ke.kind){case 226:{(e.isEntityName(Ke.expression)||e.isEntityNameExpression(Ke.expression))&&z(Ke.expression,E);var Yn=e.visitEachChild(Ke,ke,_);return Ln(I.updateExpressionWithTypeArguments(Yn,Yn.expression,Yn.typeArguments))}case 176:{z(Ke.typeName,E);var Yn=e.visitEachChild(Ke,ke,_);return Ln(I.updateTypeReferenceNode(Yn,Yn.typeName,Yn.typeArguments))}case 173:return Ln(I.updateConstructSignature(Ke,o(Ke,Ke.typeParameters),dn(Ke,Ke.parameters),Ne(Ke,Ke.type)));case 169:{var gt=I.createConstructorDeclaration(void 0,ct(Ke),dn(Ke,Ke.parameters,0),void 0);return Ln(gt)}case 167:{if(e.isPrivateIdentifier(Ke.name))return Ln(void 0);var lt=I.createMethodDeclaration(void 0,ct(Ke),void 0,Ke.name,Ke.questionToken,o(Ke,Ke.typeParameters),dn(Ke,Ke.parameters),Ne(Ke,Ke.type),void 0);return Ln(lt)}case 170:{if(e.isPrivateIdentifier(Ke.name))return Ln(void 0);var Fe=Gt(Ke,T.getAllAccessorDeclarations(Ke));return Ln(I.updateGetAccessorDeclaration(Ke,void 0,ct(Ke),Ke.name,vn(Ke,e.hasEffectiveModifier(Ke,8)),Ne(Ke,Fe),void 0))}case 171:return e.isPrivateIdentifier(Ke.name)?Ln(void 0):Ln(I.updateSetAccessorDeclaration(Ke,void 0,ct(Ke),Ke.name,vn(Ke,e.hasEffectiveModifier(Ke,8)),void 0));case 165:return e.isPrivateIdentifier(Ke.name)?Ln(void 0):Ln(I.updatePropertyDeclaration(Ke,void 0,ct(Ke),Ke.name,Ke.questionToken,Ne(Ke,Ke.type),Ye(Ke)));case 164:return e.isPrivateIdentifier(Ke.name)?Ln(void 0):Ln(I.updatePropertySignature(Ke,ct(Ke),Ke.name,Ke.questionToken,Ne(Ke,Ke.type)));case 166:return e.isPrivateIdentifier(Ke.name)?Ln(void 0):Ln(I.updateMethodSignature(Ke,ct(Ke),Ke.name,Ke.questionToken,o(Ke,Ke.typeParameters),dn(Ke,Ke.parameters),Ne(Ke,Ke.type)));case 172:return Ln(I.updateCallSignature(Ke,o(Ke,Ke.typeParameters),dn(Ke,Ke.parameters),Ne(Ke,Ke.type)));case 174:return Ln(I.updateIndexSignature(Ke,void 0,ct(Ke),dn(Ke,Ke.parameters),e.visitNode(Ke.type,ke)||I.createKeywordTypeNode(129)));case 252:return e.isBindingPattern(Ke.name)?Be(Ke.name):(rt=!0,le=!0,Ln(I.updateVariableDeclaration(Ke,Ke.name,void 0,Ne(Ke,Ke.type),Ye(Ke))));case 161:return Qe(Ke)&&(Ke.default||Ke.constraint)?Ln(I.updateTypeParameterDeclaration(Ke,Ke.name,void 0,void 0)):Ln(e.visitEachChild(Ke,ke,_));case 187:{var Bn=e.visitNode(Ke.checkType,ke),K=e.visitNode(Ke.extendsType,ke),An=E;E=Ke.trueType;var Fn=e.visitNode(Ke.trueType,ke);E=An;var ln=e.visitNode(Ke.falseType,ke);return Ln(I.updateConditionalTypeNode(Ke,Bn,K,Fn,ln))}case 177:return Ln(I.updateFunctionTypeNode(Ke,e.visitNodes(Ke.typeParameters,ke),dn(Ke,Ke.parameters),e.visitNode(Ke.type,ke)));case 178:return Ln(I.updateConstructorTypeNode(Ke,ct(Ke),e.visitNodes(Ke.typeParameters,ke),dn(Ke,Ke.parameters),e.visitNode(Ke.type,ke)));case 198:return e.isLiteralImportTypeNode(Ke)?Ln(I.updateImportTypeNode(Ke,I.updateLiteralTypeNode(Ke.argument,$n(Ke,Ke.argument.literal)),Ke.qualifier,e.visitNodes(Ke.typeArguments,ke,e.isTypeNode),Ke.isTypeOf)):Ln(Ke);default:e.Debug.assertNever(Ke,"Attempted to process unhandled node kind: "+e.SyntaxKind[Ke.kind])}return e.isTupleTypeNode(Ke)&&e.getLineAndCharacterOfPosition(F,Ke.pos).line===e.getLineAndCharacterOfPosition(F,Ke.end).line&&e.setEmitFlags(Ke,1),Ln(e.visitEachChild(Ke,ke,_));function Ln(Xe){return Xe&&Re&&e.hasDynamicName(Ke)&&Kn(Ke),Cn(Ke)&&(E=Vn),Re&&!le&&(Z=Zn),rt&&(le=Pn),Xe===Ke?Xe:Xe&&e.setOriginalNode(tn(Xe,Ke),Ke)}}function Qe(Ke){return Ke.parent.kind===167&&e.hasEffectiveModifier(Ke.parent,8)}function gn(Ke){if(!de(Ke))return;if(Je(Ke))return;switch(Ke.kind){case 270:return e.isSourceFile(Ke.parent)&&(x=!0),L=!0,I.updateExportDeclaration(Ke,void 0,Ke.modifiers,Ke.isTypeOnly,Ke.exportClause,$n(Ke,Ke.moduleSpecifier));case 269:{if(e.isSourceFile(Ke.parent)&&(x=!0),L=!0,Ke.expression.kind===79)return Ke;var Vn=I.createUniqueName("_default",16);Z=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Ke}},f=Ke;var Zn=I.createVariableDeclaration(Vn,void 0,T.createTypeOfExpression(Ke.expression,Ke,Y,B),void 0);f=void 0;var Re=I.createVariableStatement(v?[I.createModifier(134)]:[],I.createVariableDeclarationList([Zn],2));return[Re,I.updateExportAssignment(Ke,Ke.decorators,Ke.modifiers,Vn)]}}var Pn=Ze(Ke);return ie.set(e.getOriginalNodeId(Ke),Pn),Ke}function xe(Ke){if(e.isImportEqualsDeclaration(Ke)||e.hasEffectiveModifier(Ke,512)||!e.canHaveModifiers(Ke))return Ke;var Vn=I.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(Ke)&(27647^1));return I.updateModifiers(Ke,Vn)}function Ze(Ke){if(Je(Ke))return;switch(Ke.kind){case 263:return Un(Ke);case 264:return oe(Ke)}if(e.isDeclaration(Ke)&&je(Ke))return;if(e.isFunctionLike(Ke)&&T.isImplementationOfOverload(Ke))return;var Vn;Cn(Ke)&&(Vn=E,E=Ke);var Zn=e.canProduceDiagnostics(Ke),Re=Z;Zn&&(Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke));var Pn=v;switch(Ke.kind){case 257:return la(I.updateTypeAliasDeclaration(Ke,void 0,ct(Ke),Ke.name,e.visitNodes(Ke.typeParameters,ke,e.isTypeParameterDeclaration),e.visitNode(Ke.type,ke,e.isTypeNode)));case 256:return la(I.updateInterfaceDeclaration(Ke,void 0,ct(Ke),Ke.name,o(Ke,Ke.typeParameters),$t(Ke.heritageClauses),e.visitNodes(Ke.members,ke)));case 254:{var rt=la(I.updateFunctionDeclaration(Ke,void 0,ct(Ke),void 0,Ke.name,o(Ke,Ke.typeParameters),dn(Ke,Ke.parameters),Ne(Ke,Ke.type),void 0));if(rt&&T.isExpandoFunctionDeclaration(Ke)&&xn(Ke)){var Yn=T.getPropertiesOfContainerFunction(Ke),gt=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,rt.name||I.createIdentifier("_default"),I.createModuleBlock([]),16);e.setParent(gt,E),gt.locals=e.createSymbolTable(Yn),gt.symbol=Yn[0].parent;var lt=[],Fe=e.mapDefined(Yn,function(wt){if(!wt.valueDeclaration||!e.isPropertyAccessExpression(wt.valueDeclaration))return;Z=e.createGetSymbolAccessibilityDiagnosticForNode(wt.valueDeclaration);var rr=T.createTypeOfDeclaration(wt.valueDeclaration,gt,Y,B);Z=Re;var Wt=e.unescapeLeadingUnderscores(wt.escapedName),Pr=e.isStringANonContextualKeyword(Wt),ra=Pr?I.getGeneratedNameForNode(wt.valueDeclaration):I.createIdentifier(Wt);Pr&<.push([ra,Wt]);var Lt=I.createVariableDeclaration(ra,void 0,rr,void 0);return I.createVariableStatement(Pr?void 0:[I.createToken(93)],I.createVariableDeclarationList([Lt]))});lt.length?Fe.push(I.createExportDeclaration(void 0,void 0,!1,I.createNamedExports(e.map(lt,function(wt){var rr=wt[0],Wt=wt[1];return I.createExportSpecifier(rr,Wt)})))):Fe=e.mapDefined(Fe,function(wt){return I.updateModifiers(wt,0)});var Bn=I.createModuleDeclaration(void 0,ct(Ke),Ke.name,I.createModuleBlock(Fe),16);if(!e.hasEffectiveModifier(rt,512))return[rt,Bn];var K=I.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(rt)&~513|2),An=I.updateFunctionDeclaration(rt,void 0,K,void 0,rt.name,rt.typeParameters,rt.parameters,rt.type,void 0),Fn=I.updateModuleDeclaration(Bn,void 0,K,Bn.name,Bn.body),ln=I.createExportAssignment(void 0,void 0,!1,Bn.name);return e.isSourceFile(Ke.parent)&&(x=!0),L=!0,[An,Fn,ln]}else return rt}case 259:{v=!1;var Ln=Ke.body;if(Ln&&Ln.kind===260){var Xe=$,Dn=L;L=!1,$=!1;var rn=e.visitNodes(Ln.statements,gn),qn=Pe(rn);Ke.flags&8388608&&($=!1),!e.isGlobalScopeAugmentation(Ke)&&!Nn(qn)&&!L&&($?qn=I.createNodeArray(Mt(Mt([],qn,!0),[e.createEmptyExports(I)],!1)):qn=e.visitNodes(qn,xe));var it=I.updateModuleBlock(Ln,qn);v=Pn,$=Xe,L=Dn;var ht=ct(Ke);return la(I.updateModuleDeclaration(Ke,void 0,ht,e.isExternalModuleAugmentation(Ke)?$n(Ke,Ke.name):Ke.name,it))}else{v=Pn;var ht=ct(Ke);v=!1,e.visitNode(Ln,gn);var Et=e.getOriginalNodeId(Ln),it=ie.get(Et);return ie.delete(Et),la(I.updateModuleDeclaration(Ke,void 0,ht,Ke.name,it))}}case 255:{A=Ke.name,f=Ke;var K=I.createNodeArray(ct(Ke)),zt=o(Ke,Ke.typeParameters),fr=e.getFirstConstructorWithBody(Ke),br=void 0;if(fr){var Jt=Z;br=e.compact(e.flatMap(fr.parameters,function(rr){if(!e.hasSyntacticModifier(rr,16476)||Je(rr))return;if(Z=e.createGetSymbolAccessibilityDiagnosticForNode(rr),rr.name.kind===79)return tn(I.createPropertyDeclaration(void 0,ct(rr),rr.name,rr.questionToken,Ne(rr,rr.type),Ye(rr)),rr);return Wt(rr.name);function Wt(Pr){for(var ra,Lt=0,xt=Pr.elements;Lt<xt.length;Lt++){var Yt=xt[Lt];if(e.isOmittedExpression(Yt))continue;e.isBindingPattern(Yt.name)&&(ra=e.concatenate(ra,Wt(Yt.name))),ra=ra||[],ra.push(I.createPropertyDeclaration(void 0,ct(rr),Yt.name,void 0,Ne(Yt,void 0),void 0))}return ra}})),Z=Jt}var mr=e.some(Ke.members,function(rr){return!!rr.name&&e.isPrivateIdentifier(rr.name)}),Ht=mr?[I.createPropertyDeclaration(void 0,void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Xr=e.concatenate(e.concatenate(Ht,br),e.visitNodes(Ke.members,ke)),At=I.createNodeArray(Xr),Wr=e.getEffectiveBaseTypeNode(Ke);if(Wr&&!e.isEntityNameExpression(Wr.expression)&&Wr.expression.kind!==104){var Or=Ke.name?e.unescapeLeadingUnderscores(Ke.name.escapedText):"default",Ja=I.createUniqueName(Or+"_base",16);Z=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Wr,typeName:Ke.name}};var qa=I.createVariableDeclaration(Ja,void 0,T.createTypeOfExpression(Wr.expression,Ke,Y,B),void 0),eo=I.createVariableStatement(v?[I.createModifier(134)]:[],I.createVariableDeclarationList([qa],2)),Va=I.createNodeArray(e.map(Ke.heritageClauses,function(rr){if(rr.token===94){var Wt=Z;Z=e.createGetSymbolAccessibilityDiagnosticForNode(rr.types[0]);var Pr=I.updateHeritageClause(rr,e.map(rr.types,function(ra){return I.updateExpressionWithTypeArguments(ra,Ja,e.visitNodes(ra.typeArguments,ke))}));return Z=Wt,Pr}return I.updateHeritageClause(rr,e.visitNodes(I.createNodeArray(e.filter(rr.types,function(ra){return e.isEntityNameExpression(ra.expression)||ra.expression.kind===104})),ke))}));return[eo,la(I.updateClassDeclaration(Ke,void 0,K,Ke.name,zt,Va,At))]}else{var Va=$t(Ke.heritageClauses);return la(I.updateClassDeclaration(Ke,void 0,K,Ke.name,zt,Va,At))}}case 235:return la(wn(Ke));case 258:return la(I.updateEnumDeclaration(Ke,void 0,I.createNodeArray(ct(Ke)),Ke.name,I.createNodeArray(e.mapDefined(Ke.members,function(wt){if(Je(wt))return;var rr=T.getConstantValue(wt);return tn(I.updateEnumMember(wt,wt.name,rr!==void 0?typeof rr=="string"?I.createStringLiteral(rr):I.createNumericLiteral(rr):void 0),wt)}))))}return e.Debug.assertNever(Ke,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[Ke.kind]);function la(wt){return Cn(Ke)&&(E=Vn),Zn&&(Z=Re),Ke.kind===259&&(v=Pn),wt===Ke?wt:(f=void 0,A=void 0,wt&&e.setOriginalNode(tn(wt,Ke),Ke))}}function wn(Ke){if(!e.forEach(Ke.declarationList.declarations,Wn))return;var Vn=e.visitNodes(Ke.declarationList.declarations,ke);return e.length(Vn)?I.updateVariableStatement(Ke,I.createNodeArray(ct(Ke)),I.updateVariableDeclarationList(Ke.declarationList,Vn)):void 0}function Be(Ke){return e.flatten(e.mapDefined(Ke.elements,function(Vn){return hn(Vn)}))}function hn(Ke){if(Ke.kind===225)return;if(Ke.name)return Wn(Ke)?e.isBindingPattern(Ke.name)?Be(Ke.name):I.createVariableDeclaration(Ke.name,void 0,Ne(Ke,void 0),void 0):void 0}function Kn(Ke){var Vn;le||(Vn=Z,Z=e.createGetSymbolAccessibilityDiagnosticForNodeName(Ke)),A=Ke.name,e.Debug.assert(T.isLateBound(e.getParseTreeNode(Ke)));var Zn=Ke,Re=Zn.name.expression;z(Re,E),le||(Z=Vn),A=void 0}function Je(Ke){return!!N&&!!Ke&&ee(Ke,F)}function En(Ke){return e.isExportAssignment(Ke)||e.isExportDeclaration(Ke)}function Nn(Ke){return e.some(Ke,En)}function ct(Ke){var Vn=e.getEffectiveModifierFlags(Ke),Zn=yt(Ke);return Vn===Zn?Ke.modifiers:I.createModifiersFromModifierFlags(Zn)}function yt(Ke){var Vn=27647^(4|256|16384),Zn=v&&!ne(Ke)?2:0,Re=Ke.parent.kind===300;return(!Re||W&&Re&&e.isExternalModule(Ke.parent))&&(Vn^=2,Zn=0),O(Ke,Vn,Zn)}function Gt(Ke,Vn){var Zn=w(Ke);return!Zn&&Ke!==Vn.firstAccessor&&(Zn=w(Vn.firstAccessor),Z=e.createGetSymbolAccessibilityDiagnosticForNode(Vn.firstAccessor)),!Zn&&Vn.secondAccessor&&Ke!==Vn.secondAccessor&&(Zn=w(Vn.secondAccessor),Z=e.createGetSymbolAccessibilityDiagnosticForNode(Vn.secondAccessor)),Zn}function $t(Ke){return I.createNodeArray(e.filter(e.map(Ke,function(Vn){return I.updateHeritageClause(Vn,e.visitNodes(I.createNodeArray(e.filter(Vn.types,function(Zn){return e.isEntityNameExpression(Zn.expression)||Vn.token===94&&Zn.expression.kind===104})),ke))}),function(Vn){return Vn.types&&!!Vn.types.length}))}}e.transformDeclarations=V;function ne(_){return _.kind===256}function _e(_,U,Z){return e.factory.createModifiersFromModifierFlags(O(_,U,Z))}function O(_,U,Z){U===void 0&&(U=27647^4),Z===void 0&&(Z=0);var v=e.getEffectiveModifierFlags(_)&U|Z;return v&512&&!(v&1)&&(v^=1),v&512&&v&2&&(v^=2),v}function w(_){if(_)return _.kind===170?_.type:_.parameters.length>0?_.parameters[0].type:void 0}function b(_){switch(_.kind){case 165:case 164:return!e.hasEffectiveModifier(_,8);case 162:case 252:return!0}return!1}function de(_){switch(_.kind){case 254:case 259:case 263:case 256:case 255:case 257:case 258:case 235:case 264:case 270:case 269:return!0}return!1}function fe(_){switch(_.kind){case 173:case 169:case 167:case 170:case 171:case 165:case 164:case 166:case 172:case 174:case 252:case 161:case 226:case 176:case 187:case 177:case 178:case 198:return!0}return!1}})(mn||(mn={}));var mn;(function(e){function s(U){switch(U){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var ue;(function(U){U[U.Uninitialized=0]="Uninitialized",U[U.Initialized=1]="Initialized",U[U.Completed=2]="Completed",U[U.Disposed=3]="Disposed"})(ue||(ue={}));var ee;(function(U){U[U.Substitution=1]="Substitution",U[U.EmitNotifications=2]="EmitNotifications"})(ee||(ee={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function Y(U,Z,v){return{scriptTransformers:V(U,Z,v),declarationTransformers:ne(Z)}}e.getTransformers=Y;function V(U,Z,v){if(v)return e.emptyArray;var W=e.getEmitScriptTarget(U),x=e.getEmitModuleKind(U),$=[];return e.addRange($,Z&&e.map(Z.before,w)),$.push(e.transformTypeScript),$.push(e.transformClassFields),e.getJSXTransformEnabled(U)&&$.push(e.transformJsx),W<99&&$.push(e.transformESNext),W<8&&$.push(e.transformES2021),W<7&&$.push(e.transformES2020),W<6&&$.push(e.transformES2019),W<5&&$.push(e.transformES2018),W<4&&$.push(e.transformES2017),W<3&&$.push(e.transformES2016),W<2&&($.push(e.transformES2015),$.push(e.transformGenerators)),$.push(s(x)),W<1&&$.push(e.transformES5),e.addRange($,Z&&e.map(Z.after,w)),$}function ne(U){var Z=[];return Z.push(e.transformDeclarations),e.addRange(Z,U&&e.map(U.afterDeclarations,b)),Z}function _e(U){return function(Z){return e.isBundle(Z)?U.transformBundle(Z):U.transformSourceFile(Z)}}function O(U,Z){return function(v){var W=U(v);return typeof W=="function"?Z(v,W):_e(W)}}function w(U){return O(U,e.chainBundle)}function b(U){return O(U,function(Z,v){return v})}function de(U,Z){return Z}e.noEmitSubstitution=de;function fe(U,Z,v){v(U,Z)}e.noEmitNotification=fe;function _(U,Z,v,W,x,$,L){for(var E=new Array(350),ae,X,ie,le=0,P=[],I=[],re=[],B=[],A=0,f=!1,F=[],g=0,p,d,T=de,m=fe,k=0,N=[],D={factory:v,getCompilerOptions:function(){return W},getEmitResolver:function(){return U},getEmitHost:function(){return Z},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(D)}),startLexicalEnvironment:Me,suspendLexicalEnvironment:fn,resumeLexicalEnvironment:Ye,endLexicalEnvironment:Ne,setLexicalEnvironmentFlags:je,getLexicalEnvironmentFlags:xn,hoistVariableDeclaration:Le,hoistFunctionDeclaration:qe,addInitializationStatement:pe,startBlockScope:Wn,endBlockScope:dn,addBlockScopedVariable:vn,requestEmitHelper:o,readEmitHelpers:Cn,enableSubstitution:be,enableEmitNotification:Se,isSubstitutionEnabled:Ce,isEmitNotificationEnabled:$e,get onSubstituteNode(){return T},set onSubstituteNode(tn){e.Debug.assert(k<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(tn!==void 0,"Value must not be 'undefined'"),T=tn},get onEmitNode(){return m},set onEmitNode(tn){e.Debug.assert(k<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(tn!==void 0,"Value must not be 'undefined'"),m=tn},addDiagnostic:function(tn){N.push(tn)}},R=0,me=x;R<me.length;R++){var q=me[R];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(q)))}e.performance.mark("beforeTransform");var J=$.map(function(tn){return tn(D)}),C=function(tn){for(var $n=0,Un=J;$n<Un.length;$n++){var oe=Un[$n];tn=oe(tn)}return tn};k=1;for(var we=[],Oe=0,te=x;Oe<te.length;Oe++){var q=te[Oe];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",q.kind===300?{path:q.path}:{kind:q.kind,pos:q.pos,end:q.end}),we.push((L?C:Te)(q)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return k=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:we,substituteNode:Ue,emitNodeWithNotification:ce,isEmitNotificationEnabled:$e,dispose:z,diagnostics:N};function Te(tn){return tn&&(!e.isSourceFile(tn)||!tn.isDeclarationFile)?C(tn):tn}function be(tn){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),E[tn]|=1}function Ce(tn){return(E[tn.kind]&1)!==0&&(e.getEmitFlags(tn)&4)===0}function Ue(tn,$n){return e.Debug.assert(k<3,"Cannot substitute a node after the result is disposed."),$n&&Ce($n)&&T(tn,$n)||$n}function Se(tn){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),E[tn]|=2}function $e(tn){return(E[tn.kind]&2)!==0||(e.getEmitFlags(tn)&2)!==0}function ce(tn,$n,Un){e.Debug.assert(k<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),$n&&($e($n)?m(tn,$n,Un):Un(tn,$n))}function Le(tn){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed.");var $n=e.setEmitFlags(v.createVariableDeclaration(tn),64);ae?ae.push($n):ae=[$n],le&1&&(le|=2)}function qe(tn){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(tn,1048576),X?X.push(tn):X=[tn]}function pe(tn){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(tn,1048576),ie?ie.push(tn):ie=[tn]}function Me(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),P[A]=ae,I[A]=X,re[A]=ie,B[A]=le,A++,ae=void 0,X=void 0,ie=void 0,le=0}function fn(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0}function Ye(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1}function Ne(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended.");var tn;if(ae||X||ie){if(X&&(tn=Mt([],X,!0)),ae){var $n=v.createVariableStatement(void 0,v.createVariableDeclarationList(ae));e.setEmitFlags($n,1048576),tn?tn.push($n):tn=[$n]}ie&&(tn?tn=Mt(Mt([],tn,!0),ie,!0):tn=Mt([],ie,!0))}return A--,ae=P[A],X=I[A],ie=re[A],le=B[A],A===0&&(P=[],I=[],re=[],B=[]),tn}function je(tn,$n){le=$n?le|tn:le&~tn}function xn(){return le}function Wn(){e.Debug.assert(k>0,"Cannot start a block scope during initialization."),e.Debug.assert(k<2,"Cannot start a block scope after transformation has completed."),F[g]=p,g++,p=void 0}function dn(){e.Debug.assert(k>0,"Cannot end a block scope during initialization."),e.Debug.assert(k<2,"Cannot end a block scope after transformation has completed.");var tn=e.some(p)?[v.createVariableStatement(void 0,v.createVariableDeclarationList(p.map(function($n){return v.createVariableDeclaration($n)}),1))]:void 0;return g--,p=F[g],g===0&&(F=[]),tn}function vn(tn){e.Debug.assert(g>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(tn)}function o(tn){if(e.Debug.assert(k>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!tn.scoped,"Cannot request a scoped emit helper."),tn.dependencies)for(var $n=0,Un=tn.dependencies;$n<Un.length;$n++){var oe=Un[$n];o(oe)}d=e.append(d,tn)}function Cn(){e.Debug.assert(k>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed.");var tn=d;return d=void 0,tn}function z(){if(k<3){for(var tn=0,$n=x;tn<$n.length;tn++){var Un=$n[tn];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Un)))}ae=void 0,P=void 0,X=void 0,I=void 0,T=void 0,m=void 0,d=void 0,k=3}}}e.transformNodes=_,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:de,onEmitNode:fe,addDiagnostic:e.noop}})(mn||(mn={}));var mn;(function(e){var s=I();function ue(f){return e.fileExtensionIs(f,".tsbuildinfo")}e.isBuildInfoFile=ue;function ee(f,F,g,p,d,T){p===void 0&&(p=!1);var m=e.isArray(g)?g:e.getSourceFilesToEmit(f,g,p),k=f.getCompilerOptions();if(e.outFile(k)){var N=f.getPrependNodes();if(m.length||N.length){var D=e.factory.createBundle(m,N),R=F(ne(D,f,p),D);if(R)return R}}else{if(!d)for(var me=0,q=m;me<q.length;me++){var J=q[me],R=F(ne(J,f,p),J);if(R)return R}if(T){var C=Y(k);if(C)return F({buildInfoPath:C},void 0)}}}e.forEachEmittedFile=ee;function Y(f){var F=f.configFilePath;if(!e.isIncrementalCompilation(f))return;if(f.tsBuildInfoFile)return f.tsBuildInfoFile;var g=e.outFile(f),p;if(g)p=e.removeFileExtension(g);else{if(!F)return;var d=e.removeFileExtension(F);p=f.outDir?f.rootDir?e.resolvePath(f.outDir,e.getRelativePathFromDirectory(f.rootDir,d,!0)):e.combinePaths(f.outDir,e.getBaseFileName(d)):d}return p+".tsbuildinfo"}e.getTsBuildInfoEmitOutputFilePath=Y;function V(f,F){var g=e.outFile(f),p=f.emitDeclarationOnly?void 0:g,d=p&&_e(p,f),T=F||e.getEmitDeclarations(f)?e.removeFileExtension(g)+".d.ts":void 0,m=T&&e.getAreDeclarationMapsEnabled(f)?T+".map":void 0,k=Y(f);return{jsFilePath:p,sourceMapFilePath:d,declarationFilePath:T,declarationMapPath:m,buildInfoPath:k}}e.getOutputPathsForBundle=V;function ne(f,F,g){var p=F.getCompilerOptions();if(f.kind===301)return V(p,g);var d=e.getOwnEmitOutputFilePath(f.fileName,F,O(f,p)),T=e.isJsonSourceFile(f),m=T&&e.comparePaths(f.fileName,d,F.getCurrentDirectory(),!F.useCaseSensitiveFileNames())===0,k=p.emitDeclarationOnly||m?void 0:d,N=!k||e.isJsonSourceFile(f)?void 0:_e(k,p),D=g||e.getEmitDeclarations(p)&&!T?e.getDeclarationEmitOutputFilePath(f.fileName,F):void 0,R=D&&e.getAreDeclarationMapsEnabled(p)?D+".map":void 0;return{jsFilePath:k,sourceMapFilePath:N,declarationFilePath:D,declarationMapPath:R,buildInfoPath:void 0}}e.getOutputPathsFor=ne;function _e(f,F){return F.sourceMap&&!F.inlineSourceMap?f+".map":void 0}function O(f,F){if(e.isJsonSourceFile(f))return".json";if(F.jsx===1){if(e.isSourceFileJS(f)){if(e.fileExtensionIs(f.fileName,".jsx"))return".jsx"}else if(f.languageVariant===1)return".jsx"}return".js"}e.getOutputExtension=O;function w(f,F,g,p,d){return p?e.resolvePath(p,e.getRelativePathFromDirectory(d?d():v(F,g),f,g)):f}function b(f,F,g,p){return e.Debug.assert(!e.fileExtensionIs(f,".d.ts")&&!e.fileExtensionIs(f,".json")),e.changeExtension(w(f,F,g,F.options.declarationDir||F.options.outDir,p),".d.ts")}e.getOutputDeclarationFileName=b;function de(f,F,g,p){if(F.options.emitDeclarationOnly)return;var d=e.fileExtensionIs(f,".json"),T=e.changeExtension(w(f,F,g,F.options.outDir,p),d?".json":F.options.jsx===1&&(e.fileExtensionIs(f,".tsx")||e.fileExtensionIs(f,".jsx"))?".jsx":".js");return!d||e.comparePaths(f,T,e.Debug.checkDefined(F.options.configFilePath),g)!==0?T:void 0}function fe(){var f;return{addOutput:F,getOutputs:g};function F(p){p&&(f||(f=[])).push(p)}function g(){return f||e.emptyArray}}function _(f,F){var g=V(f.options,!1),p=g.jsFilePath,d=g.sourceMapFilePath,T=g.declarationFilePath,m=g.declarationMapPath,k=g.buildInfoPath;F(p),F(d),F(T),F(m),F(k)}function U(f,F,g,p,d){if(e.fileExtensionIs(F,".d.ts"))return;var T=de(F,f,g,d);if(p(T),e.fileExtensionIs(F,".json"))return;if(T&&f.options.sourceMap&&p(T+".map"),e.getEmitDeclarations(f.options)){var m=b(F,f,g,d);p(m),f.options.declarationMap&&p(m+".map")}}function Z(f,F,g,p,d){var T;return f.rootDir?(T=e.getNormalizedAbsolutePath(f.rootDir,g),d==null||d(f.rootDir)):f.composite&&f.configFilePath?(T=e.getDirectoryPath(e.normalizeSlashes(f.configFilePath)),d==null||d(T)):T=e.computeCommonSourceDirectoryOfFilenames(F(),g,p),T&&T[T.length-1]!==e.directorySeparator&&(T+=e.directorySeparator),T}e.getCommonSourceDirectory=Z;function v(f,F){var g=f.options,p=f.fileNames;return Z(g,function(){return e.filter(p,function(d){return!(g.noEmitForJsFiles&&e.fileExtensionIsOneOf(d,e.supportedJSExtensions))&&!e.fileExtensionIs(d,".d.ts")})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(g.configFilePath))),e.createGetCanonicalFileName(!F))}e.getCommonSourceDirectoryOfConfig=v;function W(f,F){var g=fe(),p=g.addOutput,d=g.getOutputs;if(e.outFile(f.options))_(f,p);else{for(var T=e.memoize(function(){return v(f,F)}),m=0,k=f.fileNames;m<k.length;m++){var N=k[m];U(f,N,F,p,T)}p(Y(f.options))}return d()}e.getAllProjectOutputs=W;function x(f,F,g){F=e.normalizePath(F),e.Debug.assert(e.contains(f.fileNames,F),"Expected fileName to be present in command line");var p=fe(),d=p.addOutput,T=p.getOutputs;return e.outFile(f.options)?_(f,d):U(f,F,g,d),T()}e.getOutputFileNames=x;function $(f,F){if(e.outFile(f.options)){var g=V(f.options,!1).jsFilePath;return e.Debug.checkDefined(g,"project "+f.options.configFilePath+" expected to have at least one output")}for(var p=e.memoize(function(){return v(f,F)}),d=0,T=f.fileNames;d<T.length;d++){var m=T[d];if(e.fileExtensionIs(m,".d.ts"))continue;var g=de(m,f,F,p);if(g)return g;if(e.fileExtensionIs(m,".json"))continue;if(e.getEmitDeclarations(f.options))return b(m,f,F,p)}var k=Y(f.options);return k||e.Debug.fail("project "+f.options.configFilePath+" expected to have at least one output")}e.getFirstProjectOutput=$;function L(f,F,g,p,d,T,m){var k=p.scriptTransformers,N=p.declarationTransformers,D=F.getCompilerOptions(),R=D.sourceMap||D.inlineSourceMap||e.getAreDeclarationMapsEnabled(D)?[]:void 0,me=D.listEmittedFiles?[]:void 0,q=e.createDiagnosticCollection(),J=e.getNewLineCharacter(D,function(){return F.getNewLine()}),C=e.createTextWriter(J),we=e.performance.createTimer("printTime","beforePrint","afterPrint"),Oe=we.enter,te=we.exit,Te,be=!1,Ce;return Oe(),ee(F,Ue,e.getSourceFilesToEmit(F,g,m),m,T,!g),te(),{emitSkipped:be,diagnostics:q.getDiagnostics(),emittedFiles:me,sourceMaps:R,exportedModulesFromDeclarationEmit:Ce};function Ue(Ne,je){var xn=Ne.jsFilePath,Wn=Ne.sourceMapFilePath,dn=Ne.declarationFilePath,vn=Ne.declarationMapPath,o=Ne.buildInfoPath,Cn;o&&je&&e.isBundle(je)&&(Cn=e.getDirectoryPath(e.getNormalizedAbsolutePath(o,F.getCurrentDirectory())),Te={commonSourceDirectory:z(F.getCommonSourceDirectory()),sourceFiles:je.sourceFiles.map(function(tn){return z(e.getNormalizedAbsolutePath(tn.fileName,F.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:xn}),$e(je,xn,Wn,z),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:dn}),ce(je,dn,vn,z),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:o}),Se(Te,o),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!be&&me&&(d||(xn&&me.push(xn),Wn&&me.push(Wn),o&&me.push(o)),dn&&me.push(dn),vn&&me.push(vn));function z(tn){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Cn,tn,F.getCanonicalFileName))}}function Se(Ne,je){if(!je||g||be)return;var xn=F.getProgramBuildInfo();if(F.isEmitBlocked(je)){be=!0;return}var Wn=e.version;e.writeFile(F,q,je,E({bundle:Ne,program:xn,version:Wn}),!1)}function $e(Ne,je,xn,Wn){if(!Ne||d||!je)return;if(je&&F.isEmitBlocked(je)||D.noEmit){be=!0;return}var dn=e.transformNodes(f,F,e.factory,D,[Ne],k,!1),vn={removeComments:D.removeComments,newLine:D.newLine,noEmitHelpers:D.noEmitHelpers,module:D.module,target:D.target,sourceMap:D.sourceMap,inlineSourceMap:D.inlineSourceMap,inlineSources:D.inlineSources,extendedDiagnostics:D.extendedDiagnostics,writeBundleFileInfo:!!Te,relativeToBuildInfo:Wn},o=P(vn,{hasGlobalName:f.hasGlobalName,onEmitNode:dn.emitNodeWithNotification,isEmitNotificationEnabled:dn.isEmitNotificationEnabled,substituteNode:dn.substituteNode});e.Debug.assert(dn.transformed.length===1,"Should only see one output from the transform"),qe(je,xn,dn.transformed[0],o,D),dn.dispose(),Te&&(Te.js=o.bundleFileInfo)}function ce(Ne,je,xn,Wn){if(!Ne)return;if(!je){(d||D.emitDeclarationOnly)&&(be=!0);return}var dn=e.isSourceFile(Ne)?[Ne]:Ne.sourceFiles,vn=m?dn:e.filter(dn,e.isSourceFileNotJson),o=e.outFile(D)?[e.factory.createBundle(vn,e.isSourceFile(Ne)?void 0:Ne.prepends)]:vn;d&&!e.getEmitDeclarations(D)&&vn.forEach(Le);var Cn=e.transformNodes(f,F,e.factory,D,o,N,!1);if(e.length(Cn.diagnostics))for(var z=0,tn=Cn.diagnostics;z<tn.length;z++){var $n=tn[z];q.add($n)}var Un={removeComments:D.removeComments,newLine:D.newLine,noEmitHelpers:!0,module:D.module,target:D.target,sourceMap:D.sourceMap,inlineSourceMap:D.inlineSourceMap,extendedDiagnostics:D.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!Te,recordInternalSection:!!Te,relativeToBuildInfo:Wn},oe=P(Un,{hasGlobalName:f.hasGlobalName,onEmitNode:Cn.emitNodeWithNotification,isEmitNotificationEnabled:Cn.isEmitNotificationEnabled,substituteNode:Cn.substituteNode}),Pe=!!Cn.diagnostics&&!!Cn.diagnostics.length||!!F.isEmitBlocked(je)||!!D.noEmit;if(be=be||Pe,(!Pe||m)&&(e.Debug.assert(Cn.transformed.length===1,"Should only see one output from the decl transform"),qe(je,xn,Cn.transformed[0],oe,{sourceMap:!m&&D.declarationMap,sourceRoot:D.sourceRoot,mapRoot:D.mapRoot,extendedDiagnostics:D.extendedDiagnostics}),m&&Cn.transformed[0].kind===300)){var ke=Cn.transformed[0];Ce=ke.exportedModulesFromDeclarationEmit}Cn.dispose(),Te&&(Te.dts=oe.bundleFileInfo)}function Le(Ne){if(e.isExportAssignment(Ne)){Ne.expression.kind===79&&f.collectLinkedAliases(Ne.expression,!0);return}else if(e.isExportSpecifier(Ne)){f.collectLinkedAliases(Ne.propertyName||Ne.name,!0);return}e.forEachChild(Ne,Le)}function qe(Ne,je,xn,Wn,dn){var vn=xn.kind===301?xn:void 0,o=xn.kind===300?xn:void 0,Cn=vn?vn.sourceFiles:[o],z;if(pe(dn,xn)&&(z=e.createSourceMapGenerator(F,e.getBaseFileName(e.normalizeSlashes(Ne)),Me(dn),fn(dn,Ne,o),dn)),vn?Wn.writeBundle(vn,C,z):Wn.writeFile(o,C,z),z){R&&R.push({inputSourceFileNames:z.getSources(),sourceMap:z.toJSON()});var tn=Ye(dn,z,Ne,je,o);if(tn&&(C.isAtStartOfLine()||C.rawWrite(J),C.writeComment("//# sourceMappingURL="+tn)),je){var $n=z.toString();e.writeFile(F,q,je,$n,!1,Cn)}}else C.writeLine();e.writeFile(F,q,Ne,C.getText(),!!D.emitBOM,Cn),C.clear()}function pe(Ne,je){return(Ne.sourceMap||Ne.inlineSourceMap)&&(je.kind!==300||!e.fileExtensionIs(je.fileName,".json"))}function Me(Ne){var je=e.normalizeSlashes(Ne.sourceRoot||"");return je&&e.ensureTrailingDirectorySeparator(je)}function fn(Ne,je,xn){if(Ne.sourceRoot)return F.getCommonSourceDirectory();if(Ne.mapRoot){var Wn=e.normalizeSlashes(Ne.mapRoot);return xn&&(Wn=e.getDirectoryPath(e.getSourceFilePathInNewDir(xn.fileName,F,Wn))),e.getRootLength(Wn)===0&&(Wn=e.combinePaths(F.getCommonSourceDirectory(),Wn)),Wn}return e.getDirectoryPath(e.normalizePath(je))}function Ye(Ne,je,xn,Wn,dn){if(Ne.inlineSourceMap){var vn=je.toString(),o=e.base64encode(e.sys,vn);return"data:application/json;base64,"+o}var Cn=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(Wn)));if(Ne.mapRoot){var z=e.normalizeSlashes(Ne.mapRoot);return dn&&(z=e.getDirectoryPath(e.getSourceFilePathInNewDir(dn.fileName,F,z))),e.getRootLength(z)===0?(z=e.combinePaths(F.getCommonSourceDirectory(),z),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(xn)),e.combinePaths(z,Cn),F.getCurrentDirectory(),F.getCanonicalFileName,!0))):encodeURI(e.combinePaths(z,Cn))}return encodeURI(Cn)}}e.emitFiles=L;function E(f){return JSON.stringify(f)}e.getBuildInfoText=E;function ae(f){return JSON.parse(f)}e.getBuildInfo=ae,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(f){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function X(f,F,g){var p,d=e.Debug.checkDefined(f.js),T=((p=d.sources)===null||p===void 0?void 0:p.prologues)&&e.arrayToMap(d.sources.prologues,function(m){return m.file});return f.sourceFiles.map(function(m,k){var N,D,R=T==null?void 0:T.get(k),me=R==null?void 0:R.directives.map(function(C){var we=e.setTextRange(e.factory.createStringLiteral(C.expression.text),C.expression),Oe=e.setTextRange(e.factory.createExpressionStatement(we),C);return e.setParent(we,Oe),Oe}),q=e.factory.createToken(1),J=e.factory.createSourceFile(me!=null?me:[],q,0);return J.fileName=e.getRelativePathFromDirectory(g.getCurrentDirectory(),e.getNormalizedAbsolutePath(m,F),!g.useCaseSensitiveFileNames()),J.text=(N=R==null?void 0:R.text)!==null&&N!==void 0?N:"",e.setTextRangePosWidth(J,0,(D=R==null?void 0:R.text.length)!==null&&D!==void 0?D:0),e.setEachParent(J.statements,J),e.setTextRangePosWidth(q,J.end,0),e.setParent(q,J),J})}function ie(f,F,g,p){var d=V(f.options,!1),T=d.buildInfoPath,m=d.jsFilePath,k=d.sourceMapFilePath,N=d.declarationFilePath,D=d.declarationMapPath,R=F.readFile(e.Debug.checkDefined(T));if(!R)return T;var me=F.readFile(e.Debug.checkDefined(m));if(!me)return m;var q=k&&F.readFile(k);if(k&&!q||f.options.inlineSourceMap)return k||"inline sourcemap decoding";var J=N&&F.readFile(N);if(N&&!J)return N;var C=D&&F.readFile(D);if(D&&!C||f.options.inlineSourceMap)return D||"inline sourcemap decoding";var we=ae(R);if(!we.bundle||!we.bundle.js||J&&!we.bundle.dts)return T;var Oe=e.getDirectoryPath(e.getNormalizedAbsolutePath(T,F.getCurrentDirectory())),te=e.createInputFiles(me,J,k,q,D,C,m,N,T,we,!0),Te=[],be=e.createPrependNodes(f.projectReferences,g,function(Se){return F.readFile(Se)}),Ce=X(we.bundle,Oe,F),Ue={getPrependNodes:e.memoize(function(){return Mt(Mt([],be,!0),[te],!1)}),getCanonicalFileName:F.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(we.bundle.commonSourceDirectory,Oe)},getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return F.getCurrentDirectory()},getNewLine:function(){return F.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Ce},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(Se,$e,ce){switch(Se){case m:if(me===$e)return;break;case k:if(q===$e)return;break;case T:var Le=ae($e);Le.program=we.program;var qe=we.bundle,pe=qe.js,Me=qe.dts,fn=qe.sourceFiles;Le.bundle.js.sources=pe.sources,Me&&(Le.bundle.dts.sources=Me.sources),Le.bundle.sourceFiles=fn,Te.push({name:Se,text:E(Le),writeByteOrderMark:ce});return;case N:if(J===$e)return;break;case D:if(C===$e)return;break;default:e.Debug.fail("Unexpected path: "+Se)}Te.push({name:Se,text:$e,writeByteOrderMark:ce})},isEmitBlocked:e.returnFalse,readFile:function(Se){return F.readFile(Se)},fileExists:function(Se){return F.fileExists(Se)},useCaseSensitiveFileNames:function(){return F.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return L(e.notImplementedResolver,Ue,void 0,e.getTransformers(f.options,p)),Te}e.emitUsingBuildInfo=ie;var le;(function(f){f[f.Notification=0]="Notification",f[f.Substitution=1]="Substitution",f[f.Comments=2]="Comments",f[f.SourceMaps=3]="SourceMaps",f[f.Emit=4]="Emit"})(le||(le={}));function P(f,F){f===void 0&&(f={}),F===void 0&&(F={});var g=F.hasGlobalName,p=F.onEmitNode,d=p===void 0?e.noEmitNotification:p,T=F.isEmitNotificationEnabled,m=F.substituteNode,k=m===void 0?e.noEmitSubstitution:m,N=F.onBeforeEmitNode,D=F.onAfterEmitNode,R=F.onBeforeEmitNodeArray,me=F.onAfterEmitNodeArray,q=F.onBeforeEmitToken,J=F.onAfterEmitToken,C=!!f.extendedDiagnostics,we=e.getNewLineCharacter(f),Oe=e.getEmitModuleKind(f),te=new e.Map,Te,be,Ce,Ue,Se,$e,ce,Le,qe=f.preserveSourceNewlines,pe,Me,fn,Ye=Gf,Ne,je=f.writeBundleFileInfo?{sections:[]}:void 0,xn=je?e.Debug.checkDefined(f.relativeToBuildInfo):void 0,Wn=f.recordInternalSection,dn=0,vn="text",o=!0,Cn,z,tn=-1,$n,Un=-1,oe=-1,Pe=-1,ke=-1,Qe,gn,xe=!1,Ze=!!f.removeComments,wn,Be,hn=e.performance.createTimerIf(C,"commentTime","beforeComment","afterComment"),Kn=hn.enter,Je=hn.exit,En=e.factory.parenthesizer,Nn=cl();return Xe(),{printNode:ct,printList:yt,printFile:$t,printBundle:Gt,writeNode:Vn,writeList:Zn,writeFile:Bn,writeBundle:lt,bundleFileInfo:je};function ct(y,en,ft){switch(y){case 0:e.Debug.assert(e.isSourceFile(en),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(en),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(en),"Expected an Expression node.");break}switch(en.kind){case 300:return $t(en);case 301:return Gt(en);case 302:return Ke(en)}return Vn(y,en,ft,K()),An()}function yt(y,en,ft){return Zn(y,en,ft,K()),An()}function Gt(y){return lt(y,K(),void 0),An()}function $t(y){return Bn(y,K(),void 0),An()}function Ke(y){return Fe(y,K()),An()}function Vn(y,en,ft,Ut){var _a=Me;Ln(Ut,void 0),Fn(y,en,ft),Xe(),Me=_a}function Zn(y,en,ft,Ut){var _a=Me;Ln(Ut,void 0),ft&&ln(ft),qo(void 0,en,y),Xe(),Me=_a}function Re(){return Me.getTextPosWithWriteLine?Me.getTextPosWithWriteLine():Me.getTextPos()}function Pn(y,en,ft){var Ut=e.lastOrUndefined(je.sections);Ut&&Ut.kind===ft?Ut.end=en:je.sections.push({pos:y,end:en,kind:ft})}function rt(y){if(Wn&&je&&Te&&(e.isDeclaration(y)||e.isVariableStatement(y))&&e.isInternalDeclaration(y,Te)&&vn!=="internal"){var en=vn;return gt(Me.getTextPos()),dn=Re(),vn="internal",en}return}function Yn(y){y&&(gt(Me.getTextPos()),dn=Re(),vn=y)}function gt(y){return dn<y?(Pn(dn,y,vn),!0):!1}function lt(y,en,ft){var Ut;Ne=!1;var _a=Me;Ln(en,ft),uf(y),Ff(y),eo(y),Gs(y);for(var Na=0,ja=y.prepends;Na<ja.length;Na++){var ii=ja[Na];Is();var Yi=Me.getTextPos(),ss=je&&je.sections;if(ss&&(je.sections=[]),Fn(4,ii,void 0),je){var gs=je.sections;je.sections=ss,ii.oldFileOfCurrentEmit?(Ut=je.sections).push.apply(Ut,gs):(gs.forEach(function($c){return e.Debug.assert(e.isBundleFileTextLike($c))}),je.sections.push({pos:Yi,end:Me.getTextPos(),kind:"prepend",data:xn(ii.fileName),texts:gs}))}}dn=Re();for(var xl=0,Os=y.sourceFiles;xl<Os.length;xl++){var Ml=Os[xl];Fn(0,Ml,Ml)}if(je&&y.sourceFiles.length){var Zc=Me.getTextPos();if(gt(Zc)){var Yu=cp(y);Yu&&(je.sources||(je.sources={}),je.sources.prologues=Yu);var Fl=qa(y);Fl&&(je.sources||(je.sources={}),je.sources.helpers=Fl)}}Xe(),Me=_a}function Fe(y,en){var ft=Me;Ln(en,void 0),Fn(4,y,void 0),Xe(),Me=ft}function Bn(y,en,ft){Ne=!0;var Ut=Me;Ln(en,ft),uf(y),Ff(y),Fn(0,y,y),Xe(),Me=Ut}function K(){return fn||(fn=e.createTextWriter(we))}function An(){var y=fn.getText();return fn.clear(),y}function Fn(y,en,ft){ft&&ln(ft),fr(y,en,void 0)}function ln(y){Te=y,Qe=void 0,gn=void 0,y&&qf(y)}function Ln(y,en){y&&f.omitTrailingSemicolon&&(y=e.getTrailingSemicolonDeferringWriter(y)),Me=y,Cn=en,o=!Me||!Cn}function Xe(){be=[],Ce=[],Ue=new e.Set,Se=[],$e=0,ce=[],Te=void 0,Qe=void 0,gn=void 0,Ln(void 0,void 0)}function Dn(){return Qe||(Qe=e.getLineStarts(Te))}function rn(y,en){if(y===void 0)return;var ft=rt(y);fr(4,y,en),Yn(ft)}function qn(y){if(y===void 0)return;fr(2,y,void 0)}function it(y,en){if(y===void 0)return;fr(1,y,en)}function ht(y){fr(e.isStringLiteral(y)?6:4,y)}function Et(y){qe&&e.getEmitFlags(y)&134217728&&(qe=!1)}function zt(y){qe=y}function fr(y,en,ft){Be=ft;var Ut=mr(0,y,en);Ut(y,en),Be=void 0}function br(y){return!Ze&&!e.isSourceFile(y)}function Jt(y){return!o&&!e.isSourceFile(y)&&!e.isInJsonFile(y)&&!e.isUnparsedSource(y)&&!e.isUnparsedPrepend(y)}function mr(y,en,ft){switch(y){case 0:if(d!==e.noEmitNotification&&(!T||T(ft)))return Xr;case 1:if(k!==e.noEmitSubstitution&&(wn=k(en,ft)||ft)!==ft)return Be&&(wn=Be(wn)),Ja;case 2:if(br(ft))return Fd;case 3:if(Jt(ft))return Ud;case 4:return At;default:return e.Debug.assertNever(y)}}function Ht(y,en,ft){return mr(y+1,en,ft)}function Xr(y,en){var ft=Ht(0,y,en);d(y,en,ft)}function At(y,en){if(N==null||N(en),qe){var ft=qe;Et(en),Wr(y,en),zt(ft)}else Wr(y,en);D==null||D(en),Be=void 0}function Wr(y,en){if(y===0)return jo(e.cast(en,e.isSourceFile));if(y===2)return Lt(e.cast(en,e.isIdentifier));if(y===6)return wt(e.cast(en,e.isStringLiteral),!0);if(y===3)return Or(e.cast(en,e.isTypeParameterDeclaration));if(y===5)return e.Debug.assertNode(en,e.isEmptyStatement),ms(!0);if(y===4){switch(en.kind){case 15:case 16:case 17:return wt(en,!1);case 79:return Lt(en);case 80:return xt(en);case 159:return Yt(en);case 160:return sr(en);case 161:return at(en);case 162:return ea(en);case 163:return Fa(en);case 164:return li(en);case 165:return Si(en);case 166:return Qr(en);case 167:return ci(en);case 168:return Mi(en);case 169:return ro(en);case 170:case 171:return xi(en);case 172:return ui(en);case 173:return lo(en);case 174:return xo(en);case 175:return Qi(en);case 176:return mo(en);case 177:return Rs(en);case 178:return wo(en);case 179:return Lo(en);case 180:return _s(en);case 181:return Oi(en);case 182:return fs(en);case 183:return Ms(en);case 185:return yn(en);case 186:return _t(en);case 187:return tr(en);case 188:return oa(en);case 189:return Za(en);case 226:return dr(en);case 190:return Ga();case 191:return He(en);case 192:return se(en);case 193:return pn(en);case 194:return j(en);case 195:return Mo(en);case 196:return De(en);case 197:return Vi(en);case 198:return Ve(en);case 199:return un(en);case 200:return jn(en);case 201:return mt(en);case 231:return bo(en);case 232:return os();case 233:return On(en);case 235:return ps(en);case 234:return ms(!1);case 236:return _l(en);case 237:return Gi(en);case 238:return pl(en);case 239:return Ec(en);case 240:return lc(en);case 241:return Pc(en);case 242:return oc(en);case 243:return cc(en);case 244:return Zl(en);case 245:return ot(en);case 246:return Nt(en);case 247:return or(en);case 248:return Sr(en);case 249:return Er(en);case 250:return Gr(en);case 251:return $r(en);case 252:return zr(en);case 253:return wi(en);case 254:return Ta(en);case 255:return Vt(en);case 256:return Da(en);case 257:return gi(en);case 258:return Eo(en);case 259:return Fo(en);case 260:return bs(en);case 261:return Li(en);case 262:return tl(en);case 263:return Uo(en);case 264:return Zo(en);case 265:return Ds(en);case 266:return Vs(en);case 272:return su(en);case 267:return iu(en);case 268:return fc(en);case 269:return ou(en);case 270:return oo(en);case 271:return Au(en);case 273:return lu(en);case 274:return;case 275:return Of(en);case 11:return pa(en);case 278:case 281:return $a(en);case 279:case 282:return Tc(en);case 283:return yi(en);case 284:return Vo(en);case 285:return pc(en);case 286:return al(en);case 287:return a(en);case 288:return H(en);case 289:return nn(en);case 290:return In(en);case 291:return Gn(en);case 292:return bt(en);case 293:return pt(en);case 294:return It(en);case 295:return Wt(en);case 302:case 296:return rr(en);case 297:case 298:return Pr(en);case 299:return ra(en);case 300:return jo(en);case 301:return e.Debug.fail("Bundles should be printed using printBundle");case 303:return e.Debug.fail("InputFiles should not be printed");case 304:return Ci(en);case 305:return Qa(en);case 307:return Ur("*");case 308:return Ur("?");case 309:return Ca(en);case 310:return ai(en);case 311:return Pi(en);case 312:return Ls(en);case 184:case 313:return Io(en);case 314:return;case 315:return Pt(en);case 317:return qr(en);case 318:return pi(en);case 322:case 327:return es(en);case 323:case 324:return Wi(en);case 325:case 326:return;case 328:case 329:case 330:case 331:case 332:return;case 333:return hs(en);case 335:case 342:return Ya(en);case 334:case 336:case 337:case 338:return er(en);case 339:return uo(en);case 340:return $o(en);case 341:return jr(en);case 344:case 348:case 347:return}if(e.isExpression(en)&&(y=1,k!==e.noEmitSubstitution)){var ft=k(y,en)||en;ft!==en&&(en=ft,Be&&(en=Be(en)))}}if(y===1)switch(en.kind){case 8:case 9:return la(en);case 10:case 13:case 14:return wt(en,!1);case 79:return Lt(en);case 202:return St(en);case 203:return ir(en);case 204:return _r(en);case 205:return wa(en);case 206:return za(en);case 207:return bi(en);case 208:return Xi(en);case 209:return co(en);case 210:return Ss(en);case 211:return No(en);case 212:return Ks(en);case 213:return gl(en);case 214:return yl(en);case 215:return Ol(en);case 216:return ac(en);case 217:return vs(en);case 218:return Pl(en);case 219:return Nn(en);case 220:return nl(en);case 221:return he(en);case 222:return Jn(en);case 223:return Ee(en);case 224:return Mn(en);case 225:return;case 227:return Yr(en);case 228:return da(en);case 229:return ya(en);case 230:return e.Debug.fail("SyntheticExpression should never be printed.");case 276:return Wl(en);case 277:return ad(en);case 280:return id(en);case 343:return e.Debug.fail("SyntaxList should not be printed");case 344:return;case 345:return Pf(en);case 346:return cf(en);case 347:case 348:return;case 349:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(en.kind))return dp(en,mi);if(e.isTokenKind(en.kind))return dp(en,Ur);e.Debug.fail("Unhandled SyntaxKind: "+e.Debug.formatSyntaxKind(en.kind)+".")}function Or(y){rn(y.name),wr(),mi("in"),wr(),rn(y.constraint)}function Ja(y,en){var ft=Ht(1,y,en);e.Debug.assertIsDefined(wn),en=wn,wn=void 0,ft(y,en)}function qa(y){var en;if(Oe===e.ModuleKind.None||f.noEmitHelpers)return;for(var ft=new e.Map,Ut=0,_a=y.sourceFiles;Ut<_a.length;Ut++){var Na=_a[Ut],ja=e.getExternalHelpersModuleName(Na)!==void 0,ii=Va(Na);if(!ii)continue;for(var Yi=0,ss=ii;Yi<ss.length;Yi++){var gs=ss[Yi];!gs.scoped&&!ja&&!ft.get(gs.name)&&(ft.set(gs.name,!0),(en||(en=[])).push(gs.name))}}return en}function eo(y){var en=!1,ft=y.kind===301?y:void 0;if(ft&&Oe===e.ModuleKind.None)return;for(var Ut=ft?ft.prepends.length:0,_a=ft?ft.sourceFiles.length+Ut:1,Na=0;Na<_a;Na++){var ja=ft?Na<Ut?ft.prepends[Na]:ft.sourceFiles[Na-Ut]:y,ii=e.isSourceFile(ja)?ja:e.isUnparsedSource(ja)?void 0:Te,Yi=f.noEmitHelpers||!!ii&&e.hasRecordedExternalHelpers(ii),ss=(e.isSourceFile(ja)||e.isUnparsedSource(ja))&&!Ne,gs=e.isUnparsedSource(ja)?ja.helpers:Va(ja);if(gs)for(var xl=0,Os=gs;xl<Os.length;xl++){var Ml=Os[xl];if(Ml.scoped){if(ft)continue}else{if(Yi)continue;if(ss){if(te.get(Ml.name))continue;te.set(Ml.name,!0)}}var Zc=Re();typeof Ml.text=="string"?Rd(Ml.text):Rd(Ml.text(pp)),je&&je.sections.push({pos:Zc,end:Me.getTextPos(),kind:"emitHelpers",data:Ml.name}),en=!0}}return en}function Va(y){var en=e.getEmitHelpers(y);return en&&e.stableSort(en,e.compareEmitHelpers)}function la(y){wt(y,!1)}function wt(y,en){var ft=pu(y,f.neverAsciiEscape,en);(f.sourceMap||f.inlineSourceMap)&&(y.kind===10||e.isTemplateLiteralKind(y.kind))?rs(ft):zc(ft)}function rr(y){for(var en=0,ft=y.texts;en<ft.length;en++){var Ut=ft[en];Is(),rn(Ut)}}function Wt(y){Me.rawWrite(y.parent.text.substring(y.pos,y.end))}function Pr(y){var en=Re();Wt(y),je&&Pn(en,Me.getTextPos(),y.kind===297?"text":"internal")}function ra(y){var en=Re();if(Wt(y),je){var ft=e.clone(y.section);ft.pos=en,ft.end=Me.getTextPos(),je.sections.push(ft)}}function Lt(y){var en=y.symbol?up:Ye;en(xc(y,!1),y.symbol),qo(y,y.typeArguments,53776)}function xt(y){var en=y.symbol?up:Ye;en(xc(y,!1),y.symbol)}function Yt(y){Qt(y.left),Ur("."),rn(y.right)}function Qt(y){y.kind===79?it(y):rn(y)}function sr(y){Ur("["),it(y.expression,En.parenthesizeExpressionOfComputedPropertyName),Ur("]")}function at(y){rn(y.name),y.constraint&&(wr(),mi("extends"),wr(),rn(y.constraint)),y.default&&(wr(),du("="),wr(),rn(y.default))}function ea(y){Ho(y,y.decorators),bl(y,y.modifiers),rn(y.dotDotDotToken),bd(y.name,Bf),rn(y.questionToken),y.parent&&y.parent.kind===312&&!y.name?rn(y.type):mc(y.type),od(y.initializer,y.type?y.type.end:y.questionToken?y.questionToken.end:y.name?y.name.end:y.modifiers?y.modifiers.end:y.decorators?y.decorators.end:y.pos,y,En.parenthesizeExpressionForDisallowedComma)}function Fa(y){Ur("@"),it(y.expression,En.parenthesizeLeftSideOfAccess)}function li(y){Ho(y,y.decorators),bl(y,y.modifiers),bd(y.name,xd),rn(y.questionToken),mc(y.type),Ko()}function Si(y){Ho(y,y.decorators),bl(y,y.modifiers),rn(y.name),rn(y.questionToken),rn(y.exclamationToken),mc(y.type),od(y.initializer,y.type?y.type.end:y.questionToken?y.questionToken.end:y.name.end,y),Ko()}function Qr(y){Uc(y),Ho(y,y.decorators),bl(y,y.modifiers),rn(y.name),rn(y.questionToken),Lu(y,y.typeParameters),El(y,y.parameters),mc(y.type),Ko(),Vc(y)}function ci(y){Ho(y,y.decorators),bl(y,y.modifiers),rn(y.asteriskToken),rn(y.name),rn(y.questionToken),ji(y,Ri)}function Mi(y){Ho(y,y.decorators),bl(y,y.modifiers),mi("static"),cn(y.body)}function ro(y){bl(y,y.modifiers),mi("constructor"),ji(y,Ri)}function xi(y){Ho(y,y.decorators),bl(y,y.modifiers),mi(y.kind===170?"get":"set"),wr(),rn(y.name),ji(y,Ri)}function ui(y){Uc(y),Ho(y,y.decorators),bl(y,y.modifiers),Lu(y,y.typeParameters),El(y,y.parameters),mc(y.type),Ko(),Vc(y)}function lo(y){Uc(y),Ho(y,y.decorators),bl(y,y.modifiers),mi("new"),wr(),Lu(y,y.typeParameters),El(y,y.parameters),mc(y.type),Ko(),Vc(y)}function xo(y){Ho(y,y.decorators),bl(y,y.modifiers),Td(y,y.parameters),mc(y.type),Ko()}function Vi(y){rn(y.type),rn(y.literal)}function os(){Ko()}function Qi(y){y.assertsModifier&&(rn(y.assertsModifier),wr()),rn(y.parameterName),y.type&&(wr(),mi("is"),wr(),rn(y.type))}function mo(y){rn(y.typeName),ks(y,y.typeArguments)}function Rs(y){Uc(y),Lu(y,y.typeParameters),hc(y,y.parameters),wr(),Ur("=>"),wr(),rn(y.type),Vc(y)}function Ls(y){mi("function"),El(y,y.parameters),Ur(":"),rn(y.type)}function Ca(y){Ur("?"),rn(y.type)}function ai(y){Ur("!"),rn(y.type)}function Pi(y){rn(y.type),Ur("=")}function wo(y){Uc(y),bl(y,y.modifiers),mi("new"),wr(),Lu(y,y.typeParameters),El(y,y.parameters),wr(),Ur("=>"),wr(),rn(y.type),Vc(y)}function Lo(y){mi("typeof"),wr(),rn(y.exprName)}function _s(y){Ur("{");var en=e.getEmitFlags(y)&1?768:32897;qo(y,y.members,en|524288),Ur("}")}function Oi(y){rn(y.elementType,En.parenthesizeElementTypeOfArrayType),Ur("["),Ur("]")}function Io(y){Ur("..."),rn(y.type)}function fs(y){kn(22,y.pos,Ur,y);var en=e.getEmitFlags(y)&1?528:657;qo(y,y.elements,en|524288),kn(23,y.elements.end,Ur,y)}function Mo(y){rn(y.dotDotDotToken),rn(y.name),rn(y.questionToken),kn(58,y.name.end,Ur,y),wr(),rn(y.type)}function Ms(y){rn(y.type,En.parenthesizeElementTypeOfArrayType),Ur("?")}function yn(y){qo(y,y.types,516,En.parenthesizeMemberOfElementType)}function _t(y){qo(y,y.types,520,En.parenthesizeMemberOfElementType)}function tr(y){rn(y.checkType,En.parenthesizeMemberOfConditionalType),wr(),mi("extends"),wr(),rn(y.extendsType,En.parenthesizeMemberOfConditionalType),wr(),Ur("?"),wr(),rn(y.trueType),wr(),Ur(":"),wr(),rn(y.falseType)}function oa(y){mi("infer"),wr(),rn(y.typeParameter)}function Za(y){Ur("("),rn(y.type),Ur(")")}function Ga(){mi("this")}function He(y){Ju(y.operator,mi),wr(),rn(y.type,En.parenthesizeMemberOfElementType)}function se(y){rn(y.objectType,En.parenthesizeMemberOfElementType),Ur("["),rn(y.indexType),Ur("]")}function pn(y){var en=e.getEmitFlags(y);Ur("{"),en&1?wr():(Is(),Rl()),y.readonlyToken&&(rn(y.readonlyToken),y.readonlyToken.kind!==143&&mi("readonly"),wr()),Ur("["),fr(3,y.typeParameter),y.nameType&&(wr(),mi("as"),wr(),rn(y.nameType)),Ur("]"),y.questionToken&&(rn(y.questionToken),y.questionToken.kind!==57&&Ur("?")),Ur(":"),wr(),rn(y.type),Ko(),en&1?wr():(Is(),sc()),Ur("}")}function j(y){it(y.literal)}function De(y){rn(y.head),qo(y,y.templateSpans,262144)}function Ve(y){y.isTypeOf&&(mi("typeof"),wr()),mi("import"),Ur("("),rn(y.argument),Ur(")"),y.qualifier&&(Ur("."),rn(y.qualifier)),ks(y,y.typeArguments)}function un(y){Ur("{"),qo(y,y.elements,525136),Ur("}")}function jn(y){Ur("["),qo(y,y.elements,524880),Ur("]")}function mt(y){rn(y.dotDotDotToken),y.propertyName&&(rn(y.propertyName),Ur(":"),wr()),rn(y.name),od(y.initializer,y.name.end,y,En.parenthesizeExpressionForDisallowedComma)}function St(y){var en=y.elements,ft=y.multiLine?65536:0;Sd(y,en,8914|ft,En.parenthesizeExpressionForDisallowedComma)}function ir(y){e.forEach(y.properties,Ns);var en=e.getEmitFlags(y)&65536;en&&Rl();var ft=y.multiLine?65536:0,Ut=Te.languageVersion>=1&&!e.isJsonSourceFile(Te)?64:0;qo(y,y.properties,526226|Ut|ft),en&&sc()}function _r(y){it(y.expression,En.parenthesizeLeftSideOfAccess);var en=y.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),y.expression.end,y.name.pos),ft=fu(y,y.expression,en),Ut=fu(y,en,y.name);ul(ft,!1);var _a=en.kind!==28&&na(y.expression)&&!Me.hasTrailingComment()&&!Me.hasTrailingWhitespace();_a&&Ur("."),y.questionDotToken?rn(en):kn(en.kind,y.expression.end,Ur,y),ul(Ut,!1),rn(y.name),Bc(ft,Ut)}function na(y){if(y=e.skipPartiallyEmittedExpressions(y),e.isNumericLiteral(y)){var en=pu(y,!0,!1);return!y.numericLiteralFlags&&!e.stringContains(en,e.tokenToString(24))}else if(e.isAccessExpression(y)){var ft=e.getConstantValue(y);return typeof ft=="number"&&isFinite(ft)&&Math.floor(ft)===ft}}function wa(y){it(y.expression,En.parenthesizeLeftSideOfAccess),rn(y.questionDotToken),kn(22,y.expression.end,Ur,y),it(y.argumentExpression),kn(23,y.argumentExpression.end,Ur,y)}function za(y){var en=e.getEmitFlags(y)&536870912;en&&(Ur("("),rs("0"),Ur(","),wr()),it(y.expression,En.parenthesizeLeftSideOfAccess),en&&Ur(")"),rn(y.questionDotToken),ks(y,y.typeArguments),Sd(y,y.arguments,2576,En.parenthesizeExpressionForDisallowedComma)}function bi(y){kn(103,y.pos,mi,y),wr(),it(y.expression,En.parenthesizeExpressionOfNew),ks(y,y.typeArguments),Sd(y,y.arguments,18960,En.parenthesizeExpressionForDisallowedComma)}function Xi(y){var en=e.getEmitFlags(y)&536870912;en&&(Ur("("),rs("0"),Ur(","),wr()),it(y.tag,En.parenthesizeLeftSideOfAccess),en&&Ur(")"),ks(y,y.typeArguments),wr(),it(y.template)}function co(y){Ur("<"),rn(y.type),Ur(">"),it(y.expression,En.parenthesizeOperandOfPrefixUnary)}function Ss(y){var en=kn(20,y.pos,Ur,y),ft=$l(y.expression,y);it(y.expression,void 0),Gp(y.expression,y),Bc(ft),kn(21,y.expression?y.expression.end:en,Ur,y)}function No(y){Tl(y.name),Oa(y)}function Ks(y){Ho(y,y.decorators),bl(y,y.modifiers),ji(y,Js)}function Js(y){Lu(y,y.typeParameters),hc(y,y.parameters),mc(y.type),wr(),rn(y.equalsGreaterThanToken)}function gl(y){kn(89,y.pos,mi,y),wr(),it(y.expression,En.parenthesizeOperandOfPrefixUnary)}function yl(y){kn(112,y.pos,mi,y),wr(),it(y.expression,En.parenthesizeOperandOfPrefixUnary)}function Ol(y){kn(114,y.pos,mi,y),wr(),it(y.expression,En.parenthesizeOperandOfPrefixUnary)}function ac(y){kn(131,y.pos,mi,y),wr(),it(y.expression,En.parenthesizeOperandOfPrefixUnary)}function vs(y){Ju(y.operator,du),ic(y)&&wr(),it(y.operand,En.parenthesizeOperandOfPrefixUnary)}function ic(y){var en=y.operand;return en.kind===217&&(y.operator===39&&(en.operator===39||en.operator===45)||y.operator===40&&(en.operator===40||en.operator===46))}function Pl(y){it(y.operand,En.parenthesizeOperandOfPostfixUnary),Ju(y.operator,du)}function cl(){return e.createBinaryExpressionTrampoline(y,en,ft,Ut,_a,void 0);function y(ja,ii){if(ii){ii.stackIndex++,ii.preserveSourceNewlinesStack[ii.stackIndex]=qe,ii.containerPosStack[ii.stackIndex]=oe,ii.containerEndStack[ii.stackIndex]=Pe,ii.declarationListContainerEndStack[ii.stackIndex]=ke;var Yi=ii.shouldEmitCommentsStack[ii.stackIndex]=br(ja),ss=ii.shouldEmitSourceMapsStack[ii.stackIndex]=Jt(ja);N==null||N(ja),Yi&&ud(ja),ss&&Pu(ja),Et(ja)}else ii={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ii}function en(ja,ii,Yi){return Na(ja,Yi,"left")}function ft(ja,ii,Yi){var ss=ja.kind!==27,gs=fu(Yi,Yi.left,ja),xl=fu(Yi,ja,Yi.right);ul(gs,ss),wc(ja.pos),dp(ja,ja.kind===101?mi:du),zu(ja.end,!0),ul(xl,!0)}function Ut(ja,ii,Yi){return Na(ja,Yi,"right")}function _a(ja,ii){var Yi=fu(ja,ja.left,ja.operatorToken),ss=fu(ja,ja.operatorToken,ja.right);if(Bc(Yi,ss),ii.stackIndex>0){var gs=ii.preserveSourceNewlinesStack[ii.stackIndex],xl=ii.containerPosStack[ii.stackIndex],Os=ii.containerEndStack[ii.stackIndex],Ml=ii.declarationListContainerEndStack[ii.stackIndex],Zc=ii.shouldEmitCommentsStack[ii.stackIndex],Yu=ii.shouldEmitSourceMapsStack[ii.stackIndex];zt(gs),Yu&&js(ja),Zc&&Ad(ja,xl,Os,Ml),D==null||D(ja),ii.stackIndex--}}function Na(ja,ii,Yi){var ss=Yi==="left"?En.getParenthesizeLeftSideOfBinaryForOperator(ii.operatorToken.kind):En.getParenthesizeRightSideOfBinaryForOperator(ii.operatorToken.kind),gs=mr(0,1,ja);if(gs===Ja&&(e.Debug.assertIsDefined(wn),ja=ss(e.cast(wn,e.isExpression)),gs=Ht(1,1,ja),wn=void 0),(gs===Fd||gs===Ud||gs===At)&&e.isBinaryExpression(ja))return ja;Be=ss,gs(1,ja)}}function nl(y){var en=fu(y,y.condition,y.questionToken),ft=fu(y,y.questionToken,y.whenTrue),Ut=fu(y,y.whenTrue,y.colonToken),_a=fu(y,y.colonToken,y.whenFalse);it(y.condition,En.parenthesizeConditionOfConditionalExpression),ul(en,!0),rn(y.questionToken),ul(ft,!0),it(y.whenTrue,En.parenthesizeBranchOfConditionalExpression),Bc(en,ft),ul(Ut,!0),rn(y.colonToken),ul(_a,!0),it(y.whenFalse,En.parenthesizeBranchOfConditionalExpression),Bc(Ut,_a)}function he(y){rn(y.head),qo(y,y.templateSpans,262144)}function Jn(y){kn(125,y.pos,mi,y),rn(y.asteriskToken),df(y.expression,En.parenthesizeExpressionForDisallowedComma)}function Ee(y){kn(25,y.pos,Ur,y),it(y.expression,En.parenthesizeExpressionForDisallowedComma)}function Mn(y){Tl(y.name),Zr(y)}function dr(y){it(y.expression,En.parenthesizeLeftSideOfAccess),ks(y,y.typeArguments)}function Yr(y){it(y.expression,void 0),y.type&&(wr(),mi("as"),wr(),rn(y.type))}function da(y){it(y.expression,En.parenthesizeLeftSideOfAccess),du("!")}function ya(y){Pd(y.keywordToken,y.pos,Ur),Ur("."),rn(y.name)}function bo(y){it(y.expression),rn(y.literal)}function On(y){Bo(y,!y.multiLine&&Vf(y))}function Bo(y,en){kn(18,y.pos,Ur,y);var ft=en||e.getEmitFlags(y)&1?768:129;qo(y,y.statements,ft),kn(19,y.statements.end,Ur,y,!!(ft&1))}function ps(y){bl(y,y.modifiers),rn(y.declarationList),Ko()}function ms(y){y?Ur(";"):Ko()}function _l(y){it(y.expression,En.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(Te)||e.nodeIsSynthesized(y.expression))&&Ko()}function Gi(y){var en=kn(99,y.pos,mi,y);wr(),kn(20,en,Ur,y),it(y.expression),kn(21,y.expression.end,Ur,y),ku(y,y.thenStatement),y.elseStatement&&(Xc(y,y.thenStatement,y.elseStatement),kn(91,y.thenStatement.end,mi,y),y.elseStatement.kind===237?(wr(),rn(y.elseStatement)):ku(y,y.elseStatement))}function qs(y,en){var ft=kn(115,en,mi,y);wr(),kn(20,ft,Ur,y),it(y.expression),kn(21,y.expression.end,Ur,y)}function pl(y){kn(90,y.pos,mi,y),ku(y,y.statement),e.isBlock(y.statement)&&!qe?wr():Xc(y,y.statement,y.expression),qs(y,y.statement.end),Ko()}function Ec(y){qs(y,y.pos),ku(y,y.statement)}function lc(y){var en=kn(97,y.pos,mi,y);wr();var ft=kn(20,en,Ur,y);au(y.initializer),ft=kn(26,y.initializer?y.initializer.end:ft,Ur,y),df(y.condition),ft=kn(26,y.condition?y.condition.end:ft,Ur,y),df(y.incrementor),kn(21,y.incrementor?y.incrementor.end:ft,Ur,y),ku(y,y.statement)}function Pc(y){var en=kn(97,y.pos,mi,y);wr(),kn(20,en,Ur,y),au(y.initializer),wr(),kn(101,y.initializer.end,mi,y),wr(),it(y.expression),kn(21,y.expression.end,Ur,y),ku(y,y.statement)}function oc(y){var en=kn(97,y.pos,mi,y);wr(),Ed(y.awaitModifier),kn(20,en,Ur,y),au(y.initializer),wr(),kn(158,y.initializer.end,mi,y),wr(),it(y.expression),kn(21,y.expression.end,Ur,y),ku(y,y.statement)}function au(y){y!==void 0&&(y.kind===253?rn(y):it(y))}function cc(y){kn(86,y.pos,mi,y),Mp(y.label),Ko()}function Zl(y){kn(81,y.pos,mi,y),Mp(y.label),Ko()}function kn(y,en,ft,Ut,_a){var Na=e.getParseTreeNode(Ut),ja=Na&&Na.kind===Ut.kind,ii=en;if(ja&&Te&&(en=e.skipTrivia(Te.text,en)),ja&&Ut.pos!==ii){var Yi=_a&&Te&&!e.positionsAreOnSameLine(ii,en,Te);Yi&&Rl(),wc(ii),Yi&&sc()}if(en=Ju(y,ft,en),ja&&Ut.end!==en){var ss=Ut.kind===286;zu(en,!ss,ss)}return en}function ot(y){kn(105,y.pos,mi,y),df(y.expression),Ko()}function Nt(y){var en=kn(116,y.pos,mi,y);wr(),kn(20,en,Ur,y),it(y.expression),kn(21,y.expression.end,Ur,y),ku(y,y.statement)}function or(y){var en=kn(107,y.pos,mi,y);wr(),kn(20,en,Ur,y),it(y.expression),kn(21,y.expression.end,Ur,y),wr(),rn(y.caseBlock)}function Sr(y){rn(y.label),kn(58,y.label.end,Ur,y),wr(),rn(y.statement)}function Er(y){kn(109,y.pos,mi,y),df(y.expression),Ko()}function Gr(y){kn(111,y.pos,mi,y),wr(),rn(y.tryBlock),y.catchClause&&(Xc(y,y.tryBlock,y.catchClause),rn(y.catchClause)),y.finallyBlock&&(Xc(y,y.catchClause||y.tryBlock,y.finallyBlock),kn(96,(y.catchClause||y.tryBlock).end,mi,y),wr(),rn(y.finallyBlock))}function $r(y){Pd(87,y.pos,mi),Ko()}function zr(y){rn(y.name),rn(y.exclamationToken),mc(y.type),od(y.initializer,y.type?y.type.end:y.name.end,y,En.parenthesizeExpressionForDisallowedComma)}function wi(y){mi(e.isLet(y)?"let":e.isVarConst(y)?"const":"var"),wr(),qo(y,y.declarations,528)}function Ta(y){Oa(y)}function Oa(y){Ho(y,y.decorators),bl(y,y.modifiers),mi("function"),rn(y.asteriskToken),wr(),qn(y.name),ji(y,Ri)}function ji(y,en){var ft=y.body;if(ft)if(e.isBlock(ft)){var Ut=e.getEmitFlags(y)&65536;Ut&&Rl(),Uc(y),e.forEach(y.parameters,zs),zs(y.body),en(y),cn(ft),Vc(y),Ut&&sc()}else en(y),wr(),it(ft,En.parenthesizeConciseBodyOfArrowFunction);else en(y),Ko()}function Ri(y){Lu(y,y.typeParameters),El(y,y.parameters),mc(y.type)}function ye(y){if(e.getEmitFlags(y)&1)return!0;if(y.multiLine)return!1;if(!e.nodeIsSynthesized(y)&&!e.rangeIsOnSingleLine(y,Te))return!1;if(Uf(y,y.statements,2)||To(y,y.statements,2))return!1;for(var en,ft=0,Ut=y.statements;ft<Ut.length;ft++){var _a=Ut[ft];if(wd(en,_a,2)>0)return!1;en=_a}return!0}function cn(y){N==null||N(y),wr(),Ur("{"),Rl();var en=ye(y)?Sn:Tt;jc?jc(y,y.statements,en):en(y),sc(),Pd(19,y.statements.end,Ur,y),D==null||D(y)}function Sn(y){Tt(y,!0)}function Tt(y,en){var ft=Rf(y.statements),Ut=Me.getTextPos();eo(y),ft===0&&Ut===Me.getTextPos()&&en?(sc(),qo(y,y.statements,768),Rl()):qo(y,y.statements,1,void 0,ft)}function Vt(y){Zr(y)}function Zr(y){e.forEach(y.members,Ns),Ho(y,y.decorators),bl(y,y.modifiers),mi("class"),y.name&&(wr(),qn(y.name));var en=e.getEmitFlags(y)&65536;en&&Rl(),Lu(y,y.typeParameters),qo(y,y.heritageClauses,0),wr(),Ur("{"),qo(y,y.members,129),Ur("}"),en&&sc()}function Da(y){Ho(y,y.decorators),bl(y,y.modifiers),mi("interface"),wr(),rn(y.name),Lu(y,y.typeParameters),qo(y,y.heritageClauses,512),wr(),Ur("{"),qo(y,y.members,129),Ur("}")}function gi(y){Ho(y,y.decorators),bl(y,y.modifiers),mi("type"),wr(),rn(y.name),Lu(y,y.typeParameters),wr(),Ur("="),wr(),rn(y.type),Ko()}function Eo(y){bl(y,y.modifiers),mi("enum"),wr(),rn(y.name),wr(),Ur("{"),qo(y,y.members,145),Ur("}")}function Fo(y){bl(y,y.modifiers),~y.flags&1024&&(mi(y.flags&16?"namespace":"module"),wr()),rn(y.name);var en=y.body;if(!en)return Ko();for(;en&&e.isModuleDeclaration(en);)Ur("."),rn(en.name),en=en.body;wr(),rn(en)}function bs(y){Uc(y),e.forEach(y.statements,zs),Bo(y,Vf(y)),Vc(y)}function Li(y){kn(18,y.pos,Ur,y),qo(y,y.clauses,129),kn(19,y.clauses.end,Ur,y,!0)}function Uo(y){bl(y,y.modifiers),kn(100,y.modifiers?y.modifiers.end:y.pos,mi,y),wr(),y.isTypeOnly&&(kn(150,y.pos,mi,y),wr()),rn(y.name),wr(),kn(63,y.name.end,Ur,y),wr(),Hn(y.moduleReference),Ko()}function Hn(y){y.kind===79?it(y):rn(y)}function Zo(y){bl(y,y.modifiers),kn(100,y.modifiers?y.modifiers.end:y.pos,mi,y),wr(),y.importClause&&(rn(y.importClause),wr(),kn(154,y.importClause.end,mi,y),wr()),it(y.moduleSpecifier),Ko()}function Ds(y){y.isTypeOnly&&(kn(150,y.pos,mi,y),wr()),rn(y.name),y.name&&y.namedBindings&&(kn(27,y.name.end,Ur,y),wr()),rn(y.namedBindings)}function Vs(y){var en=kn(41,y.pos,Ur,y);wr(),kn(127,en,mi,y),wr(),rn(y.name)}function iu(y){Du(y)}function fc(y){cu(y)}function ou(y){var en=kn(93,y.pos,mi,y);wr(),y.isExportEquals?kn(63,en,du,y):kn(88,en,mi,y),wr(),it(y.expression,y.isExportEquals?En.getParenthesizeRightSideOfBinaryForOperator(63):En.parenthesizeExpressionOfExportDefault),Ko()}function oo(y){var en=kn(93,y.pos,mi,y);if(wr(),y.isTypeOnly&&(en=kn(150,en,mi,y),wr()),y.exportClause?rn(y.exportClause):en=kn(41,en,Ur,y),y.moduleSpecifier){wr();var ft=y.exportClause?y.exportClause.end:en;kn(154,ft,mi,y),wr(),it(y.moduleSpecifier)}Ko()}function tl(y){var en=kn(93,y.pos,mi,y);wr(),en=kn(127,en,mi,y),wr(),en=kn(141,en,mi,y),wr(),rn(y.name),Ko()}function su(y){var en=kn(41,y.pos,Ur,y);wr(),kn(127,en,mi,y),wr(),rn(y.name)}function Au(y){Du(y)}function lu(y){cu(y)}function Du(y){Ur("{"),qo(y,y.elements,525136),Ur("}")}function cu(y){y.propertyName&&(rn(y.propertyName),wr(),kn(127,y.propertyName.end,mi,y),wr()),rn(y.name)}function Of(y){mi("require"),Ur("("),it(y.expression),Ur(")")}function Wl(y){rn(y.openingElement),qo(y,y.children,262144),rn(y.closingElement)}function ad(y){Ur("<"),Cu(y.tagName),ks(y,y.typeArguments),wr(),rn(y.attributes),Ur("/>")}function id(y){rn(y.openingFragment),qo(y,y.children,262144),rn(y.closingFragment)}function $a(y){if(Ur("<"),e.isJsxOpeningElement(y)){var en=$l(y.tagName,y);Cu(y.tagName),ks(y,y.typeArguments),y.attributes.properties&&y.attributes.properties.length>0&&wr(),rn(y.attributes),Gp(y.attributes,y),Bc(en)}Ur(">")}function pa(y){Me.writeLiteral(y.text)}function Tc(y){Ur("</"),e.isJsxClosingElement(y)&&Cu(y.tagName),Ur(">")}function Vo(y){qo(y,y.properties,262656)}function yi(y){rn(y.name),Ku("=",Ur,y.initializer,ht)}function pc(y){Ur("{..."),it(y.expression),Ur("}")}function rl(y){var en=!1;return e.forEachTrailingCommentRange((Te==null?void 0:Te.text)||"",y+1,function(){return en=!0}),en}function Zi(y){var en=!1;return e.forEachLeadingCommentRange((Te==null?void 0:Te.text)||"",y+1,function(){return en=!0}),en}function vl(y){return rl(y)||Zi(y)}function al(y){var en;if(y.expression||!Ze&&!e.nodeIsSynthesized(y)&&vl(y.pos)){var ft=Te&&!e.nodeIsSynthesized(y)&&e.getLineAndCharacterOfPosition(Te,y.pos).line!==e.getLineAndCharacterOfPosition(Te,y.end).line;ft&&Me.increaseIndent();var Ut=kn(18,y.pos,Ur,y);rn(y.dotDotDotToken),it(y.expression),kn(19,((en=y.expression)===null||en===void 0?void 0:en.end)||Ut,Ur,y),ft&&Me.decreaseIndent()}}function Cu(y){y.kind===79?it(y):rn(y)}function a(y){kn(82,y.pos,mi,y),wr(),it(y.expression,En.parenthesizeExpressionForDisallowedComma),Ae(y,y.statements,y.expression.end)}function H(y){var en=kn(88,y.pos,mi,y);Ae(y,y.statements,en)}function Ae(y,en,ft){var Ut=en.length===1&&(e.nodeIsSynthesized(y)||e.nodeIsSynthesized(en[0])||e.rangeStartPositionsAreOnSameLine(y,en[0],Te)),_a=163969;Ut?(Pd(58,ft,Ur,y),wr(),_a&=~(1|128)):kn(58,ft,Ur,y),qo(y,en,_a)}function nn(y){wr(),Ju(y.token,mi),wr(),qo(y,y.types,528)}function In(y){var en=kn(83,y.pos,mi,y);wr(),y.variableDeclaration&&(kn(20,en,Ur,y),rn(y.variableDeclaration),kn(21,y.variableDeclaration.end,Ur,y),wr()),rn(y.block)}function Gn(y){rn(y.name),Ur(":"),wr();var en=y.initializer;if((e.getEmitFlags(en)&512)===0){var ft=e.getCommentRange(en);zu(ft.pos)}it(en,En.parenthesizeExpressionForDisallowedComma)}function bt(y){rn(y.name),y.objectAssignmentInitializer&&(wr(),Ur("="),wr(),it(y.objectAssignmentInitializer,En.parenthesizeExpressionForDisallowedComma))}function pt(y){y.expression&&(kn(25,y.pos,Ur,y),it(y.expression,En.parenthesizeExpressionForDisallowedComma))}function It(y){rn(y.name),od(y.initializer,y.name.end,y,En.parenthesizeExpressionForDisallowedComma)}function Pt(y){if(Ye("/**"),y.comment){var en=e.getTextOfJSDocComment(y.comment);if(en)for(var ft=en.split(/\r\n?|\n/g),Ut=0,_a=ft;Ut<_a.length;Ut++){var Na=_a[Ut];Is(),wr(),Ur("*"),wr(),Ye(Na)}}y.tags&&(y.tags.length===1&&y.tags[0].kind===338&&!y.comment?(wr(),rn(y.tags[0])):qo(y,y.tags,33)),wr(),Ye("*/")}function er(y){ki(y.tagName),Ci(y.typeExpression),Hi(y.comment)}function jr(y){ki(y.tagName),rn(y.name),Hi(y.comment)}function Qa(y){wr(),Ur("{"),rn(y.name),Ur("}")}function Wi(y){ki(y.tagName),wr(),Ur("{"),rn(y.class),Ur("}"),Hi(y.comment)}function uo(y){ki(y.tagName),Ci(y.constraint),wr(),qo(y,y.typeParameters,528),Hi(y.comment)}function $o(y){ki(y.tagName),y.typeExpression&&(y.typeExpression.kind===304?Ci(y.typeExpression):(wr(),Ur("{"),Ye("Object"),y.typeExpression.isArrayType&&(Ur("["),Ur("]")),Ur("}"))),y.fullName&&(wr(),rn(y.fullName)),Hi(y.comment),y.typeExpression&&y.typeExpression.kind===317&&qr(y.typeExpression)}function hs(y){ki(y.tagName),y.name&&(wr(),rn(y.name)),Hi(y.comment),pi(y.typeExpression)}function es(y){ki(y.tagName),Hi(y.comment)}function qr(y){qo(y,e.factory.createNodeArray(y.jsDocPropertyTags),33)}function pi(y){y.typeParameters&&qo(y,e.factory.createNodeArray(y.typeParameters),33),y.parameters&&qo(y,e.factory.createNodeArray(y.parameters),33),y.type&&(Is(),wr(),Ur("*"),wr(),rn(y.type))}function Ya(y){ki(y.tagName),Ci(y.typeExpression),wr(),y.isBracketed&&Ur("["),rn(y.name),y.isBracketed&&Ur("]"),Hi(y.comment)}function ki(y){Ur("@"),rn(y)}function Hi(y){var en=e.getTextOfJSDocComment(y);en&&(wr(),Ye(en))}function Ci(y){y&&(wr(),Ur("{"),rn(y.type),Ur("}"))}function jo(y){Is();var en=y.statements;if(jc){var ft=en.length===0||!e.isPrologueDirective(en[0])||e.nodeIsSynthesized(en[0]);if(ft){jc(y,en,qc);return}}qc(y)}function Gs(y){ho(!!y.hasNoDefaultLib,y.syntheticFileReferences||[],y.syntheticTypeReferences||[],y.syntheticLibReferences||[]);for(var en=0,ft=y.prepends;en<ft.length;en++){var Ut=ft[en];if(e.isUnparsedSource(Ut)&&Ut.syntheticReferences)for(var _a=0,Na=Ut.syntheticReferences;_a<Na.length;_a++){var ja=Na[_a];rn(ja),Is()}}}function Cs(y){y.isDeclarationFile&&ho(y.hasNoDefaultLib,y.referencedFiles,y.typeReferenceDirectives,y.libReferenceDirectives)}function ho(y,en,ft,Ut){if(y){var _a=Me.getTextPos();Iu('/// <reference no-default-lib="true"/>'),je&&je.sections.push({pos:_a,end:Me.getTextPos(),kind:"no-default-lib"}),Is()}if(Te&&Te.moduleName&&(Iu('/// <amd-module name="'+Te.moduleName+'" />'),Is()),Te&&Te.amdDependencies)for(var Na=0,ja=Te.amdDependencies;Na<ja.length;Na++){var ii=ja[Na];ii.name?Iu('/// <amd-dependency name="'+ii.name+'" path="'+ii.path+'" />'):Iu('/// <amd-dependency path="'+ii.path+'" />'),Is()}for(var Yi=0,ss=en;Yi<ss.length;Yi++){var gs=ss[Yi],_a=Me.getTextPos();Iu('/// <reference path="'+gs.fileName+'" />'),je&&je.sections.push({pos:_a,end:Me.getTextPos(),kind:"reference",data:gs.fileName}),Is()}for(var xl=0,Os=ft;xl<Os.length;xl++){var gs=Os[xl],_a=Me.getTextPos();Iu('/// <reference types="'+gs.fileName+'" />'),je&&je.sections.push({pos:_a,end:Me.getTextPos(),kind:"type",data:gs.fileName}),Is()}for(var Ml=0,Zc=Ut;Ml<Zc.length;Ml++){var gs=Zc[Ml],_a=Me.getTextPos();Iu('/// <reference lib="'+gs.fileName+'" />'),je&&je.sections.push({pos:_a,end:Me.getTextPos(),kind:"lib",data:gs.fileName}),Is()}}function qc(y){var en=y.statements;Uc(y),e.forEach(y.statements,zs),eo(y);var ft=e.findIndex(en,function(Ut){return!e.isPrologueDirective(Ut)});Cs(y),qo(y,en,1,void 0,ft===-1?en.length:ft),Vc(y)}function Pf(y){it(y.expression)}function cf(y){Sd(y,y.elements,528,void 0)}function Rf(y,en,ft,Ut){for(var _a=!!en,Na=0;Na<y.length;Na++){var ja=y[Na];if(e.isPrologueDirective(ja)){var ii=ft?!ft.has(ja.expression.text):!0;if(ii){_a&&(_a=!1,ln(en)),Is();var Yi=Me.getTextPos();rn(ja),Ut&&je&&je.sections.push({pos:Yi,end:Me.getTextPos(),kind:"prologue",data:ja.expression.text}),ft&&ft.add(ja.expression.text)}}else return Na}return y.length}function Mf(y,en){for(var ft=0,Ut=y;ft<Ut.length;ft++){var _a=Ut[ft];if(!en.has(_a.data)){Is();var Na=Me.getTextPos();rn(_a),je&&je.sections.push({pos:Na,end:Me.getTextPos(),kind:"prologue",data:_a.data}),en&&en.add(_a.data)}}}function Ff(y){if(e.isSourceFile(y))Rf(y.statements,y);else{for(var en=new e.Set,ft=0,Ut=y.prepends;ft<Ut.length;ft++){var _a=Ut[ft];Mf(_a.prologues,en)}for(var Na=0,ja=y.sourceFiles;Na<ja.length;Na++){var ii=ja[Na];Rf(ii.statements,ii,en,!0)}ln(void 0)}}function cp(y){for(var en=new e.Set,ft,Ut=0;Ut<y.sourceFiles.length;Ut++){for(var _a=y.sourceFiles[Ut],Na=void 0,ja=0,ii=0,Yi=_a.statements;ii<Yi.length;ii++){var ss=Yi[ii];if(!e.isPrologueDirective(ss))break;if(en.has(ss.expression.text))continue;en.add(ss.expression.text),(Na||(Na=[])).push({pos:ss.pos,end:ss.end,expression:{pos:ss.expression.pos,end:ss.expression.end,text:ss.expression.text}}),ja=ja<ss.end?ss.end:ja}Na&&(ft||(ft=[])).push({file:Ut,text:_a.text.substring(0,ja),directives:Na})}return ft}function uf(y){if(e.isSourceFile(y)||e.isUnparsedSource(y)){var en=e.getShebang(y.text);if(en)return Iu(en),Is(),!0}else{for(var ft=0,Ut=y.prepends;ft<Ut.length;ft++){var _a=Ut[ft];if(e.Debug.assertNode(_a,e.isUnparsedSource),uf(_a))return!0}for(var Na=0,ja=y.sourceFiles;Na<ja.length;Na++){var ii=ja[Na];if(uf(ii))return!0}}}function bd(y,en){if(!y)return;var ft=Ye;Ye=en,rn(y),Ye=ft}function bl(y,en){en&&en.length&&(qo(y,en,262656),wr())}function mc(y){y&&(Ur(":"),wr(),rn(y))}function od(y,en,ft,Ut){y&&(wr(),kn(63,en,du,ft),wr(),it(y,Ut))}function Ku(y,en,ft,Ut){ft&&(en(y),Ut(ft))}function Mp(y){y&&(wr(),rn(y))}function df(y,en){y&&(wr(),it(y,en))}function Ed(y){y&&(rn(y),wr())}function ku(y,en){e.isBlock(en)||e.getEmitFlags(y)&1?(wr(),rn(en)):(Is(),Rl(),e.isEmptyStatement(en)?fr(5,en):rn(en),sc())}function Ho(y,en){qo(y,en,2146305)}function ks(y,en){qo(y,en,53776,En.parenthesizeMemberOfElementType)}function Lu(y,en){if(e.isFunctionLike(y)&&y.typeArguments)return ks(y,y.typeArguments);qo(y,en,53776)}function El(y,en){qo(y,en,2576)}function Fp(y,en){var ft=e.singleOrUndefined(en);return ft&&ft.pos===y.pos&&e.isArrowFunction(y)&&!y.type&&!e.some(y.decorators)&&!e.some(y.modifiers)&&!e.some(y.typeParameters)&&!e.some(ft.decorators)&&!e.some(ft.modifiers)&&!ft.dotDotDotToken&&!ft.questionToken&&!ft.type&&!ft.initializer&&e.isIdentifier(ft.name)}function hc(y,en){Fp(y,en)?qo(y,en,2576&~2048):El(y,en)}function Td(y,en){qo(y,en,8848)}function Sc(y){switch(y&60){case 0:break;case 16:Ur(",");break;case 4:wr(),Ur("|");break;case 32:wr(),Ur("*"),wr();break;case 8:wr(),Ur("&");break}}function qo(y,en,ft,Ut,_a,Na){uu(rn,y,en,ft,Ut,_a,Na)}function Sd(y,en,ft,Ut,_a,Na){uu(it,y,en,ft,Ut,_a,Na)}function uu(y,en,ft,Ut,_a,Na,ja){Na===void 0&&(Na=0),ja===void 0&&(ja=ft?ft.length-Na:0);var ii=ft===void 0;if(ii&&Ut&16384)return;var Yi=ft===void 0||Na>=ft.length||ja===0;if(Yi&&Ut&32768){R&&R(ft),me&&me(ft);return}if(Ut&15360&&(Ur(re(Ut)),Yi&&ft&&zu(ft.pos,!0)),R&&R(ft),Yi)Ut&1&&!(qe&&(!en||e.rangeIsOnSingleLine(en,Te)))?Is():Ut&256&&!(Ut&524288)&&wr();else{e.Debug.type(ft);var ss=(Ut&262144)===0,gs=ss,xl=Uf(en,ft,Ut);xl?(Is(xl),gs=!1):Ut&256&&wr(),Ut&128&&Rl();for(var Os=void 0,Ml=void 0,Zc=!1,Yu=0;Yu<ja;Yu++){var Fl=ft[Na+Yu];if(Ut&32)Is(),Sc(Ut);else if(Os){Ut&60&&Os.end!==(en?en.end:-1)&&wc(Os.end),Sc(Ut),Yn(Ml);var $c=wd(Os,Fl,Ut);$c>0?((Ut&(3|128))===0&&(Rl(),Zc=!0),Is($c),gs=!1):Os&&Ut&512&&wr()}if(Ml=rt(Fl),gs){if(zu){var Up=e.getCommentRange(Fl);zu(Up.pos)}}else gs=ss;pe=Fl.pos,y.length===1?y(Fl):y(Fl,_a),Zc&&(sc(),Zc=!1),Os=Fl}var Vp=Os?e.getEmitFlags(Os):0,jp=Ze||!!(Vp&1024),Wp=(ft==null?void 0:ft.hasTrailingComma)&&Ut&64&&Ut&16;Wp&&(Os&&!jp?kn(27,Os.end,Ur,Os):Ur(",")),Os&&(en?en.end:-1)!==Os.end&&Ut&60&&!jp&&wc(Wp&&(ft==null?void 0:ft.end)?ft.end:Os.end),Ut&128&&sc(),Yn(Ml);var md=To(en,ft,Ut);md?Is(md):Ut&(2097152|256)&&wr()}me&&me(ft),Ut&15360&&(Yi&&ft&&wc(ft.end),Ur(B(Ut)))}function rs(y){Me.writeLiteral(y)}function zc(y){Me.writeStringLiteral(y)}function Gf(y){Me.write(y)}function up(y,en){Me.writeSymbol(y,en)}function Ur(y){Me.writePunctuation(y)}function Ko(){Me.writeTrailingSemicolon(";")}function mi(y){Me.writeKeyword(y)}function du(y){Me.writeOperator(y)}function Bf(y){Me.writeParameter(y)}function Iu(y){Me.writeComment(y)}function wr(){Me.writeSpace(" ")}function xd(y){Me.writeProperty(y)}function Is(y){y===void 0&&(y=1);for(var en=0;en<y;en++)Me.writeLine(en>0)}function Rl(){Me.increaseIndent()}function sc(){Me.decreaseIndent()}function Pd(y,en,ft,Ut){return o?Ju(y,ft,en):Tf(Ut,y,ft,en,Ju)}function dp(y,en){q&&q(y),en(e.tokenToString(y.kind)),J&&J(y)}function Ju(y,en,ft){var Ut=e.tokenToString(y);return en(Ut),ft<0?ft:ft+Ut.length}function Xc(y,en,ft){if(e.getEmitFlags(y)&1)wr();else if(qe){var Ut=fu(y,en,ft);Ut?Is(Ut):wr()}else Is()}function Rd(y){for(var en=y.split(/\r\n?|\n/g),ft=e.guessIndentation(en),Ut=0,_a=en;Ut<_a.length;Ut++){var Na=_a[Ut],ja=ft?Na.slice(ft):Na;ja.length&&(Is(),Ye(ja))}}function ul(y,en){y?(Rl(),Is(y)):en&&wr()}function Bc(y,en){y&&sc(),en&&sc()}function Uf(y,en,ft){if(ft&2||qe){if(ft&65536)return 1;var Ut=en[0];if(Ut===void 0)return!y||e.rangeIsOnSingleLine(y,Te)?0:1;if(Ut.pos===pe)return 0;if(Ut.kind===11)return 0;if(y&&!e.positionIsSynthesized(y.pos)&&!e.nodeIsSynthesized(Ut)&&(!Ut.parent||e.getOriginalNode(Ut.parent)===e.getOriginalNode(y)))return qe?Rr(function(_a){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(Ut.pos,y.pos,Te,_a)}):e.rangeStartPositionsAreOnSameLine(y,Ut,Te)?0:1;if(sd(Ut,ft))return 1}return ft&1?1:0}function wd(y,en,ft){if(ft&2||qe){if(y===void 0||en===void 0)return 0;if(en.kind===11)return 0;if(!e.nodeIsSynthesized(y)&&!e.nodeIsSynthesized(en))return qe&&Gd(y,en)?Rr(function(Ut){return e.getLinesBetweenRangeEndAndRangeStart(y,en,Te,Ut)}):!qe&&Ar(y,en)?e.rangeEndIsOnSameLineAsRangeStart(y,en,Te)?0:1:ft&65536?1:0;if(sd(y,ft)||sd(en,ft))return 1}else if(e.getStartsOnNewLine(en))return 1;return ft&1?1:0}function To(y,en,ft){if(ft&2||qe){if(ft&65536)return 1;var Ut=e.lastOrUndefined(en);if(Ut===void 0)return!y||e.rangeIsOnSingleLine(y,Te)?0:1;if(y&&!e.positionIsSynthesized(y.pos)&&!e.nodeIsSynthesized(Ut)&&(!Ut.parent||Ut.parent===y)){if(qe){var _a=e.isNodeArray(en)&&!e.positionIsSynthesized(en.end)?en.end:Ut.end;return Rr(function(Na){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(_a,y.end,Te,Na)})}return e.rangeEndPositionsAreOnSameLine(y,Ut,Te)?0:1}if(sd(Ut,ft))return 1}return ft&1&&!(ft&131072)?1:0}function Rr(y){e.Debug.assert(!!qe);var en=y(!0);return en===0?y(!1):en}function $l(y,en){var ft=qe&&Uf(en,[y],0);return ft&&ul(ft,!1),!!ft}function Gp(y,en){var ft=qe&&To(en,[y],0);ft&&Is(ft)}function sd(y,en){if(e.nodeIsSynthesized(y)){var ft=e.getStartsOnNewLine(y);return ft===void 0?(en&65536)!==0:ft}return(en&65536)!==0}function fu(y,en,ft){return e.getEmitFlags(y)&131072?0:(y=Md(y),en=Md(en),ft=Md(ft),e.getStartsOnNewLine(ft)?1:!e.nodeIsSynthesized(y)&&!e.nodeIsSynthesized(en)&&!e.nodeIsSynthesized(ft)?qe?Rr(function(Ut){return e.getLinesBetweenRangeEndAndRangeStart(en,ft,Te,Ut)}):e.rangeEndIsOnSameLineAsRangeStart(en,ft,Te)?0:1:0)}function Vf(y){return y.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(y,y,Te)}function Md(y){for(;y.kind===210&&e.nodeIsSynthesized(y);)y=y.expression;return y}function xc(y,en){return e.isGeneratedIdentifier(y)?fp(y):(e.isIdentifier(y)||e.isPrivateIdentifier(y))&&(e.nodeIsSynthesized(y)||!y.parent||!Te||y.parent&&Te&&e.getSourceFileOfNode(y)!==e.getOriginalNode(Te))?e.idText(y):y.kind===10&&y.textSourceNode?xc(y.textSourceNode,en):e.isLiteralExpression(y)&&(e.nodeIsSynthesized(y)||!y.parent)?y.text:e.getSourceTextOfNodeFromSourceFile(Te,y,en)}function pu(y,en,ft){if(y.kind===10&&y.textSourceNode){var Ut=y.textSourceNode;if(e.isIdentifier(Ut)||e.isNumericLiteral(Ut)){var _a=e.isNumericLiteral(Ut)?Ut.text:xc(Ut);return ft?'"'+e.escapeJsxAttributeString(_a)+'"':en||e.getEmitFlags(y)&16777216?'"'+e.escapeString(_a)+'"':'"'+e.escapeNonAsciiString(_a)+'"'}else return pu(Ut,en,ft)}var Na=(en?1:0)|(ft?2:0)|(f.terminateUnterminatedLiterals?4:0)|(f.target&&f.target===99?8:0);return e.getLiteralText(y,Te,Na)}function Uc(y){if(y&&e.getEmitFlags(y)&524288)return;Se.push($e),$e=0,ce.push(Le)}function Vc(y){if(y&&e.getEmitFlags(y)&524288)return;$e=Se.pop(),Le=ce.pop()}function Hl(y){(!Le||Le===e.lastOrUndefined(ce))&&(Le=new e.Set),Le.add(y)}function zs(y){if(!y)return;switch(y.kind){case 233:e.forEach(y.statements,zs);break;case 248:case 246:case 238:case 239:zs(y.statement);break;case 237:zs(y.thenStatement),zs(y.elseStatement);break;case 240:case 242:case 241:zs(y.initializer),zs(y.statement);break;case 247:zs(y.caseBlock);break;case 261:e.forEach(y.clauses,zs);break;case 287:case 288:e.forEach(y.statements,zs);break;case 250:zs(y.tryBlock),zs(y.catchClause),zs(y.finallyBlock);break;case 290:zs(y.variableDeclaration),zs(y.block);break;case 235:zs(y.declarationList);break;case 253:e.forEach(y.declarations,zs);break;case 252:case 162:case 201:case 255:Tl(y.name);break;case 254:Tl(y.name),e.getEmitFlags(y)&524288&&(e.forEach(y.parameters,zs),zs(y.body));break;case 199:case 200:e.forEach(y.elements,zs);break;case 264:zs(y.importClause);break;case 265:Tl(y.name),zs(y.namedBindings);break;case 266:Tl(y.name);break;case 272:Tl(y.name);break;case 267:e.forEach(y.elements,zs);break;case 268:Tl(y.propertyName||y.name);break}}function Ns(y){if(!y)return;switch(y.kind){case 291:case 292:case 165:case 167:case 170:case 171:Tl(y.name);break}}function Tl(y){y&&(e.isGeneratedIdentifier(y)?fp(y):e.isBindingPattern(y)&&zs(y))}function fp(y){if((y.autoGenerateFlags&7)===4)return Yc(Wf(y),y.autoGenerateFlags);var en=y.autoGenerateId;return Ce[en]||(Ce[en]=Ou(y))}function Yc(y,en){var ft=e.getNodeId(y);return be[ft]||(be[ft]=mf(y,en))}function Sl(y){return ld(y)&&!Ue.has(y)&&!(Le&&Le.has(y))}function ld(y){return Te?e.isFileLevelUniqueName(Te,y,g):!0}function ff(y,en){for(var ft=en;e.isNodeDescendantOf(ft,en);ft=ft.nextContainer)if(ft.locals){var Ut=ft.locals.get(e.escapeLeadingUnderscores(y));if(Ut&&Ut.flags&(111551|1048576|2097152))return!1}return!0}function sl(y,en){if(y&&!($e&y)){var ft=y===268435456?"_i":"_n";if(Sl(ft))return $e|=y,en&&Hl(ft),ft}for(;;){var Ut=$e&268435455;if($e++,Ut!==8&&Ut!==13){var ft=Ut<26?"_"+String.fromCharCode(97+Ut):"_"+(Ut-26);if(Sl(ft))return en&&Hl(ft),ft}}}function ns(y,en,ft,Ut){if(en===void 0&&(en=Sl),ft&&en(y))return Ut?Hl(y):Ue.add(y),y;y.charCodeAt(y.length-1)!==95&&(y+="_");for(var _a=1;;){var Na=y+_a;if(en(Na))return Ut?Hl(Na):Ue.add(Na),Na;_a++}}function pp(y){return ns(y,ld,!0)}function Nu(y){var en=xc(y.name);return ff(en,y)?en:ns(en)}function cd(y){var en=e.getExternalModuleName(y),ft=e.isStringLiteral(en)?e.makeIdentifierFromModuleName(en.text):"module";return ns(ft)}function pf(){return ns("default")}function jf(){return ns("class")}function mp(y){return e.isIdentifier(y.name)?Yc(y.name):sl(0)}function mf(y,en){switch(y.kind){case 79:return ns(xc(y),Sl,!!(en&16),!!(en&8));case 259:case 258:return Nu(y);case 264:case 270:return cd(y);case 254:case 255:case 269:return pf();case 224:return jf();case 167:case 170:case 171:return mp(y);case 160:return sl(0,!0);default:return sl(0)}}function Ou(y){switch(y.autoGenerateFlags&7){case 1:return sl(0,!!(y.autoGenerateFlags&8));case 2:return sl(268435456,!!(y.autoGenerateFlags&8));case 3:return ns(e.idText(y),y.autoGenerateFlags&32?ld:Sl,!!(y.autoGenerateFlags&16),!!(y.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Wf(y){for(var en=y.autoGenerateId,ft=y,Ut=ft.original;Ut&&!(ft=Ut,e.isIdentifier(ft)&&!!(ft.autoGenerateFlags&4)&&ft.autoGenerateId!==en);)Ut=ft.original;return ft}function Fd(y,en){var ft=Ht(2,y,en),Ut=oe,_a=Pe,Na=ke;ud(en),ft(y,en),Ad(en,Ut,_a,Na)}function ud(y){var en=e.getEmitFlags(y),ft=e.getCommentRange(y);hf(y,en,ft.pos,ft.end),en&2048&&(Ze=!0)}function Ad(y,en,ft,Ut){var _a=e.getEmitFlags(y),Na=e.getCommentRange(y);_a&2048&&(Ze=!1),gf(y,_a,Na.pos,Na.end,en,ft,Ut)}function hf(y,en,ft,Ut){Kn(),xe=!1;var _a=ft<0||(en&512)!==0||y.kind===11,Na=Ut<0||(en&1024)!==0||y.kind===11;(ft>0||Ut>0)&&ft!==Ut&&(_a||qu(ft,y.kind!==344),(!_a||ft>=0&&(en&512)!==0)&&(oe=ft),(!Na||Ut>=0&&(en&1024)!==0)&&(Pe=Ut,y.kind===253&&(ke=Ut))),e.forEach(e.getSyntheticLeadingComments(y),dd),Je()}function gf(y,en,ft,Ut,_a,Na,ja){Kn();var ii=Ut<0||(en&1024)!==0||y.kind===11;e.forEach(e.getSyntheticTrailingComments(y),Hf),(ft>0||Ut>0)&&ft!==Ut&&(oe=_a,Pe=Na,ke=ja,!ii&&y.kind!==344&&gc(Ut)),Je()}function dd(y){(y.hasLeadingNewline||y.kind===2)&&Me.writeLine(),hp(y),y.hasTrailingNewLine||y.kind===2?Me.writeLine():Me.writeSpace(" ")}function Hf(y){Me.isAtStartOfLine()||Me.writeSpace(" "),hp(y),y.hasTrailingNewLine&&Me.writeLine()}function hp(y){var en=Xa(y),ft=y.kind===3?e.computeLineStarts(en):void 0;e.writeCommentRange(en,ft,Me,0,en.length,we)}function Xa(y){return y.kind===3?"/*"+y.text+"*/":"//"+y.text}function jc(y,en,ft){Kn();var Ut=en.pos,_a=en.end,Na=e.getEmitFlags(y),ja=Ut<0||(Na&512)!==0,ii=Ze||_a<0||(Na&1024)!==0;ja||Qc(en),Je(),Na&2048&&!Ze?(Ze=!0,ft(y),Ze=!1):ft(y),Kn(),ii||(qu(en.end,!0),xe&&!Me.isAtStartOfLine()&&Me.writeLine()),Je()}function Ar(y,en){return y=e.getOriginalNode(y),y.parent&&y.parent===e.getOriginalNode(en).parent}function Gd(y,en){if(en.pos<y.end)return!1;y=e.getOriginalNode(y),en=e.getOriginalNode(en);var ft=y.parent;if(!ft||ft!==en.parent)return!1;var Ut=e.getContainingNodeArray(y),_a=Ut==null?void 0:Ut.indexOf(y);return _a!==void 0&&_a>-1&&Ut.indexOf(en)===_a+1}function qu(y,en){xe=!1,en?y===0&&(Te==null?void 0:Te.isDeclarationFile)?Xu(y,Bd):Xu(y,fd):y===0&&Xu(y,yf)}function yf(y,en,ft,Ut,_a){Jf(y,en)&&fd(y,en,ft,Ut,_a)}function Bd(y,en,ft,Ut,_a){Jf(y,en)||fd(y,en,ft,Ut,_a)}function _f(y,en){return f.onlyPrintJsDocStyle?e.isJSDocLikeText(y,en)||e.isPinnedComment(y,en):!0}function fd(y,en,ft,Ut,_a){if(!_f(Te.text,y))return;xe||(e.emitNewLineBeforeLeadingCommentOfPosition(Dn(),Me,_a,y),xe=!0),no(y),e.writeCommentRange(Te.text,Dn(),Me,y,en,we),no(en),Ut?Me.writeLine():ft===3&&Me.writeSpace(" ")}function wc(y){if(Ze||y===-1)return;qu(y,!0)}function gc(y){pd(y,vf)}function vf(y,en,ft,Ut){if(!_f(Te.text,y))return;Me.isAtStartOfLine()||Me.writeSpace(" "),no(y),e.writeCommentRange(Te.text,Dn(),Me,y,en,we),no(en),Ut&&Me.writeLine()}function zu(y,en,ft){if(Ze)return;Kn(),pd(y,en?vf:ft?gp:bf),Je()}function gp(y,en,ft){no(y),e.writeCommentRange(Te.text,Dn(),Me,y,en,we),no(en),ft===2&&Me.writeLine()}function bf(y,en,ft,Ut){no(y),e.writeCommentRange(Te.text,Dn(),Me,y,en,we),no(en),Ut?Me.writeLine():Me.writeSpace(" ")}function Xu(y,en){Te&&(oe===-1||y!==oe)&&(mu(y)?Kf(en):e.forEachLeadingCommentRange(Te.text,y,en,y))}function pd(y,en){Te&&(Pe===-1||y!==Pe&&y!==ke)&&e.forEachTrailingCommentRange(Te.text,y,en)}function mu(y){return gn!==void 0&&e.last(gn).nodePos===y}function Kf(y){var en=e.last(gn).detachedCommentEndPos;gn.length-1?gn.pop():gn=void 0,e.forEachLeadingCommentRange(Te.text,en,y,en)}function Qc(y){var en=e.emitDetachedComments(Te.text,Dn(),Me,Ef,y,we,Ze);en&&(gn?gn.push(en):gn=[en])}function Ef(y,en,ft,Ut,_a,Na){if(!_f(Te.text,Ut))return;no(Ut),e.writeCommentRange(y,en,ft,Ut,_a,Na),no(_a)}function Jf(y,en){return e.isRecognizedTripleSlashComment(Te.text,y,en)}function Wc(y){return y.parsedSourceMap===void 0&&y.sourceMapText!==void 0&&(y.parsedSourceMap=e.tryParseRawSourceMap(y.sourceMapText)||!1),y.parsedSourceMap||void 0}function Ud(y,en){var ft=Ht(3,y,en);Pu(en),ft(y,en),js(en)}function Pu(y){var en=e.getEmitFlags(y),ft=e.getSourceMapRange(y);if(e.isUnparsedNode(y)){e.Debug.assertIsDefined(y.parent,"UnparsedNodes must have parent pointers");var Ut=Wc(y.parent);Ut&&Cn&&Cn.appendSourceMap(Me.getLine(),Me.getColumn(),Ut,y.parent.sourceMapPath,y.parent.getLineAndCharacterOfPosition(y.pos),y.parent.getLineAndCharacterOfPosition(y.end))}else{var _a=ft.source||z;y.kind!==344&&(en&16)===0&&ft.pos>=0&&Vd(ft.source||z,Bp(_a,ft.pos)),en&64&&(o=!0)}}function js(y){var en=e.getEmitFlags(y),ft=e.getSourceMapRange(y);e.isUnparsedNode(y)||(en&64&&(o=!1),y.kind!==344&&(en&32)===0&&ft.end>=0&&Vd(ft.source||z,ft.end))}function Bp(y,en){return y.skipTrivia?y.skipTrivia(en):e.skipTrivia(y.text,en)}function no(y){if(o||e.positionIsSynthesized(y)||Dd(z))return;var en=e.getLineAndCharacterOfPosition(z,y),ft=en.line,Ut=en.character;Cn.addMapping(Me.getLine(),Me.getColumn(),tn,ft,Ut,void 0)}function Vd(y,en){if(y!==z){var ft=z,Ut=tn;qf(y),no(en),zf(ft,Ut)}else no(en)}function Tf(y,en,ft,Ut,_a){if(o||y&&e.isInJsonFile(y))return _a(en,ft,Ut);var Na=y&&y.emitNode,ja=Na&&Na.flags||0,ii=Na&&Na.tokenSourceMapRanges&&Na.tokenSourceMapRanges[en],Yi=ii&&ii.source||z;return Ut=Bp(Yi,ii?ii.pos:Ut),(ja&128)===0&&Ut>=0&&Vd(Yi,Ut),Ut=_a(en,ft,Ut),ii&&(Ut=ii.end),(ja&256)===0&&Ut>=0&&Vd(Yi,Ut),Ut}function qf(y){if(o)return;if(z=y,y===$n){tn=Un;return}if(Dd(y))return;tn=Cn.addSource(y.fileName),f.inlineSources&&Cn.setSourceContent(tn,y.text),$n=y,Un=tn}function zf(y,en){z=y,tn=en}function Dd(y){return e.fileExtensionIs(y.fileName,".json")}}e.createPrinter=P;function I(){var f=[];return f[1024]=["{","}"],f[2048]=["(",")"],f[4096]=["<",">"],f[8192]=["[","]"],f}function re(f){return s[f&15360][0]}function B(f){return s[f&15360][1]}var A;(function(f){f[f.Auto=0]="Auto",f[f.CountMask=268435455]="CountMask",f[f._i=268435456]="_i"})(A||(A={}))})(mn||(mn={}));var mn;(function(e){function s(v,W,x){if(!v.getDirectories||!v.readDirectory)return;var $=new e.Map,L=e.createGetCanonicalFileName(x);return{useCaseSensitiveFileNames:x,fileExists:f,readFile:function(R,me){return v.readFile(R,me)},directoryExists:v.directoryExists&&F,getDirectories:p,readDirectory:d,createDirectory:v.createDirectory&&g,writeFile:v.writeFile&&A,addOrDeleteFileOrDirectory:m,addOrDeleteFile:k,clearCache:D,realpath:v.realpath&&T};function E(R){return e.toPath(R,W,L)}function ae(R){return $.get(e.ensureTrailingDirectorySeparator(R))}function X(R){return ae(e.getDirectoryPath(R))}function ie(R){return e.getBaseFileName(e.normalizePath(R))}function le(R,me){var q;if(!v.realpath||e.ensureTrailingDirectorySeparator(E(v.realpath(R)))===me){var J={files:e.map(v.readDirectory(R,void 0,void 0,["*.*"]),ie)||[],directories:v.getDirectories(R)||[]};return $.set(e.ensureTrailingDirectorySeparator(me),J),J}return((q=v.directoryExists)===null||q===void 0?void 0:q.call(v,R))?($.set(me,!1),!1):void 0}function P(R,me){me=e.ensureTrailingDirectorySeparator(me);var q=ae(me);if(q)return q;try{return le(R,me)}catch(J){e.Debug.assert(!$.has(e.ensureTrailingDirectorySeparator(me)));return}}function I(R,me){return L(R)===L(me)}function re(R,me){return e.some(R,function(q){return I(q,me)})}function B(R,me,q){if(re(R,me)){if(!q)return e.filterMutate(R,function(J){return!I(J,me)})}else if(q)return R.push(me)}function A(R,me,q){var J=E(R),C=X(J);return C&&N(C,ie(R),!0),v.writeFile(R,me,q)}function f(R){var me=E(R),q=X(me);return q&&re(q.files,ie(R))||v.fileExists(R)}function F(R){var me=E(R);return $.has(e.ensureTrailingDirectorySeparator(me))||v.directoryExists(R)}function g(R){var me=E(R),q=X(me),J=ie(R);q&&B(q.directories,J,!0),v.createDirectory(R)}function p(R){var me=E(R),q=P(R,me);return q?q.directories.slice():v.getDirectories(R)}function d(R,me,q,J,C){var we=E(R),Oe=P(R,we),te;if(Oe!==void 0)return e.matchFiles(R,me,q,J,x,W,C,Te,T,F);return v.readDirectory(R,me,q,J,C);function Te(Ce){var Ue=E(Ce);if(Ue===we)return Oe||be(Ce,Ue);var Se=P(Ce,Ue);return Se!==void 0?Se||be(Ce,Ue):e.emptyFileSystemEntries}function be(Ce,Ue){if(te&&Ue===we)return te;var Se={files:e.map(v.readDirectory(Ce,void 0,void 0,["*.*"]),ie)||e.emptyArray,directories:v.getDirectories(Ce)||e.emptyArray};return Ue===we&&(te=Se),Se}}function T(R){return v.realpath?v.realpath(R):R}function m(R,me){var q=ae(me);if(q!==void 0){D();return}var J=X(me);if(!J)return;if(!v.directoryExists){D();return}var C=ie(R),we={fileExists:v.fileExists(me),directoryExists:v.directoryExists(me)};return we.directoryExists||re(J.directories,C)?D():N(J,C,we.fileExists),we}function k(R,me,q){if(q===e.FileWatcherEventKind.Changed)return;var J=X(me);J&&N(J,ie(R),q===e.FileWatcherEventKind.Created)}function N(R,me,q){B(R.files,me,q)}function D(){$.clear()}}e.createCachedDirectoryStructureHost=s;var ue;(function(v){v[v.None=0]="None",v[v.Partial=1]="Partial",v[v.Full=2]="Full"})(ue=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function ee(v,W,x,$,L){var E,ae=e.arrayToMap(((E=W==null?void 0:W.configFile)===null||E===void 0?void 0:E.extendedSourceFiles)||e.emptyArray,L);x.forEach(function(X,ie){ae.has(ie)||(X.projects.delete(v),X.close())}),ae.forEach(function(X,ie){var le=x.get(ie);le?le.projects.add(v):x.set(ie,{projects:new e.Set([v]),watcher:$(X,ie),close:function(){var P=x.get(ie);if(!P||P.projects.size!==0)return;P.watcher.close(),x.delete(ie)}})})}e.updateSharedExtendedConfigFileWatcher=ee;function Y(v,W){W.forEach(function(x){x.projects.delete(v)&&x.close()})}e.clearSharedExtendedConfigFileWatcher=Y;function V(v,W,x){if(!v.delete(W))return;v.forEach(function($,L){var E,ae=$.extendedResult;((E=ae.extendedSourceFiles)===null||E===void 0?void 0:E.some(function(X){return x(X)===W}))&&V(v,L,x)})}e.cleanExtendedConfigCache=V;function ne(v,W,x){var $=new e.Map(v);e.mutateMap(W,$,{createNewValue:x,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=ne;function _e(v,W,x){var $=v.getMissingFilePaths(),L=e.arrayToMap($,e.identity,e.returnTrue);e.mutateMap(W,L,{createNewValue:x,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=_e;function O(v,W,x){e.mutateMap(v,W,{createNewValue:$,onDeleteValue:Z,onExistingValue:L});function $(E,ae){return{watcher:x(E,ae),flags:ae}}function L(E,ae,X){if(E.flags===ae)return;E.watcher.close(),v.set(X,$(X,ae))}}e.updateWatchingWildcardDirectories=O;function w(v){var W=v.watchedDirPath,x=v.fileOrDirectory,$=v.fileOrDirectoryPath,L=v.configFileName,E=v.options,ae=v.program,X=v.extraFileExtensions,ie=v.currentDirectory,le=v.useCaseSensitiveFileNames,P=v.writeLog,I=v.toPath,re=e.removeIgnoredPath($);if(!re)return P("Project: "+L+" Detected ignored path: "+x),!0;if($=re,$===W)return!1;if(e.hasExtension($)&&!e.isSupportedSourceFileName(x,E,X))return P("Project: "+L+" Detected file add/remove of non supported extension: "+x),!0;if(e.isExcludedFile(x,E.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(L),ie),le,ie))return P("Project: "+L+" Detected excluded file: "+x),!0;if(!ae)return!1;if(e.outFile(E)||E.outDir)return!1;if(e.fileExtensionIs($,".d.ts")){if(E.declarationDir)return!1}else if(!e.fileExtensionIsOneOf($,e.supportedJSExtensions))return!1;var B=e.removeFileExtension($),A=e.isArray(ae)?void 0:b(ae)?ae.getProgramOrUndefined():ae,f=!A&&!e.isArray(ae)?ae:void 0;if(F(B+".ts")||F(B+".tsx"))return P("Project: "+L+" Detected output file: "+x),!0;return!1;function F(g){return A?!!A.getSourceFileByPath(g):f?f.getState().fileInfos.has(g):!!e.find(ae,function(p){return I(p)===g})}}e.isIgnoredFileFromWildCardWatching=w;function b(v){return!!v.getState}function de(v,W){return v?v.isEmittedFile(W):!1}e.isEmittedFileOfProgram=de;var fe;(function(v){v[v.None=0]="None",v[v.TriggerOnly=1]="TriggerOnly",v[v.Verbose=2]="Verbose"})(fe=e.WatchLogLevel||(e.WatchLogLevel={}));function _(v,W,x,$){e.setSysLog(W===fe.Verbose?x:e.noop);var L={watchFile:function(f,F,g,p){return v.watchFile(f,F,g,p)},watchDirectory:function(f,F,g,p){return v.watchDirectory(f,F,(g&1)!==0,p)}},E=W!==fe.None?{watchFile:B("watchFile"),watchDirectory:B("watchDirectory")}:void 0,ae=W===fe.Verbose?{watchFile:I,watchDirectory:re}:E||L,X=W===fe.Verbose?P:e.returnNoopFileWatcher;return{watchFile:ie("watchFile"),watchDirectory:ie("watchDirectory")};function ie(f){return function(F,g,p,d,T,m){var k;return e.matchesExclude(F,f==="watchFile"?d==null?void 0:d.excludeFiles:d==null?void 0:d.excludeDirectories,le(),((k=v.getCurrentDirectory)===null||k===void 0?void 0:k.call(v))||"")?X(F,p,d,T,m):ae[f].call(void 0,F,g,p,d,T,m)}}function le(){return typeof v.useCaseSensitiveFileNames=="boolean"?v.useCaseSensitiveFileNames:v.useCaseSensitiveFileNames()}function P(f,F,g,p,d){return x("ExcludeWatcher:: Added:: "+A(f,F,g,p,d,$)),{close:function(){return x("ExcludeWatcher:: Close:: "+A(f,F,g,p,d,$))}}}function I(f,F,g,p,d,T){x("FileWatcher:: Added:: "+A(f,g,p,d,T,$));var m=E.watchFile(f,F,g,p,d,T);return{close:function(){x("FileWatcher:: Close:: "+A(f,g,p,d,T,$)),m.close()}}}function re(f,F,g,p,d,T){var m="DirectoryWatcher:: Added:: "+A(f,g,p,d,T,$);x(m);var k=e.timestamp(),N=E.watchDirectory(f,F,g,p,d,T),D=e.timestamp()-k;return x("Elapsed:: "+D+"ms "+m),{close:function(){var R="DirectoryWatcher:: Close:: "+A(f,g,p,d,T,$);x(R);var me=e.timestamp();N.close();var q=e.timestamp()-me;x("Elapsed:: "+q+"ms "+R)}}}function B(f){return function(F,g,p,d,T,m){return L[f].call(void 0,F,function(){for(var k=[],N=0;N<arguments.length;N++)k[N]=arguments[N];var D=(f==="watchFile"?"FileWatcher":"DirectoryWatcher")+":: Triggered with "+k[0]+" "+(k[1]!==void 0?k[1]:"")+":: "+A(F,p,d,T,m,$);x(D);var R=e.timestamp();g.call.apply(g,Mt([void 0],k,!1));var me=e.timestamp()-R;x("Elapsed:: "+me+"ms "+D)},p,d,T,m)}}function A(f,F,g,p,d,T){return"WatchInfo: "+f+" "+F+" "+JSON.stringify(g)+" "+(T?T(p,d):d===void 0?p:p+" "+d)}}e.getWatchFactory=_;function U(v){var W=v==null?void 0:v.fallbackPolling;return{watchFile:W!==void 0?W:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=U;function Z(v){v.watcher.close()}e.closeFileWatcherOf=Z})(mn||(mn={}));var mn;(function(e){function s(q,J,C){return C===void 0&&(C="tsconfig.json"),e.forEachAncestorDirectory(q,function(we){var Oe=e.combinePaths(we,C);return J(Oe)?Oe:void 0})}e.findConfigFile=s;function ue(q,J){var C=e.getDirectoryPath(J),we=e.isRootedDiskPath(q)?q:e.combinePaths(C,q);return e.normalizePath(we)}e.resolveTripleslashReference=ue;function ee(q,J,C){var we,Oe=e.forEach(q,function(te){var Te=e.getNormalizedPathComponents(te,J);if(Te.pop(),!we){we=Te;return}for(var be=Math.min(we.length,Te.length),Ce=0;Ce<be;Ce++)if(C(we[Ce])!==C(Te[Ce])){if(Ce===0)return!0;we.length=Ce;break}Te.length<we.length&&(we.length=Te.length)});return Oe?"":we?e.getPathFromPathComponents(we):J}e.computeCommonSourceDirectoryOfFilenames=ee;function Y(q,J){return V(q,J)}e.createCompilerHost=Y;function V(q,J,C){C===void 0&&(C=e.sys);var we=new e.Map,Oe=e.createGetCanonicalFileName(C.useCaseSensitiveFileNames),te=e.maybeBind(C,C.createHash)||e.generateDjb2Hash;function Te(pe,Me,fn){var Ye;try{e.performance.mark("beforeIORead"),Ye=qe.readFile(pe),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Ne){fn&&fn(Ne.message),Ye=""}return Ye!==void 0?e.createSourceFile(pe,Ye,Me,J):void 0}function be(pe){return we.has(pe)?!0:(qe.directoryExists||C.directoryExists)(pe)?(we.set(pe,!0),!0):!1}function Ce(pe,Me,fn,Ye){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(pe,Me,fn,function(Ne,je,xn){return Se(Ne,je,xn)},function(Ne){return(qe.createDirectory||C.createDirectory)(Ne)},function(Ne){return be(Ne)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(Ne){Ye&&Ye(Ne.message)}}var Ue;function Se(pe,Me,fn){if(!e.isWatchSet(q)||!C.getModifiedTime){C.writeFile(pe,Me,fn);return}Ue||(Ue=new e.Map);var Ye=te(Me),Ne=C.getModifiedTime(pe);if(Ne){var je=Ue.get(pe);if(je&&je.byteOrderMark===fn&&je.hash===Ye&&je.mtime.getTime()===Ne.getTime())return}C.writeFile(pe,Me,fn);var xn=C.getModifiedTime(pe)||e.missingFileModifiedTime;Ue.set(pe,{hash:Ye,byteOrderMark:fn,mtime:xn})}function $e(){return e.getDirectoryPath(e.normalizePath(C.getExecutingFilePath()))}var ce=e.getNewLineCharacter(q,function(){return C.newLine}),Le=C.realpath&&function(pe){return C.realpath(pe)},qe={getSourceFile:Te,getDefaultLibLocation:$e,getDefaultLibFileName:function(pe){return e.combinePaths($e(),e.getDefaultLibFileName(pe))},writeFile:Ce,getCurrentDirectory:e.memoize(function(){return C.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return C.useCaseSensitiveFileNames},getCanonicalFileName:Oe,getNewLine:function(){return ce},fileExists:function(pe){return C.fileExists(pe)},readFile:function(pe){return C.readFile(pe)},trace:function(pe){return C.write(pe+ce)},directoryExists:function(pe){return C.directoryExists(pe)},getEnvironmentVariable:function(pe){return C.getEnvironmentVariable?C.getEnvironmentVariable(pe):""},getDirectories:function(pe){return C.getDirectories(pe)},realpath:Le,readDirectory:function(pe,Me,fn,Ye,Ne){return C.readDirectory(pe,Me,fn,Ye,Ne)},createDirectory:function(pe){return C.createDirectory(pe)},createHash:e.maybeBind(C,C.createHash)};return qe}e.createCompilerHostWorker=V;function ne(q,J,C){var we=q.readFile,Oe=q.fileExists,te=q.directoryExists,Te=q.createDirectory,be=q.writeFile,Ce=new e.Map,Ue=new e.Map,Se=new e.Map,$e=new e.Map,ce=function(pe){var Me=J(pe),fn=Ce.get(Me);return fn!==void 0?fn!==!1?fn:void 0:Le(Me,pe)},Le=function(pe,Me){var fn=we.call(q,Me);return Ce.set(pe,fn!==void 0?fn:!1),fn};q.readFile=function(pe){var Me=J(pe),fn=Ce.get(Me);return fn!==void 0?fn!==!1?fn:void 0:!e.fileExtensionIs(pe,".json")&&!e.isBuildInfoFile(pe)?we.call(q,pe):Le(Me,pe)};var qe=C?function(pe,Me,fn,Ye){var Ne=J(pe),je=$e.get(Ne);if(je)return je;var xn=C(pe,Me,fn,Ye);return xn&&(e.isDeclarationFileName(pe)||e.fileExtensionIs(pe,".json"))&&$e.set(Ne,xn),xn}:void 0;return q.fileExists=function(pe){var Me=J(pe),fn=Ue.get(Me);if(fn!==void 0)return fn;var Ye=Oe.call(q,pe);return Ue.set(Me,!!Ye),Ye},be&&(q.writeFile=function(pe,Me,fn,Ye,Ne){var je=J(pe);Ue.delete(je);var xn=Ce.get(je);if(xn!==void 0&&xn!==Me)Ce.delete(je),$e.delete(je);else if(qe){var Wn=$e.get(je);Wn&&Wn.text!==Me&&$e.delete(je)}be.call(q,pe,Me,fn,Ye,Ne)}),te&&Te&&(q.directoryExists=function(pe){var Me=J(pe),fn=Se.get(Me);if(fn!==void 0)return fn;var Ye=te.call(q,pe);return Se.set(Me,!!Ye),Ye},q.createDirectory=function(pe){var Me=J(pe);Se.delete(Me),Te.call(q,pe)}),{originalReadFile:we,originalFileExists:Oe,originalDirectoryExists:te,originalCreateDirectory:Te,originalWriteFile:be,getSourceFileWithCache:qe,readFileWithCache:ce}}e.changeCompilerHostLikeToUseCache=ne;function _e(q,J,C){var we;return we=e.addRange(we,q.getConfigFileParsingDiagnostics()),we=e.addRange(we,q.getOptionsDiagnostics(C)),we=e.addRange(we,q.getSyntacticDiagnostics(J,C)),we=e.addRange(we,q.getGlobalDiagnostics(C)),we=e.addRange(we,q.getSemanticDiagnostics(J,C)),e.getEmitDeclarations(q.getCompilerOptions())&&(we=e.addRange(we,q.getDeclarationDiagnostics(J,C))),e.sortAndDeduplicateDiagnostics(we||e.emptyArray)}e.getPreEmitDiagnostics=_e;function O(q,J){for(var C="",we=0,Oe=q;we<Oe.length;we++){var te=Oe[we];C+=w(te,J)}return C}e.formatDiagnostics=O;function w(q,J){var C=e.diagnosticCategoryName(q)+" TS"+q.code+": "+ae(q.messageText,J.getNewLine())+J.getNewLine();if(q.file){var we=e.getLineAndCharacterOfPosition(q.file,q.start),Oe=we.line,te=we.character,Te=q.file.fileName,be=e.convertToRelativePath(Te,J.getCurrentDirectory(),function(Ce){return J.getCanonicalFileName(Ce)});return be+"("+(Oe+1)+","+(te+1)+"): "+C}return C}e.formatDiagnostic=w;var b;(function(q){q.Grey="[90m",q.Red="[91m",q.Yellow="[93m",q.Blue="[94m",q.Cyan="[96m"})(b=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var de="[7m",fe=" ",_="[0m",U="...",Z=" ",v=" ";function W(q){switch(q){case e.DiagnosticCategory.Error:return b.Red;case e.DiagnosticCategory.Warning:return b.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return b.Blue}}function x(q,J){return J+q+_}e.formatColorAndReset=x;function $(q,J,C,we,Oe,te){var Te=e.getLineAndCharacterOfPosition(q,J),be=Te.line,Ce=Te.character,Ue=e.getLineAndCharacterOfPosition(q,J+C),Se=Ue.line,$e=Ue.character,ce=e.getLineAndCharacterOfPosition(q,q.text.length).line,Le=Se-be>=4,qe=(Se+1+"").length;Le&&(qe=Math.max(U.length,qe));for(var pe="",Me=be;Me<=Se;Me++){pe+=te.getNewLine(),Le&&be+1<Me&&Me<Se-1&&(pe+=we+x(e.padLeft(U,qe),de)+fe+te.getNewLine(),Me=Se-1);var fn=e.getPositionOfLineAndCharacter(q,Me,0),Ye=Me<ce?e.getPositionOfLineAndCharacter(q,Me+1,0):q.text.length,Ne=q.text.slice(fn,Ye);if(Ne=e.trimStringEnd(Ne),Ne=Ne.replace(/\t/g," "),pe+=we+x(e.padLeft(Me+1+"",qe),de)+fe,pe+=Ne+te.getNewLine(),pe+=we+x(e.padLeft("",qe),de)+fe,pe+=Oe,Me===be){var je=Me===Se?$e:void 0;pe+=Ne.slice(0,Ce).replace(/\S/g," "),pe+=Ne.slice(Ce,je).replace(/./g,"~")}else Me===Se?pe+=Ne.slice(0,$e).replace(/./g,"~"):pe+=Ne.replace(/./g,"~");pe+=_}return pe}function L(q,J,C,we){we===void 0&&(we=x);var Oe=e.getLineAndCharacterOfPosition(q,J),te=Oe.line,Te=Oe.character,be=C?e.convertToRelativePath(q.fileName,C.getCurrentDirectory(),function(Ue){return C.getCanonicalFileName(Ue)}):q.fileName,Ce="";return Ce+=we(be,b.Cyan),Ce+=":",Ce+=we(""+(te+1),b.Yellow),Ce+=":",Ce+=we(""+(Te+1),b.Yellow),Ce}e.formatLocation=L;function E(q,J){for(var C="",we=0,Oe=q;we<Oe.length;we++){var te=Oe[we];if(te.file){var Te=te.file,be=te.start;C+=L(Te,be,J),C+=" - "}if(C+=x(e.diagnosticCategoryName(te),W(te.category)),C+=x(" TS"+te.code+": ",b.Grey),C+=ae(te.messageText,J.getNewLine()),te.file&&(C+=J.getNewLine(),C+=$(te.file,te.start,te.length,"",W(te.category),J)),te.relatedInformation){C+=J.getNewLine();for(var Ce=0,Ue=te.relatedInformation;Ce<Ue.length;Ce++){var Se=Ue[Ce],Te=Se.file,be=Se.start,$e=Se.length,ce=Se.messageText;Te&&(C+=J.getNewLine(),C+=Z+L(Te,be,J),C+=$(Te,be,$e,v,b.Cyan,J)),C+=J.getNewLine(),C+=v+ae(ce,J.getNewLine())}}C+=J.getNewLine()}return C}e.formatDiagnosticsWithColorAndContext=E;function ae(q,J,C){if(C===void 0&&(C=0),e.isString(q))return q;if(q===void 0)return"";var we="";if(C){we+=J;for(var Oe=0;Oe<C;Oe++)we+=" "}if(we+=q.messageText,C++,q.next)for(var te=0,Te=q.next;te<Te.length;te++){var be=Te[te];we+=ae(be,J,C)}return we}e.flattenDiagnosticMessageText=ae;function X(q,J,C,we){if(q.length===0)return[];for(var Oe=[],te=new e.Map,Te=0,be=q;Te<be.length;Te++){var Ce=be[Te],Ue=void 0;te.has(Ce)?Ue=te.get(Ce):te.set(Ce,Ue=we(Ce,J,C)),Oe.push(Ue)}return Oe}e.loadWithLocalCache=X;function ie(q,J){return le(void 0,q,function(C,we){return C&&J(C,we)})}e.forEachResolvedProjectReference=ie;function le(q,J,C,we){var Oe;return te(q,J,void 0);function te(Te,be,Ce){if(we){var Ue=we(Te,Ce);if(Ue)return Ue}return e.forEach(be,function(Se,$e){if(Se&&(Oe==null?void 0:Oe.has(Se.sourceFile.path)))return;var ce=C(Se,Ce,$e);return ce||!Se?ce:((Oe||(Oe=new e.Set)).add(Se.sourceFile.path),te(Se.commandLine.projectReferences,Se.references,Se))})}}e.inferredTypesContainingFile="__inferred type names__.ts";function P(q){switch(q==null?void 0:q.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=P;function I(q){return q.pos!==void 0}e.isReferenceFileLocation=I;function re(q,J){var C,we,Oe,te,Te,be,Ce,Ue=e.Debug.checkDefined(q(J.file)),Se=J.kind,$e=J.index,ce,Le,qe;switch(Se){case e.FileIncludeKind.Import:var pe=me(Ue,$e);if(qe=(Te=(te=Ue.resolvedModules)===null||te===void 0?void 0:te.get(pe.text))===null||Te===void 0?void 0:Te.packageId,pe.pos===-1)return{file:Ue,packageId:qe,text:pe.text};ce=e.skipTrivia(Ue.text,pe.pos),Le=pe.end;break;case e.FileIncludeKind.ReferenceFile:C=Ue.referencedFiles[$e],ce=C.pos,Le=C.end;break;case e.FileIncludeKind.TypeReferenceDirective:we=Ue.typeReferenceDirectives[$e],ce=we.pos,Le=we.end,qe=(Ce=(be=Ue.resolvedTypeReferenceDirectiveNames)===null||be===void 0?void 0:be.get(e.toFileNameLowerCase(Ue.typeReferenceDirectives[$e].fileName)))===null||Ce===void 0?void 0:Ce.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Oe=Ue.libReferenceDirectives[$e],ce=Oe.pos,Le=Oe.end;break;default:return e.Debug.assertNever(Se)}return{file:Ue,pos:ce,end:Le,packageId:qe}}e.getReferencedFileLocation=re;function B(q,J,C,we,Oe,te,Te,be,Ce){if(!q||(Te==null?void 0:Te()))return!1;if(!e.arrayIsEqualTo(q.getRootFileNames(),J))return!1;var Ue;if(!e.arrayIsEqualTo(q.getProjectReferences(),Ce,Le))return!1;if(q.getSourceFiles().some($e))return!1;if(q.getMissingFilePaths().some(Oe))return!1;var Se=q.getCompilerOptions();if(!e.compareDataObjects(Se,C))return!1;if(Se.configFile&&C.configFile)return Se.configFile.text===C.configFile.text;return!0;function $e(pe){return!ce(pe)||te(pe.path)}function ce(pe){return pe.version===we(pe.resolvedPath,pe.fileName)}function Le(pe,Me,fn){return e.projectReferenceIsEqualTo(pe,Me)&&qe(q.getResolvedProjectReferences()[fn],pe)}function qe(pe,Me){if(pe){if(e.contains(Ue,pe))return!0;var fn=N(Me),Ye=be(fn);return Ye?pe.commandLine.options.configFile!==Ye.options.configFile?!1:e.arrayIsEqualTo(pe.commandLine.fileNames,Ye.fileNames)?((Ue||(Ue=[])).push(pe),!e.forEach(pe.references,function(je,xn){return!qe(je,pe.commandLine.projectReferences[xn])})):!1:!1}var Ne=N(Me);return!be(Ne)}}e.isProgramUptoDate=B;function A(q){return q.options.configFile?Mt(Mt([],q.options.configFile.parseDiagnostics,!0),q.errors,!0):q.errors}e.getConfigFileParsingDiagnostics=A;function f(q,J){return q?e.optionsHaveChanges(q.getCompilerOptions(),J,e.sourceFileAffectingCompilerOptions):!1}function F(q,J,C,we,Oe){return{rootNames:q,options:J,host:C,oldProgram:we,configFileParsingDiagnostics:Oe}}function g(q,J,C,we,Oe){var te,Te,be,Ce=e.isArray(q)?F(q,J,C,we,Oe):q,Ue=Ce.rootNames,Se=Ce.options,$e=Ce.configFileParsingDiagnostics,ce=Ce.projectReferences,Le=Ce.oldProgram,qe,pe,Me,fn,Ye,Ne,je,xn,Wn=new e.Map,dn=e.createMultiMap(),vn={},o={},Cn=new e.Map,z,tn=typeof Se.maxNodeModuleJsDepth=="number"?Se.maxNodeModuleJsDepth:0,$n=0,Un=new e.Map,oe=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:Se.configFilePath,rootDir:Se.rootDir},!0),e.performance.mark("beforeProgram");var Pe=Ce.host||Y(Se),ke=m(Pe),Qe=Se.noLib,gn=e.memoize(function(){return Pe.getDefaultLibFileName(Se)}),xe=Pe.getDefaultLibLocation?Pe.getDefaultLibLocation():e.getDirectoryPath(gn()),Ze=e.createDiagnosticCollection(),wn=Pe.getCurrentDirectory(),Be=e.getSupportedExtensions(Se),hn=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(Se,Be),Kn=new e.Map,Je,En,Nn,ct,yt=Pe.hasInvalidatedResolution||e.returnFalse;if(Pe.resolveModuleNames)ct=function(kn,ot,Nt,or){return Pe.resolveModuleNames(e.Debug.checkEachDefined(kn),ot,Nt,or,Se).map(function(Sr){if(!Sr||Sr.extension!==void 0)return Sr;var Er=e.clone(Sr);return Er.extension=e.extensionFromPath(Sr.resolvedFileName),Er})};else{En=e.createModuleResolutionCache(wn,cl,Se);var Gt=function(kn,ot,Nt){return e.resolveModuleName(kn,ot,Se,Pe,En,Nt).resolvedModule};ct=function(kn,ot,Nt,or){return X(e.Debug.checkEachDefined(kn),ot,or,Gt)}}var $t;if(Pe.resolveTypeReferenceDirectives)$t=function(kn,ot,Nt){return Pe.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(kn),ot,Nt,Se)};else{Nn=e.createTypeReferenceDirectiveResolutionCache(wn,cl,void 0,En==null?void 0:En.getPackageJsonInfoCache());var Ke=function(kn,ot,Nt){return e.resolveTypeReferenceDirective(kn,ot,Se,Pe,Nt,Nn).resolvedTypeReferenceDirective};$t=function(kn,ot,Nt){return X(e.Debug.checkEachDefined(kn),ot,Nt,Ke)}}var Vn=new e.Map,Zn=new e.Map,Re=e.createMultiMap(),Pn=!1,rt=new e.Map,Yn,gt=Pe.useCaseSensitiveFileNames()?new e.Map:void 0,lt,Fe,Bn,K,An=!!((te=Pe.useSourceOfProjectReferenceRedirect)===null||te===void 0?void 0:te.call(Pe))&&!Se.disableSourceOfProjectReferenceRedirect,Fn=p({compilerHost:Pe,getSymlinkCache:Zl,useSourceOfProjectReferenceRedirect:An,toPath:wt,getResolvedProjectReferences:Qt,getSourceOfProjectReferenceRedirect:Js,forEachResolvedProjectReference:Ks}),ln=Fn.onProgramCreateComplete,Ln=Fn.fileExists,Xe=Fn.directoryExists;e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Le});var Dn=f(Le,Se);e.tracing===null||e.tracing===void 0||e.tracing.pop();var rn;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),rn=Lt(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),rn!==2){qe=[],pe=[],ce&&(lt||(lt=ce.map(Jn)),Ue.length&&(lt==null||lt.forEach(function(kn,ot){if(!kn)return;var Nt=e.outFile(kn.commandLine.options);if(An){if(Nt||e.getEmitModuleKind(kn.commandLine.options)===e.ModuleKind.None)for(var or=0,Sr=kn.commandLine.fileNames;or<Sr.length;or++){var Er=Sr[or];St(Er,{kind:e.FileIncludeKind.SourceFromProjectReference,index:ot})}}else if(Nt)St(e.changeExtension(Nt,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:ot});else if(e.getEmitModuleKind(kn.commandLine.options)===e.ModuleKind.None)for(var Gr=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(kn.commandLine,!Pe.useCaseSensitiveFileNames())}),$r=0,zr=kn.commandLine.fileNames;$r<zr.length;$r++){var Er=zr[$r];!e.fileExtensionIs(Er,".d.ts")&&!e.fileExtensionIs(Er,".json")&&St(e.getOutputDeclarationFileName(Er,kn.commandLine,!Pe.useCaseSensitiveFileNames(),Gr),{kind:e.FileIncludeKind.OutputFromProjectReference,index:ot})}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:Ue.length}),e.forEach(Ue,function(kn,ot){return He(kn,!1,!1,{kind:e.FileIncludeKind.RootFile,index:ot})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var qn=Ue.length?e.getAutomaticTypeDirectiveNames(Se,Pe):e.emptyArray;if(qn.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:qn.length});for(var it=Se.configFilePath?e.getDirectoryPath(Se.configFilePath):Pe.getCurrentDirectory(),ht=e.combinePaths(it,e.inferredTypesContainingFile),Et=Or(qn,ht),zt=0;zt<qn.length;zt++)vs(qn[zt],Et[zt],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:qn[zt],packageId:(Te=Et[zt])===null||Te===void 0?void 0:Te.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(Ue.length&&!Qe){var fr=gn();!Se.lib&&fr?He(fr,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(Se.lib,function(kn,ot){He(e.combinePaths(xe,kn),!0,!1,{kind:e.FileIncludeKind.LibFile,index:ot})})}Yn=e.arrayFrom(e.mapDefinedIterator(rt.entries(),function(kn){var ot=kn[0],Nt=kn[1];return Nt===void 0?ot:void 0})),Me=e.stableSort(qe,eo).concat(pe),qe=void 0,pe=void 0}if(e.Debug.assert(!!Yn),Le&&Pe.onReleaseOldSourceFile){for(var br=Le.getSourceFiles(),Jt=0,mr=br;Jt<mr.length;Jt++){var Ht=mr[Jt],Xr=ui(Ht.resolvedPath);(Dn||!Xr||Ht.resolvedPath===Ht.path&&Xr.resolvedPath!==Ht.path)&&Pe.onReleaseOldSourceFile(Ht,Le.getCompilerOptions(),!!ui(Ht.path))}Pe.getParsedCommandLine||Le.forEachResolvedProjectReference(function(kn){yl(kn.sourceFile.path)||Pe.onReleaseOldSourceFile(kn.sourceFile,Le.getCompilerOptions(),!1)})}Le&&Pe.onReleaseParsedCommandLine&&le(Le.getProjectReferences(),Le.getResolvedProjectReferences(),function(kn,ot,Nt){var or=(ot==null?void 0:ot.commandLine.projectReferences[Nt])||Le.getProjectReferences()[Nt],Sr=N(or);(Fe==null?void 0:Fe.has(wt(Sr)))||Pe.onReleaseParsedCommandLine(Sr,kn,Le.getCompilerOptions())}),Nn=void 0,Le=void 0;var At={getRootFileNames:function(){return Ue},getSourceFile:xi,getSourceFileByPath:ui,getSourceFiles:function(){return Me},getMissingFilePaths:function(){return Yn},getModuleResolutionCache:function(){return En},getFilesByNameMap:function(){return rt},getCompilerOptions:function(){return Se},getSyntacticDiagnostics:xo,getOptionsDiagnostics:tr,getGlobalDiagnostics:Za,getSemanticDiagnostics:Vi,getCachedSemanticDiagnostics:os,getSuggestionDiagnostics:Oi,getDeclarationDiagnostics:Rs,getBindAndCheckDiagnostics:Qi,getProgramDiagnostics:mo,getTypeChecker:Qr,getClassifiableNames:Wt,getDiagnosticsProducingTypeChecker:li,getCommonSourceDirectory:rr,emit:ci,getCurrentDirectory:function(){return wn},getNodeCount:function(){return li().getNodeCount()},getIdentifierCount:function(){return li().getIdentifierCount()},getSymbolCount:function(){return li().getSymbolCount()},getTypeCount:function(){return li().getTypeCount()},getInstantiationCount:function(){return li().getInstantiationCount()},getRelationCacheSizes:function(){return li().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return z},getResolvedTypeReferenceDirectives:function(){return Cn},isSourceFileFromExternalLibrary:ea,isSourceFileDefaultLibrary:Fa,dropDiagnosticsProducingTypeChecker:Si,getSourceFileFromReference:un,getLibFileFromReference:Ve,sourceFileToPackageName:Zn,redirectTargetsMap:Re,usesUriStyleNodeCoreModules:Pn,isEmittedFile:au,getConfigFileParsingDiagnostics:Ga,getResolvedModuleWithFailedLookupLocationsFromCache:la,getProjectReferences:sr,getResolvedProjectReferences:Qt,getProjectReferenceRedirect:Xi,getResolvedProjectReferenceToRedirect:No,getResolvedProjectReferenceByPath:yl,forEachResolvedProjectReference:Ks,isSourceOfProjectReferenceRedirect:gl,emitBuildInfo:Yt,fileExists:Ln,directoryExists:Xe,getSymlinkCache:Zl,realpath:(be=Pe.realpath)===null||be===void 0?void 0:be.bind(Pe),useCaseSensitiveFileNames:function(){return Pe.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return dn},structureIsReused:rn};return ln(),z==null||z.forEach(function(kn){switch(kn.kind){case 1:return Ze.add(Mn(kn.file&&ui(kn.file),kn.fileProcessingReason,kn.diagnostic,kn.args||e.emptyArray));case 0:var ot=re(ui,kn.reason),Nt=ot.file,or=ot.pos,Sr=ot.end;return Ze.add(e.createFileDiagnostic.apply(void 0,Mt([Nt,e.Debug.checkDefined(or),e.Debug.checkDefined(Sr)-or,kn.diagnostic],kn.args||e.emptyArray,!1)));default:e.Debug.assertNever(kn)}}),Ee(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),At;function Wr(kn,ot,Nt){if(!kn.length)return e.emptyArray;var or=e.getNormalizedAbsolutePath(ot.originalFileName,wn),Sr=Ja(ot);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:or}),e.performance.mark("beforeResolveModule");var Er=ct(kn,or,Nt,Sr);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Er}function Or(kn,ot){if(!kn.length)return[];var Nt=e.isString(ot)?ot:e.getNormalizedAbsolutePath(ot.originalFileName,wn),or=e.isString(ot)?void 0:Ja(ot);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Nt}),e.performance.mark("beforeResolveTypeReference");var Sr=$t(kn,Nt,or);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Sr}function Ja(kn){var ot=No(kn.originalFileName);if(ot||!e.fileExtensionIs(kn.originalFileName,".d.ts"))return ot;var Nt=qa(kn.originalFileName,kn.path);if(Nt)return Nt;if(!Pe.realpath||!Se.preserveSymlinks||!e.stringContains(kn.originalFileName,e.nodeModulesPathPart))return;var or=Pe.realpath(kn.originalFileName),Sr=wt(or);return Sr===kn.path?void 0:qa(or,Sr)}function qa(kn,ot){var Nt=Js(kn);return e.isString(Nt)?No(Nt):Nt?Ks(function(or){var Sr=e.outFile(or.commandLine.options);return Sr&&wt(Sr)===ot?or:void 0}):void 0}function eo(kn,ot){return e.compareValues(Va(kn),Va(ot))}function Va(kn){if(e.containsPath(xe,kn.fileName,!1)){var ot=e.getBaseFileName(kn.fileName);if(ot==="lib.d.ts"||ot==="lib.es6.d.ts")return 0;var Nt=e.removeSuffix(e.removePrefix(ot,"lib."),".d.ts"),or=e.libs.indexOf(Nt);if(or!==-1)return or+1}return e.libs.length+2}function la(kn,ot){return En&&e.resolveModuleNameFromCache(kn,ot,En)}function wt(kn){return e.toPath(kn,wn,cl)}function rr(){if(Ye===void 0){var kn=e.filter(Me,function(ot){return e.sourceFileMayBeEmitted(ot,At)});Ye=e.getCommonSourceDirectory(Se,function(){return e.mapDefined(kn,function(ot){return ot.isDeclarationFile?void 0:ot.fileName})},wn,cl,function(ot){return he(kn,ot)})}return Ye}function Wt(){var kn;if(!xn){Qr(),xn=new e.Set;for(var ot=0,Nt=Me;ot<Nt.length;ot++){var or=Nt[ot];(kn=or.classifiableNames)===null||kn===void 0||kn.forEach(function(Sr){return xn.add(Sr)})}}return xn}function Pr(kn,ot){if(rn===0&&!ot.ambientModuleNames.length)return Wr(kn,ot,void 0);var Nt=Le&&Le.getSourceFile(ot.fileName);if(Nt!==ot&&ot.resolvedModules){for(var or=[],Sr=0,Er=kn;Sr<Er.length;Sr++){var Gr=Er[Sr],$r=ot.resolvedModules.get(Gr);or.push($r)}return or}for(var zr,wi,Ta,Oa={},ji=0;ji<kn.length;ji++){var Gr=kn[ji];if(ot===Nt&&!yt(Nt.path)){var Ri=e.getResolvedModule(Nt,Gr);if(Ri){e.isTraceEnabled(Se,Pe)&&e.trace(Pe,Ri.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Gr,e.getNormalizedAbsolutePath(ot.originalFileName,wn),Ri.resolvedFileName,Ri.packageId&&e.packageIdToString(Ri.packageId)),(wi||(wi=new Array(kn.length)))[ji]=Ri,(Ta||(Ta=[])).push(Gr);continue}}var ye=!1;e.contains(ot.ambientModuleNames,Gr)?(ye=!0,e.isTraceEnabled(Se,Pe)&&e.trace(Pe,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Gr,e.getNormalizedAbsolutePath(ot.originalFileName,wn))):ye=Tt(Gr),ye?(wi||(wi=new Array(kn.length)))[ji]=Oa:(zr||(zr=[])).push(Gr)}var cn=zr&&zr.length?Wr(zr,ot,Ta):e.emptyArray;if(!wi)return e.Debug.assert(cn.length===kn.length),cn;for(var Sn=0,ji=0;ji<wi.length;ji++)wi[ji]?wi[ji]===Oa&&(wi[ji]=void 0):(wi[ji]=cn[Sn],Sn++);return e.Debug.assert(Sn===cn.length),wi;function Tt(Vt){var Zr=e.getResolvedModule(Nt,Vt),Da=Zr&&Le.getSourceFile(Zr.resolvedFileName);if(Zr&&Da)return!1;var gi=Wn.get(Vt);return gi?(e.isTraceEnabled(Se,Pe)&&e.trace(Pe,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Vt,gi),!0):!1}}function ra(){return!le(Le.getProjectReferences(),Le.getResolvedProjectReferences(),function(kn,ot,Nt){var or=(ot?ot.commandLine.projectReferences:ce)[Nt],Sr=Jn(or);return kn?!Sr||Sr.sourceFile!==kn.sourceFile||!e.arrayIsEqualTo(kn.commandLine.fileNames,Sr.commandLine.fileNames):Sr!==void 0},function(kn,ot){var Nt=ot?yl(ot.sourceFile.path).commandLine.projectReferences:ce;return!e.arrayIsEqualTo(kn,Nt,e.projectReferenceIsEqualTo)})}function Lt(){var kn;if(!Le)return 0;var ot=Le.getCompilerOptions();if(e.changesAffectModuleResolution(ot,Se))return 0;var Nt=Le.getRootFileNames();if(!e.arrayIsEqualTo(Nt,Ue))return 0;if(!ra())return 0;ce&&(lt=ce.map(Jn));var or=[],Sr=[];if(rn=2,Le.getMissingFilePaths().some(function(tl){return Pe.fileExists(tl)}))return 0;var Er=Le.getSourceFiles(),Gr;(function(tl){tl[tl.Exists=0]="Exists",tl[tl.Modified=1]="Modified"})(Gr||(Gr={}));for(var $r=new e.Map,zr=0,wi=Er;zr<wi.length;zr++){var Ta=wi[zr],Oa=Pe.getSourceFileByPath?Pe.getSourceFileByPath(Ta.fileName,Ta.resolvedPath,Se.target,void 0,Dn):Pe.getSourceFile(Ta.fileName,Se.target,void 0,Dn);if(!Oa)return 0;e.Debug.assert(!Oa.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var ji=void 0;if(Ta.redirectInfo){if(Oa!==Ta.redirectInfo.unredirected)return 0;ji=!1,Oa=Ta}else if(Le.redirectTargetsMap.has(Ta.path)){if(Oa!==Ta)return 0;ji=!1}else ji=Oa!==Ta;Oa.path=Ta.path,Oa.originalFileName=Ta.originalFileName,Oa.resolvedPath=Ta.resolvedPath,Oa.fileName=Ta.fileName;var Ri=Le.sourceFileToPackageName.get(Ta.path);if(Ri!==void 0){var ye=$r.get(Ri),cn=ji?1:0;if(ye!==void 0&&cn===1||ye===1)return 0;$r.set(Ri,cn)}ji?(e.arrayIsEqualTo(Ta.libReferenceDirectives,Oa.libReferenceDirectives,se)||(rn=1),Ta.hasNoDefaultLib!==Oa.hasNoDefaultLib&&(rn=1),e.arrayIsEqualTo(Ta.referencedFiles,Oa.referencedFiles,se)||(rn=1),De(Oa),e.arrayIsEqualTo(Ta.imports,Oa.imports,pn)||(rn=1),e.arrayIsEqualTo(Ta.moduleAugmentations,Oa.moduleAugmentations,pn)||(rn=1),(Ta.flags&3145728)!==(Oa.flags&3145728)&&(rn=1),e.arrayIsEqualTo(Ta.typeReferenceDirectives,Oa.typeReferenceDirectives,se)||(rn=1),Sr.push({oldFile:Ta,newFile:Oa})):yt(Ta.path)&&(rn=1,Sr.push({oldFile:Ta,newFile:Oa})),or.push(Oa)}if(rn!==2)return rn;for(var Sn=Sr.map(function(tl){return tl.oldFile}),Tt=0,Vt=Er;Tt<Vt.length;Tt++){var Zr=Vt[Tt];if(!e.contains(Sn,Zr))for(var Da=0,gi=Zr.ambientModuleNames;Da<gi.length;Da++){var Eo=gi[Da];Wn.set(Eo,Zr.fileName)}}for(var Fo=0,bs=Sr;Fo<bs.length;Fo++){var Li=bs[Fo],Ta=Li.oldFile,Oa=Li.newFile,Uo=R(Oa),Hn=Pr(Uo,Oa),Zo=e.hasChangesInResolutions(Uo,Hn,Ta.resolvedModules,e.moduleResolutionIsEqualTo);Zo?(rn=1,Oa.resolvedModules=e.zipToMap(Uo,Hn)):Oa.resolvedModules=Ta.resolvedModules;var Ds=e.map(Oa.typeReferenceDirectives,function(Au){return e.toFileNameLowerCase(Au.fileName)}),Vs=Or(Ds,Oa),iu=e.hasChangesInResolutions(Ds,Vs,Ta.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);iu?(rn=1,Oa.resolvedTypeReferenceDirectiveNames=e.zipToMap(Ds,Vs)):Oa.resolvedTypeReferenceDirectiveNames=Ta.resolvedTypeReferenceDirectiveNames}if(rn!==2)return rn;if(e.changesAffectingProgramStructure(ot,Se)||((kn=Pe.hasChangedAutomaticTypeDirectiveNames)===null||kn===void 0?void 0:kn.call(Pe)))return 1;Yn=Le.getMissingFilePaths(),e.Debug.assert(or.length===Le.getSourceFiles().length);for(var fc=0,ou=or;fc<ou.length;fc++){var Oa=ou[fc];rt.set(Oa.path,Oa)}var oo=Le.getFilesByNameMap();return oo.forEach(function(tl,su){if(!tl){rt.set(su,tl);return}if(tl.path===su){Le.isSourceFileFromExternalLibrary(tl)&&oe.set(tl.path,!0);return}rt.set(su,rt.get(tl.path))}),Me=or,dn=Le.getFileIncludeReasons(),z=Le.getFileProcessingDiagnostics(),Cn=Le.getResolvedTypeReferenceDirectives(),Zn=Le.sourceFileToPackageName,Re=Le.redirectTargetsMap,Pn=Le.usesUriStyleNodeCoreModules,2}function xt(kn){return{getPrependNodes:at,getCanonicalFileName:cl,getCommonSourceDirectory:At.getCommonSourceDirectory,getCompilerOptions:At.getCompilerOptions,getCurrentDirectory:function(){return wn},getNewLine:function(){return Pe.getNewLine()},getSourceFile:At.getSourceFile,getSourceFileByPath:At.getSourceFileByPath,getSourceFiles:At.getSourceFiles,getLibFileFromReference:At.getLibFileFromReference,isSourceFileFromExternalLibrary:ea,getResolvedProjectReferenceToRedirect:No,getProjectReferenceRedirect:Xi,isSourceOfProjectReferenceRedirect:gl,getSymlinkCache:Zl,writeFile:kn||function(ot,Nt,or,Sr,Er){return Pe.writeFile(ot,Nt,or,Sr,Er)},isEmitBlocked:Mi,readFile:function(ot){return Pe.readFile(ot)},fileExists:function(ot){var Nt=wt(ot);return ui(Nt)?!0:e.contains(Yn,Nt)?!1:Pe.fileExists(ot)},useCaseSensitiveFileNames:function(){return Pe.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return At.getProgramBuildInfo&&At.getProgramBuildInfo()},getSourceFileFromReference:function(ot,Nt){return At.getSourceFileFromReference(ot,Nt)},redirectTargetsMap:Re,getFileIncludeReasons:At.getFileIncludeReasons}}function Yt(kn){e.Debug.assert(!e.outFile(Se)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var ot=e.emitFiles(e.notImplementedResolver,xt(kn),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),ot}function Qt(){return lt}function sr(){return ce}function at(){return k(ce,function(kn,ot){var Nt;return(Nt=lt[ot])===null||Nt===void 0?void 0:Nt.commandLine},function(kn){var ot=wt(kn),Nt=ui(ot);return Nt?Nt.text:rt.has(ot)?void 0:Pe.readFile(ot)})}function ea(kn){return!!oe.get(kn.path)}function Fa(kn){if(kn.hasNoDefaultLib)return!0;if(!Se.noLib)return!1;var ot=Pe.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return Se.lib?e.some(Se.lib,function(Nt){return ot(kn.fileName,e.combinePaths(xe,Nt))}):ot(kn.fileName,gn())}function li(){return Ne||(Ne=e.createTypeChecker(At,!0))}function Si(){Ne=void 0}function Qr(){return je||(je=e.createTypeChecker(At,!1))}function ci(kn,ot,Nt,or,Sr,Er){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:kn==null?void 0:kn.path},!0);var Gr=Ca(function(){return ro(At,kn,ot,Nt,or,Sr,Er)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Gr}function Mi(kn){return Kn.has(wt(kn))}function ro(kn,ot,Nt,or,Sr,Er,Gr){if(!Gr){var $r=d(kn,ot,Nt,or);if($r)return $r}var zr=li().getEmitResolver(e.outFile(Se)?void 0:ot,or);e.performance.mark("beforeEmit");var wi=e.emitFiles(zr,xt(Nt),ot,e.getTransformers(Se,Er,Sr),Sr,!1,Gr);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),wi}function xi(kn){return ui(wt(kn))}function ui(kn){return rt.get(kn)||void 0}function lo(kn,ot,Nt){return kn?ot(kn,Nt):e.sortAndDeduplicateDiagnostics(e.flatMap(At.getSourceFiles(),function(or){return Nt&&Nt.throwIfCancellationRequested(),ot(or,Nt)}))}function xo(kn,ot){return lo(kn,Ls,ot)}function Vi(kn,ot){return lo(kn,ai,ot)}function os(kn){var ot;return kn?(ot=vn.perFile)===null||ot===void 0?void 0:ot.get(kn.path):vn.allDiagnostics}function Qi(kn,ot){return Pi(kn,ot)}function mo(kn){var ot;if(e.skipTypeChecking(kn,Se,At))return e.emptyArray;var Nt=Ze.getDiagnostics(kn.fileName);return((ot=kn.commentDirectives)===null||ot===void 0?void 0:ot.length)?_s(kn,kn.commentDirectives,Nt).diagnostics:Nt}function Rs(kn,ot){var Nt=At.getCompilerOptions();return!kn||e.outFile(Nt)?Mo(kn,ot):lo(kn,_t,ot)}function Ls(kn){return e.isSourceFileJS(kn)?(kn.additionalSyntacticDiagnostics||(kn.additionalSyntacticDiagnostics=fs(kn)),e.concatenate(kn.additionalSyntacticDiagnostics,kn.parseDiagnostics)):kn.parseDiagnostics}function Ca(kn){try{return kn()}catch(ot){throw ot instanceof e.OperationCanceledException&&(je=void 0,Ne=void 0),ot}}function ai(kn,ot){return e.concatenate(T(Pi(kn,ot),Se),mo(kn))}function Pi(kn,ot){return yn(kn,ot,vn,wo)}function wo(kn,ot){return Ca(function(){if(e.skipTypeChecking(kn,Se,At))return e.emptyArray;var Nt=li();e.Debug.assert(!!kn.bindDiagnostics);var or=e.isCheckJsEnabledForFile(kn,Se),Sr=!!kn.checkJsDirective&&kn.checkJsDirective.enabled===!1,Er=!Sr&&(kn.scriptKind===3||kn.scriptKind===4||kn.scriptKind===5||or||kn.scriptKind===7),Gr=Er?kn.bindDiagnostics:e.emptyArray,$r=Er?Nt.getDiagnostics(kn,ot):e.emptyArray;return Lo(kn,Er,Gr,$r,or?kn.jsDocDiagnostics:void 0)})}function Lo(kn,ot){for(var Nt,or=[],Sr=2;Sr<arguments.length;Sr++)or[Sr-2]=arguments[Sr];var Er=e.flatten(or);if(!ot||!((Nt=kn.commentDirectives)===null||Nt===void 0?void 0:Nt.length))return Er;for(var Gr=_s(kn,kn.commentDirectives,Er),$r=Gr.diagnostics,zr=Gr.directives,wi=0,Ta=zr.getUnusedExpectations();wi<Ta.length;wi++){var Oa=Ta[wi];$r.push(e.createDiagnosticForRange(kn,Oa.range,e.Diagnostics.Unused_ts_expect_error_directive))}return $r}function _s(kn,ot,Nt){var or=e.createCommentDirectivesMap(kn,ot),Sr=Nt.filter(function(Er){return Io(Er,or)===-1});return{diagnostics:Sr,directives:or}}function Oi(kn,ot){return Ca(function(){return li().getSuggestionDiagnostics(kn,ot)})}function Io(kn,ot){var Nt=kn.file,or=kn.start;if(!Nt)return-1;for(var Sr=e.getLineStarts(Nt),Er=e.computeLineAndCharacterOfPosition(Sr,or).line-1;Er>=0;){if(ot.markUsed(Er))return Er;var Gr=Nt.text.slice(Sr[Er],Sr[Er+1]).trim();if(Gr!==""&&!/^(\s*)\/\/(.*)$/.test(Gr))return-1;Er--}return-1}function fs(kn){return Ca(function(){var ot=[];return Nt(kn,kn),e.forEachChildRecursively(kn,Nt,or),ot;function Nt($r,zr){switch(zr.kind){case 162:case 165:case 167:if(zr.questionToken===$r)return ot.push(Gr($r,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 166:case 169:case 170:case 171:case 211:case 254:case 212:case 252:if(zr.type===$r)return ot.push(Gr($r,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch($r.kind){case 265:if($r.isTypeOnly)return ot.push(Gr(zr,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 270:if($r.isTypeOnly)return ot.push(Gr($r,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 263:return ot.push(Gr($r,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 269:if($r.isExportEquals)return ot.push(Gr($r,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 289:var wi=$r;if(wi.token===117)return ot.push(Gr($r,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 256:var Ta=e.tokenToString(118);return e.Debug.assertIsDefined(Ta),ot.push(Gr($r,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Ta)),"skip";case 259:var Oa=$r.flags&16?e.tokenToString(141):e.tokenToString(140);return e.Debug.assertIsDefined(Oa),ot.push(Gr($r,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Oa)),"skip";case 257:return ot.push(Gr($r,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 258:var ji=e.Debug.checkDefined(e.tokenToString(92));return ot.push(Gr($r,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,ji)),"skip";case 228:return ot.push(Gr($r,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 227:return ot.push(Gr($r.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 209:e.Debug.fail()}}function or($r,zr){zr.decorators===$r&&!Se.experimentalDecorators&&ot.push(Gr(zr,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning));switch(zr.kind){case 255:case 224:case 167:case 169:case 170:case 171:case 211:case 254:case 212:if($r===zr.typeParameters)return ot.push(Er($r,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 235:if($r===zr.modifiers)return Sr(zr.modifiers,zr.kind===235),"skip";break;case 165:if($r===zr.modifiers){for(var wi=0,Ta=$r;wi<Ta.length;wi++){var Oa=Ta[wi];Oa.kind!==124&&ot.push(Gr(Oa,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Oa.kind)))}return"skip"}break;case 162:if($r===zr.modifiers)return ot.push(Er($r,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 206:case 207:case 226:case 277:case 278:case 208:if($r===zr.typeArguments)return ot.push(Er($r,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Sr($r,zr){for(var wi=0,Ta=$r;wi<Ta.length;wi++){var Oa=Ta[wi];switch(Oa.kind){case 85:if(zr)continue;case 123:case 121:case 122:case 143:case 134:case 126:case 157:ot.push(Gr(Oa,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Oa.kind)));break;case 124:case 93:case 88:}}}function Er($r,zr,wi,Ta,Oa){var ji=$r.pos;return e.createFileDiagnostic(kn,ji,$r.end-ji,zr,wi,Ta,Oa)}function Gr($r,zr,wi,Ta,Oa){return e.createDiagnosticForNodeInSourceFile(kn,$r,zr,wi,Ta,Oa)}})}function Mo(kn,ot){return yn(kn,ot,o,Ms)}function Ms(kn,ot){return Ca(function(){var Nt=li().getEmitResolver(kn,ot);return e.getDeclarationDiagnostics(xt(e.noop),Nt,kn)||e.emptyArray})}function yn(kn,ot,Nt,or){var Sr,Er=kn?(Sr=Nt.perFile)===null||Sr===void 0?void 0:Sr.get(kn.path):Nt.allDiagnostics;if(Er)return Er;var Gr=or(kn,ot);return kn?(Nt.perFile||(Nt.perFile=new e.Map)).set(kn.path,Gr):Nt.allDiagnostics=Gr,Gr}function _t(kn,ot){return kn.isDeclarationFile?[]:Mo(kn,ot)}function tr(){return e.sortAndDeduplicateDiagnostics(e.concatenate(Ze.getGlobalDiagnostics(),oa()))}function oa(){if(!Se.configFile)return e.emptyArray;var kn=Ze.getDiagnostics(Se.configFile.fileName);return Ks(function(ot){kn=e.concatenate(kn,Ze.getDiagnostics(ot.sourceFile.fileName))}),kn}function Za(){return Ue.length?e.sortAndDeduplicateDiagnostics(li().getGlobalDiagnostics().slice()):e.emptyArray}function Ga(){return $e||e.emptyArray}function He(kn,ot,Nt,or){mt(e.normalizePath(kn),ot,Nt,void 0,or)}function se(kn,ot){return kn.fileName===ot.fileName}function pn(kn,ot){return kn.kind===79?ot.kind===79&&kn.escapedText===ot.escapedText:ot.kind===10&&kn.text===ot.text}function j(kn,ot){var Nt=e.factory.createStringLiteral(kn),or=e.factory.createImportDeclaration(void 0,void 0,void 0,Nt);return e.addEmitFlags(or,67108864),e.setParent(Nt,or),e.setParent(or,ot),Nt.flags&=~8,or.flags&=~8,Nt}function De(kn){if(kn.imports)return;var ot=e.isSourceFileJS(kn),Nt=e.isExternalModule(kn),or,Sr,Er;if((Se.isolatedModules||Nt)&&!kn.isDeclarationFile){Se.importHelpers&&(or=[j(e.externalHelpersModuleNameText,kn)]);var Gr=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(Se,kn),Se);Gr&&(or||(or=[])).push(j(Gr,kn))}for(var $r=0,zr=kn.statements;$r<zr.length;$r++){var wi=zr[$r];Ta(wi,!1)}(kn.flags&1048576||ot)&&Oa(kn),kn.imports=or||e.emptyArray,kn.moduleAugmentations=Sr||e.emptyArray,kn.ambientModuleNames=Er||e.emptyArray;return;function Ta(Ri,ye){if(e.isAnyImportOrReExport(Ri)){var cn=e.getExternalModuleName(Ri);cn&&e.isStringLiteral(cn)&&cn.text&&(!ye||!e.isExternalModuleNameRelative(cn.text))&&(or=e.append(or,cn),!Pn&&$n===0&&!kn.isDeclarationFile&&(Pn=e.startsWith(cn.text,"node:")))}else if(e.isModuleDeclaration(Ri)&&(e.isAmbientModule(Ri)&&(ye||e.hasSyntacticModifier(Ri,2)||kn.isDeclarationFile))){var Sn=e.getTextOfIdentifierOrLiteral(Ri.name);if(Nt||ye&&!e.isExternalModuleNameRelative(Sn))(Sr||(Sr=[])).push(Ri.name);else if(!ye){kn.isDeclarationFile&&(Er||(Er=[])).push(Sn);var Tt=Ri.body;if(Tt)for(var Vt=0,Zr=Tt.statements;Vt<Zr.length;Vt++){var Da=Zr[Vt];Ta(Da,!0)}}}}function Oa(Ri){for(var ye=/import|require/g;ye.exec(Ri.text)!==null;){var cn=ji(Ri,ye.lastIndex);ot&&e.isRequireCall(cn,!0)||e.isImportCall(cn)&&cn.arguments.length===1&&e.isStringLiteralLike(cn.arguments[0])?or=e.append(or,cn.arguments[0]):e.isLiteralImportTypeNode(cn)&&(or=e.append(or,cn.argument.literal))}}function ji(Ri,ye){for(var cn=Ri,Sn=function(Vt){if(Vt.pos<=ye&&(ye<Vt.end||ye===Vt.end&&Vt.kind===1))return Vt};;){var Tt=ot&&e.hasJSDocNodes(cn)&&e.forEach(cn.jsDoc,Sn)||e.forEachChild(cn,Sn);if(!Tt)return cn;cn=Tt}}}function Ve(kn){var ot=e.toFileNameLowerCase(kn.fileName),Nt=e.libMap.get(ot);if(Nt)return xi(e.combinePaths(xe,Nt))}function un(kn,ot){return jn(ue(ot.fileName,kn.fileName),xi)}function jn(kn,ot,Nt,or){if(e.hasExtension(kn)){var Sr=Pe.getCanonicalFileName(kn);if(!Se.allowNonTsExtensions&&!e.forEach(hn,function(wi){return e.fileExtensionIs(Sr,wi)})){Nt&&(e.hasJSFileExtension(Sr)?Nt(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,kn):Nt(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,kn,"'"+Be.join("', '")+"'"));return}var Er=ot(kn);if(Nt)if(Er)P(or)&&Sr===Pe.getCanonicalFileName(ui(or.file).fileName)&&Nt(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var Gr=Xi(kn);Gr?Nt(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,Gr,kn):Nt(e.Diagnostics.File_0_not_found,kn)}return Er}else{var $r=Se.allowNonTsExtensions&&ot(kn);if($r)return $r;if(Nt&&Se.allowNonTsExtensions){Nt(e.Diagnostics.File_0_not_found,kn);return}var zr=e.forEach(Be,function(wi){return ot(kn+wi)});return Nt&&!zr&&Nt(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,kn,"'"+Be.join("', '")+"'"),zr}}function mt(kn,ot,Nt,or,Sr){jn(kn,function(Er){return na(Er,wt(Er),ot,Nt,Sr,or)},function(Er){for(var Gr=[],$r=1;$r<arguments.length;$r++)Gr[$r-1]=arguments[$r];return dr(void 0,Sr,Er,Gr)},Sr)}function St(kn,ot){return mt(kn,!1,!1,void 0,ot)}function ir(kn,ot,Nt){var or=!P(Nt)&&e.some(dn.get(ot.path),P);or?dr(ot,Nt,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[ot.fileName,kn]):dr(ot,Nt,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[kn,ot.fileName])}function _r(kn,ot,Nt,or,Sr,Er){var Gr=Object.create(kn);return Gr.fileName=Nt,Gr.path=or,Gr.resolvedPath=Sr,Gr.originalFileName=Er,Gr.redirectInfo={redirectTarget:kn,unredirected:ot},oe.set(or,$n>0),Object.defineProperties(Gr,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function($r){this.redirectInfo.redirectTarget.id=$r}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function($r){this.redirectInfo.redirectTarget.symbol=$r}}}),Gr}function na(kn,ot,Nt,or,Sr,Er){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:kn,isDefaultLib:Nt||void 0,fileIncludeKind:e.FileIncludeKind[Sr.kind]});var Gr=wa(kn,ot,Nt,or,Sr,Er);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Gr}function wa(kn,ot,Nt,or,Sr,Er){if(An){var Gr=Js(kn);if(!Gr&&Pe.realpath&&Se.preserveSymlinks&&e.isDeclarationFileName(kn)&&e.stringContains(kn,e.nodeModulesPathPart)){var $r=Pe.realpath(kn);$r!==kn&&(Gr=Js($r))}if(Gr){var zr=e.isString(Gr)?na(Gr,wt(Gr),Nt,or,Sr,Er):void 0;return zr&&bi(zr,ot,void 0),zr}}var wi=kn;if(rt.has(ot)){var Ta=rt.get(ot);if(za(Ta||void 0,Sr),Ta&&Se.forceConsistentCasingInFileNames){var Oa=Ta.fileName,ji=wt(Oa)!==wt(kn);ji&&(kn=Xi(kn)||kn);var Ri=e.getNormalizedAbsolutePathWithoutRoot(Oa,wn),ye=e.getNormalizedAbsolutePathWithoutRoot(kn,wn);Ri!==ye&&ir(kn,Ta,Sr)}return Ta&&oe.get(Ta.path)&&$n===0?(oe.set(Ta.path,!1),Se.noResolve||(Ol(Ta,Nt),ac(Ta)),Se.noLib||Pl(Ta),Un.set(Ta.path,!1),nl(Ta)):Ta&&Un.get(Ta.path)&&($n<tn&&(Un.set(Ta.path,!1),nl(Ta))),Ta||void 0}var cn;if(P(Sr)&&!An){var Sn=co(kn);if(Sn){if(e.outFile(Sn.commandLine.options))return;var Tt=Ss(Sn,kn);kn=Tt,cn=wt(Tt)}}var Vt=Pe.getSourceFile(kn,Se.target,function(bs){return dr(void 0,Sr,e.Diagnostics.Cannot_read_file_0_Colon_1,[kn,bs])},Dn);if(Er){var Zr=e.packageIdToString(Er),Da=Vn.get(Zr);if(Da){var gi=_r(Da,Vt,kn,ot,wt(kn),wi);return Re.add(Da.path,kn),bi(gi,ot,cn),za(gi,Sr),Zn.set(ot,Er.name),pe.push(gi),gi}else Vt&&(Vn.set(Zr,Vt),Zn.set(ot,Er.name))}if(bi(Vt,ot,cn),Vt){if(oe.set(ot,$n>0),Vt.fileName=kn,Vt.path=ot,Vt.resolvedPath=wt(kn),Vt.originalFileName=wi,za(Vt,Sr),Pe.useCaseSensitiveFileNames()){var Eo=e.toFileNameLowerCase(ot),Fo=gt.get(Eo);Fo?ir(kn,Fo,Sr):gt.set(Eo,Vt)}Qe=Qe||Vt.hasNoDefaultLib&&!or,Se.noResolve||(Ol(Vt,Nt),ac(Vt)),Se.noLib||Pl(Vt),nl(Vt),Nt?qe.push(Vt):pe.push(Vt)}return Vt}function za(kn,ot){kn&&dn.add(kn.path,ot)}function bi(kn,ot,Nt){Nt?(rt.set(Nt,kn),rt.set(ot,kn||!1)):rt.set(ot,kn)}function Xi(kn){var ot=co(kn);return ot&&Ss(ot,kn)}function co(kn){return!lt||!lt.length||e.fileExtensionIs(kn,".d.ts")||e.fileExtensionIs(kn,".json")?void 0:No(kn)}function Ss(kn,ot){var Nt=e.outFile(kn.commandLine.options);return Nt?e.changeExtension(Nt,".d.ts"):e.getOutputDeclarationFileName(ot,kn.commandLine,!Pe.useCaseSensitiveFileNames())}function No(kn){Bn===void 0&&(Bn=new e.Map,Ks(function(Nt){wt(Se.configFilePath)!==Nt.sourceFile.path&&Nt.commandLine.fileNames.forEach(function(or){return Bn.set(wt(or),Nt.sourceFile.path)})}));var ot=Bn.get(wt(kn));return ot&&yl(ot)}function Ks(kn){return e.forEachResolvedProjectReference(lt,kn)}function Js(kn){return e.isDeclarationFileName(kn)?(K===void 0&&(K=new e.Map,Ks(function(ot){var Nt=e.outFile(ot.commandLine.options);if(Nt){var or=e.changeExtension(Nt,".d.ts");K.set(wt(or),!0)}else{var Sr=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(ot.commandLine,!Pe.useCaseSensitiveFileNames())});e.forEach(ot.commandLine.fileNames,function(Er){if(!e.fileExtensionIs(Er,".d.ts")&&!e.fileExtensionIs(Er,".json")){var Gr=e.getOutputDeclarationFileName(Er,ot.commandLine,!Pe.useCaseSensitiveFileNames(),Sr);K.set(wt(Gr),Er)}})}})),K.get(wt(kn))):void 0}function gl(kn){return An&&!!No(kn)}function yl(kn){return Fe&&Fe.get(kn)||void 0}function Ol(kn,ot){e.forEach(kn.referencedFiles,function(Nt,or){mt(ue(Nt.fileName,kn.fileName),ot,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:kn.path,index:or})})}function ac(kn){var ot=e.map(kn.typeReferenceDirectives,function($r){return e.toFileNameLowerCase($r.fileName)});if(!ot)return;for(var Nt=Or(ot,kn),or=0;or<ot.length;or++){var Sr=kn.typeReferenceDirectives[or],Er=Nt[or],Gr=e.toFileNameLowerCase(Sr.fileName);e.setResolvedTypeReferenceDirective(kn,Gr,Er),vs(Gr,Er,{kind:e.FileIncludeKind.TypeReferenceDirective,file:kn.path,index:or})}}function vs(kn,ot,Nt){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:kn,hasResolved:!!Pr,refKind:Nt.kind,refPath:P(Nt)?Nt.file:void 0}),ic(kn,ot,Nt),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function ic(kn,ot,Nt){var or=Cn.get(kn);if(or&&or.primary)return;var Sr=!0;if(ot){if(ot.isExternalLibraryImport&&$n++,ot.primary)mt(ot.resolvedFileName,!1,!1,ot.packageId,Nt);else if(or){if(ot.resolvedFileName!==or.resolvedFileName){var Er=Pe.readFile(ot.resolvedFileName),Gr=xi(or.resolvedFileName);Er!==Gr.text&&dr(Gr,Nt,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[kn,ot.resolvedFileName,or.resolvedFileName])}Sr=!1}else mt(ot.resolvedFileName,!1,!1,ot.packageId,Nt);ot.isExternalLibraryImport&&$n--}else dr(void 0,Nt,e.Diagnostics.Cannot_find_type_definition_file_for_0,[kn]);Sr&&Cn.set(kn,ot)}function Pl(kn){e.forEach(kn.libReferenceDirectives,function(ot,Nt){var or=e.toFileNameLowerCase(ot.fileName),Sr=e.libMap.get(or);if(Sr)He(e.combinePaths(xe,Sr),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:kn.path,index:Nt});else{var Er=e.removeSuffix(e.removePrefix(or,"lib."),".d.ts"),Gr=e.getSpellingSuggestion(Er,e.libs,e.identity),$r=Gr?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(z||(z=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:kn.path,index:Nt},diagnostic:$r,args:[or,Gr]})}})}function cl(kn){return Pe.getCanonicalFileName(kn)}function nl(kn){var ot;if(De(kn),kn.imports.length||kn.moduleAugmentations.length){var Nt=R(kn),or=Pr(Nt,kn);e.Debug.assert(or.length===Nt.length);for(var Sr=(An?(ot=Ja(kn))===null||ot===void 0?void 0:ot.commandLine.options:void 0)||Se,Er=0;Er<Nt.length;Er++){var Gr=or[Er];if(e.setResolvedModule(kn,Nt[Er],Gr),!Gr)continue;var $r=Gr.isExternalLibraryImport,zr=!e.resolutionExtensionIsTSOrJson(Gr.extension),wi=$r&&zr,Ta=Gr.resolvedFileName;$r&&$n++;var Oa=wi&&$n>tn,ji=Ta&&!D(Sr,Gr)&&!Sr.noResolve&&Er<kn.imports.length&&!Oa&&!(zr&&!e.getAllowJSCompilerOption(Sr))&&(e.isInJSFile(kn.imports[Er])||!(kn.imports[Er].flags&4194304));if(Oa)Un.set(kn.path,!0);else if(ji){var Ri=wt(Ta);na(Ta,Ri,!1,!1,{kind:e.FileIncludeKind.Import,file:kn.path,index:Er},Gr.packageId)}$r&&$n--}}else kn.resolvedModules=void 0}function he(kn,ot){for(var Nt=!0,or=Pe.getCanonicalFileName(e.getNormalizedAbsolutePath(ot,wn)),Sr=0,Er=kn;Sr<Er.length;Sr++){var Gr=Er[Sr];if(!Gr.isDeclarationFile){var $r=Pe.getCanonicalFileName(e.getNormalizedAbsolutePath(Gr.fileName,wn));$r.indexOf(or)!==0&&(Yr(Gr,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[Gr.fileName,ot]),Nt=!1)}}return Nt}function Jn(kn){Fe||(Fe=new e.Map);var ot=N(kn),Nt=wt(ot),or=Fe.get(Nt);if(or!==void 0)return or||void 0;var Sr,Er;if(Pe.getParsedCommandLine){if(Sr=Pe.getParsedCommandLine(ot),!Sr){bi(void 0,Nt,void 0),Fe.set(Nt,!1);return}Er=e.Debug.checkDefined(Sr.options.configFile),e.Debug.assert(!Er.path||Er.path===Nt),bi(Er,Nt,void 0)}else{var Gr=e.getNormalizedAbsolutePath(e.getDirectoryPath(ot),Pe.getCurrentDirectory());if(Er=Pe.getSourceFile(ot,100),bi(Er,Nt,void 0),Er===void 0){Fe.set(Nt,!1);return}Sr=e.parseJsonSourceFileConfigFileContent(Er,ke,Gr,void 0,ot)}Er.fileName=ot,Er.path=Nt,Er.resolvedPath=Nt,Er.originalFileName=ot;var $r={commandLine:Sr,sourceFile:Er};return Fe.set(Nt,$r),Sr.projectReferences&&($r.references=Sr.projectReferences.map(Jn)),$r}function Ee(){Se.strictPropertyInitialization&&!e.getStrictOptionValue(Se,"strictNullChecks")&&Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),Se.exactOptionalPropertyTypes&&!e.getStrictOptionValue(Se,"strictNullChecks")&&Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),Se.isolatedModules&&(Se.out&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),Se.outFile&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),Se.inlineSourceMap&&(Se.sourceMap&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),Se.mapRoot&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),Se.composite&&(Se.declaration===!1&&Gi(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),Se.incremental===!1&&Gi(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var kn=e.outFile(Se);if(Se.tsBuildInfoFile?e.isIncrementalCompilation(Se)||Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):Se.incremental&&!kn&&!Se.configFilePath&&Ze.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),ya(),Se.composite)for(var ot=new e.Set(Ue.map(wt)),Nt=0,or=Me;Nt<or.length;Nt++){var Sr=or[Nt];e.sourceFileMayBeEmitted(Sr,At)&&!ot.has(Sr.path)&&Yr(Sr,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Sr.fileName,Se.configFilePath||""])}if(Se.paths)for(var Er in Se.paths){if(!e.hasProperty(Se.paths,Er))continue;if(e.hasZeroOrOneAsteriskCharacter(Er)||On(!0,Er,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Er),e.isArray(Se.paths[Er])){var Gr=Se.paths[Er].length;Gr===0&&On(!1,Er,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Er);for(var $r=0;$r<Gr;$r++){var zr=Se.paths[Er][$r],wi=typeof zr;wi==="string"?(e.hasZeroOrOneAsteriskCharacter(zr)||bo(Er,$r,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,zr,Er),!Se.baseUrl&&!e.pathIsRelative(zr)&&!e.pathIsAbsolute(zr)&&bo(Er,$r,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):bo(Er,$r,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,zr,Er,wi)}}else On(!1,Er,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,Er)}!Se.sourceMap&&!Se.inlineSourceMap&&(Se.inlineSources&&Gi(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),Se.sourceRoot&&Gi(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),Se.out&&Se.outFile&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),Se.mapRoot&&!(Se.sourceMap||Se.declarationMap)&&Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),Se.declarationDir&&(e.getEmitDeclarations(Se)||Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),kn&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",Se.out?"out":"outFile")),Se.declarationMap&&!e.getEmitDeclarations(Se)&&Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),Se.lib&&Se.noLib&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),Se.noImplicitUseStrict&&e.getStrictOptionValue(Se,"alwaysStrict")&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var Ta=Se.target||0,Oa=e.find(Me,function(Vt){return e.isExternalModule(Vt)&&!Vt.isDeclarationFile});if(Se.isolatedModules){Se.module===e.ModuleKind.None&&Ta<2&&Gi(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Se.preserveConstEnums===!1&&Gi(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var ji=e.find(Me,function(Vt){return!e.isExternalModule(Vt)&&!e.isSourceFileJS(Vt)&&!Vt.isDeclarationFile&&Vt.scriptKind!==6});if(ji){var Ri=e.getErrorSpanForNode(ji,ji);Ze.add(e.createFileDiagnostic(ji,Ri.start,Ri.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(ji.fileName)))}}else if(Oa&&Ta<2&&Se.module===e.ModuleKind.None){var Ri=e.getErrorSpanForNode(Oa,Oa.externalModuleIndicator);Ze.add(e.createFileDiagnostic(Oa,Ri.start,Ri.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(kn&&!Se.emitDeclarationOnly){if(Se.module&&!(Se.module===e.ModuleKind.AMD||Se.module===e.ModuleKind.System))Gi(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,Se.out?"out":"outFile","module");else if(Se.module===void 0&&Oa){var Ri=e.getErrorSpanForNode(Oa,Oa.externalModuleIndicator);Ze.add(e.createFileDiagnostic(Oa,Ri.start,Ri.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,Se.out?"out":"outFile"))}}if(Se.resolveJsonModule&&(e.getEmitModuleResolutionKind(Se)!==e.ModuleResolutionKind.NodeJs?Gi(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(Se)||Gi(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),Se.outDir||Se.rootDir||Se.sourceRoot||Se.mapRoot){var ye=rr();Se.outDir&&ye===""&&Me.some(function(Vt){return e.getRootLength(Vt.fileName)>1})&&Gi(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(Se.useDefineForClassFields&&Ta===0&&Gi(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),Se.checkJs&&!e.getAllowJSCompilerOption(Se)&&Ze.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),Se.emitDeclarationOnly&&(e.getEmitDeclarations(Se)||Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),Se.noEmit&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),Se.emitDecoratorMetadata&&!Se.experimentalDecorators&&Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Se.jsxFactory?(Se.reactNamespace&&Gi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Se.jsx===4||Se.jsx===5)&&Gi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+Se.jsx)),e.parseIsolatedEntityName(Se.jsxFactory,Ta)||qs("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Se.jsxFactory)):Se.reactNamespace&&!e.isIdentifierText(Se.reactNamespace,Ta)&&qs("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Se.reactNamespace),Se.jsxFragmentFactory&&(Se.jsxFactory||Gi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Se.jsx===4||Se.jsx===5)&&Gi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+Se.jsx)),e.parseIsolatedEntityName(Se.jsxFragmentFactory,Ta)||qs("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Se.jsxFragmentFactory)),Se.reactNamespace&&((Se.jsx===4||Se.jsx===5)&&Gi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+Se.jsx))),Se.jsxImportSource&&(Se.jsx===2&&Gi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+Se.jsx))),!Se.noEmit&&!Se.suppressOutputPathCheck){var cn=xt(),Sn=new e.Set;e.forEachEmittedFile(cn,function(Vt){Se.emitDeclarationOnly||Tt(Vt.jsFilePath,Sn),Tt(Vt.declarationFilePath,Sn)})}function Tt(Vt,Zr){if(Vt){var Da=wt(Vt);if(rt.has(Da)){var gi=void 0;Se.configFilePath||(gi=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),gi=e.chainDiagnosticMessages(gi,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Vt),oc(Vt,e.createCompilerDiagnosticFromMessageChain(gi))}var Eo=Pe.useCaseSensitiveFileNames()?Da:e.toFileNameLowerCase(Da);Zr.has(Eo)?oc(Vt,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Vt)):Zr.add(Eo)}}}function Mn(kn,ot,Nt,or){var Sr,Er,Gr,$r=P(ot)?ot:void 0;kn&&((Sr=dn.get(kn.path))===null||Sr===void 0||Sr.forEach(ji)),ot&&ji(ot),$r&&(Er==null?void 0:Er.length)===1&&(Er=void 0);var zr=$r&&re(ui,$r),wi=Er&&e.chainDiagnosticMessages(Er,e.Diagnostics.The_file_is_in_the_program_because_Colon),Ta=kn&&e.explainIfFileIsRedirect(kn),Oa=e.chainDiagnosticMessages.apply(void 0,Mt([Ta?wi?Mt([wi],Ta,!0):Ta:wi,Nt],or||e.emptyArray,!1));return zr&&I(zr)?e.createFileDiagnosticFromMessageChain(zr.file,zr.pos,zr.end-zr.pos,Oa,Gr):e.createCompilerDiagnosticFromMessageChain(Oa,Gr);function ji(Ri){(Er||(Er=[])).push(e.fileIncludeReasonToDiagnostics(At,Ri)),!$r&&P(Ri)?$r=Ri:$r!==Ri&&(Gr=e.append(Gr,da(Ri))),Ri===ot&&(ot=void 0)}}function dr(kn,ot,Nt,or){(z||(z=[])).push({kind:1,file:kn&&kn.path,fileProcessingReason:ot,diagnostic:Nt,args:or})}function Yr(kn,ot,Nt){Ze.add(Mn(kn,void 0,ot,Nt))}function da(kn){if(P(kn)){var ot=re(ui,kn),Nt;switch(kn.kind){case e.FileIncludeKind.Import:Nt=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Nt=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Nt=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Nt=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(kn)}return I(ot)?e.createFileDiagnostic(ot.file,ot.pos,ot.end-ot.pos,Nt):void 0}if(!Se.configFile)return;var or,Sr;switch(kn.kind){case e.FileIncludeKind.RootFile:if(!Se.configFile.configFileSpecs)return;var Er=e.getNormalizedAbsolutePath(Ue[kn.index],wn),Gr=e.getMatchedFileSpec(At,Er);if(Gr){or=e.getTsConfigPropArrayElementValue(Se.configFile,"files",Gr),Sr=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var $r=e.getMatchedIncludeSpec(At,Er);if(!$r)return;or=e.getTsConfigPropArrayElementValue(Se.configFile,"include",$r),Sr=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var zr=e.Debug.checkDefined(lt==null?void 0:lt[kn.index]),wi=le(ce,lt,function(ye,cn,Sn){return ye===zr?{sourceFile:(cn==null?void 0:cn.sourceFile)||Se.configFile,index:Sn}:void 0});if(!wi)return;var Ta=wi.sourceFile,Oa=wi.index,ji=e.firstDefined(e.getTsConfigPropArray(Ta,"references"),function(ye){return e.isArrayLiteralExpression(ye.initializer)?ye.initializer:void 0});return ji&&ji.elements.length>Oa?e.createDiagnosticForNodeInSourceFile(Ta,ji.elements[Oa],kn.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!Se.types)return;or=_l("types",kn.typeReference),Sr=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(kn.index!==void 0){or=_l("lib",Se.lib[kn.index]),Sr=e.Diagnostics.File_is_library_specified_here;break}var Ri=e.forEachEntry(e.targetOptionDeclaration.type,function(ye,cn){return ye===Se.target?cn:void 0});or=Ri?ms("target",Ri):void 0,Sr=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(kn)}return or&&e.createDiagnosticForNodeInSourceFile(Se.configFile,or,Sr)}function ya(){var kn=Se.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(Se);le(ce,lt,function(ot,Nt,or){var Sr=(Nt?Nt.commandLine.projectReferences:ce)[or],Er=Nt&&Nt.sourceFile;if(!ot){pl(Er,or,e.Diagnostics.File_0_not_found,Sr.path);return}var Gr=ot.commandLine.options;if(!Gr.composite||Gr.noEmit){var $r=Nt?Nt.commandLine.fileNames:Ue;$r.length&&(Gr.composite||pl(Er,or,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,Sr.path),Gr.noEmit&&pl(Er,or,e.Diagnostics.Referenced_project_0_may_not_disable_emit,Sr.path))}if(Sr.prepend){var zr=e.outFile(Gr);zr?Pe.fileExists(zr)||pl(Er,or,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,zr,Sr.path):pl(Er,or,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Sr.path)}!Nt&&kn&&kn===e.getTsBuildInfoEmitOutputFilePath(Gr)&&(pl(Er,or,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,kn,Sr.path),Kn.set(wt(kn),!0))})}function bo(kn,ot,Nt,or,Sr,Er){for(var Gr=!0,$r=ps(),zr=0,wi=$r;zr<wi.length;zr++){var Ta=wi[zr];if(e.isObjectLiteralExpression(Ta.initializer))for(var Oa=0,ji=e.getPropertyAssignment(Ta.initializer,kn);Oa<ji.length;Oa++){var Ri=ji[Oa],ye=Ri.initializer;e.isArrayLiteralExpression(ye)&&ye.elements.length>ot&&(Ze.add(e.createDiagnosticForNodeInSourceFile(Se.configFile,ye.elements[ot],Nt,or,Sr,Er)),Gr=!1)}}Gr&&Ze.add(e.createCompilerDiagnostic(Nt,or,Sr,Er))}function On(kn,ot,Nt,or){for(var Sr=!0,Er=ps(),Gr=0,$r=Er;Gr<$r.length;Gr++){var zr=$r[Gr];e.isObjectLiteralExpression(zr.initializer)&&Pc(zr.initializer,kn,ot,void 0,Nt,or)&&(Sr=!1)}Sr&&Ze.add(e.createCompilerDiagnostic(Nt,or))}function Bo(kn){var ot=lc();return ot&&e.getPropertyAssignment(ot,kn)}function ps(){return Bo("paths")||e.emptyArray}function ms(kn,ot){var Nt=Bo(kn);return Nt&&e.firstDefined(Nt,function(or){return e.isStringLiteral(or.initializer)&&or.initializer.text===ot?or.initializer:void 0})}function _l(kn,ot){var Nt=lc();return Nt&&e.getPropertyArrayElementValue(Nt,kn,ot)}function Gi(kn,ot,Nt,or){Ec(!0,ot,Nt,kn,ot,Nt,or)}function qs(kn,ot,Nt){Ec(!1,kn,void 0,ot,Nt)}function pl(kn,ot,Nt,or,Sr){var Er=e.firstDefined(e.getTsConfigPropArray(kn||Se.configFile,"references"),function(Gr){return e.isArrayLiteralExpression(Gr.initializer)?Gr.initializer:void 0});Er&&Er.elements.length>ot?Ze.add(e.createDiagnosticForNodeInSourceFile(kn||Se.configFile,Er.elements[ot],Nt,or,Sr)):Ze.add(e.createCompilerDiagnostic(Nt,or,Sr))}function Ec(kn,ot,Nt,or,Sr,Er,Gr){var $r=lc(),zr=!$r||!Pc($r,kn,ot,Nt,or,Sr,Er,Gr);zr&&Ze.add(e.createCompilerDiagnostic(or,Sr,Er,Gr))}function lc(){if(Je===void 0){Je=!1;var kn=e.getTsConfigObjectLiteralExpression(Se.configFile);if(kn)for(var ot=0,Nt=e.getPropertyAssignment(kn,"compilerOptions");ot<Nt.length;ot++){var or=Nt[ot];if(e.isObjectLiteralExpression(or.initializer)){Je=or.initializer;break}}}return Je||void 0}function Pc(kn,ot,Nt,or,Sr,Er,Gr,$r){for(var zr=e.getPropertyAssignment(kn,Nt,or),wi=0,Ta=zr;wi<Ta.length;wi++){var Oa=Ta[wi];Ze.add(e.createDiagnosticForNodeInSourceFile(Se.configFile,ot?Oa.name:Oa.initializer,Sr,Er,Gr,$r))}return!!zr.length}function oc(kn,ot){Kn.set(wt(kn),!0),Ze.add(ot)}function au(kn){if(Se.noEmit)return!1;var ot=wt(kn);if(ui(ot))return!1;var Nt=e.outFile(Se);if(Nt)return cc(ot,Nt)||cc(ot,e.removeFileExtension(Nt)+".d.ts");if(Se.declarationDir&&e.containsPath(Se.declarationDir,ot,wn,!Pe.useCaseSensitiveFileNames()))return!0;if(Se.outDir)return e.containsPath(Se.outDir,ot,wn,!Pe.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(ot,e.supportedJSExtensions)||e.fileExtensionIs(ot,".d.ts")){var or=e.removeFileExtension(ot);return!!ui(or+".ts")||!!ui(or+".tsx")}return!1}function cc(kn,ot){return e.comparePaths(kn,ot,wn,!Pe.useCaseSensitiveFileNames())===0}function Zl(){return Pe.getSymlinkCache?Pe.getSymlinkCache():(fn||(fn=e.createSymlinkCache(wn,cl)),Me&&Cn&&!fn.hasProcessedResolutions()&&fn.setSymlinksFromResolutions(Me,Cn),fn)}}e.createProgram=g;function p(q){var J,C=q.compilerHost.fileExists,we=q.compilerHost.directoryExists,Oe=q.compilerHost.getDirectories,te=q.compilerHost.realpath;if(!q.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:Ce};q.compilerHost.fileExists=Ce;var Te;return we&&(Te=q.compilerHost.directoryExists=function(Le){return we.call(q.compilerHost,Le)?($e(Le),!0):q.getResolvedProjectReferences()?(J||(J=new e.Set,q.forEachResolvedProjectReference(function(qe){var pe=e.outFile(qe.commandLine.options);if(pe)J.add(e.getDirectoryPath(q.toPath(pe)));else{var Me=qe.commandLine.options.declarationDir||qe.commandLine.options.outDir;Me&&J.add(q.toPath(Me))}})),ce(Le,!1)):!1}),Oe&&(q.compilerHost.getDirectories=function(Le){return!q.getResolvedProjectReferences()||we&&we.call(q.compilerHost,Le)?Oe.call(q.compilerHost,Le):[]}),te&&(q.compilerHost.realpath=function(Le){var qe;return((qe=q.getSymlinkCache().getSymlinkedFiles())===null||qe===void 0?void 0:qe.get(q.toPath(Le)))||te.call(q.compilerHost,Le)}),{onProgramCreateComplete:be,fileExists:Ce,directoryExists:Te};function be(){q.compilerHost.fileExists=C,q.compilerHost.directoryExists=we,q.compilerHost.getDirectories=Oe}function Ce(Le){return C.call(q.compilerHost,Le)?!0:q.getResolvedProjectReferences()&&e.isDeclarationFileName(Le)?ce(Le,!0):!1}function Ue(Le){var qe=q.getSourceOfProjectReferenceRedirect(Le);return qe!==void 0?e.isString(qe)?C.call(q.compilerHost,qe):!0:void 0}function Se(Le){var qe=q.toPath(Le),pe=""+qe+e.directorySeparator;return e.forEachKey(J,function(Me){return qe===Me||e.startsWith(Me,pe)||e.startsWith(qe,Me+"/")})}function $e(Le){var qe;if(!q.getResolvedProjectReferences()||e.containsIgnoredPath(Le))return;if(!te||!e.stringContains(Le,e.nodeModulesPathPart))return;var pe=q.getSymlinkCache(),Me=e.ensureTrailingDirectorySeparator(q.toPath(Le));if((qe=pe.getSymlinkedDirectories())===null||qe===void 0?void 0:qe.has(Me))return;var fn=e.normalizePath(te.call(q.compilerHost,Le)),Ye;if(fn===Le||(Ye=e.ensureTrailingDirectorySeparator(q.toPath(fn)))===Me){pe.setSymlinkedDirectory(Me,!1);return}pe.setSymlinkedDirectory(Le,{real:e.ensureTrailingDirectorySeparator(fn),realPath:Ye})}function ce(Le,qe){var pe,Me=qe?function(xn){return Ue(xn)}:function(xn){return Se(xn)},fn=Me(Le);if(fn!==void 0)return fn;var Ye=q.getSymlinkCache(),Ne=Ye.getSymlinkedDirectories();if(!Ne)return!1;var je=q.toPath(Le);return e.stringContains(je,e.nodeModulesPathPart)?qe&&((pe=Ye.getSymlinkedFiles())===null||pe===void 0?void 0:pe.has(je))?!0:e.firstDefinedIterator(Ne.entries(),function(xn){var Wn=xn[0],dn=xn[1];if(!dn||!e.startsWith(je,Wn))return;var vn=Me(je.replace(Wn,dn.realPath));if(qe&&vn){var o=e.getNormalizedAbsolutePath(Le,q.compilerHost.getCurrentDirectory());Ye.setSymlinkedFile(je,""+dn.real+o.replace(new RegExp(Wn,"i"),""))}return vn})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function d(q,J,C,we){var Oe=q.getCompilerOptions();if(Oe.noEmit)return q.getSemanticDiagnostics(J,we),J||e.outFile(Oe)?e.emitSkippedWithNoDiagnostics:q.emitBuildInfo(C,we);if(!Oe.noEmitOnError)return;var te=Mt(Mt(Mt(Mt([],q.getOptionsDiagnostics(we),!0),q.getSyntacticDiagnostics(J,we),!0),q.getGlobalDiagnostics(we),!0),q.getSemanticDiagnostics(J,we),!0);if(te.length===0&&e.getEmitDeclarations(q.getCompilerOptions())&&(te=q.getDeclarationDiagnostics(void 0,we)),!te.length)return;var Te;if(!J&&!e.outFile(Oe)){var be=q.emitBuildInfo(C,we);be.diagnostics&&(te=Mt(Mt([],te,!0),be.diagnostics,!0)),Te=be.emittedFiles}return{diagnostics:te,sourceMaps:void 0,emittedFiles:Te,emitSkipped:!0}}e.handleNoEmitOptions=d;function T(q,J){return e.filter(q,function(C){return!C.skippedOn||!J[C.skippedOn]})}e.filterSemanticDiagnostics=T;function m(q,J){return J===void 0&&(J=q),{fileExists:function(C){return J.fileExists(C)},readDirectory:function(C,we,Oe,te,Te){return e.Debug.assertIsDefined(J.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),J.readDirectory(C,we,Oe,te,Te)},readFile:function(C){return J.readFile(C)},useCaseSensitiveFileNames:q.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return q.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:q.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:q.trace?function(C){return q.trace(C)}:void 0}}e.parseConfigHostFromCompilerHostLike=m;function k(q,J,C){if(!q)return e.emptyArray;for(var we,Oe=0;Oe<q.length;Oe++){var te=q[Oe],Te=J(te,Oe);if(te.prepend&&Te&&Te.options){var be=e.outFile(Te.options);if(!be)continue;var Ce=e.getOutputPathsForBundle(Te.options,!0),Ue=Ce.jsFilePath,Se=Ce.sourceMapFilePath,$e=Ce.declarationFilePath,ce=Ce.declarationMapPath,Le=Ce.buildInfoPath,qe=e.createInputFiles(C,Ue,Se,$e,ce,Le);(we||(we=[])).push(qe)}}return we||e.emptyArray}e.createPrependNodes=k;function N(q,J){var C=J||q;return e.resolveConfigFileProjectName(C.path)}e.resolveProjectReferencePath=N;function D(q,J){var C=J.extension;switch(C){case".ts":case".d.ts":return;case".tsx":return we();case".jsx":return we()||Oe();case".js":return Oe();case".json":return te()}function we(){return q.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Oe(){return e.getAllowJSCompilerOption(q)||!e.getStrictOptionValue(q,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function te(){return q.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=D;function R(q){for(var J=q.imports,C=q.moduleAugmentations,we=J.map(function(be){return be.text}),Oe=0,te=C;Oe<te.length;Oe++){var Te=te[Oe];Te.kind===10&&we.push(Te.text)}return we}function me(q,J){var C=q.imports,we=q.moduleAugmentations;if(J<C.length)return C[J];for(var Oe=C.length,te=0,Te=we;te<Te.length;te++){var be=Te[te];if(be.kind===10){if(J===Oe)return be;Oe++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=me})(mn||(mn={}));var mn;(function(e){function s(ee,Y,V,ne,_e,O){var w=[],b=ee.emit(Y,U,ne,V,_e,O),de=b.emitSkipped,fe=b.diagnostics,_=b.exportedModulesFromDeclarationEmit;return{outputFiles:w,emitSkipped:de,diagnostics:fe,exportedModulesFromDeclarationEmit:_};function U(Z,v,W){w.push({name:Z,writeByteOrderMark:W,text:v})}}e.getFileEmitOutput=s;var ue;(function(ee){var Y=0;function V(){function f(F,g,p){var d=0,T={id:Y++,version:function(){return d},clone:function(){return f(new e.Map(F),new e.Map(g),p&&new e.Set(p))},forEach:function(m){return F.forEach(m)},getKeys:function(m){return g.get(m)},getValues:function(m){return F.get(m)},hasKey:function(m){return F.has(m)},keys:function(){return F.keys()},deletedKeys:function(){return p},deleteKey:function(m){(p||(p=new e.Set)).add(m);var k=F.get(m);return k?(k.forEach(function(N){return _e(g,N,m)}),F.delete(m),d++,!0):!1},set:function(m,k){var N=!!(p==null?void 0:p.delete(m)),D=F.get(m);return F.set(m,k),D==null||D.forEach(function(R){k.has(R)||(N=!0,_e(g,R,m))}),k.forEach(function(R){(D==null?void 0:D.has(R))||(N=!0,ne(g,R,m))}),N&&d++,T}};return T}return f(new e.Map,new e.Map,void 0)}ee.createManyToManyPathMap=V;function ne(f,F,g){var p=f.get(F);p||(p=new e.Set,f.set(F,p)),p.add(g)}function _e(f,F,g,p){p===void 0&&(p=!0);var d=f.get(F);return(d==null?void 0:d.delete(g))?(p&&!d.size&&f.delete(F),!0):!1}function O(f){return e.mapDefined(f.declarations,function(F){var g;return(g=e.getSourceFileOfNode(F))===null||g===void 0?void 0:g.resolvedPath})}function w(f,F){var g=f.getSymbolAtLocation(F);return g&&O(g)}function b(f,F,g,p){return e.toPath(f.getProjectReferenceRedirect(F)||F,g,p)}function de(f,F,g){var p;if(F.imports&&F.imports.length>0)for(var d=f.getTypeChecker(),T=0,m=F.imports;T<m.length;T++){var k=m[T],N=w(d,k);N==null||N.forEach(Se)}var D=e.getDirectoryPath(F.resolvedPath);if(F.referencedFiles&&F.referencedFiles.length>0)for(var R=0,me=F.referencedFiles;R<me.length;R++){var q=me[R],J=b(f,q.fileName,D,g);Se(J)}if(F.resolvedTypeReferenceDirectiveNames&&F.resolvedTypeReferenceDirectiveNames.forEach(function($e){if(!$e)return;var ce=$e.resolvedFileName,Le=b(f,ce,D,g);Se(Le)}),F.moduleAugmentations.length)for(var d=f.getTypeChecker(),C=0,we=F.moduleAugmentations;C<we.length;C++){var Oe=we[C];if(!e.isStringLiteral(Oe))continue;var te=d.getSymbolAtLocation(Oe);if(!te)continue;Ue(te)}for(var Te=0,be=f.getTypeChecker().getAmbientModules();Te<be.length;Te++){var Ce=be[Te];Ce.declarations&&Ce.declarations.length>1&&Ue(Ce)}return p;function Ue($e){if(!$e.declarations)return;for(var ce=0,Le=$e.declarations;ce<Le.length;ce++){var qe=Le[ce],pe=e.getSourceFileOfNode(qe);pe&&pe!==F&&Se(pe.resolvedPath)}}function Se($e){(p||(p=new e.Set)).add($e)}}function fe(f,F){return F&&!F.referencedMap===!f}ee.canReuseOldState=fe;function _(f,F,g,p){var d=new e.Map,T=f.getCompilerOptions().module!==e.ModuleKind.None?V():void 0,m=T?V():void 0,k=new e.Set,N=fe(T,g);f.getTypeChecker();for(var D=0,R=f.getSourceFiles();D<R.length;D++){var me=R[D],q=e.Debug.checkDefined(me.version,"Program intended to be used with Builder should have source files with versions set"),J=N?g.fileInfos.get(me.resolvedPath):void 0;if(T){var C=de(f,me,F);if(C&&T.set(me.resolvedPath,C),N){var we=g.exportedModulesMap.getValues(me.resolvedPath);we&&m.set(me.resolvedPath,we)}}d.set(me.resolvedPath,{version:q,signature:J&&J.signature,affectsGlobalScope:I(me)||void 0})}return{fileInfos:d,referencedMap:T,exportedModulesMap:m,hasCalledUpdateShapeSignature:k,useFileVersionAsSignature:!p&&!N}}ee.create=_;function U(f){f.allFilesExcludingDefaultLibraryFile=void 0,f.allFileNames=void 0}ee.releaseCache=U;function Z(f){var F,g;return{fileInfos:new e.Map(f.fileInfos),referencedMap:(F=f.referencedMap)===null||F===void 0?void 0:F.clone(),exportedModulesMap:(g=f.exportedModulesMap)===null||g===void 0?void 0:g.clone(),hasCalledUpdateShapeSignature:new e.Set(f.hasCalledUpdateShapeSignature),useFileVersionAsSignature:f.useFileVersionAsSignature}}ee.clone=Z;function v(f,F,g,p,d,T,m){var k=T||new e.Map,N=F.getSourceFileByPath(g);if(!N)return e.emptyArray;if(!$(f,F,N,k,p,d,m))return[N];var D=(f.referencedMap?A:B)(f,F,N,k,p,d,m);return T||W(f,k),D}ee.getFilesAffectedBy=v;function W(f,F){F.forEach(function(g,p){return x(f,g,p)})}ee.updateSignaturesFromCache=W;function x(f,F,g){f.fileInfos.get(g).signature=F,f.hasCalledUpdateShapeSignature.add(g)}ee.updateSignatureOfFile=x;function $(f,F,g,p,d,T,m,k){if(k===void 0&&(k=f.useFileVersionAsSignature),e.Debug.assert(!!g),e.Debug.assert(!m||!!f.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),f.hasCalledUpdateShapeSignature.has(g.resolvedPath)||p.has(g.resolvedPath))return!1;var N=f.fileInfos.get(g.resolvedPath);if(!N)return e.Debug.fail();var D=N.signature,R;if(!g.isDeclarationFile&&!k){var me=s(F,g,!0,d,void 0,!0),q=e.firstOrUndefined(me.outputFiles);q&&(e.Debug.assert(e.fileExtensionIs(q.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+e.getAnyExtensionFromPath(q.name)+" for "+q.name+":: All output files: "+JSON.stringify(me.outputFiles.map(function(C){return C.name}))}),R=(T||e.generateDjb2Hash)(q.text),m&&R!==D&&L(g,me.exportedModulesFromDeclarationEmit,m))}if(R===void 0&&(R=g.version,m&&R!==D)){var J=f.referencedMap?f.referencedMap.getValues(g.resolvedPath):void 0;J?m.set(g.resolvedPath,J):m.deleteKey(g.resolvedPath)}return p.set(g.resolvedPath,R),R!==D}ee.updateShapeSignature=$;function L(f,F,g){if(!F){g.deleteKey(f.resolvedPath);return}var p;F.forEach(function(T){return d(O(T))}),p?g.set(f.resolvedPath,p):g.deleteKey(f.resolvedPath);function d(T){(T==null?void 0:T.length)&&(p||(p=new e.Set),T.forEach(function(m){return p.add(m)}))}}function E(f,F){var g;if(F){e.Debug.assert(!!f.exportedModulesMap);var p=F.id,d=F.version();if(f.previousCache){if(f.previousCache.id===p&&f.previousCache.version===d)return;f.previousCache.id=p,f.previousCache.version=d}else f.previousCache={id:p,version:d};(g=F.deletedKeys())===null||g===void 0||g.forEach(function(T){return f.exportedModulesMap.deleteKey(T)}),F.forEach(function(T,m){return f.exportedModulesMap.set(m,T)})}}ee.updateExportedFilesMapFromCache=E;function ae(f,F,g){var p=F.getCompilerOptions();if(e.outFile(p))return X(f,F);if(!f.referencedMap||I(g))return X(f,F);for(var d=new e.Set,T=[g.resolvedPath];T.length;){var m=T.pop();if(!d.has(m)){d.add(m);var k=f.referencedMap.getValues(m);if(k)for(var N=k.keys(),D=N.next();!D.done;D=N.next())T.push(D.value)}}return e.arrayFrom(e.mapDefinedIterator(d.keys(),function(R){var me,q;return(q=(me=F.getSourceFileByPath(R))===null||me===void 0?void 0:me.fileName)!==null&&q!==void 0?q:R}))}ee.getAllDependencies=ae;function X(f,F){if(!f.allFileNames){var g=F.getSourceFiles();f.allFileNames=g===e.emptyArray?e.emptyArray:g.map(function(p){return p.fileName})}return f.allFileNames}function ie(f,F){var g=f.referencedMap.getKeys(F);return g?e.arrayFrom(g.keys()):[]}ee.getReferencedByPaths=ie;function le(f){for(var F=0,g=f.statements;F<g.length;F++){var p=g[F];if(!e.isModuleWithStringLiteralName(p))return!1}return!0}function P(f){return e.some(f.moduleAugmentations,function(F){return e.isGlobalScopeAugmentation(F.parent)})}function I(f){return P(f)||!e.isExternalOrCommonJsModule(f)&&!e.isJsonSourceFile(f)&&!le(f)}function re(f,F,g){if(f.allFilesExcludingDefaultLibraryFile)return f.allFilesExcludingDefaultLibraryFile;var p;g&&k(g);for(var d=0,T=F.getSourceFiles();d<T.length;d++){var m=T[d];m!==g&&k(m)}return f.allFilesExcludingDefaultLibraryFile=p||e.emptyArray,f.allFilesExcludingDefaultLibraryFile;function k(N){F.isSourceFileDefaultLibrary(N)||(p||(p=[])).push(N)}}ee.getAllFilesExcludingDefaultLibraryFile=re;function B(f,F,g){var p=F.getCompilerOptions();return p&&e.outFile(p)?[g]:re(f,F,g)}function A(f,F,g,p,d,T,m){if(I(g))return re(f,F,g);var k=F.getCompilerOptions();if(k&&(k.isolatedModules||e.outFile(k)))return[g];var N=new e.Map;N.set(g.resolvedPath,g);for(var D=ie(f,g.resolvedPath);D.length>0;){var R=D.pop();if(!N.has(R)){var me=F.getSourceFileByPath(R);N.set(R,me),me&&$(f,F,me,p,d,T,m)&&D.push.apply(D,ie(f,me.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(N.values(),function(q){return q}))}})(ue=e.BuilderState||(e.BuilderState={}))})(mn||(mn={}));var mn;(function(e){var s;(function(d){d[d.DtsOnly=0]="DtsOnly",d[d.Full=1]="Full"})(s=e.BuilderFileEmit||(e.BuilderFileEmit={}));function ue(d,T){return d===T||d!==void 0&&T!==void 0&&d.size===T.size&&!e.forEachKey(d,function(m){return!T.has(m)})}function ee(d,T,m,k){var N=e.BuilderState.create(d,T,m,k);N.program=d;var D=d.getCompilerOptions();N.compilerOptions=D,e.outFile(D)||(N.semanticDiagnosticsPerFile=new e.Map),N.changedFilesSet=new e.Set;var R=e.BuilderState.canReuseOldState(N.referencedMap,m),me=R?m.compilerOptions:void 0,q=R&&m.semanticDiagnosticsPerFile&&!!N.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(D,me);if(R){if(!m.currentChangedFilePath){var J=m.currentAffectedFilesSignatures;e.Debug.assert(!m.affectedFiles&&(!J||!J.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var C=m.changedFilesSet;q&&e.Debug.assert(!C||!e.forEachKey(C,function(be){return m.semanticDiagnosticsPerFile.has(be)}),"Semantic diagnostics shouldnt be available for changed files"),C==null||C.forEach(function(be){return N.changedFilesSet.add(be)}),!e.outFile(D)&&m.affectedFilesPendingEmit&&(N.affectedFilesPendingEmit=m.affectedFilesPendingEmit.slice(),N.affectedFilesPendingEmitKind=m.affectedFilesPendingEmitKind&&new e.Map(m.affectedFilesPendingEmitKind),N.affectedFilesPendingEmitIndex=m.affectedFilesPendingEmitIndex,N.seenAffectedFiles=new e.Set)}var we=N.referencedMap,Oe=R?m.referencedMap:void 0,te=q&&!D.skipLibCheck===!me.skipLibCheck,Te=te&&!D.skipDefaultLibCheck===!me.skipDefaultLibCheck;return N.fileInfos.forEach(function(be,Ce){var Ue,Se;if(!R||!(Ue=m.fileInfos.get(Ce))||Ue.version!==be.version||!ue(Se=we&&we.getValues(Ce),Oe&&Oe.getValues(Ce))||Se&&e.forEachKey(Se,function(Le){return!N.fileInfos.has(Le)&&m.fileInfos.has(Le)}))N.changedFilesSet.add(Ce);else if(q){var $e=d.getSourceFileByPath(Ce);if($e.isDeclarationFile&&!te)return;if($e.hasNoDefaultLib&&!Te)return;var ce=m.semanticDiagnosticsPerFile.get(Ce);ce&&(N.semanticDiagnosticsPerFile.set(Ce,m.hasReusableDiagnostic?Y(ce,d,T):ce),N.semanticDiagnosticsFromOldState||(N.semanticDiagnosticsFromOldState=new e.Set),N.semanticDiagnosticsFromOldState.add(Ce))}}),R&&e.forEachEntry(m.fileInfos,function(be,Ce){return be.affectsGlobalScope&&!N.fileInfos.has(Ce)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(N,d,void 0).forEach(function(be){return N.changedFilesSet.add(be.resolvedPath)}):me&&!e.outFile(D)&&e.compilerOptionsAffectEmit(D,me)&&(d.getSourceFiles().forEach(function(be){return f(N,be.resolvedPath,1)}),e.Debug.assert(!N.seenAffectedFiles||!N.seenAffectedFiles.size),N.seenAffectedFiles=N.seenAffectedFiles||new e.Set),N.buildInfoEmitPending=!!N.changedFilesSet.size,N}function Y(d,T,m){if(!d.length)return e.emptyArray;var k=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(T.getCompilerOptions()),T.getCurrentDirectory()));return d.map(function(D){var R=V(D,T,N);R.reportsUnnecessary=D.reportsUnnecessary,R.reportsDeprecated=D.reportDeprecated,R.source=D.source,R.skippedOn=D.skippedOn;var me=D.relatedInformation;return R.relatedInformation=me?me.length?me.map(function(q){return V(q,T,N)}):[]:void 0,R});function N(D){return e.toPath(D,k,m)}}function V(d,T,m){var k=d.file;return pr(pr({},d),{file:k?T.getSourceFileByPath(m(k)):void 0})}function ne(d){e.BuilderState.releaseCache(d),d.program=void 0}function _e(d){var T,m=e.BuilderState.clone(d);return m.semanticDiagnosticsPerFile=d.semanticDiagnosticsPerFile&&new e.Map(d.semanticDiagnosticsPerFile),m.changedFilesSet=new e.Set(d.changedFilesSet),m.affectedFiles=d.affectedFiles,m.affectedFilesIndex=d.affectedFilesIndex,m.currentChangedFilePath=d.currentChangedFilePath,m.currentAffectedFilesSignatures=d.currentAffectedFilesSignatures&&new e.Map(d.currentAffectedFilesSignatures),m.currentAffectedFilesExportedModulesMap=(T=d.currentAffectedFilesExportedModulesMap)===null||T===void 0?void 0:T.clone(),m.seenAffectedFiles=d.seenAffectedFiles&&new e.Set(d.seenAffectedFiles),m.cleanedDiagnosticsOfLibFiles=d.cleanedDiagnosticsOfLibFiles,m.semanticDiagnosticsFromOldState=d.semanticDiagnosticsFromOldState&&new e.Set(d.semanticDiagnosticsFromOldState),m.program=d.program,m.compilerOptions=d.compilerOptions,m.affectedFilesPendingEmit=d.affectedFilesPendingEmit&&d.affectedFilesPendingEmit.slice(),m.affectedFilesPendingEmitKind=d.affectedFilesPendingEmitKind&&new e.Map(d.affectedFilesPendingEmitKind),m.affectedFilesPendingEmitIndex=d.affectedFilesPendingEmitIndex,m.seenEmittedFiles=d.seenEmittedFiles&&new e.Map(d.seenEmittedFiles),m.programEmitComplete=d.programEmitComplete,m}function O(d,T){e.Debug.assert(!T||!d.affectedFiles||d.affectedFiles[d.affectedFilesIndex-1]!==T||!d.semanticDiagnosticsPerFile.has(T.resolvedPath))}function w(d,T,m){for(;;){var k=d.affectedFiles;if(k){for(var N=d.seenAffectedFiles,D=d.affectedFilesIndex;D<k.length;){var R=k[D];if(!N.has(R.resolvedPath))return d.affectedFilesIndex=D,de(d,R,T,m),R;D++}d.changedFilesSet.delete(d.currentChangedFilePath),d.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(d,d.currentAffectedFilesSignatures),d.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(d,d.currentAffectedFilesExportedModulesMap),d.affectedFiles=void 0}var me=d.changedFilesSet.keys().next();if(me.done)return;var q=e.Debug.checkDefined(d.program),J=q.getCompilerOptions();if(e.outFile(J))return e.Debug.assert(!d.semanticDiagnosticsPerFile),q;d.currentAffectedFilesSignatures||(d.currentAffectedFilesSignatures=new e.Map),d.exportedModulesMap&&(d.currentAffectedFilesExportedModulesMap||(d.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),d.affectedFiles=e.BuilderState.getFilesAffectedBy(d,q,me.value,T,m,d.currentAffectedFilesSignatures,d.currentAffectedFilesExportedModulesMap),d.currentChangedFilePath=me.value,d.affectedFilesIndex=0,d.seenAffectedFiles||(d.seenAffectedFiles=new e.Set)}}function b(d){var T=d.affectedFilesPendingEmit;if(T){for(var m=d.seenEmittedFiles||(d.seenEmittedFiles=new e.Map),k=d.affectedFilesPendingEmitIndex;k<T.length;k++){var N=e.Debug.checkDefined(d.program).getSourceFileByPath(T[k]);if(N){var D=m.get(N.resolvedPath),R=e.Debug.checkDefined(e.Debug.checkDefined(d.affectedFilesPendingEmitKind).get(N.resolvedPath));if(D===void 0||D<R)return d.affectedFilesPendingEmitIndex=k,{affectedFile:N,emitKind:R}}}d.affectedFilesPendingEmit=void 0,d.affectedFilesPendingEmitKind=void 0,d.affectedFilesPendingEmitIndex=void 0}return}function de(d,T,m,k){var N;if(_(d,T.resolvedPath),d.allFilesExcludingDefaultLibraryFile===d.affectedFiles){if(!d.cleanedDiagnosticsOfLibFiles){d.cleanedDiagnosticsOfLibFiles=!0;var D=e.Debug.checkDefined(d.program),R=D.getCompilerOptions();e.forEach(D.getSourceFiles(),function(me){return D.isSourceFileDefaultLibrary(me)&&!e.skipTypeChecking(me,R,D)&&_(d,me.resolvedPath)})}e.BuilderState.updateShapeSignature(d,e.Debug.checkDefined(d.program),T,e.Debug.checkDefined(d.currentAffectedFilesSignatures),m,k,d.currentAffectedFilesExportedModulesMap);return}else e.Debug.assert(d.hasCalledUpdateShapeSignature.has(T.resolvedPath)||((N=d.currentAffectedFilesSignatures)===null||N===void 0?void 0:N.has(T.resolvedPath)),"Signature not updated for affected file: "+T.fileName);d.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Z(d,T,function(me,q){return fe(me,q,m,k)})}function fe(d,T,m,k){if(_(d,T),!d.changedFilesSet.has(T)){var N=e.Debug.checkDefined(d.program),D=N.getSourceFileByPath(T);D&&(e.BuilderState.updateShapeSignature(d,N,D,e.Debug.checkDefined(d.currentAffectedFilesSignatures),m,k,d.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(d.compilerOptions)&&f(d,T,0))}}function _(d,T){return d.semanticDiagnosticsFromOldState?(d.semanticDiagnosticsFromOldState.delete(T),d.semanticDiagnosticsPerFile.delete(T),!d.semanticDiagnosticsFromOldState.size):!0}function U(d,T){var m=e.Debug.checkDefined(d.currentAffectedFilesSignatures).get(T),k=e.Debug.checkDefined(d.fileInfos.get(T)).signature;return m!==k}function Z(d,T,m){var k,N;if(!d.exportedModulesMap||!d.changedFilesSet.has(T.resolvedPath))return;if(!U(d,T.resolvedPath))return;if(d.compilerOptions.isolatedModules){var D=new e.Map;D.set(T.resolvedPath,!0);for(var R=e.BuilderState.getReferencedByPaths(d,T.resolvedPath);R.length>0;){var me=R.pop();if(!D.has(me)&&(D.set(me,!0),m(d,me),U(d,me))){var q=e.Debug.checkDefined(d.program).getSourceFileByPath(me);R.push.apply(R,e.BuilderState.getReferencedByPaths(d,q.resolvedPath))}}}e.Debug.assert(!!d.currentAffectedFilesExportedModulesMap);var J=new e.Set;(k=d.currentAffectedFilesExportedModulesMap.getKeys(T.resolvedPath))===null||k===void 0||k.forEach(function(C){return v(d,C,J,m)}),(N=d.exportedModulesMap.getKeys(T.resolvedPath))===null||N===void 0||N.forEach(function(C){var we;return!d.currentAffectedFilesExportedModulesMap.hasKey(C)&&!((we=d.currentAffectedFilesExportedModulesMap.deletedKeys())===null||we===void 0?void 0:we.has(C))&&v(d,C,J,m)})}function v(d,T,m,k){var N;(N=d.referencedMap.getKeys(T))===null||N===void 0||N.forEach(function(D){return W(d,D,m,k)})}function W(d,T,m,k){var N,D,R;if(!e.tryAddToSet(m,T))return;k(d,T),e.Debug.assert(!!d.currentAffectedFilesExportedModulesMap),(N=d.currentAffectedFilesExportedModulesMap.getKeys(T))===null||N===void 0||N.forEach(function(me){return W(d,me,m,k)}),(D=d.exportedModulesMap.getKeys(T))===null||D===void 0||D.forEach(function(me){var q;return!d.currentAffectedFilesExportedModulesMap.hasKey(me)&&!((q=d.currentAffectedFilesExportedModulesMap.deletedKeys())===null||q===void 0?void 0:q.has(me))&&W(d,me,m,k)}),(R=d.referencedMap.getKeys(T))===null||R===void 0||R.forEach(function(me){return!m.has(me)&&k(d,me)})}function x(d,T,m,k,N){N?d.buildInfoEmitPending=!1:T===d.program?(d.changedFilesSet.clear(),d.programEmitComplete=!0):(d.seenAffectedFiles.add(T.resolvedPath),m!==void 0&&(d.seenEmittedFiles||(d.seenEmittedFiles=new e.Map)).set(T.resolvedPath,m),k?(d.affectedFilesPendingEmitIndex++,d.buildInfoEmitPending=!0):d.affectedFilesIndex++)}function $(d,T,m){return x(d,m),{result:T,affected:m}}function L(d,T,m,k,N,D){return x(d,m,k,N,D),{result:T,affected:m}}function E(d,T,m){return e.concatenate(ae(d,T,m),e.Debug.checkDefined(d.program).getProgramDiagnostics(T))}function ae(d,T,m){var k=T.resolvedPath;if(d.semanticDiagnosticsPerFile){var N=d.semanticDiagnosticsPerFile.get(k);if(N)return e.filterSemanticDiagnostics(N,d.compilerOptions)}var D=e.Debug.checkDefined(d.program).getBindAndCheckDiagnostics(T,m);return d.semanticDiagnosticsPerFile&&d.semanticDiagnosticsPerFile.set(k,D),e.filterSemanticDiagnostics(D,d.compilerOptions)}function X(d,T){if(e.outFile(d.compilerOptions))return;var m=e.Debug.checkDefined(d.program).getCurrentDirectory(),k=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(d.compilerOptions),m)),N=[],D=new e.Map,R,me,q=e.arrayFrom(d.fileInfos.entries(),function(fn){var Ye=fn[0],Ne=fn[1],je=pe(Ye);e.Debug.assert(N[je-1]===qe(Ye));var xn=d.currentAffectedFilesSignatures&&d.currentAffectedFilesSignatures.get(Ye),Wn=xn!=null?xn:Ne.signature;return Ne.version===Wn?Ne.affectsGlobalScope?{version:Ne.version,signature:void 0,affectsGlobalScope:!0}:Ne.version:Wn!==void 0?xn===void 0?Ne:{version:Ne.version,signature:xn,affectsGlobalScope:Ne.affectsGlobalScope}:{version:Ne.version,signature:!1,affectsGlobalScope:Ne.affectsGlobalScope}}),J;d.referencedMap&&(J=e.arrayFrom(d.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(fn){return[pe(fn),Me(d.referencedMap.getValues(fn))]}));var C;d.exportedModulesMap&&(C=e.mapDefined(e.arrayFrom(d.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(fn){var Ye;if(d.currentAffectedFilesExportedModulesMap){if((Ye=d.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Ye===void 0?void 0:Ye.has(fn))return;var Ne=d.currentAffectedFilesExportedModulesMap.getValues(fn);if(Ne)return[pe(fn),Me(Ne)]}return[pe(fn),Me(d.exportedModulesMap.getValues(fn))]}));var we;if(d.semanticDiagnosticsPerFile)for(var Oe=0,te=e.arrayFrom(d.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);Oe<te.length;Oe++){var Te=te[Oe],be=d.semanticDiagnosticsPerFile.get(Te);(we||(we=[])).push(be.length?[pe(Te),d.hasReusableDiagnostic?be:P(be,qe)]:pe(Te))}var Ce;if(d.affectedFilesPendingEmit)for(var Ue=new e.Set,Se=0,$e=d.affectedFilesPendingEmit.slice(d.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);Se<$e.length;Se++){var ce=$e[Se];e.tryAddToSet(Ue,ce)&&(Ce||(Ce=[])).push([pe(ce),d.affectedFilesPendingEmitKind.get(ce)])}return{fileNames:N,fileInfos:q,options:ie(d.compilerOptions,Le),fileIdsList:R,referencedMap:J,exportedModulesMap:C,semanticDiagnosticsPerFile:we,affectedFilesPendingEmit:Ce};function Le(fn){return qe(e.getNormalizedAbsolutePath(fn,m))}function qe(fn){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(k,fn,T))}function pe(fn){var Ye=D.get(fn);return Ye===void 0&&(N.push(qe(fn)),D.set(fn,Ye=N.length)),Ye}function Me(fn){var Ye=e.arrayFrom(fn.keys(),pe).sort(e.compareValues),Ne=Ye.join(),je=me==null?void 0:me.get(Ne);return je===void 0&&((R||(R=[])).push(Ye),(me||(me=new e.Map)).set(Ne,je=R.length)),je}}function ie(d,T){for(var m,k=e.getOptionsNameMap().optionsNameMap,N=0,D=e.getOwnKeys(d).sort(e.compareStringsCaseSensitive);N<D.length;N++){var R=D[N],me=R.toLowerCase(),q=k.get(me);((q==null?void 0:q.affectsEmit)||(q==null?void 0:q.affectsSemanticDiagnostics)||me==="strict"||me==="skiplibcheck"||me==="skipdefaultlibcheck")&&((m||(m={}))[R]=le(q,d[R],T))}return m}function le(d,T,m){if(d){if(d.type==="list"){var k=T;if(d.element.isFilePath&&k.length)return k.map(m)}else if(d.isFilePath)return m(T)}return T}function P(d,T){return e.Debug.assert(!!d.length),d.map(function(m){var k=I(m,T);k.reportsUnnecessary=m.reportsUnnecessary,k.reportDeprecated=m.reportsDeprecated,k.source=m.source,k.skippedOn=m.skippedOn;var N=m.relatedInformation;return k.relatedInformation=N?N.length?N.map(function(D){return I(D,T)}):[]:void 0,k})}function I(d,T){var m=d.file;return pr(pr({},d),{file:m?T(m.resolvedPath):void 0})}var re;(function(d){d[d.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",d[d.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(re=e.BuilderProgramKind||(e.BuilderProgramKind={}));function B(d,T,m,k,N,D){var R,me,q;return d===void 0?(e.Debug.assert(T===void 0),R=m,q=k,e.Debug.assert(!!q),me=q.getProgram()):e.isArray(d)?(q=k,me=e.createProgram({rootNames:d,options:T,host:m,oldProgram:q&&q.getProgramOrUndefined(),configFileParsingDiagnostics:N,projectReferences:D}),R=m):(me=d,R=T,q=m,N=k),{host:R,newProgram:me,oldProgram:q,configFileParsingDiagnostics:N||e.emptyArray}}e.getBuilderCreationParameters=B;function A(d,T){var m=T.newProgram,k=T.host,N=T.oldProgram,D=T.configFileParsingDiagnostics,R=N&&N.getState();if(R&&m===R.program&&D===m.getConfigFileParsingDiagnostics())return m=void 0,R=void 0,N;var me=e.createGetCanonicalFileName(k.useCaseSensitiveFileNames()),q=e.maybeBind(k,k.createHash),J=ee(m,me,R,k.disableUseFileVersionAsSignature),C;m.getProgramBuildInfo=function(){return X(J,me)},m=void 0,N=void 0,R=void 0;var we=function(){return J},Oe=p(we,D);return Oe.getState=we,Oe.backupState=function(){e.Debug.assert(C===void 0),C=_e(J)},Oe.restoreState=function(){J=e.Debug.checkDefined(C),C=void 0},Oe.getAllDependencies=function(Se){return e.BuilderState.getAllDependencies(J,e.Debug.checkDefined(J.program),Se)},Oe.getSemanticDiagnostics=Ue,Oe.emit=be,Oe.releaseProgram=function(){ne(J),C=void 0},d===re.SemanticDiagnosticsBuilderProgram?Oe.getSemanticDiagnosticsOfNextAffectedFile=Ce:d===re.EmitAndSemanticDiagnosticsBuilderProgram?(Oe.getSemanticDiagnosticsOfNextAffectedFile=Ce,Oe.emitNextAffectedFile=Te,Oe.emitBuildInfo=te):e.notImplemented(),Oe;function te(Se,$e){if(J.buildInfoEmitPending){var ce=e.Debug.checkDefined(J.program).emitBuildInfo(Se||e.maybeBind(k,k.writeFile),$e);return J.buildInfoEmitPending=!1,ce}return e.emitSkippedWithNoDiagnostics}function Te(Se,$e,ce,Le){var qe=w(J,$e,q),pe=1,Me=!1;if(!qe)if(e.outFile(J.compilerOptions)){var Ne=e.Debug.checkDefined(J.program);if(J.programEmitComplete)return;qe=Ne}else{var fn=b(J);if(!fn){if(!J.buildInfoEmitPending)return;var Ye=e.Debug.checkDefined(J.program);return L(J,Ye.emitBuildInfo(Se||e.maybeBind(k,k.writeFile),$e),Ye,1,!1,!0)}qe=fn.affectedFile,pe=fn.emitKind,Me=!0}return L(J,e.Debug.checkDefined(J.program).emit(qe===J.program?void 0:qe,Se||e.maybeBind(k,k.writeFile),$e,ce||pe===0,Le),qe,pe,Me)}function be(Se,$e,ce,Le,qe){var pe=!1,Me,fn,Ye;d!==re.EmitAndSemanticDiagnosticsBuilderProgram&&!Se&&!e.outFile(J.compilerOptions)&&!J.compilerOptions.noEmit&&J.compilerOptions.noEmitOnError&&(pe=!0,Me=J.affectedFilesPendingEmit&&J.affectedFilesPendingEmit.slice(),fn=J.affectedFilesPendingEmitKind&&new e.Map(J.affectedFilesPendingEmitKind),Ye=J.affectedFilesPendingEmitIndex),d===re.EmitAndSemanticDiagnosticsBuilderProgram&&O(J,Se);var Ne=e.handleNoEmitOptions(Oe,Se,$e,ce);if(Ne)return Ne;if(pe&&(J.affectedFilesPendingEmit=Me,J.affectedFilesPendingEmitKind=fn,J.affectedFilesPendingEmitIndex=Ye),!Se&&d===re.EmitAndSemanticDiagnosticsBuilderProgram){for(var je=[],xn=!1,Wn=void 0,dn=[],vn=void 0;vn=Te($e,ce,Le,qe);)xn=xn||vn.result.emitSkipped,Wn=e.addRange(Wn,vn.result.diagnostics),dn=e.addRange(dn,vn.result.emittedFiles),je=e.addRange(je,vn.result.sourceMaps);return{emitSkipped:xn,diagnostics:Wn||e.emptyArray,emittedFiles:dn,sourceMaps:je}}return e.Debug.checkDefined(J.program).emit(Se,$e||e.maybeBind(k,k.writeFile),ce,Le,qe)}function Ce(Se,$e){for(;;){var ce=w(J,Se,q);if(ce){if(ce===J.program)return $(J,J.program.getSemanticDiagnostics(void 0,Se),ce)}else return;if((d===re.EmitAndSemanticDiagnosticsBuilderProgram||J.compilerOptions.noEmit||J.compilerOptions.noEmitOnError)&&f(J,ce.resolvedPath,1),$e&&$e(ce)){x(J,ce);continue}return $(J,E(J,ce,Se),ce)}}function Ue(Se,$e){O(J,Se);var ce=e.Debug.checkDefined(J.program).getCompilerOptions();if(e.outFile(ce))return e.Debug.assert(!J.semanticDiagnosticsPerFile),e.Debug.checkDefined(J.program).getSemanticDiagnostics(Se,$e);if(Se)return E(J,Se,$e);for(;Ce($e););for(var Le,qe=0,pe=e.Debug.checkDefined(J.program).getSourceFiles();qe<pe.length;qe++){var Me=pe[qe];Le=e.addRange(Le,E(J,Me,$e))}return Le||e.emptyArray}}e.createBuilderProgram=A;function f(d,T,m){d.affectedFilesPendingEmit||(d.affectedFilesPendingEmit=[]),d.affectedFilesPendingEmitKind||(d.affectedFilesPendingEmitKind=new e.Map);var k=d.affectedFilesPendingEmitKind.get(T);d.affectedFilesPendingEmit.push(T),d.affectedFilesPendingEmitKind.set(T,k||m),d.affectedFilesPendingEmitIndex===void 0&&(d.affectedFilesPendingEmitIndex=0)}function F(d){return e.isString(d)?{version:d,signature:d,affectsGlobalScope:void 0}:e.isString(d.signature)?d:{version:d.version,signature:d.signature===!1?void 0:d.version,affectsGlobalScope:d.affectsGlobalScope}}e.toBuilderStateFileInfo=F;function g(d,T,m){var k,N=e.getDirectoryPath(e.getNormalizedAbsolutePath(T,m.getCurrentDirectory())),D=e.createGetCanonicalFileName(m.useCaseSensitiveFileNames()),R=d.fileNames.map(C),me=(k=d.fileIdsList)===null||k===void 0?void 0:k.map(function(be){return new e.Set(be.map(Oe))}),q=new e.Map;d.fileInfos.forEach(function(be,Ce){return q.set(Oe(Ce+1),F(be))});var J={fileInfos:q,compilerOptions:d.options?e.convertToOptionsWithAbsolutePaths(d.options,we):{},referencedMap:Te(d.referencedMap),exportedModulesMap:Te(d.exportedModulesMap),semanticDiagnosticsPerFile:d.semanticDiagnosticsPerFile&&e.arrayToMap(d.semanticDiagnosticsPerFile,function(be){return Oe(e.isNumber(be)?be:be[0])},function(be){return e.isNumber(be)?e.emptyArray:be[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(d.affectedFilesPendingEmit,function(be){return Oe(be[0])}),affectedFilesPendingEmitKind:d.affectedFilesPendingEmit&&e.arrayToMap(d.affectedFilesPendingEmit,function(be){return Oe(be[0])},function(be){return be[1]}),affectedFilesPendingEmitIndex:d.affectedFilesPendingEmit&&0};return{getState:function(){return J},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return J.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function C(be){return e.toPath(be,N,D)}function we(be){return e.getNormalizedAbsolutePath(be,N)}function Oe(be){return R[be-1]}function te(be){return me[be-1]}function Te(be){if(!be)return;var Ce=e.BuilderState.createManyToManyPathMap();return be.forEach(function(Ue){var Se=Ue[0],$e=Ue[1];return Ce.set(Oe(Se),te($e))}),Ce}}e.createBuildProgramUsingProgramBuildInfo=g;function p(d,T){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:m,getProgramOrUndefined:function(){return d().program},releaseProgram:function(){return d().program=void 0},getCompilerOptions:function(){return d().compilerOptions},getSourceFile:function(k){return m().getSourceFile(k)},getSourceFiles:function(){return m().getSourceFiles()},getOptionsDiagnostics:function(k){return m().getOptionsDiagnostics(k)},getGlobalDiagnostics:function(k){return m().getGlobalDiagnostics(k)},getConfigFileParsingDiagnostics:function(){return T},getSyntacticDiagnostics:function(k,N){return m().getSyntacticDiagnostics(k,N)},getDeclarationDiagnostics:function(k,N){return m().getDeclarationDiagnostics(k,N)},getSemanticDiagnostics:function(k,N){return m().getSemanticDiagnostics(k,N)},emit:function(k,N,D,R,me){return m().emit(k,N,D,R,me)},emitBuildInfo:function(k,N){return m().emitBuildInfo(k,N)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return m().getCurrentDirectory()},close:e.noop};function m(){return e.Debug.checkDefined(d().program)}}e.createRedirectedBuilderProgram=p})(mn||(mn={}));var mn;(function(e){function s(Y,V,ne,_e,O,w){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Y,V,ne,_e,O,w))}e.createSemanticDiagnosticsBuilderProgram=s;function ue(Y,V,ne,_e,O,w){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Y,V,ne,_e,O,w))}e.createEmitAndSemanticDiagnosticsBuilderProgram=ue;function ee(Y,V,ne,_e,O,w){var b=e.getBuilderCreationParameters(Y,V,ne,_e,O,w),de=b.newProgram,fe=b.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:de,compilerOptions:de.getCompilerOptions()}},fe)}e.createAbstractBuilder=ee})(mn||(mn={}));var mn;(function(e){function s(Y){return e.endsWith(Y,"/node_modules/.staging")?e.removeSuffix(Y,"/.staging"):e.some(e.ignoredPaths,function(V){return e.stringContains(Y,V)})?void 0:Y}e.removeIgnoredPath=s;function ue(Y){var V=e.getRootLength(Y);if(Y.length===V)return!1;var ne=Y.indexOf(e.directorySeparator,V);if(ne===-1)return!1;var _e=Y.substring(V,ne+1),O=V>1||Y.charCodeAt(0)!==47;if(O&&Y.search(/[a-zA-Z]:/)!==0&&_e.search(/[a-zA-z]\$\//)===0){if(ne=Y.indexOf(e.directorySeparator,ne+1),ne===-1)return!1;_e=Y.substring(V+_e.length,ne+1)}if(O&&_e.search(/users\//i)!==0)return!0;for(var w=ne+1,b=2;b>0;b--)if(w=Y.indexOf(e.directorySeparator,w)+1,w===0)return!1;return!0}e.canWatchDirectory=ue;function ee(Y,V,ne){var _e,O,w,b=e.createMultiMap(),de=[],fe=e.createMultiMap(),_=!1,U,Z,v,W=e.memoize(function(){return Y.getCurrentDirectory()}),x=Y.getCachedDirectoryStructureHost(),$=new e.Map,L=e.createCacheWithRedirects(),E=e.createCacheWithRedirects(),ae=e.createModuleResolutionCache(W(),Y.getCanonicalFileName,void 0,L,E),X=new e.Map,ie=e.createCacheWithRedirects(),le=e.createTypeReferenceDirectiveResolutionCache(W(),Y.getCanonicalFileName,void 0,ae.getPackageJsonInfoCache(),ie),P=[".ts",".tsx",".js",".jsx",".json"],I=new e.Map,re=new e.Map,B=V&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(V,W())),A=B&&Y.toPath(B),f=A!==void 0?A.split(e.directorySeparator).length:0,F=new e.Map;return{getModuleResolutionCache:function(){return ae},startRecordingFilesWithChangedResolutions:m,finishRecordingFilesWithChangedResolutions:k,startCachingPerDirectoryResolution:R,finishCachingPerDirectoryResolution:me,resolveModuleNames:Oe,getResolvedModuleWithFailedLookupLocationsFromCache:te,resolveTypeReferenceDirectives:we,removeResolutionsFromProjectReferenceRedirects:Ye,removeResolutionsOfFile:Ne,hasChangedAutomaticTypeDirectiveNames:function(){return _},invalidateResolutionOfFile:xn,invalidateResolutionsOfFailedLookupLocations:vn,setFilesWithInvalidatedNonRelativeUnresolvedImports:Wn,createHasInvalidatedResolution:D,isFileWithInvalidatedNonRelativeUnresolvedImports:N,updateTypeRootsWatch:$n,closeTypeRootsWatch:Cn,clear:T};function g(oe){return oe.resolvedModule}function p(oe){return oe.resolvedTypeReferenceDirective}function d(oe,Pe){return oe===void 0||Pe.length<=oe.length?!1:e.startsWith(Pe,oe)&&Pe[oe.length]===e.directorySeparator}function T(){e.clearMap(re,e.closeFileWatcherOf),I.clear(),b.clear(),Cn(),$.clear(),X.clear(),fe.clear(),de.length=0,U=void 0,Z=void 0,v=void 0,R(),_=!1}function m(){_e=[]}function k(){var oe=_e;return _e=void 0,oe}function N(oe){if(!w)return!1;var Pe=w.get(oe);return!!Pe&&!!Pe.length}function D(oe){if(vn(),oe)return O=void 0,e.returnTrue;var Pe=O;return O=void 0,function(ke){return!!Pe&&Pe.has(ke)||N(ke)}}function R(){ae.clear(),le.clear(),b.forEach(ce),b.clear()}function me(){w=void 0,R(),re.forEach(function(oe,Pe){oe.refCount===0&&(re.delete(Pe),oe.watcher.close())}),_=!1}function q(oe,Pe,ke,Qe,gn){var xe,Ze=e.resolveModuleName(oe,Pe,ke,Qe,ae,gn);if(!Y.getGlobalCache)return Ze;var wn=Y.getGlobalCache();if(wn!==void 0&&!e.isExternalModuleNameRelative(oe)&&!(Ze.resolvedModule&&e.extensionIsTS(Ze.resolvedModule.extension))){var Be=e.loadModuleFromGlobalCache(e.Debug.checkDefined(Y.globalCacheResolutionModuleName)(oe),Y.projectName,ke,Qe,wn,ae),hn=Be.resolvedModule,Kn=Be.failedLookupLocations;if(hn)return Ze.resolvedModule=hn,(xe=Ze.failedLookupLocations).push.apply(xe,Kn),Ze}return Ze}function J(oe,Pe,ke,Qe,gn){return e.resolveTypeReferenceDirective(oe,Pe,ke,Qe,gn,le)}function C(oe){var Pe,ke,Qe,gn=oe.names,xe=oe.containingFile,Ze=oe.redirectedReference,wn=oe.cache,Be=oe.perDirectoryCacheWithRedirects,hn=oe.loader,Kn=oe.getResolutionWithResolvedFileName,Je=oe.shouldRetryResolution,En=oe.reusedNames,Nn=oe.logChanges,ct=Y.toPath(xe),yt=wn.get(ct)||wn.set(ct,new e.Map).get(ct),Gt=e.getDirectoryPath(ct),$t=Be.getOrCreateMapOfCacheRedirects(Ze),Ke=$t.get(Gt);Ke||(Ke=new e.Map,$t.set(Gt,Ke));for(var Vn=[],Zn=Y.getCompilationSettings(),Re=Nn&&N(ct),Pn=Y.getCurrentProgram(),rt=Pn&&Pn.getResolvedProjectReferenceToRedirect(xe),Yn=rt?!Ze||Ze.sourceFile.path!==rt.sourceFile.path:!!Ze,gt=new e.Map,lt=0,Fe=gn;lt<Fe.length;lt++){var Bn=Fe[lt],K=yt.get(Bn);if(!gt.has(Bn)&&Yn||!K||K.isInvalidated||Re&&!e.isExternalModuleNameRelative(Bn)&&Je(K)){var An=K,Fn=Ke.get(Bn);if(Fn){K=Fn;var ln=((Pe=Y.getCompilerHost)===null||Pe===void 0?void 0:Pe.call(Y))||Y;if(e.isTraceEnabled(Zn,ln)){var Ln=Kn(K);e.trace(ln,hn===q?(Ln==null?void 0:Ln.resolvedFileName)?Ln.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(Ln==null?void 0:Ln.resolvedFileName)?Ln.packagetId?e.Diagnostics.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:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,Bn,xe,e.getDirectoryPath(xe),Ln==null?void 0:Ln.resolvedFileName,(Ln==null?void 0:Ln.packagetId)&&e.packageIdToString(Ln.packagetId))}}else K=hn(Bn,xe,Zn,((ke=Y.getCompilerHost)===null||ke===void 0?void 0:ke.call(Y))||Y,Ze),Ke.set(Bn,K);yt.set(Bn,K),Se(Bn,K,ct,Kn),An&&qe(An,ct,Kn),Nn&&_e&&!Xe(An,K)&&(_e.push(ct),Nn=!1)}else{var ln=((Qe=Y.getCompilerHost)===null||Qe===void 0?void 0:Qe.call(Y))||Y;if(e.isTraceEnabled(Zn,ln)&&!gt.has(Bn)){var Ln=Kn(K);e.trace(ln,hn===q?(Ln==null?void 0:Ln.resolvedFileName)?Ln.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(Ln==null?void 0:Ln.resolvedFileName)?Ln.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Bn,xe,Ln==null?void 0:Ln.resolvedFileName,(Ln==null?void 0:Ln.packagetId)&&e.packageIdToString(Ln.packagetId))}}e.Debug.assert(K!==void 0&&!K.isInvalidated),gt.set(Bn,!0),Vn.push(Kn(K))}return yt.forEach(function(Dn,rn){!gt.has(rn)&&!e.contains(En,rn)&&(qe(Dn,ct,Kn),yt.delete(rn))}),Vn;function Xe(Dn,rn){if(Dn===rn)return!0;if(!Dn||!rn)return!1;var qn=Kn(Dn),it=Kn(rn);return qn===it?!0:!qn||!it?!1:qn.resolvedFileName===it.resolvedFileName}}function we(oe,Pe,ke){return C({names:oe,containingFile:Pe,redirectedReference:ke,cache:X,perDirectoryCacheWithRedirects:ie,loader:J,getResolutionWithResolvedFileName:p,shouldRetryResolution:function(Qe){return Qe.resolvedTypeReferenceDirective===void 0}})}function Oe(oe,Pe,ke,Qe){return C({names:oe,containingFile:Pe,redirectedReference:Qe,cache:$,perDirectoryCacheWithRedirects:L,loader:q,getResolutionWithResolvedFileName:g,shouldRetryResolution:function(gn){return!gn.resolvedModule||!e.resolutionExtensionIsTSOrJson(gn.resolvedModule.extension)},reusedNames:ke,logChanges:ne})}function te(oe,Pe){var ke=$.get(Y.toPath(Pe));return ke&&ke.get(oe)}function Te(oe){return e.endsWith(oe,"/node_modules/@types")}function be(oe,Pe){if(d(A,Pe)){oe=e.isRootedDiskPath(oe)?e.normalizePath(oe):e.getNormalizedAbsolutePath(oe,W());var ke=Pe.split(e.directorySeparator),Qe=oe.split(e.directorySeparator);return e.Debug.assert(Qe.length===ke.length,"FailedLookup: "+oe+" failedLookupLocationPath: "+Pe),ke.length>f+1?{dir:Qe.slice(0,f+1).join(e.directorySeparator),dirPath:ke.slice(0,f+1).join(e.directorySeparator)}:{dir:B,dirPath:A,nonRecursive:!1}}return Ce(e.getDirectoryPath(e.getNormalizedAbsolutePath(oe,W())),e.getDirectoryPath(Pe))}function Ce(oe,Pe){for(;e.pathContainsNodeModules(Pe);)oe=e.getDirectoryPath(oe),Pe=e.getDirectoryPath(Pe);if(e.isNodeModulesDirectory(Pe))return ue(e.getDirectoryPath(Pe))?{dir:oe,dirPath:Pe}:void 0;var ke=!0,Qe,gn;if(A!==void 0)for(;!d(Pe,A);){var xe=e.getDirectoryPath(Pe);if(xe===Pe)break;ke=!1,Qe=Pe,gn=oe,Pe=xe,oe=e.getDirectoryPath(oe)}return ue(Pe)?{dir:gn||oe,dirPath:Qe||Pe,nonRecursive:ke}:void 0}function Ue(oe){return e.fileExtensionIsOneOf(oe,P)}function Se(oe,Pe,ke,Qe){if(Pe.refCount)Pe.refCount++,e.Debug.assertDefined(Pe.files);else{Pe.refCount=1,e.Debug.assert(e.length(Pe.files)===0),e.isExternalModuleNameRelative(oe)?$e(Pe):b.add(oe,Pe);var gn=Qe(Pe);gn&&gn.resolvedFileName&&fe.add(Y.toPath(gn.resolvedFileName),Pe)}(Pe.files||(Pe.files=[])).push(ke)}function $e(oe){e.Debug.assert(!!oe.refCount);var Pe=oe.failedLookupLocations;if(!Pe.length)return;de.push(oe);for(var ke=!1,Qe=0,gn=Pe;Qe<gn.length;Qe++){var xe=gn[Qe],Ze=Y.toPath(xe),wn=be(xe,Ze);if(wn){var Be=wn.dir,hn=wn.dirPath,Kn=wn.nonRecursive;if(!Ue(Ze)){var Je=I.get(Ze)||0;I.set(Ze,Je+1)}hn===A?(e.Debug.assert(!Kn),ke=!0):Le(Be,hn,Kn)}}ke&&Le(B,A,!0)}function ce(oe,Pe){var ke=Y.getCurrentProgram();(!ke||!ke.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Pe))&&oe.forEach($e)}function Le(oe,Pe,ke){var Qe=re.get(Pe);Qe?(e.Debug.assert(!!ke===!!Qe.nonRecursive),Qe.refCount++):re.set(Pe,{watcher:Me(oe,Pe,ke),refCount:1,nonRecursive:ke})}function qe(oe,Pe,ke){if(e.unorderedRemoveItem(e.Debug.assertDefined(oe.files),Pe),oe.refCount--,oe.refCount)return;var Qe=ke(oe);if(Qe&&Qe.resolvedFileName&&fe.remove(Y.toPath(Qe.resolvedFileName),oe),!e.unorderedRemoveItem(de,oe))return;for(var gn=oe.failedLookupLocations,xe=!1,Ze=0,wn=gn;Ze<wn.length;Ze++){var Be=wn[Ze],hn=Y.toPath(Be),Kn=be(Be,hn);if(Kn){var Je=Kn.dirPath,En=I.get(hn);En&&(En===1?I.delete(hn):(e.Debug.assert(En>1),I.set(hn,En-1))),Je===A?xe=!0:pe(Je)}}xe&&pe(A)}function pe(oe){var Pe=re.get(oe);Pe.refCount--}function Me(oe,Pe,ke){return Y.watchDirectoryOfFailedLookupLocation(oe,function(Qe){var gn=Y.toPath(Qe);x&&x.addOrDeleteFileOrDirectory(Qe,gn),dn(gn,Pe===gn)},ke?0:1)}function fn(oe,Pe,ke){var Qe=oe.get(Pe);Qe&&(Qe.forEach(function(gn){return qe(gn,Pe,ke)}),oe.delete(Pe))}function Ye(oe){if(!e.fileExtensionIs(oe,".json"))return;var Pe=Y.getCurrentProgram();if(!Pe)return;var ke=Pe.getResolvedProjectReferenceByPath(oe);if(!ke)return;ke.commandLine.fileNames.forEach(function(Qe){return Ne(Y.toPath(Qe))})}function Ne(oe){fn($,oe,g),fn(X,oe,p)}function je(oe,Pe){if(!oe)return!1;for(var ke=!1,Qe=0,gn=oe;Qe<gn.length;Qe++){var xe=gn[Qe];if(xe.isInvalidated||!Pe(xe))continue;xe.isInvalidated=ke=!0;for(var Ze=0,wn=e.Debug.assertDefined(xe.files);Ze<wn.length;Ze++){var Be=wn[Ze];(O||(O=new e.Set)).add(Be),_=_||e.endsWith(Be,e.inferredTypesContainingFile)}}return ke}function xn(oe){Ne(oe);var Pe=_;je(fe.get(oe),e.returnTrue)&&_&&!Pe&&Y.onChangedAutomaticTypeDirectiveNames()}function Wn(oe){e.Debug.assert(w===oe||w===void 0),w=oe}function dn(oe,Pe){if(Pe)(v||(v=[])).push(oe);else{var ke=s(oe);if(!ke)return!1;if(oe=ke,Y.fileIsOpen(oe))return!1;var Qe=e.getDirectoryPath(oe);if(Te(oe)||e.isNodeModulesDirectory(oe)||Te(Qe)||e.isNodeModulesDirectory(Qe))(U||(U=[])).push(oe),(Z||(Z=new e.Set)).add(oe);else{if(!Ue(oe)&&!I.has(oe))return!1;if(e.isEmittedFileOfProgram(Y.getCurrentProgram(),oe))return!1;(U||(U=[])).push(oe);var gn=e.parseNodeModuleFromPath(oe);gn&&(Z||(Z=new e.Set)).add(gn)}}Y.scheduleInvalidateResolutionsOfFailedLookupLocations()}function vn(){if(!U&&!Z&&!v)return!1;var oe=je(de,o);return U=void 0,Z=void 0,v=void 0,oe}function o(oe){return oe.failedLookupLocations.some(function(Pe){var ke=Y.toPath(Pe);return e.contains(U,ke)||e.firstDefinedIterator((Z==null?void 0:Z.keys())||e.emptyIterator,function(Qe){return e.startsWith(ke,Qe)?!0:void 0})||(v==null?void 0:v.some(function(Qe){return d(Qe,ke)}))})}function Cn(){e.clearMap(F,e.closeFileWatcher)}function z(oe,Pe){if(d(A,Pe))return A;var ke=Ce(oe,Pe);return ke&&re.has(ke.dirPath)?ke.dirPath:void 0}function tn(oe,Pe){return Y.watchTypeRootsDirectory(Pe,function(ke){var Qe=Y.toPath(ke);x&&x.addOrDeleteFileOrDirectory(ke,Qe),_=!0,Y.onChangedAutomaticTypeDirectiveNames();var gn=z(Pe,oe);gn&&dn(Qe,gn===Qe)},1)}function $n(){var oe=Y.getCompilationSettings();if(oe.types){Cn();return}var Pe=e.getEffectiveTypeRoots(oe,{directoryExists:Un,getCurrentDirectory:W});Pe?e.mutateMap(F,e.arrayToMap(Pe,function(ke){return Y.toPath(ke)}),{createNewValue:tn,onDeleteValue:e.closeFileWatcher}):Cn()}function Un(oe){var Pe=e.getDirectoryPath(e.getDirectoryPath(oe)),ke=Y.toPath(Pe);return ke===A||ue(ke)}}e.createResolutionCache=ee})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(m){m[m.Relative=0]="Relative",m[m.NonRelative=1]="NonRelative",m[m.Shortest=2]="Shortest",m[m.ExternalNonRelative=3]="ExternalNonRelative"})(ee||(ee={}));var Y;(function(m){m[m.Minimal=0]="Minimal",m[m.Index=1]="Index",m[m.JsExtension=2]="JsExtension"})(Y||(Y={}));function V(m,k,N){var D=m.importModuleSpecifierPreference,R=m.importModuleSpecifierEnding;return{relativePreference:D==="relative"?0:D==="non-relative"?1:D==="project-relative"?3:2,ending:me()};function me(){switch(R){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return $(N)?2:e.getEmitModuleResolutionKind(k)!==e.ModuleResolutionKind.NodeJs?1:0}}}function ne(m,k){return{relativePreference:e.isExternalModuleNameRelative(k)?0:1,ending:e.hasJSFileExtension(k)?2:e.getEmitModuleResolutionKind(m)!==e.ModuleResolutionKind.NodeJs||e.endsWith(k,"index")?1:0}}function _e(m,k,N,D,R){var me=b(m,k,N,D,ne(m,R),{});return me===R?void 0:me}ue.updateModuleSpecifier=_e;function O(m,k,N,D,R){return b(m,N,D,R,V({},m,k),{})}ue.getModuleSpecifier=O;function w(m,k,N,D,R){var me=v(k,D),q=X(k,N,D,R);return e.firstDefined(q,function(J){return re(J,me,D,m,!0)})}ue.getNodeModulesPackageName=w;function b(m,k,N,D,R,me){var q=v(k,D),J=X(k,N,D,me);return e.firstDefined(J,function(C){return re(C,q,D,m)})||W(N,q,m,D,R)}function de(m,k,N,D){return fe(m,k,N,D)[0]}ue.tryGetModuleSpecifiersFromCache=de;function fe(m,k,N,D){var R,me=e.getSourceFileOfModule(m);if(!me)return e.emptyArray;var q=(R=N.getModuleSpecifierCache)===null||R===void 0?void 0:R.call(N),J=q==null?void 0:q.get(k.path,me.path,D);return[J==null?void 0:J.moduleSpecifiers,me,J==null?void 0:J.modulePaths,q]}function _(m,k,N,D,R,me){return U(m,k,N,D,R,me).moduleSpecifiers}ue.getModuleSpecifiers=_;function U(m,k,N,D,R,me){var q=!1,J=le(m,k);if(J)return{moduleSpecifiers:[J],computedWithoutCache:q};var C=fe(m,D,R,me),we=C[0],Oe=C[1],te=C[2],Te=C[3];if(we)return{moduleSpecifiers:we,computedWithoutCache:q};if(!Oe)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:q};q=!0,te||(te=ie(D.path,Oe.originalFileName,R));var be=Z(te,N,D,R,me);return Te==null||Te.set(D.path,Oe.path,me,te,be),{moduleSpecifiers:be,computedWithoutCache:q}}ue.getModuleSpecifiersWithCacheInfo=U;function Z(m,k,N,D,R){var me=v(N.path,D),q=V(R,k,N),J=e.forEach(m,function(ce){return e.forEach(D.getFileIncludeReasons().get(e.toPath(ce.path,D.getCurrentDirectory(),me.getCanonicalFileName)),function(Le){if(Le.kind!==e.FileIncludeKind.Import||Le.file!==N.path)return;var qe=e.getModuleNameStringLiteralAt(N,Le.index).text;return q.relativePreference!==1||!e.pathIsRelative(qe)?qe:void 0})});if(J){var C=[J];return C}for(var we=e.some(m,function(ce){return ce.isInNodeModules}),Oe,te,Te,be=0,Ce=m;be<Ce.length;be++){var Ue=Ce[be],Se=re(Ue,me,D,k);if(Oe=e.append(Oe,Se),Se&&Ue.isRedirect)return Oe;if(!Se&&!Ue.isRedirect){var $e=W(Ue.path,me,k,D,q);e.pathIsBareSpecifier($e)?te=e.append(te,$e):(!we||Ue.isInNodeModules)&&(Te=e.append(Te,$e))}}return(te==null?void 0:te.length)?te:(Oe==null?void 0:Oe.length)?Oe:e.Debug.checkDefined(Te)}function v(m,k){var N=e.createGetCanonicalFileName(k.useCaseSensitiveFileNames?k.useCaseSensitiveFileNames():!0),D=e.getDirectoryPath(m);return{getCanonicalFileName:N,importingSourceFileName:m,sourceDirectory:D}}function W(m,k,N,D,R){var me=R.ending,q=R.relativePreference,J=N.baseUrl,C=N.paths,we=N.rootDirs,Oe=k.sourceDirectory,te=k.getCanonicalFileName,Te=we&&I(we,m,Oe,te,me,N)||F(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Oe,m,te)),me,N);if(!J&&!C||q===0)return Te;var be=e.getNormalizedAbsolutePath(e.getPathsBasePath(N,D)||J,D.getCurrentDirectory()),Ce=d(m,be,te);if(!Ce)return Te;var Ue=F(Ce,me,N),Se=C&&P(e.removeFileExtension(Ce),Ue,C),$e=Se===void 0&&J!==void 0?Ue:Se;if(!$e)return Te;if(q===1)return $e;if(q===3){var ce=N.configFilePath?e.toPath(e.getDirectoryPath(N.configFilePath),D.getCurrentDirectory(),k.getCanonicalFileName):k.getCanonicalFileName(D.getCurrentDirectory()),Le=e.toPath(m,ce,te),qe=e.startsWith(Oe,ce),pe=e.startsWith(Le,ce);if(qe&&!pe||!qe&&pe)return $e;var Me=E(D,e.getDirectoryPath(Le)),fn=E(D,Oe);return fn!==Me?$e:Te}return q!==2&&e.Debug.assertNever(q),T($e)||x(Te)<x($e)?Te:$e}function x(m){for(var k=0,N=e.startsWith(m,"./")?2:0;N<m.length;N++)m.charCodeAt(N)===47&&k++;return k}ue.countPathComponents=x;function $(m){var k=m.imports;return e.firstDefined(k,function(N){var D=N.text;return e.pathIsRelative(D)?e.hasJSFileExtension(D):void 0})||!1}function L(m,k){return e.compareBooleans(k.isRedirect,m.isRedirect)||e.compareNumberOfDirectorySeparators(m.path,k.path)}function E(m,k){return m.getNearestAncestorDirectoryWithPackageJson?m.getNearestAncestorDirectoryWithPackageJson(k):!!e.forEachAncestorDirectory(k,function(N){return m.fileExists(e.combinePaths(N,"package.json"))?!0:void 0})}function ae(m,k,N,D,R){var me,q=e.hostGetCanonicalFileName(N),J=N.getCurrentDirectory(),C=N.isSourceOfProjectReferenceRedirect(k)?N.getProjectReferenceRedirect(k):void 0,we=e.toPath(k,J,q),Oe=N.redirectTargetsMap.get(we)||e.emptyArray,te=Mt(Mt(Mt([],C?[C]:e.emptyArray,!0),[k],!1),Oe,!0),Te=te.map(function(ce){return e.getNormalizedAbsolutePath(ce,J)}),be=!e.every(Te,e.containsIgnoredPath);if(!D){var Ce=e.forEach(Te,function(ce){return!(be&&e.containsIgnoredPath(ce))&&R(ce,C===ce)});if(Ce)return Ce}var Ue=(me=N.getSymlinkCache)===null||me===void 0?void 0:me.call(N).getSymlinkedDirectoriesByRealpath(),Se=e.getNormalizedAbsolutePath(k,J),$e=Ue&&e.forEachAncestorDirectory(e.getDirectoryPath(Se),function(ce){var Le=Ue.get(e.ensureTrailingDirectorySeparator(e.toPath(ce,J,q)));return Le?e.startsWithDirectory(m,ce,q)?!1:e.forEach(Te,function(qe){if(!e.startsWithDirectory(qe,ce,q))return;for(var pe=e.getRelativePathFromDirectory(ce,qe,q),Me=0,fn=Le;Me<fn.length;Me++){var Ye=fn[Me],Ne=e.resolvePath(Ye,pe),je=R(Ne,qe===C);if(be=!0,je)return je}}):void 0});return $e||(D?e.forEach(Te,function(ce){return be&&e.containsIgnoredPath(ce)?void 0:R(ce,ce===C)}):void 0)}ue.forEachFileNameOfModule=ae;function X(m,k,N,D,R){var me;R===void 0&&(R=e.toPath(k,N.getCurrentDirectory(),e.hostGetCanonicalFileName(N)));var q=(me=N.getModuleSpecifierCache)===null||me===void 0?void 0:me.call(N);if(q){var J=q.get(m,R,D);if(J==null?void 0:J.modulePaths)return J.modulePaths}var C=ie(m,k,N);return q&&q.setModulePaths(m,R,D,C),C}function ie(m,k,N){var D=e.hostGetCanonicalFileName(N),R=new e.Map,me=!1;ae(m,k,N,!0,function(Te,be){var Ce=e.pathContainsNodeModules(Te);R.set(Te,{path:D(Te),isRedirect:be,isInNodeModules:Ce}),me=me||Ce});for(var q=[],J=function(Te){var be=e.ensureTrailingDirectorySeparator(Te),Ce;R.forEach(function(Se,$e){var ce=Se.path,Le=Se.isRedirect,qe=Se.isInNodeModules;e.startsWith(ce,be)&&((Ce||(Ce=[])).push({path:$e,isRedirect:Le,isInNodeModules:qe}),R.delete($e))}),Ce&&(Ce.length>1&&Ce.sort(L),q.push.apply(q,Ce));var Ue=e.getDirectoryPath(Te);if(Ue===Te)return C=Te,"break";Te=Ue,C=Te},C,we=e.getDirectoryPath(m);R.size!==0;){var Oe=J(we);if(we=C,Oe==="break")break}if(R.size){var te=e.arrayFrom(R.values());te.length>1&&te.sort(L),q.push.apply(q,te)}return q}function le(m,k){var N,D=(N=m.declarations)===null||N===void 0?void 0:N.find(function(q){return e.isNonGlobalAmbientModule(q)&&(!e.isExternalModuleAugmentation(q)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(q.name)))});if(D)return D.name.text;var R=e.mapDefined(m.declarations,function(q){var J,C,we,Oe;if(!e.isModuleDeclaration(q))return;var te=Ue(q);if(!(((J=te==null?void 0:te.parent)===null||J===void 0?void 0:J.parent)&&e.isModuleBlock(te.parent)&&e.isAmbientModule(te.parent.parent)&&e.isSourceFile(te.parent.parent.parent)))return;var Te=(Oe=(we=(C=te.parent.parent.symbol.exports)===null||C===void 0?void 0:C.get("export="))===null||we===void 0?void 0:we.valueDeclaration)===null||Oe===void 0?void 0:Oe.expression;if(!Te)return;var be=k.getSymbolAtLocation(Te);if(!be)return;var Ce=(be==null?void 0:be.flags)&2097152?k.getAliasedSymbol(be):be;if(Ce===q.symbol)return te.parent.parent;function Ue(Se){for(;Se.flags&4;)Se=Se.parent;return Se}}),me=R[0];if(me)return me.name.text}function P(m,k,N){for(var D in N)for(var R=0,me=N[D];R<me.length;R++){var q=me[R],J=e.removeFileExtension(e.normalizePath(q)),C=J.indexOf("*");if(C!==-1){var we=J.substr(0,C),Oe=J.substr(C+1);if(k.length>=we.length+Oe.length&&e.startsWith(k,we)&&e.endsWith(k,Oe)||!Oe&&k===e.removeTrailingDirectorySeparator(we)){var te=k.substr(we.length,k.length-Oe.length-we.length);return D.replace("*",te)}}else if(J===k||J===m)return D}}function I(m,k,N,D,R,me){var q=f(k,m,D);if(q===void 0)return;var J=f(N,m,D),C=J!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(J,q,D)):q;return e.getEmitModuleResolutionKind(me)===e.ModuleResolutionKind.NodeJs?F(C,R,me):e.removeFileExtension(C)}function re(m,k,N,D,R){var me=m.path,q=m.isRedirect,J=k.getCanonicalFileName,C=k.sourceDirectory;if(!N.fileExists||!N.readFile)return;var we=A(me);if(!we)return;var Oe=me,te=!1;if(!R)for(var Te=we.packageRootIndex,be=void 0;;){var Ce=pe(Te),Ue=Ce.moduleFileToTry,Se=Ce.packageRootPath;if(Se){Oe=Se,te=!0;break}if(be||(be=Ue),Te=me.indexOf(e.directorySeparator,Te+1),Te===-1){Oe=Me(be);break}}if(q&&!te)return;var $e=N.getGlobalTypingsCacheLocation&&N.getGlobalTypingsCacheLocation(),ce=J(Oe.substring(0,we.topLevelNodeModulesIndex));if(!(e.startsWith(C,ce)||$e&&e.startsWith(J($e),ce)))return;var Le=Oe.substring(we.topLevelPackageNameIndex+1),qe=e.getPackageNameFromTypesPackageName(Le);return e.getEmitModuleResolutionKind(D)!==e.ModuleResolutionKind.NodeJs&&qe===Le?void 0:qe;function pe(fn){var Ye=me.substring(0,fn),Ne=e.combinePaths(Ye,"package.json"),je=me;if(N.fileExists(Ne)){var xn=JSON.parse(N.readFile(Ne)),Wn=xn.typesVersions?e.getPackageJsonTypesVersionsPaths(xn.typesVersions):void 0;if(Wn){var dn=me.slice(Ye.length+1),vn=P(e.removeFileExtension(dn),F(dn,0,D),Wn.paths);vn!==void 0&&(je=e.combinePaths(Ye,vn))}var o=xn.typings||xn.types||xn.main;if(e.isString(o)){var Cn=e.toPath(o,Ye,J);if(e.removeFileExtension(Cn)===e.removeFileExtension(J(je)))return{packageRootPath:Ye,moduleFileToTry:je}}}return{moduleFileToTry:je}}function Me(fn){var Ye=e.removeFileExtension(fn);return J(Ye.substring(we.fileNameIndex))==="/index"&&!B(N,Ye.substring(0,we.fileNameIndex))?Ye.substring(0,we.fileNameIndex):Ye}}function B(m,k){if(!m.fileExists)return;for(var N=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),D=0,R=N;D<R.length;D++){var me=R[D],q=k+me;if(m.fileExists(q))return q}}function A(m){var k=0,N=0,D=0,R=0,me;(function(we){we[we.BeforeNodeModules=0]="BeforeNodeModules",we[we.NodeModules=1]="NodeModules",we[we.Scope=2]="Scope",we[we.PackageContent=3]="PackageContent"})(me||(me={}));for(var q=0,J=0,C=0;J>=0;){q=J,J=m.indexOf("/",q+1);switch(C){case 0:m.indexOf(e.nodeModulesPathPart,q)===q&&(k=q,N=J,C=1);break;case 1:case 2:C===1&&m.charAt(q+1)==="@"?C=2:(D=J,C=3);break;case 3:m.indexOf(e.nodeModulesPathPart,q)===q?C=1:C=3;break}}return R=q,C>1?{topLevelNodeModulesIndex:k,topLevelPackageNameIndex:N,packageRootIndex:D,fileNameIndex:R}:void 0}function f(m,k,N){return e.firstDefined(k,function(D){var R=d(m,D,N);return T(R)?void 0:R})}function F(m,k,N){if(e.fileExtensionIs(m,".json"))return m;var D=e.removeFileExtension(m);switch(k){case 0:return e.removeSuffix(D,"/index");case 1:return D;case 2:return D+g(m,N);default:return e.Debug.assertNever(k)}}function g(m,k){var N;return(N=p(m,k))!==null&&N!==void 0?N:e.Debug.fail("Extension "+e.extensionFromPath(m)+" is unsupported:: FileName:: "+m)}function p(m,k){var N=e.tryGetExtensionFromPath(m);switch(N){case".ts":case".d.ts":return".js";case".tsx":return k.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return N;default:return}}ue.tryGetJSExtensionForFile=p;function d(m,k,N){var D=e.getRelativePathToDirectoryOrUrl(k,m,k,N,!1);return e.isRootedDiskPath(D)?void 0:D}function T(m){return e.startsWith(m,"..")}})(s=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(mn||(mn={}));var mn;(function(e){var s=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function ue(f,F){var g=f===e.sys&&s?s:{getCurrentDirectory:function(){return f.getCurrentDirectory()},getNewLine:function(){return f.newLine},getCanonicalFileName:e.createGetCanonicalFileName(f.useCaseSensitiveFileNames)};if(!F)return function(d){return f.write(e.formatDiagnostic(d,g))};var p=new Array(1);return function(d){p[0]=d,f.write(e.formatDiagnosticsWithColorAndContext(p,g)+g.getNewLine()),p[0]=void 0}}e.createDiagnosticReporter=ue;function ee(f,F,g){return f.clearScreen&&!g.preserveWatchOutput&&!g.extendedDiagnostics&&!g.diagnostics&&e.contains(e.screenStartingMessageCodes,F.code)?(f.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function Y(f,F){return e.contains(e.screenStartingMessageCodes,f.code)?F+F:F}function V(f){return f.now?f.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=V;function ne(f,F){return F?function(g,p,d){ee(f,g,d);var T="["+e.formatColorAndReset(V(f),e.ForegroundColorEscapeSequences.Grey)+"] ";T+=""+e.flattenDiagnosticMessageText(g.messageText,f.newLine)+(p+p),f.write(T)}:function(g,p,d){var T="";ee(f,g,d)||(T+=p),T+=V(f)+" - ",T+=""+e.flattenDiagnosticMessageText(g.messageText,f.newLine)+Y(g,p),f.write(T)}}e.createWatchStatusReporter=ne;function _e(f,F,g,p,d,T){var m=d;m.onUnRecoverableConfigFileDiagnostic=function(N){return I(d,T,N)};var k=e.getParsedCommandLineOfConfigFile(f,F,m,g,p);return m.onUnRecoverableConfigFileDiagnostic=void 0,k}e.parseConfigFileWithSystem=_e;function O(f){return e.countWhere(f,function(F){return F.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=O;function w(f){return f===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=w;function b(f,F){if(f===0)return"";var g=e.createCompilerDiagnostic(f===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,f);return""+F+e.flattenDiagnosticMessageText(g.messageText,F)+F+F}e.getErrorSummaryText=b;function de(f){return!!f.getState}e.isBuilderProgram=de;function fe(f,F){var g=f.getCompilerOptions();g.explainFiles?_(de(f)?f.getProgram():f,F):(g.listFiles||g.listFilesOnly)&&e.forEach(f.getSourceFiles(),function(p){F(p.fileName)})}e.listFiles=fe;function _(f,F){for(var g,p,d=f.getFileIncludeReasons(),T=e.createGetCanonicalFileName(f.useCaseSensitiveFileNames()),m=function(R){return e.convertToRelativePath(R,f.getCurrentDirectory(),T)},k=0,N=f.getSourceFiles();k<N.length;k++){var D=N[k];F(""+x(D,m)),(g=d.get(D.path))===null||g===void 0||g.forEach(function(R){return F(" "+W(f,R,m).messageText)}),(p=U(D,m))===null||p===void 0||p.forEach(function(R){return F(" "+R.messageText)})}}e.explainFiles=_;function U(f,F){var g;return f.path!==f.resolvedPath&&(g||(g=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,x(f.originalFileName,F))),f.redirectInfo&&(g||(g=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,x(f.redirectInfo.redirectTarget,F))),g}e.explainIfFileIsRedirect=U;function Z(f,F){var g,p=f.getCompilerOptions().configFile;if(!((g=p==null?void 0:p.configFileSpecs)===null||g===void 0?void 0:g.validatedFilesSpec))return;var d=e.createGetCanonicalFileName(f.useCaseSensitiveFileNames()),T=d(F),m=e.getDirectoryPath(e.getNormalizedAbsolutePath(p.fileName,f.getCurrentDirectory()));return e.find(p.configFileSpecs.validatedFilesSpec,function(k){return d(e.getNormalizedAbsolutePath(k,m))===T})}e.getMatchedFileSpec=Z;function v(f,F){var g,p,d=f.getCompilerOptions().configFile;if(!((g=d==null?void 0:d.configFileSpecs)===null||g===void 0?void 0:g.validatedIncludeSpecs))return;var T=e.fileExtensionIs(F,".json"),m=e.getDirectoryPath(e.getNormalizedAbsolutePath(d.fileName,f.getCurrentDirectory())),k=f.useCaseSensitiveFileNames();return e.find((p=d==null?void 0:d.configFileSpecs)===null||p===void 0?void 0:p.validatedIncludeSpecs,function(N){if(T&&!e.endsWith(N,".json"))return!1;var D=e.getPatternFromSpec(N,m,"files");return!!D&&e.getRegexFromPattern("("+D+")$",k).test(F)})}e.getMatchedIncludeSpec=v;function W(f,F,g){var p,d,T=f.getCompilerOptions();if(e.isReferencedFile(F)){var m=e.getReferencedFileLocation(function(we){return f.getSourceFileByPath(we)},F),k=e.isReferenceFileLocation(m)?m.file.text.substring(m.pos,m.end):'"'+m.text+'"',N=void 0;e.Debug.assert(e.isReferenceFileLocation(m)||F.kind===e.FileIncludeKind.Import,"Only synthetic references are imports");switch(F.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(m)?N=m.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:m.text===e.externalHelpersModuleNameText?N=m.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:N=m.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!m.packageId),N=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:N=m.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!m.packageId),N=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(F)}return e.chainDiagnosticMessages(void 0,N,k,x(m.file,g),m.packageId&&e.packageIdToString(m.packageId))}switch(F.kind){case e.FileIncludeKind.RootFile:if(!((p=T.configFile)===null||p===void 0?void 0:p.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var D=e.getNormalizedAbsolutePath(f.getRootFileNames()[F.index],f.getCurrentDirectory()),R=Z(f,D);if(R)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var me=v(f,D);return me?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,me,x(T.configFile,g)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var q=F.kind===e.FileIncludeKind.OutputFromProjectReference,J=e.Debug.checkDefined((d=f.getResolvedProjectReferences())===null||d===void 0?void 0:d[F.index]);return e.chainDiagnosticMessages(void 0,e.outFile(T)?q?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:q?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,x(J.sourceFile.fileName,g),T.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,T.types?F.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:F.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,F.typeReference,F.packageId&&e.packageIdToString(F.packageId));case e.FileIncludeKind.LibFile:if(F.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,T.lib[F.index]);var C=e.forEachEntry(e.targetOptionDeclaration.type,function(we,Oe){return we===T.target?Oe:void 0});return e.chainDiagnosticMessages(void 0,C?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,C);default:e.Debug.assertNever(F)}}e.fileIncludeReasonToDiagnostics=W;function x(f,F){var g=e.isString(f)?f:f.fileName;return F?F(g):g}function $(f,F,g,p,d,T,m,k){var N=!!f.getCompilerOptions().listFilesOnly,D=f.getConfigFileParsingDiagnostics().slice(),R=D.length;e.addRange(D,f.getSyntacticDiagnostics(void 0,T)),D.length===R&&(e.addRange(D,f.getOptionsDiagnostics(T)),N||(e.addRange(D,f.getGlobalDiagnostics(T)),D.length===R&&e.addRange(D,f.getSemanticDiagnostics(void 0,T))));var me=N?{emitSkipped:!0,diagnostics:e.emptyArray}:f.emit(void 0,d,T,m,k),q=me.emittedFiles,J=me.diagnostics;e.addRange(D,J);var C=e.sortAndDeduplicateDiagnostics(D);if(C.forEach(F),g){var we=f.getCurrentDirectory();e.forEach(q,function(Oe){var te=e.getNormalizedAbsolutePath(Oe,we);g("TSFILE: "+te)}),fe(f,g)}return p&&p(O(C)),{emitResult:me,diagnostics:C}}e.emitFilesAndReportErrors=$;function L(f,F,g,p,d,T,m,k){var N=$(f,F,g,p,d,T,m,k),D=N.emitResult,R=N.diagnostics;return D.emitSkipped&&R.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:R.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=L,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function E(f,F){f===void 0&&(f=e.sys);var g=F||ne(f);return{onWatchStatusChange:g,watchFile:e.maybeBind(f,f.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(f,f.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(f,f.setTimeout)||e.noop,clearTimeout:e.maybeBind(f,f.clearTimeout)||e.noop}}e.createWatchHost=E,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",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"};function ae(f,F){var g=f.trace?F.extendedDiagnostics?e.WatchLogLevel.Verbose:F.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,p=g!==e.WatchLogLevel.None?function(T){return f.trace(T)}:e.noop,d=e.getWatchFactory(f,g,p);return d.writeLog=p,d}e.createWatchFactory=ae;function X(f,F,g){g===void 0&&(g=f);var p=f.useCaseSensitiveFileNames(),d=e.memoize(function(){return f.getNewLine()});return{getSourceFile:function(m,k,N){var D;try{e.performance.mark("beforeIORead"),D=f.readFile(m,F().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(R){N&&N(R.message),D=""}return D!==void 0?e.createSourceFile(m,D,k):void 0},getDefaultLibLocation:e.maybeBind(f,f.getDefaultLibLocation),getDefaultLibFileName:function(m){return f.getDefaultLibFileName(m)},writeFile:T,getCurrentDirectory:e.memoize(function(){return f.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return p},getCanonicalFileName:e.createGetCanonicalFileName(p),getNewLine:function(){return e.getNewLineCharacter(F(),d)},fileExists:function(m){return f.fileExists(m)},readFile:function(m){return f.readFile(m)},trace:e.maybeBind(f,f.trace),directoryExists:e.maybeBind(g,g.directoryExists),getDirectories:e.maybeBind(g,g.getDirectories),realpath:e.maybeBind(f,f.realpath),getEnvironmentVariable:e.maybeBind(f,f.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(f,f.createHash),readDirectory:e.maybeBind(f,f.readDirectory),disableUseFileVersionAsSignature:f.disableUseFileVersionAsSignature};function T(m,k,N,D){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(m,k,N,function(R,me,q){return f.writeFile(R,me,q)},function(R){return f.createDirectory(R)},function(R){return f.directoryExists(R)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(R){D&&D(R.message)}}}e.createCompilerHostFromProgramHost=X;function ie(f,F){var g=f.getSourceFile,p=e.maybeBind(F,F.createHash)||e.generateDjb2Hash;f.getSourceFile=function(){for(var d=[],T=0;T<arguments.length;T++)d[T]=arguments[T];var m=g.call.apply(g,Mt([f],d,!1));return m&&(m.version=p(m.text)),m}}e.setGetSourceFileAsHashVersioned=ie;function le(f,F){var g=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(f.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return f.useCaseSensitiveFileNames},getNewLine:function(){return f.newLine},getCurrentDirectory:e.memoize(function(){return f.getCurrentDirectory()}),getDefaultLibLocation:g,getDefaultLibFileName:function(p){return e.combinePaths(g(),e.getDefaultLibFileName(p))},fileExists:function(p){return f.fileExists(p)},readFile:function(p,d){return f.readFile(p,d)},directoryExists:function(p){return f.directoryExists(p)},getDirectories:function(p){return f.getDirectories(p)},readDirectory:function(p,d,T,m,k){return f.readDirectory(p,d,T,m,k)},realpath:e.maybeBind(f,f.realpath),getEnvironmentVariable:e.maybeBind(f,f.getEnvironmentVariable),trace:function(p){return f.write(p+f.newLine)},createDirectory:function(p){return f.createDirectory(p)},writeFile:function(p,d,T){return f.writeFile(p,d,T)},createHash:e.maybeBind(f,f.createHash),createProgram:F||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:f.disableUseFileVersionAsSignature}}e.createProgramHost=le;function P(f,F,g,p){f===void 0&&(f=e.sys);var d=function(m){return f.write(m+f.newLine)},T=le(f,F);return e.copyProperties(T,E(f,p)),T.afterProgramCreate=function(m){var k=m.getCompilerOptions(),N=e.getNewLineCharacter(k,function(){return f.newLine});$(m,g,d,function(D){return T.onWatchStatusChange(e.createCompilerDiagnostic(w(D),D),N,k,D)})},T}function I(f,F,g){F(g),f.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function re(f){var F=f.configFileName,g=f.optionsToExtend,p=f.watchOptionsToExtend,d=f.extraFileExtensions,T=f.system,m=f.createProgram,k=f.reportDiagnostic,N=f.reportWatchStatus,D=k||ue(T),R=P(T,m,D,N);return R.onUnRecoverableConfigFileDiagnostic=function(me){return I(T,D,me)},R.configFileName=F,R.optionsToExtend=g,R.watchOptionsToExtend=p,R.extraFileExtensions=d,R}e.createWatchCompilerHostOfConfigFile=re;function B(f){var F=f.rootFiles,g=f.options,p=f.watchOptions,d=f.projectReferences,T=f.system,m=f.createProgram,k=f.reportDiagnostic,N=f.reportWatchStatus,D=P(T,m,k||ue(T),N);return D.rootFiles=F,D.options=g,D.watchOptions=p,D.projectReferences=d,D}e.createWatchCompilerHostOfFilesAndCompilerOptions=B;function A(f){var F=f.system||e.sys,g=f.host||(f.host=e.createIncrementalCompilerHost(f.options,F)),p=e.createIncrementalProgram(f),d=L(p,f.reportDiagnostic||ue(F),function(T){return g.trace&&g.trace(T)},f.reportErrorSummary||f.options.pretty?function(T){return F.write(b(T,F.newLine))}:void 0);return f.afterProgramEmitAndDiagnostics&&f.afterProgramEmitAndDiagnostics(p),d}e.performIncrementalCompilation=A})(mn||(mn={}));var mn;(function(e){function s(ne,_e){if(e.outFile(ne))return;var O=e.getTsBuildInfoEmitOutputFilePath(ne);if(!O)return;var w=_e.readFile(O);if(!w)return;var b=e.getBuildInfo(w);return b.version!==e.version?void 0:b.program?e.createBuildProgramUsingProgramBuildInfo(b.program,O,_e):void 0}e.readBuilderProgram=s;function ue(ne,_e){_e===void 0&&(_e=e.sys);var O=e.createCompilerHostWorker(ne,void 0,_e);return O.createHash=e.maybeBind(_e,_e.createHash),O.disableUseFileVersionAsSignature=_e.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(O,_e),e.changeCompilerHostLikeToUseCache(O,function(w){return e.toPath(w,O.getCurrentDirectory(),O.getCanonicalFileName)}),O}e.createIncrementalCompilerHost=ue;function ee(ne){var _e=ne.rootNames,O=ne.options,w=ne.configFileParsingDiagnostics,b=ne.projectReferences,de=ne.host,fe=ne.createProgram;de=de||ue(O),fe=fe||e.createEmitAndSemanticDiagnosticsBuilderProgram;var _=s(O,de);return fe(_e,O,de,_,w,b)}e.createIncrementalProgram=ee;function Y(ne,_e,O,w,b,de,fe,_){return e.isArray(ne)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:ne,options:_e,watchOptions:_,projectReferences:fe,system:O,createProgram:w,reportDiagnostic:b,reportWatchStatus:de}):e.createWatchCompilerHostOfConfigFile({configFileName:ne,optionsToExtend:_e,watchOptionsToExtend:fe,extraFileExtensions:_,system:O,createProgram:w,reportDiagnostic:b,reportWatchStatus:de})}e.createWatchCompilerHost=Y;function V(ne){var _e,O,w,b,de,fe,_,U,Z,v=ne.extendedConfigCache,W=!1,x=new e.Map,$,L=!1,E=ne.useCaseSensitiveFileNames(),ae=ne.getCurrentDirectory(),X=ne.configFileName,ie=ne.optionsToExtend,le=ie===void 0?{}:ie,P=ne.watchOptionsToExtend,I=ne.extraFileExtensions,re=ne.createProgram,B=ne.rootFiles,A=ne.options,f=ne.watchOptions,F=ne.projectReferences,g,p,d=!1,T=!1,m=X===void 0?void 0:e.createCachedDirectoryStructureHost(ne,ae,E),k=m||ne,N=e.parseConfigHostFromCompilerHostLike(ne,k),D=qe();X&&ne.configFileParsingResult&&(gn(ne.configFileParsingResult),D=qe()),dn(e.Diagnostics.Starting_compilation_in_watch_mode),X&&!ne.configFileParsingResult&&(D=e.getNewLineCharacter(le,function(){return ne.getNewLine()}),e.Debug.assert(!B),Qe(),D=qe());var R=e.createWatchFactory(ne,A),me=R.watchFile,q=R.watchDirectory,J=R.writeLog,C=e.createGetCanonicalFileName(E);J("Current directory: "+ae+" CaseSensitiveFileNames: "+E);var we;X&&(we=me(X,$n,e.PollingInterval.High,f,e.WatchType.ConfigFile));var Oe=e.createCompilerHostFromProgramHost(ne,function(){return A},k);e.setGetSourceFileAsHashVersioned(Oe,ne);var te=Oe.getSourceFile;Oe.getSourceFile=function(Vn){for(var Zn=[],Re=1;Re<arguments.length;Re++)Zn[Re-1]=arguments[Re];return Ne.apply(void 0,Mt([Vn,pe(Vn)],Zn,!1))},Oe.getSourceFileByPath=Ne,Oe.getNewLine=function(){return D},Oe.fileExists=Ye,Oe.onReleaseOldSourceFile=Wn,Oe.onReleaseParsedCommandLine=wn,Oe.toPath=pe,Oe.getCompilationSettings=function(){return A},Oe.useSourceOfProjectReferenceRedirect=e.maybeBind(ne,ne.useSourceOfProjectReferenceRedirect),Oe.watchDirectoryOfFailedLookupLocation=function(Vn,Zn,Re){return q(Vn,Zn,Re,f,e.WatchType.FailedLookupLocations)},Oe.watchTypeRootsDirectory=function(Vn,Zn,Re){return q(Vn,Zn,Re,f,e.WatchType.TypeRoots)},Oe.getCachedDirectoryStructureHost=function(){return m},Oe.scheduleInvalidateResolutionsOfFailedLookupLocations=Cn,Oe.onInvalidatedResolution=tn,Oe.onChangedAutomaticTypeDirectiveNames=tn,Oe.fileIsOpen=e.returnFalse,Oe.getCurrentProgram=Se,Oe.writeLog=J,Oe.getParsedCommandLine=xe;var Te=e.createResolutionCache(Oe,X?e.getDirectoryPath(e.getNormalizedAbsolutePath(X,ae)):ae,!1);Oe.resolveModuleNames=ne.resolveModuleNames?function(){for(var Vn=[],Zn=0;Zn<arguments.length;Zn++)Vn[Zn]=arguments[Zn];return ne.resolveModuleNames.apply(ne,Vn)}:function(Vn,Zn,Re,Pn){return Te.resolveModuleNames(Vn,Zn,Re,Pn)},Oe.resolveTypeReferenceDirectives=ne.resolveTypeReferenceDirectives?function(){for(var Vn=[],Zn=0;Zn<arguments.length;Zn++)Vn[Zn]=arguments[Zn];return ne.resolveTypeReferenceDirectives.apply(ne,Vn)}:function(Vn,Zn,Re){return Te.resolveTypeReferenceDirectives(Vn,Zn,Re)};var be=!!ne.resolveModuleNames||!!ne.resolveTypeReferenceDirectives;return _e=s(A,Oe),$e(),yt(),X&&$t(pe(X),A,f,e.WatchType.ExtendedConfigFile),X?{getCurrentProgram:Ue,getProgram:oe,close:Ce}:{getCurrentProgram:Ue,getProgram:oe,updateRootFileNames:Le,close:Ce};function Ce(){o(),Te.clear(),e.clearMap(x,function(Vn){Vn&&Vn.fileWatcher&&(Vn.fileWatcher.close(),Vn.fileWatcher=void 0)}),we&&(we.close(),we=void 0),v==null||v.clear(),v=void 0,Z&&(e.clearMap(Z,e.closeFileWatcherOf),Z=void 0),de&&(e.clearMap(de,e.closeFileWatcherOf),de=void 0),w&&(e.clearMap(w,e.closeFileWatcher),w=void 0),U&&(e.clearMap(U,function(Vn){var Zn;(Zn=Vn.watcher)===null||Zn===void 0||Zn.close(),Vn.watcher=void 0,Vn.watchedDirectories&&e.clearMap(Vn.watchedDirectories,e.closeFileWatcherOf),Vn.watchedDirectories=void 0}),U=void 0),b&&(e.clearMap(b,e.closeFileWatcher),b=void 0)}function Ue(){return _e}function Se(){return _e&&_e.getProgramOrUndefined()}function $e(){J("Synchronizing program"),o();var Vn=Ue();L&&(D=qe(),Vn&&(W||e.changesAffectModuleResolution(Vn.getCompilerOptions(),A))&&Te.clear());var Zn=Te.createHasInvalidatedResolution(be||W);return e.isProgramUptoDate(Se(),B,A,xn,Ye,Zn,vn,xe,F)?T&&(_e=re(void 0,void 0,Oe,_e,p,F),T=!1):ce(Zn),W=!1,ne.afterProgramCreate&&Vn!==_e&&ne.afterProgramCreate(_e),_e}function ce(Vn){J("CreatingProgramWith::"),J(" roots: "+JSON.stringify(B)),J(" options: "+JSON.stringify(A)),F&&J(" projectReferences: "+JSON.stringify(F));var Zn=L||!Se();L=!1,T=!1,Te.startCachingPerDirectoryResolution(),Oe.hasInvalidatedResolution=Vn,Oe.hasChangedAutomaticTypeDirectiveNames=vn,_e=re(B,A,Oe,_e,p,F);var Re=e.map(Te.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(gt){var lt=gt[0],Fe=gt[1];return[Oe.realpath?pe(Oe.realpath(lt)):lt,Fe]});if(Te.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(_e.getProgram(),w||(w=new e.Map),Je),e.updatePackageJsonWatch(Re,b||(b=new e.Map),En),Zn&&Te.updateTypeRootsWatch(),$){for(var Pn=0,rt=$;Pn<rt.length;Pn++){var Yn=rt[Pn];w.has(Yn)||x.delete(Yn)}$=void 0}}function Le(Vn){e.Debug.assert(!X,"Cannot update root file names with config file watch mode"),B=Vn,tn()}function qe(){return e.getNewLineCharacter(A||le,function(){return ne.getNewLine()})}function pe(Vn){return e.toPath(Vn,ae,C)}function Me(Vn){return typeof Vn=="boolean"}function fn(Vn){return typeof Vn.version=="boolean"}function Ye(Vn){var Zn=pe(Vn);return Me(x.get(Zn))?!1:k.fileExists(Vn)}function Ne(Vn,Zn,Re,Pn,rt){var Yn=x.get(Zn);if(Me(Yn))return;if(Yn===void 0||rt||fn(Yn)){var gt=te(Vn,Re,Pn);if(Yn)gt?(Yn.sourceFile=gt,Yn.version=gt.version,Yn.fileWatcher||(Yn.fileWatcher=Be(Zn,Vn,hn,e.PollingInterval.Low,f,e.WatchType.SourceFile))):(Yn.fileWatcher&&Yn.fileWatcher.close(),x.set(Zn,!1));else if(gt){var lt=Be(Zn,Vn,hn,e.PollingInterval.Low,f,e.WatchType.SourceFile);x.set(Zn,{sourceFile:gt,version:gt.version,fileWatcher:lt})}else x.set(Zn,!1);return gt}return Yn.sourceFile}function je(Vn){var Zn=x.get(Vn);Zn!==void 0&&(Me(Zn)?x.set(Vn,{version:!1}):Zn.version=!1)}function xn(Vn){var Zn=x.get(Vn);return!Zn||!Zn.version?void 0:Zn.version}function Wn(Vn,Zn,Re){var Pn=x.get(Vn.resolvedPath);Pn!==void 0&&(Me(Pn)?($||($=[])).push(Vn.path):Pn.sourceFile===Vn&&(Pn.fileWatcher&&Pn.fileWatcher.close(),x.delete(Vn.resolvedPath),Re||Te.removeResolutionsOfFile(Vn.path)))}function dn(Vn){ne.onWatchStatusChange&&ne.onWatchStatusChange(e.createCompilerDiagnostic(Vn),D,A||le)}function vn(){return Te.hasChangedAutomaticTypeDirectiveNames()}function o(){return _?(ne.clearTimeout(_),_=void 0,!0):!1}function Cn(){if(!ne.setTimeout||!ne.clearTimeout)return Te.invalidateResolutionsOfFailedLookupLocations();var Vn=o();J("Scheduling invalidateFailedLookup"+(Vn?", Cancelled earlier one":"")),_=ne.setTimeout(z,250)}function z(){_=void 0,Te.invalidateResolutionsOfFailedLookupLocations()&&tn()}function tn(){if(!ne.setTimeout||!ne.clearTimeout)return;fe&&ne.clearTimeout(fe),J("Scheduling update"),fe=ne.setTimeout(Un,250)}function $n(){e.Debug.assert(!!X),O=e.ConfigFileProgramReloadLevel.Full,tn()}function Un(){fe=void 0,dn(e.Diagnostics.File_change_detected_Starting_incremental_compilation),oe()}function oe(){switch(O){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Pe();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),ke();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),$e();break}return e.perfLogger.logStopUpdateProgram("Done"),Ue()}function Pe(){J("Reloading new file names and options"),B=e.getFileNamesFromConfigSpecs(A.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(X),ae),A,N,I),e.updateErrorForNoInputFiles(B,e.getNormalizedAbsolutePath(X,ae),A.configFile.configFileSpecs,p,d)&&(T=!0),$e()}function ke(){J("Reloading config file: "+X),O=e.ConfigFileProgramReloadLevel.None,m&&m.clearCache(),Qe(),L=!0,$e(),yt(),$t(pe(X),A,f,e.WatchType.ExtendedConfigFile)}function Qe(){gn(e.getParsedCommandLineOfConfigFile(X,le,N,v||(v=new e.Map),P,I))}function gn(Vn){B=Vn.fileNames,A=Vn.options,f=Vn.watchOptions,F=Vn.projectReferences,g=Vn.wildcardDirectories,p=e.getConfigFileParsingDiagnostics(Vn).slice(),d=e.canJsonReportNoInputFiles(Vn.raw),T=!0}function xe(Vn){var Zn=pe(Vn),Re=U==null?void 0:U.get(Zn);if(Re){if(!Re.reloadLevel)return Re.parsedCommandLine;if(Re.parsedCommandLine&&Re.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!ne.getParsedCommandLine){J("Reloading new file names and options");var Pn=e.getFileNamesFromConfigSpecs(Re.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Vn),ae),A,N);return Re.parsedCommandLine=pr(pr({},Re.parsedCommandLine),{fileNames:Pn}),Re.reloadLevel=void 0,Re.parsedCommandLine}}J("Loading config file: "+Vn);var rt=ne.getParsedCommandLine?ne.getParsedCommandLine(Vn):Ze(Vn);return Re?(Re.parsedCommandLine=rt,Re.reloadLevel=void 0):(U||(U=new e.Map)).set(Zn,Re={parsedCommandLine:rt}),Ke(Vn,Zn,Re),rt}function Ze(Vn){var Zn=N.onUnRecoverableConfigFileDiagnostic;N.onUnRecoverableConfigFileDiagnostic=e.noop;var Re=e.getParsedCommandLineOfConfigFile(Vn,void 0,N,v||(v=new e.Map),P);return N.onUnRecoverableConfigFileDiagnostic=Zn,Re}function wn(Vn){var Zn,Re=pe(Vn),Pn=U==null?void 0:U.get(Re);if(!Pn)return;U.delete(Re),Pn.watchedDirectories&&e.clearMap(Pn.watchedDirectories,e.closeFileWatcherOf),(Zn=Pn.watcher)===null||Zn===void 0||Zn.close(),e.clearSharedExtendedConfigFileWatcher(Re,Z)}function Be(Vn,Zn,Re,Pn,rt,Yn){return me(Zn,function(gt,lt){return Re(gt,lt,Vn)},Pn,rt,Yn)}function hn(Vn,Zn,Re){Kn(Vn,Re,Zn),Zn===e.FileWatcherEventKind.Deleted&&x.has(Re)&&Te.invalidateResolutionOfFile(Re),je(Re),tn()}function Kn(Vn,Zn,Re){m&&m.addOrDeleteFile(Vn,Zn,Re)}function Je(Vn){return(U==null?void 0:U.has(Vn))?e.noopFileWatcher:Be(Vn,Vn,ct,e.PollingInterval.Medium,f,e.WatchType.MissingFile)}function En(Vn){return x.has(Vn)?e.noopFileWatcher:Be(Vn,Vn,Nn,e.PollingInterval.High,f,e.WatchType.PackageJson)}function Nn(Vn,Zn,Re){Kn(Vn,Re,Zn),O=e.ConfigFileProgramReloadLevel.Full,W=!0,tn()}function ct(Vn,Zn,Re){Kn(Vn,Re,Zn),Zn===e.FileWatcherEventKind.Created&&w.has(Re)&&(w.get(Re).close(),w.delete(Re),je(Re),tn())}function yt(){g?e.updateWatchingWildcardDirectories(de||(de=new e.Map),new e.Map(e.getEntries(g)),Gt):de&&e.clearMap(de,e.closeFileWatcherOf)}function Gt(Vn,Zn){return q(Vn,function(Re){e.Debug.assert(!!X);var Pn=pe(Re);if(m&&m.addOrDeleteFileOrDirectory(Re,Pn),je(Pn),e.isIgnoredFileFromWildCardWatching({watchedDirPath:pe(Vn),fileOrDirectory:Re,fileOrDirectoryPath:Pn,configFileName:X,extraFileExtensions:I,options:A,program:Ue()||B,currentDirectory:ae,useCaseSensitiveFileNames:E,writeLog:J,toPath:pe}))return;O!==e.ConfigFileProgramReloadLevel.Full&&(O=e.ConfigFileProgramReloadLevel.Partial,tn())},Zn,f,e.WatchType.WildcardDirectory)}function $t(Vn,Zn,Re,Pn){e.updateSharedExtendedConfigFileWatcher(Vn,Zn,Z||(Z=new e.Map),function(rt,Yn){return me(rt,function(gt,lt){var Fe;Kn(rt,Yn,lt),v&&e.cleanExtendedConfigCache(v,Yn,pe);var Bn=(Fe=Z.get(Yn))===null||Fe===void 0?void 0:Fe.projects;if(!(Bn==null?void 0:Bn.size))return;Bn.forEach(function(K){if(pe(X)===K)O=e.ConfigFileProgramReloadLevel.Full;else{var An=U==null?void 0:U.get(K);An&&(An.reloadLevel=e.ConfigFileProgramReloadLevel.Full),Te.removeResolutionsFromProjectReferenceRedirects(K)}tn()})},e.PollingInterval.High,Re,Pn)},pe)}function Ke(Vn,Zn,Re){var Pn,rt,Yn,gt,lt;Re.watcher||(Re.watcher=me(Vn,function(Fe,Bn){Kn(Vn,Zn,Bn);var K=U==null?void 0:U.get(Zn);K&&(K.reloadLevel=e.ConfigFileProgramReloadLevel.Full),Te.removeResolutionsFromProjectReferenceRedirects(Zn),tn()},e.PollingInterval.High,((Pn=Re.parsedCommandLine)===null||Pn===void 0?void 0:Pn.watchOptions)||f,e.WatchType.ConfigFileOfReferencedProject)),((rt=Re.parsedCommandLine)===null||rt===void 0?void 0:rt.wildcardDirectories)?e.updateWatchingWildcardDirectories(Re.watchedDirectories||(Re.watchedDirectories=new e.Map),new e.Map(e.getEntries((Yn=Re.parsedCommandLine)===null||Yn===void 0?void 0:Yn.wildcardDirectories)),function(Fe,Bn){var K;return q(Fe,function(An){var Fn=pe(An);m&&m.addOrDeleteFileOrDirectory(An,Fn),je(Fn);var ln=U==null?void 0:U.get(Zn);if(!(ln==null?void 0:ln.parsedCommandLine))return;if(e.isIgnoredFileFromWildCardWatching({watchedDirPath:pe(Fe),fileOrDirectory:An,fileOrDirectoryPath:Fn,configFileName:Vn,options:ln.parsedCommandLine.options,program:ln.parsedCommandLine.fileNames,currentDirectory:ae,useCaseSensitiveFileNames:E,writeLog:J,toPath:pe}))return;ln.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(ln.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,tn())},Bn,((K=Re.parsedCommandLine)===null||K===void 0?void 0:K.watchOptions)||f,e.WatchType.WildcardDirectoryOfReferencedProject)}):Re.watchedDirectories&&(e.clearMap(Re.watchedDirectories,e.closeFileWatcherOf),Re.watchedDirectories=void 0),$t(Zn,(gt=Re.parsedCommandLine)===null||gt===void 0?void 0:gt.options,((lt=Re.parsedCommandLine)===null||lt===void 0?void 0:lt.watchOptions)||f,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=V})(mn||(mn={}));var mn;(function(e){var s;(function(ee){ee[ee.Unbuildable=0]="Unbuildable",ee[ee.UpToDate=1]="UpToDate",ee[ee.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",ee[ee.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",ee[ee.OutputMissing=4]="OutputMissing",ee[ee.OutOfDateWithSelf=5]="OutOfDateWithSelf",ee[ee.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",ee[ee.UpstreamOutOfDate=7]="UpstreamOutOfDate",ee[ee.UpstreamBlocked=8]="UpstreamBlocked",ee[ee.ComputingUpstream=9]="ComputingUpstream",ee[ee.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",ee[ee.ContainerOnly=11]="ContainerOnly"})(s=e.UpToDateStatusType||(e.UpToDateStatusType={}));function ue(ee){return e.fileExtensionIs(ee,".json")?ee:e.combinePaths(ee,"tsconfig.json")}e.resolveConfigFileProjectName=ue})(mn||(mn={}));var mn;(function(e){var s=new Date(-864e13),ue=new Date(864e13),ee;(function(oe){oe[oe.None=0]="None",oe[oe.Success=1]="Success",oe[oe.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",oe[oe.ConfigFileErrors=4]="ConfigFileErrors",oe[oe.SyntaxErrors=8]="SyntaxErrors",oe[oe.TypeErrors=16]="TypeErrors",oe[oe.DeclarationEmitErrors=32]="DeclarationEmitErrors",oe[oe.EmitErrors=64]="EmitErrors",oe[oe.AnyErrors=124]="AnyErrors"})(ee||(ee={}));function Y(oe,Pe,ke){var Qe=oe.get(Pe),gn;return Qe||(gn=ke(),oe.set(Pe,gn)),Qe||gn}function V(oe,Pe){return Y(oe,Pe,function(){return new e.Map})}function ne(oe,Pe){return Pe>oe?Pe:oe}function _e(oe){return e.fileExtensionIs(oe,".d.ts")}function O(oe){return!!oe&&!!oe.buildOrder}e.isCircularBuildOrder=O;function w(oe){return O(oe)?oe.buildOrder:oe}e.getBuildOrderFromAnyBuildOrder=w;function b(oe,Pe){return function(ke){var Qe=Pe?"["+e.formatColorAndReset(e.getLocaleTimeString(oe),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(oe)+" - ";Qe+=""+e.flattenDiagnosticMessageText(ke.messageText,oe.newLine)+(oe.newLine+oe.newLine),oe.write(Qe)}}e.createBuilderStatusReporter=b;function de(oe,Pe,ke,Qe){var gn=e.createProgramHost(oe,Pe);return gn.getModifiedTime=oe.getModifiedTime?function(xe){return oe.getModifiedTime(xe)}:e.returnUndefined,gn.setModifiedTime=oe.setModifiedTime?function(xe,Ze){return oe.setModifiedTime(xe,Ze)}:e.noop,gn.deleteFile=oe.deleteFile?function(xe){return oe.deleteFile(xe)}:e.noop,gn.reportDiagnostic=ke||e.createDiagnosticReporter(oe),gn.reportSolutionBuilderStatus=Qe||b(oe),gn.now=e.maybeBind(oe,oe.now),gn}function fe(oe,Pe,ke,Qe,gn){oe===void 0&&(oe=e.sys);var xe=de(oe,Pe,ke,Qe);return xe.reportErrorSummary=gn,xe}e.createSolutionBuilderHost=fe;function _(oe,Pe,ke,Qe,gn){oe===void 0&&(oe=e.sys);var xe=de(oe,Pe,ke,Qe),Ze=e.createWatchHost(oe,gn);return e.copyProperties(xe,Ze),xe}e.createSolutionBuilderWithWatchHost=_;function U(oe){var Pe={};return e.commonOptionsWithBuild.forEach(function(ke){e.hasProperty(oe,ke.name)&&(Pe[ke.name]=oe[ke.name])}),Pe}function Z(oe,Pe,ke){return je(!1,oe,Pe,ke)}e.createSolutionBuilder=Z;function v(oe,Pe,ke,Qe){return je(!0,oe,Pe,ke,Qe)}e.createSolutionBuilderWithWatch=v;function W(oe,Pe,ke,Qe,gn){var xe=Pe,Ze=Pe,wn=xe.getCurrentDirectory(),Be=e.createGetCanonicalFileName(xe.useCaseSensitiveFileNames()),hn=U(Qe),Kn=e.createCompilerHostFromProgramHost(xe,function(){return Vn.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Kn,xe),Kn.getParsedCommandLine=function(Zn){return ae(Vn,Zn,$(Vn,Zn))},Kn.resolveModuleNames=e.maybeBind(xe,xe.resolveModuleNames),Kn.resolveTypeReferenceDirectives=e.maybeBind(xe,xe.resolveTypeReferenceDirectives);var Je=Kn.resolveModuleNames?void 0:e.createModuleResolutionCache(wn,Be),En=Kn.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(wn,Be,void 0,Je==null?void 0:Je.getPackageJsonInfoCache());if(!Kn.resolveModuleNames){var Nn=function(Zn,Re,Pn){return e.resolveModuleName(Zn,Re,Vn.projectCompilerOptions,Kn,Je,Pn).resolvedModule};Kn.resolveModuleNames=function(Zn,Re,Pn,rt){return e.loadWithLocalCache(e.Debug.checkEachDefined(Zn),Re,rt,Nn)}}if(!Kn.resolveTypeReferenceDirectives){var ct=function(Zn,Re,Pn){return e.resolveTypeReferenceDirective(Zn,Re,Vn.projectCompilerOptions,Kn,Pn,Vn.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Kn.resolveTypeReferenceDirectives=function(Zn,Re,Pn){return e.loadWithLocalCache(e.Debug.checkEachDefined(Zn),Re,Pn,ct)}}var yt=e.createWatchFactory(Ze,Qe),Gt=yt.watchFile,$t=yt.watchDirectory,Ke=yt.writeLog,Vn={host:xe,hostWithWatch:Ze,currentDirectory:wn,getCanonicalFileName:Be,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(xe),write:e.maybeBind(xe,xe.trace),options:Qe,baseCompilerOptions:hn,rootNames:ke,baseWatchOptions:gn,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Kn,moduleResolutionCache:Je,typeReferenceDirectiveResolutionCache:En,buildOrder:void 0,readFileWithCache:function(Zn){return xe.readFile(Zn)},projectCompilerOptions:hn,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:oe,currentInvalidatedProject:void 0,watch:oe,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:Gt,watchDirectory:$t,writeLog:Ke};return Vn}function x(oe,Pe){return e.toPath(Pe,oe.currentDirectory,oe.getCanonicalFileName)}function $(oe,Pe){var ke=oe.resolvedConfigFilePaths,Qe=ke.get(Pe);if(Qe!==void 0)return Qe;var gn=x(oe,Pe);return ke.set(Pe,gn),gn}function L(oe){return!!oe.options}function E(oe,Pe){var ke=oe.configFileCache.get(Pe);return ke&&L(ke)?ke:void 0}function ae(oe,Pe,ke){var Qe=oe.configFileCache,gn=Qe.get(ke);if(gn)return L(gn)?gn:void 0;var xe,Ze=oe.parseConfigFileHost,wn=oe.baseCompilerOptions,Be=oe.baseWatchOptions,hn=oe.extendedConfigCache,Kn=oe.host,Je;return Kn.getParsedCommandLine?(Je=Kn.getParsedCommandLine(Pe),Je||(xe=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Pe))):(Ze.onUnRecoverableConfigFileDiagnostic=function(En){return xe=En},Je=e.getParsedCommandLineOfConfigFile(Pe,wn,Ze,hn,Be),Ze.onUnRecoverableConfigFileDiagnostic=e.noop),Qe.set(ke,Je||xe),Je}function X(oe,Pe){return e.resolveConfigFileProjectName(e.resolvePath(oe.currentDirectory,Pe))}function ie(oe,Pe){for(var ke=new e.Map,Qe=new e.Map,gn=[],xe,Ze,wn=0,Be=Pe;wn<Be.length;wn++){var hn=Be[wn];Kn(hn)}return Ze?{buildOrder:xe||e.emptyArray,circularDiagnostics:Ze}:xe||e.emptyArray;function Kn(Je,En){var Nn=$(oe,Je);if(Qe.has(Nn))return;if(ke.has(Nn)){En||(Ze||(Ze=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,gn.join(`\r
|
|
|
`)));return}ke.set(Nn,!0),gn.push(Je);var ct=ae(oe,Je,Nn);if(ct&&ct.projectReferences)for(var yt=0,Gt=ct.projectReferences;yt<Gt.length;yt++){var $t=Gt[yt],Ke=X(oe,$t.path);Kn(Ke,En||$t.circular)}gn.pop(),Qe.set(Nn,!0),(xe||(xe=[])).push(Je)}}function le(oe){return oe.buildOrder||P(oe)}function P(oe){var Pe=ie(oe,oe.rootNames.map(function(gn){return X(oe,gn)}));oe.resolvedConfigFilePaths.clear();var ke=new e.Map(w(Pe).map(function(gn){return[$(oe,gn),!0]})),Qe={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(oe.configFileCache,ke,Qe),e.mutateMapSkippingNewValues(oe.projectStatus,ke,Qe),e.mutateMapSkippingNewValues(oe.buildInfoChecked,ke,Qe),e.mutateMapSkippingNewValues(oe.builderPrograms,ke,Qe),e.mutateMapSkippingNewValues(oe.diagnostics,ke,Qe),e.mutateMapSkippingNewValues(oe.projectPendingBuild,ke,Qe),e.mutateMapSkippingNewValues(oe.projectErrorsReported,ke,Qe),oe.watch&&(e.mutateMapSkippingNewValues(oe.allWatchedConfigFiles,ke,{onDeleteValue:e.closeFileWatcher}),oe.allWatchedExtendedConfigFiles.forEach(function(gn){gn.projects.forEach(function(xe){ke.has(xe)||gn.projects.delete(xe)}),gn.close()}),e.mutateMapSkippingNewValues(oe.allWatchedWildcardDirectories,ke,{onDeleteValue:function(gn){return gn.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(oe.allWatchedInputFiles,ke,{onDeleteValue:function(gn){return gn.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(oe.allWatchedPackageJsonFiles,ke,{onDeleteValue:function(gn){return gn.forEach(e.closeFileWatcher)}})),oe.buildOrder=Pe}function I(oe,Pe,ke){var Qe=Pe&&X(oe,Pe),gn=le(oe);if(O(gn))return gn;if(Qe){var xe=$(oe,Qe),Ze=e.findIndex(gn,function(Be){return $(oe,Be)===xe});if(Ze===-1)return}var wn=Qe?ie(oe,[Qe]):gn;return e.Debug.assert(!O(wn)),e.Debug.assert(!ke||Qe!==void 0),e.Debug.assert(!ke||wn[wn.length-1]===Qe),ke?wn.slice(0,wn.length-1):wn}function re(oe){oe.cache&&B(oe);var Pe=oe.compilerHost,ke=oe.host,Qe=oe.readFileWithCache,gn=Pe.getSourceFile,xe=e.changeCompilerHostLikeToUseCache(ke,function(Nn){return x(oe,Nn)},function(){for(var Nn=[],ct=0;ct<arguments.length;ct++)Nn[ct]=arguments[ct];return gn.call.apply(gn,Mt([Pe],Nn,!1))}),Ze=xe.originalReadFile,wn=xe.originalFileExists,Be=xe.originalDirectoryExists,hn=xe.originalCreateDirectory,Kn=xe.originalWriteFile,Je=xe.getSourceFileWithCache,En=xe.readFileWithCache;oe.readFileWithCache=En,Pe.getSourceFile=Je,oe.cache={originalReadFile:Ze,originalFileExists:wn,originalDirectoryExists:Be,originalCreateDirectory:hn,originalWriteFile:Kn,originalReadFileWithCache:Qe,originalGetSourceFile:gn}}function B(oe){if(!oe.cache)return;var Pe=oe.cache,ke=oe.host,Qe=oe.compilerHost,gn=oe.extendedConfigCache,xe=oe.moduleResolutionCache,Ze=oe.typeReferenceDirectiveResolutionCache;ke.readFile=Pe.originalReadFile,ke.fileExists=Pe.originalFileExists,ke.directoryExists=Pe.originalDirectoryExists,ke.createDirectory=Pe.originalCreateDirectory,ke.writeFile=Pe.originalWriteFile,Qe.getSourceFile=Pe.originalGetSourceFile,oe.readFileWithCache=Pe.originalReadFileWithCache,gn.clear(),xe==null||xe.clear(),Ze==null||Ze.clear(),oe.cache=void 0}function A(oe,Pe){oe.projectStatus.delete(Pe),oe.diagnostics.delete(Pe)}function f(oe,Pe,ke){var Qe=oe.projectPendingBuild,gn=Qe.get(Pe);(gn===void 0||gn<ke)&&Qe.set(Pe,ke)}function F(oe,Pe){if(!oe.allProjectBuildPending)return;oe.allProjectBuildPending=!1,oe.options.watch&&dn(oe,e.Diagnostics.Starting_compilation_in_watch_mode),re(oe);var ke=w(le(oe));ke.forEach(function(Qe){return oe.projectPendingBuild.set($(oe,Qe),e.ConfigFileProgramReloadLevel.None)}),Pe&&Pe.throwIfCancellationRequested()}var g;(function(oe){oe[oe.Build=0]="Build",oe[oe.UpdateBundle=1]="UpdateBundle",oe[oe.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(g=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function p(oe,Pe){return oe.projectPendingBuild.delete(Pe),oe.currentInvalidatedProject=void 0,oe.diagnostics.has(Pe)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function d(oe,Pe,ke,Qe,gn){var xe=!0;return{kind:g.UpdateOutputFileStamps,project:Pe,projectPath:ke,buildOrder:gn,getCompilerOptions:function(){return Qe.options},getCurrentDirectory:function(){return oe.currentDirectory},updateOutputFileStatmps:function(){te(oe,Qe,ke),xe=!1},done:function(){return xe&&te(oe,Qe,ke),p(oe,ke)}}}var T;(function(oe){oe[oe.CreateProgram=0]="CreateProgram",oe[oe.SyntaxDiagnostics=1]="SyntaxDiagnostics",oe[oe.SemanticDiagnostics=2]="SemanticDiagnostics",oe[oe.Emit=3]="Emit",oe[oe.EmitBundle=4]="EmitBundle",oe[oe.EmitBuildInfo=5]="EmitBuildInfo",oe[oe.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",oe[oe.QueueReferencingProjects=7]="QueueReferencingProjects",oe[oe.Done=8]="Done"})(T||(T={}));function m(oe,Pe,ke,Qe,gn,xe,Ze){var wn=oe===g.Build?T.CreateProgram:T.EmitBundle,Be,hn,Kn;return oe===g.Build?{kind:oe,project:ke,projectPath:Qe,buildOrder:Ze,getCompilerOptions:function(){return xe.options},getCurrentDirectory:function(){return Pe.currentDirectory},getBuilderProgram:function(){return En(e.identity)},getProgram:function(){return En(function(rt){return rt.getProgramOrUndefined()})},getSourceFile:function(rt){return En(function(Yn){return Yn.getSourceFile(rt)})},getSourceFiles:function(){return Nn(function(rt){return rt.getSourceFiles()})},getOptionsDiagnostics:function(rt){return Nn(function(Yn){return Yn.getOptionsDiagnostics(rt)})},getGlobalDiagnostics:function(rt){return Nn(function(Yn){return Yn.getGlobalDiagnostics(rt)})},getConfigFileParsingDiagnostics:function(){return Nn(function(rt){return rt.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(rt,Yn){return Nn(function(gt){return gt.getSyntacticDiagnostics(rt,Yn)})},getAllDependencies:function(rt){return Nn(function(Yn){return Yn.getAllDependencies(rt)})},getSemanticDiagnostics:function(rt,Yn){return Nn(function(gt){return gt.getSemanticDiagnostics(rt,Yn)})},getSemanticDiagnosticsOfNextAffectedFile:function(rt,Yn){return En(function(gt){return gt.getSemanticDiagnosticsOfNextAffectedFile&>.getSemanticDiagnosticsOfNextAffectedFile(rt,Yn)})},emit:function(rt,Yn,gt,lt,Fe){return rt||lt?En(function(Bn){var K,An;return Bn.emit(rt,Yn,gt,lt,Fe||((An=(K=Pe.host).getCustomTransformers)===null||An===void 0?void 0:An.call(K,ke)))}):(Pn(T.SemanticDiagnostics,gt),wn===T.EmitBuildInfo?Vn(Yn,gt):wn!==T.Emit?void 0:Ke(Yn,gt,Fe))},done:Je}:{kind:oe,project:ke,projectPath:Qe,buildOrder:Ze,getCompilerOptions:function(){return xe.options},getCurrentDirectory:function(){return Pe.currentDirectory},emit:function(rt,Yn){return wn!==T.EmitBundle?Kn:Re(rt,Yn)},done:Je};function Je(rt,Yn,gt){return Pn(T.Done,rt,Yn,gt),p(Pe,Qe)}function En(rt){return Pn(T.CreateProgram),Be&&rt(Be)}function Nn(rt){return En(rt)||e.emptyArray}function ct(){var rt,Yn;if(e.Debug.assert(Be===void 0),Pe.options.dry){Wn(Pe,e.Diagnostics.A_non_dry_build_would_build_project_0,ke),hn=ee.Success,wn=T.QueueReferencingProjects;return}if(Pe.options.verbose&&Wn(Pe,e.Diagnostics.Building_project_0,ke),xe.fileNames.length===0){o(Pe,Qe,e.getConfigFileParsingDiagnostics(xe)),hn=ee.None,wn=T.QueueReferencingProjects;return}var gt=Pe.host,lt=Pe.compilerHost;Pe.projectCompilerOptions=xe.options,(rt=Pe.moduleResolutionCache)===null||rt===void 0||rt.update(xe.options),(Yn=Pe.typeReferenceDirectiveResolutionCache)===null||Yn===void 0||Yn.update(xe.options),Be=gt.createProgram(xe.fileNames,xe.options,lt,R(Pe,Qe,xe),e.getConfigFileParsingDiagnostics(xe),xe.projectReferences),Pe.watch&&(Pe.lastCachedPackageJsonLookups.set(Qe,Pe.moduleResolutionCache&&e.map(Pe.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(Fe){var Bn=Fe[0],K=Fe[1];return[Pe.host.realpath&&K?x(Pe,Pe.host.realpath(Bn)):Bn,K]})),Pe.builderPrograms.set(Qe,Be)),wn++}function yt(rt,Yn,gt){var lt;rt.length?(lt=q(Pe,Qe,Be,xe,rt,Yn,gt),hn=lt.buildResult,wn=lt.step):wn++}function Gt(rt){e.Debug.assertIsDefined(Be),yt(Mt(Mt(Mt(Mt([],Be.getConfigFileParsingDiagnostics(),!0),Be.getOptionsDiagnostics(rt),!0),Be.getGlobalDiagnostics(rt),!0),Be.getSyntacticDiagnostics(void 0,rt),!0),ee.SyntaxErrors,"Syntactic")}function $t(rt){yt(e.Debug.checkDefined(Be).getSemanticDiagnostics(void 0,rt),ee.TypeErrors,"Semantic")}function Ke(rt,Yn,gt){var lt,Fe,Bn;e.Debug.assertIsDefined(Be),e.Debug.assert(wn===T.Emit),Be.backupState();var K,An=function(Et){return(K||(K=[])).push(Et)},Fn=[],ln=e.emitFilesAndReportErrors(Be,An,void 0,void 0,function(Et,zt,fr){return Fn.push({name:Et,text:zt,writeByteOrderMark:fr})},Yn,!1,gt||((Bn=(Fe=Pe.host).getCustomTransformers)===null||Bn===void 0?void 0:Bn.call(Fe,ke))).emitResult;if(K)return Be.restoreState(),lt=q(Pe,Qe,Be,xe,K,ee.DeclarationEmitErrors,"Declaration file"),hn=lt.buildResult,wn=lt.step,{emitSkipped:!0,diagnostics:ln.diagnostics};var Ln=Pe.host,Xe=Pe.compilerHost,Dn=ee.DeclarationOutputUnchanged,rn=s,qn=!1,it=e.createDiagnosticCollection(),ht=new e.Map;return Fn.forEach(function(Et){var zt=Et.name,fr=Et.text,br=Et.writeByteOrderMark,Jt;!qn&&_e(zt)&&(Ln.fileExists(zt)&&Pe.readFileWithCache(zt)===fr?Jt=Ln.getModifiedTime(zt):(Dn&=~ee.DeclarationOutputUnchanged,qn=!0)),ht.set(x(Pe,zt),zt),e.writeFile(rt?{writeFile:rt}:Xe,it,zt,fr,br),Jt!==void 0&&(rn=ne(Jt,rn))}),Zn(it,ht,rn,qn,Fn.length?Fn[0].name:e.getFirstProjectOutput(xe,!Ln.useCaseSensitiveFileNames()),Dn),ln}function Vn(rt,Yn){e.Debug.assertIsDefined(Be),e.Debug.assert(wn===T.EmitBuildInfo);var gt=Be.emitBuildInfo(rt,Yn);return gt.diagnostics.length&&(vn(Pe,gt.diagnostics),Pe.diagnostics.set(Qe,Mt(Mt([],Pe.diagnostics.get(Qe),!0),gt.diagnostics,!0)),hn=ee.EmitErrors&hn),gt.emittedFiles&&Pe.write&>.emittedFiles.forEach(function(lt){return D(Pe,xe,lt)}),me(Pe,Be,xe),wn=T.QueueReferencingProjects,gt}function Zn(rt,Yn,gt,lt,Fe,Bn){var K,An=rt.getDiagnostics();if(An.length)return K=q(Pe,Qe,Be,xe,An,ee.EmitErrors,"Emit"),hn=K.buildResult,wn=K.step,An;Pe.write&&Yn.forEach(function(ln){return D(Pe,xe,ln)});var Fn=Oe(Pe,xe,gt,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,Yn);return Pe.diagnostics.delete(Qe),Pe.projectStatus.set(Qe,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:lt?ue:Fn,oldestOutputFileName:Fe}),me(Pe,Be,xe),wn=T.QueueReferencingProjects,hn=Bn,An}function Re(rt,Yn){var gt,lt;if(e.Debug.assert(oe===g.UpdateBundle),Pe.options.dry){Wn(Pe,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,ke),hn=ee.Success,wn=T.QueueReferencingProjects;return}Pe.options.verbose&&Wn(Pe,e.Diagnostics.Updating_output_of_project_0,ke);var Fe=Pe.compilerHost;Pe.projectCompilerOptions=xe.options;var Bn=e.emitUsingBuildInfo(xe,Fe,function(ln){var Ln=X(Pe,ln.path);return ae(Pe,Ln,$(Pe,Ln))},Yn||((lt=(gt=Pe.host).getCustomTransformers)===null||lt===void 0?void 0:lt.call(gt,ke)));if(e.isString(Bn))return Wn(Pe,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,ke,xn(Pe,Bn)),wn=T.BuildInvalidatedProjectOfBundle,Kn=m(g.Build,Pe,ke,Qe,gn,xe,Ze);e.Debug.assert(!!Bn.length);var K=e.createDiagnosticCollection(),An=new e.Map;Bn.forEach(function(ln){var Ln=ln.name,Xe=ln.text,Dn=ln.writeByteOrderMark;An.set(x(Pe,Ln),Ln),e.writeFile(rt?{writeFile:rt}:Fe,K,Ln,Xe,Dn)});var Fn=Zn(K,An,s,!1,Bn[0].name,ee.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:Fn}}function Pn(rt,Yn,gt,lt){for(;wn<=rt&&wn<T.Done;){var Fe=wn;switch(wn){case T.CreateProgram:ct();break;case T.SyntaxDiagnostics:Gt(Yn);break;case T.SemanticDiagnostics:$t(Yn);break;case T.Emit:Ke(gt,Yn,lt);break;case T.EmitBuildInfo:Vn(gt,Yn);break;case T.EmitBundle:Re(gt,lt);break;case T.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Kn).done(Yn,gt,lt),wn=T.Done;break;case T.QueueReferencingProjects:Te(Pe,ke,Qe,gn,xe,Ze,e.Debug.checkDefined(hn)),wn++;break;case T.Done:default:e.assertType(wn)}e.Debug.assert(wn>Fe)}}}function k(oe,Pe,ke){var Qe=oe.options;return Pe.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Qe.force?!0:ke.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(ke).length||!e.isIncrementalCompilation(ke.options)}function N(oe,Pe,ke){if(!oe.projectPendingBuild.size)return;if(O(Pe))return;if(oe.currentInvalidatedProject)return e.arrayIsEqualTo(oe.currentInvalidatedProject.buildOrder,Pe)?oe.currentInvalidatedProject:void 0;for(var Qe=oe.options,gn=oe.projectPendingBuild,xe=0;xe<Pe.length;xe++){var Ze=Pe[xe],wn=$(oe,Ze),Be=oe.projectPendingBuild.get(wn);if(Be===void 0)continue;ke&&(ke=!1,tn(oe,Pe));var hn=ae(oe,Ze,wn);if(!hn){Cn(oe,wn),gn.delete(wn);continue}Be===e.ConfigFileProgramReloadLevel.Full?(Le(oe,Ze,wn,hn),qe(oe,wn,hn),pe(oe,Ze,wn,hn),Me(oe,Ze,wn,hn),fn(oe,Ze,wn,hn)):Be===e.ConfigFileProgramReloadLevel.Partial&&(hn.fileNames=e.getFileNamesFromConfigSpecs(hn.options.configFile.configFileSpecs,e.getDirectoryPath(Ze),hn.options,oe.parseConfigFileHost),e.updateErrorForNoInputFiles(hn.fileNames,Ze,hn.options.configFile.configFileSpecs,hn.errors,e.canJsonReportNoInputFiles(hn.raw)),Me(oe,Ze,wn,hn),fn(oe,Ze,wn,hn));var Kn=we(oe,hn,wn);if(Un(oe,Ze,Kn),!Qe.force){if(Kn.type===e.UpToDateStatusType.UpToDate){o(oe,wn,e.getConfigFileParsingDiagnostics(hn)),gn.delete(wn),Qe.dry&&Wn(oe,e.Diagnostics.Project_0_is_up_to_date,Ze);continue}if(Kn.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return o(oe,wn,e.getConfigFileParsingDiagnostics(hn)),d(oe,Ze,wn,hn,Pe)}if(Kn.type===e.UpToDateStatusType.UpstreamBlocked){o(oe,wn,e.getConfigFileParsingDiagnostics(hn)),gn.delete(wn),Qe.verbose&&Wn(oe,Kn.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,Ze,Kn.upstreamProjectName);continue}if(Kn.type===e.UpToDateStatusType.ContainerOnly){o(oe,wn,e.getConfigFileParsingDiagnostics(hn)),gn.delete(wn);continue}return m(k(oe,Kn,hn)?g.Build:g.UpdateBundle,oe,Ze,wn,xe,hn,Pe)}return}function D(oe,Pe,ke){var Qe=oe.write;Qe&&Pe.options.listEmittedFiles&&Qe("TSFILE: "+ke)}function R(oe,Pe,ke){var Qe=oe.options,gn=oe.builderPrograms,xe=oe.compilerHost;if(Qe.force)return;var Ze=gn.get(Pe);return Ze||e.readBuilderProgram(ke.options,xe)}function me(oe,Pe,ke){Pe?(Pe&&oe.write&&e.listFiles(Pe,oe.write),oe.host.afterProgramEmitAndDiagnostics&&oe.host.afterProgramEmitAndDiagnostics(Pe),Pe.releaseProgram()):oe.host.afterEmitBundle&&oe.host.afterEmitBundle(ke),oe.projectCompilerOptions=oe.baseCompilerOptions}function q(oe,Pe,ke,Qe,gn,xe,Ze){var wn=!(xe&ee.SyntaxErrors)&&ke&&!e.outFile(ke.getCompilerOptions());return o(oe,Pe,gn),oe.projectStatus.set(Pe,{type:e.UpToDateStatusType.Unbuildable,reason:Ze+" errors"}),wn?{buildResult:xe,step:T.EmitBuildInfo}:(me(oe,ke,Qe),{buildResult:xe,step:T.QueueReferencingProjects})}function J(oe,Pe,ke,Qe){var gn=e.getModifiedTime(oe.host,Pe);if(ke<gn)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Qe,newerInputFileName:Pe}}function C(oe,Pe,ke){for(var Qe=!!oe.options.force,gn=void 0,xe=s,Ze=oe.host,wn=0,Be=Pe.fileNames;wn<Be.length;wn++){var hn=Be[wn];if(!Ze.fileExists(hn))return{type:e.UpToDateStatusType.Unbuildable,reason:hn+" does not exist"};if(!Qe){var Kn=e.getModifiedTime(Ze,hn);Ze.getModifiedTime(hn),Kn>xe&&(gn=hn,xe=Kn)}}if(!Pe.fileNames.length&&!e.canJsonReportNoInputFiles(Pe.raw))return{type:e.UpToDateStatusType.ContainerOnly};var Je=e.getAllProjectOutputs(Pe,!Ze.useCaseSensitiveFileNames()),En="(none)",Nn=ue,ct="(none)",yt=s,Gt,$t=s,Ke=!1;if(!Qe)for(var Vn=0,Zn=Je;Vn<Zn.length;Vn++){var Re=Zn[Vn];if(!Ze.fileExists(Re)){Gt=Re;break}var Pn=e.getModifiedTime(Ze,Re);if(Pn<Nn&&(Nn=Pn,En=Re),Pn<xe){Ke=!0;break}if(Pn>yt&&(yt=Pn,ct=Re),_e(Re)){var rt=e.getModifiedTime(Ze,Re);$t=ne($t,rt)}}var Yn=!1,gt=!1,lt;if(Pe.projectReferences){oe.projectStatus.set(ke,{type:e.UpToDateStatusType.ComputingUpstream});for(var Fe=0,Bn=Pe.projectReferences;Fe<Bn.length;Fe++){var K=Bn[Fe];gt=gt||!!K.prepend;var An=e.resolveProjectReferencePath(K),Fn=$(oe,An),ln=we(oe,ae(oe,An,Fn),Fn);if(ln.type===e.UpToDateStatusType.ComputingUpstream||ln.type===e.UpToDateStatusType.ContainerOnly)continue;if(ln.type===e.UpToDateStatusType.Unbuildable||ln.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:K.path,upstreamProjectBlocked:ln.type===e.UpToDateStatusType.UpstreamBlocked};if(ln.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:K.path};if(!Qe&&!Gt){if(ln.newestInputFileTime&&ln.newestInputFileTime<=Nn)continue;if(ln.newestDeclarationFileContentChangedTime&&ln.newestDeclarationFileContentChangedTime<=Nn){Yn=!0,lt=K.path;continue}return e.Debug.assert(En!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:En,newerProjectName:K.path}}}}if(Gt!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:Gt};if(Ke)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:En,newerInputFileName:gn};var Ln=J(oe,Pe.options.configFilePath,Nn,En);if(Ln)return Ln;var Xe=e.forEach(Pe.options.configFile.extendedSourceFiles||e.emptyArray,function(ht){return J(oe,ht,Nn,En)});if(Xe)return Xe;var Dn=e.forEach(oe.lastCachedPackageJsonLookups.get(ke)||e.emptyArray,function(ht){var Et=ht[0];return J(oe,Et,Nn,En)});if(Dn)return Dn;if(!Qe&&!oe.buildInfoChecked.has(ke)){oe.buildInfoChecked.set(ke,!0);var rn=e.getTsBuildInfoEmitOutputFilePath(Pe.options);if(rn){var qn=oe.readFileWithCache(rn),it=qn&&e.getBuildInfo(qn);if(it&&(it.bundle||it.program)&&it.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:it.version}}}return gt&&Yn?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:En,newerProjectName:lt}:{type:Yn?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:$t,newestInputFileTime:xe,newestOutputFileTime:yt,newestInputFileName:gn,newestOutputFileName:ct,oldestOutputFileName:En}}function we(oe,Pe,ke){if(Pe===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Qe=oe.projectStatus.get(ke);if(Qe!==void 0)return Qe;var gn=C(oe,Pe,ke);return oe.projectStatus.set(ke,gn),gn}function Oe(oe,Pe,ke,Qe,gn){if(Pe.options.noEmit)return ke;var xe=oe.host,Ze=e.getAllProjectOutputs(Pe,!xe.useCaseSensitiveFileNames());if(!gn||Ze.length!==gn.size)for(var wn=!!oe.options.verbose,Be=xe.now?xe.now():new Date,hn=0,Kn=Ze;hn<Kn.length;hn++){var Je=Kn[hn];if(gn&&gn.has(x(oe,Je)))continue;wn&&(wn=!1,Wn(oe,Qe,Pe.options.configFilePath)),_e(Je)&&(ke=ne(ke,e.getModifiedTime(xe,Je))),xe.setModifiedTime(Je,Be)}return ke}function te(oe,Pe,ke){if(oe.options.dry)return Wn(oe,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,Pe.options.configFilePath);var Qe=Oe(oe,Pe,s,e.Diagnostics.Updating_output_timestamps_of_project_0);oe.projectStatus.set(ke,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Qe,oldestOutputFileName:e.getFirstProjectOutput(Pe,!oe.host.useCaseSensitiveFileNames())})}function Te(oe,Pe,ke,Qe,gn,xe,Ze){if(Ze&ee.AnyErrors)return;if(!gn.options.composite)return;for(var wn=Qe+1;wn<xe.length;wn++){var Be=xe[wn],hn=$(oe,Be);if(oe.projectPendingBuild.has(hn))continue;var Kn=ae(oe,Be,hn);if(!Kn||!Kn.projectReferences)continue;for(var Je=0,En=Kn.projectReferences;Je<En.length;Je++){var Nn=En[Je],ct=X(oe,Nn.path);if($(oe,ct)!==ke)continue;var yt=oe.projectStatus.get(hn);if(yt)switch(yt.type){case e.UpToDateStatusType.UpToDate:if(Ze&ee.DeclarationOutputUnchanged){Nn.prepend?oe.projectStatus.set(hn,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:yt.oldestOutputFileName,newerProjectName:Pe}):yt.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:Ze&ee.DeclarationOutputUnchanged||oe.projectStatus.set(hn,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:yt.type===e.UpToDateStatusType.OutOfDateWithPrepend?yt.outOfDateOutputFileName:yt.oldestOutputFileName,newerProjectName:Pe});break;case e.UpToDateStatusType.UpstreamBlocked:$(oe,X(oe,yt.upstreamProjectName))===ke&&A(oe,hn);break}f(oe,hn,e.ConfigFileProgramReloadLevel.None);break}}}function be(oe,Pe,ke,Qe,gn,xe){var Ze=I(oe,Pe,xe);if(!Ze)return e.ExitStatus.InvalidProject_OutputsSkipped;F(oe,ke);for(var wn=!0,Be=0;;){var hn=N(oe,Ze,wn);if(!hn)break;wn=!1,hn.done(ke,Qe,gn==null?void 0:gn(hn.project)),oe.diagnostics.has(hn.projectPath)||Be++}return B(oe),z(oe,Ze),Ye(oe,Ze),O(Ze)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:Ze.some(function(Kn){return oe.diagnostics.has($(oe,Kn))})?Be?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Ce(oe,Pe,ke){var Qe=I(oe,Pe,ke);if(!Qe)return e.ExitStatus.InvalidProject_OutputsSkipped;if(O(Qe))return vn(oe,Qe.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var gn=oe.options,xe=oe.host,Ze=gn.dry?[]:void 0,wn=0,Be=Qe;wn<Be.length;wn++){var hn=Be[wn],Kn=$(oe,hn),Je=ae(oe,hn,Kn);if(Je===void 0){Cn(oe,Kn);continue}var En=e.getAllProjectOutputs(Je,!xe.useCaseSensitiveFileNames());if(!En.length)continue;for(var Nn=new e.Set(Je.fileNames.map(function($t){return x(oe,$t)})),ct=0,yt=En;ct<yt.length;ct++){var Gt=yt[ct];if(Nn.has(x(oe,Gt)))continue;xe.fileExists(Gt)&&(Ze?Ze.push(Gt):(xe.deleteFile(Gt),Ue(oe,Kn,e.ConfigFileProgramReloadLevel.None)))}}return Ze&&Wn(oe,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,Ze.map(function($t){return`\r
|
|
|
* `+$t}).join("")),e.ExitStatus.Success}function Ue(oe,Pe,ke){oe.host.getParsedCommandLine&&ke===e.ConfigFileProgramReloadLevel.Partial&&(ke=e.ConfigFileProgramReloadLevel.Full),ke===e.ConfigFileProgramReloadLevel.Full&&(oe.configFileCache.delete(Pe),oe.buildOrder=void 0),oe.needsSummary=!0,A(oe,Pe),f(oe,Pe,ke),re(oe)}function Se(oe,Pe,ke){oe.reportFileChangeDetected=!0,Ue(oe,Pe,ke),$e(oe)}function $e(oe){var Pe=oe.hostWithWatch;if(!Pe.setTimeout||!Pe.clearTimeout)return;oe.timerToBuildInvalidatedProject&&Pe.clearTimeout(oe.timerToBuildInvalidatedProject),oe.timerToBuildInvalidatedProject=Pe.setTimeout(ce,250,oe)}function ce(oe){oe.timerToBuildInvalidatedProject=void 0,oe.reportFileChangeDetected&&(oe.reportFileChangeDetected=!1,oe.projectErrorsReported.clear(),dn(oe,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Pe=le(oe),ke=N(oe,Pe,!1);if(ke&&(ke.done(),oe.projectPendingBuild.size)){oe.watch&&!oe.timerToBuildInvalidatedProject&&$e(oe);return}B(oe),z(oe,Pe)}function Le(oe,Pe,ke,Qe){if(!oe.watch||oe.allWatchedConfigFiles.has(ke))return;oe.allWatchedConfigFiles.set(ke,oe.watchFile(Pe,function(){Se(oe,ke,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Qe==null?void 0:Qe.watchOptions,e.WatchType.ConfigFile,Pe))}function qe(oe,Pe,ke){e.updateSharedExtendedConfigFileWatcher(Pe,ke==null?void 0:ke.options,oe.allWatchedExtendedConfigFiles,function(Qe,gn){return oe.watchFile(Qe,function(){var xe;return(xe=oe.allWatchedExtendedConfigFiles.get(gn))===null||xe===void 0?void 0:xe.projects.forEach(function(Ze){return Se(oe,Ze,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,ke==null?void 0:ke.watchOptions,e.WatchType.ExtendedConfigFile)},function(Qe){return x(oe,Qe)})}function pe(oe,Pe,ke,Qe){if(!oe.watch)return;e.updateWatchingWildcardDirectories(V(oe.allWatchedWildcardDirectories,ke),new e.Map(e.getEntries(Qe.wildcardDirectories)),function(gn,xe){return oe.watchDirectory(gn,function(Ze){var wn;if(e.isIgnoredFileFromWildCardWatching({watchedDirPath:x(oe,gn),fileOrDirectory:Ze,fileOrDirectoryPath:x(oe,Ze),configFileName:Pe,currentDirectory:oe.currentDirectory,options:Qe.options,program:oe.builderPrograms.get(ke)||((wn=E(oe,ke))===null||wn===void 0?void 0:wn.fileNames),useCaseSensitiveFileNames:oe.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(Be){return oe.writeLog(Be)},toPath:function(Be){return x(oe,Be)}}))return;Se(oe,ke,e.ConfigFileProgramReloadLevel.Partial)},xe,Qe==null?void 0:Qe.watchOptions,e.WatchType.WildcardDirectory,Pe)})}function Me(oe,Pe,ke,Qe){if(!oe.watch)return;e.mutateMap(V(oe.allWatchedInputFiles,ke),e.arrayToMap(Qe.fileNames,function(gn){return x(oe,gn)}),{createNewValue:function(gn,xe){return oe.watchFile(xe,function(){return Se(oe,ke,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Qe==null?void 0:Qe.watchOptions,e.WatchType.SourceFile,Pe)},onDeleteValue:e.closeFileWatcher})}function fn(oe,Pe,ke,Qe){if(!oe.watch||!oe.lastCachedPackageJsonLookups)return;e.mutateMap(V(oe.allWatchedPackageJsonFiles,ke),new e.Map(oe.lastCachedPackageJsonLookups.get(ke)),{createNewValue:function(gn,xe){return oe.watchFile(gn,function(){return Se(oe,ke,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Qe==null?void 0:Qe.watchOptions,e.WatchType.PackageJson,Pe)},onDeleteValue:e.closeFileWatcher})}function Ye(oe,Pe){if(!oe.watchAllProjectsPending)return;oe.watchAllProjectsPending=!1;for(var ke=0,Qe=w(Pe);ke<Qe.length;ke++){var gn=Qe[ke],xe=$(oe,gn),Ze=ae(oe,gn,xe);Le(oe,gn,xe,Ze),qe(oe,xe,Ze),Ze&&(pe(oe,gn,xe,Ze),Me(oe,gn,xe,Ze),fn(oe,gn,xe,Ze))}}function Ne(oe){e.clearMap(oe.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(oe.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(oe.allWatchedWildcardDirectories,function(Pe){return e.clearMap(Pe,e.closeFileWatcherOf)}),e.clearMap(oe.allWatchedInputFiles,function(Pe){return e.clearMap(Pe,e.closeFileWatcher)}),e.clearMap(oe.allWatchedPackageJsonFiles,function(Pe){return e.clearMap(Pe,e.closeFileWatcher)})}function je(oe,Pe,ke,Qe,gn){var xe=W(oe,Pe,ke,Qe,gn);return{build:function(Ze,wn,Be,hn){return be(xe,Ze,wn,Be,hn)},clean:function(Ze){return Ce(xe,Ze)},buildReferences:function(Ze,wn,Be,hn){return be(xe,Ze,wn,Be,hn,!0)},cleanReferences:function(Ze){return Ce(xe,Ze,!0)},getNextInvalidatedProject:function(Ze){return F(xe,Ze),N(xe,le(xe),!1)},getBuildOrder:function(){return le(xe)},getUpToDateStatusOfProject:function(Ze){var wn=X(xe,Ze),Be=$(xe,wn);return we(xe,ae(xe,wn,Be),Be)},invalidateProject:function(Ze,wn){return Ue(xe,Ze,wn||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return ce(xe)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(xe.configFileCache.values(),function(Ze){return L(Ze)?Ze:void 0}))},close:function(){return Ne(xe)}}}function xn(oe,Pe){return e.convertToRelativePath(Pe,oe.currentDirectory,function(ke){return oe.getCanonicalFileName(ke)})}function Wn(oe,Pe){for(var ke=[],Qe=2;Qe<arguments.length;Qe++)ke[Qe-2]=arguments[Qe];oe.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Mt([Pe],ke,!1)))}function dn(oe,Pe){for(var ke,Qe,gn=[],xe=2;xe<arguments.length;xe++)gn[xe-2]=arguments[xe];(Qe=(ke=oe.hostWithWatch).onWatchStatusChange)===null||Qe===void 0||Qe.call(ke,e.createCompilerDiagnostic.apply(void 0,Mt([Pe],gn,!1)),oe.host.getNewLine(),oe.baseCompilerOptions)}function vn(oe,Pe){var ke=oe.host;Pe.forEach(function(Qe){return ke.reportDiagnostic(Qe)})}function o(oe,Pe,ke){vn(oe,ke),oe.projectErrorsReported.set(Pe,!0),ke.length&&oe.diagnostics.set(Pe,ke)}function Cn(oe,Pe){o(oe,Pe,[oe.configFileCache.get(Pe)])}function z(oe,Pe){if(!oe.needsSummary)return;oe.needsSummary=!1;var ke=oe.watch||!!oe.host.reportErrorSummary,Qe=oe.diagnostics,gn=0;O(Pe)?(tn(oe,Pe.buildOrder),vn(oe,Pe.circularDiagnostics),ke&&(gn+=e.getErrorCountForSummary(Pe.circularDiagnostics))):(Pe.forEach(function(xe){var Ze=$(oe,xe);oe.projectErrorsReported.has(Ze)||vn(oe,Qe.get(Ze)||e.emptyArray)}),ke&&Qe.forEach(function(xe){return gn+=e.getErrorCountForSummary(xe)})),oe.watch?dn(oe,e.getWatchErrorSummaryDiagnosticMessage(gn),gn):oe.host.reportErrorSummary&&oe.host.reportErrorSummary(gn)}function tn(oe,Pe){oe.options.verbose&&Wn(oe,e.Diagnostics.Projects_in_this_build_Colon_0,Pe.map(function(ke){return`\r
|
|
|
* `+xn(oe,ke)}).join(""))}function $n(oe,Pe,ke){if(oe.options.force&&(ke.type===e.UpToDateStatusType.UpToDate||ke.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return Wn(oe,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,xn(oe,Pe));switch(ke.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Wn(oe,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,xn(oe,Pe),xn(oe,ke.outOfDateOutputFileName),xn(oe,ke.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Wn(oe,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,xn(oe,Pe),xn(oe,ke.outOfDateOutputFileName),xn(oe,ke.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Wn(oe,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,xn(oe,Pe),xn(oe,ke.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(ke.newestInputFileTime!==void 0)return Wn(oe,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,xn(oe,Pe),xn(oe,ke.newestInputFileName||""),xn(oe,ke.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Wn(oe,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,xn(oe,Pe),xn(oe,ke.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Wn(oe,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,xn(oe,Pe));case e.UpToDateStatusType.UpstreamOutOfDate:return Wn(oe,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,xn(oe,Pe),xn(oe,ke.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Wn(oe,ke.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,xn(oe,Pe),xn(oe,ke.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Wn(oe,e.Diagnostics.Failed_to_parse_file_0_Colon_1,xn(oe,Pe),ke.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Wn(oe,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,xn(oe,Pe),ke.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(ke)}}function Un(oe,Pe,ke){oe.options.verbose&&$n(oe,Pe,ke)}})(mn||(mn={}));var mn;(function(e){var s;(function(ue){ue.ActionSet="action::set",ue.ActionInvalidate="action::invalidate",ue.ActionPackageInstalled="action::packageInstalled",ue.EventTypesRegistry="event::typesRegistry",ue.EventBeginInstallTypes="event::beginInstallTypes",ue.EventEndInstallTypes="event::endInstallTypes",ue.EventInitializationFailed="event::initializationFailed";var ee;(function(_e){_e.GlobalCacheLocation="--globalTypingsCacheLocation",_e.LogFile="--logFile",_e.EnableTelemetry="--enableTelemetry",_e.TypingSafeListLocation="--typingSafeListLocation",_e.TypesMapLocation="--typesMapLocation",_e.NpmLocation="--npmLocation",_e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(ee=ue.Arguments||(ue.Arguments={}));function Y(_e){return e.sys.args.indexOf(_e)>=0}ue.hasArgument=Y;function V(_e){var O=e.sys.args.indexOf(_e);return O>=0&&O<e.sys.args.length-1?e.sys.args[O+1]:void 0}ue.findArgument=V;function ne(){var _e=new Date;return e.padLeft(_e.getHours().toString(),2,"0")+":"+e.padLeft(_e.getMinutes().toString(),2,"0")+":"+e.padLeft(_e.getSeconds().toString(),2,"0")+"."+e.padLeft(_e.getMilliseconds().toString(),3,"0")}ue.nowString=ne})(s=e.server||(e.server={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(Z,v){var W=new e.Version(e.getProperty(v,"ts"+e.versionMajorMinor)||e.getProperty(v,"latest"));return W.compareTo(Z.version)<=0}ue.isTypingUpToDate=ee;var Y=["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"];ue.prefixedNodeCoreModuleList=Y.map(function(Z){return"node:"+Z}),ue.nodeCoreModuleList=Mt(Mt([],Y,!0),ue.prefixedNodeCoreModuleList,!0),ue.nodeCoreModules=new e.Set(ue.nodeCoreModuleList);function V(Z){return ue.nodeCoreModules.has(Z)?"node":Z}ue.nonRelativeModuleNameForTypingCache=V;function ne(Z,v){var W=e.readConfigFile(v,function(x){return Z.readFile(x)});return new e.Map(e.getEntries(W.config))}ue.loadSafeList=ne;function _e(Z,v){var W=e.readConfigFile(v,function(x){return Z.readFile(x)});return W.config?new e.Map(e.getEntries(W.config.simpleMap)):void 0}ue.loadTypesMap=_e;function O(Z,v,W,x,$,L,E,ae,X){if(!E||!E.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var ie=new e.Map;W=e.mapDefined(W,function(R){var me=e.normalizePath(R);if(e.hasJSFileExtension(me))return me});var le=[];E.include&&m(E.include,"Explicitly included types");var P=E.exclude||[],I=new e.Set(W.map(e.getDirectoryPath));if(I.add(x),I.forEach(function(R){var me=e.combinePaths(R,"package.json");k(me,le);var q=e.combinePaths(R,"bower.json");k(q,le);var J=e.combinePaths(R,"bower_components");D(J,le);var C=e.combinePaths(R,"node_modules");D(C,le)}),E.disableFilenameBasedTypeAcquisition||N(W),ae){var re=e.deduplicate(ae.map(V),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);m(re,"Inferred typings from unresolved imports")}L.forEach(function(R,me){var q=X.get(me);ie.has(me)&&ie.get(me)===void 0&&q!==void 0&&ee(R,q)&&ie.set(me,R.typingLocation)});for(var B=0,A=P;B<A.length;B++){var f=A[B],F=ie.delete(f);F&&v&&v("Typing for "+f+" is in exclude list, will be ignored.")}var g=[],p=[];ie.forEach(function(R,me){R!==void 0?p.push(R):g.push(me)});var d={cachedTypingPaths:p,newTypingNames:g,filesToWatch:le};return v&&v("Result: "+JSON.stringify(d)),d;function T(R){ie.has(R)||ie.set(R,void 0)}function m(R,me){v&&v(me+": "+JSON.stringify(R)),e.forEach(R,T)}function k(R,me){if(!Z.fileExists(R))return;me.push(R);var q=e.readConfigFile(R,function(C){return Z.readFile(C)}).config,J=e.flatMap([q.dependencies,q.devDependencies,q.optionalDependencies,q.peerDependencies],e.getOwnKeys);m(J,"Typing names in '"+R+"' dependencies")}function N(R){var me=e.mapDefined(R,function(J){if(!e.hasJSFileExtension(J))return;var C=e.removeFileExtension(e.getBaseFileName(J.toLowerCase())),we=e.removeMinAndVersionNumbers(C);return $.get(we)});me.length&&m(me,"Inferred typings from file names");var q=e.some(R,function(J){return e.fileExtensionIs(J,".jsx")});q&&(v&&v("Inferred 'react' typings due to presence of '.jsx' extension"),T("react"))}function D(R,me){if(me.push(R),!Z.directoryExists(R))return;var q=Z.readDirectory(R,[".json"],void 0,void 0,2);v&&v("Searching for typing names in "+R+"; all files: "+JSON.stringify(q));for(var J=[],C=0,we=q;C<we.length;C++){var Oe=we[C],te=e.normalizePath(Oe),Te=e.getBaseFileName(te);if(Te!=="package.json"&&Te!=="bower.json")continue;var be=e.readConfigFile(te,function($e){return Z.readFile($e)}),Ce=be.config;if(Te==="package.json"&&Ce._requiredBy&&e.filter(Ce._requiredBy,function($e){return $e[0]==="#"||$e==="/"}).length===0)continue;if(!Ce.name)continue;var Ue=Ce.types||Ce.typings;if(Ue){var Se=e.getNormalizedAbsolutePath(Ue,e.getDirectoryPath(te));v&&v(" Package '"+Ce.name+"' provides its own types."),ie.set(Ce.name,Se)}else J.push(Ce.name)}m(J," Found package names")}}ue.discoverTypings=O;var w;(function(Z){Z[Z.Ok=0]="Ok",Z[Z.EmptyName=1]="EmptyName",Z[Z.NameTooLong=2]="NameTooLong",Z[Z.NameStartsWithDot=3]="NameStartsWithDot",Z[Z.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",Z[Z.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(w=ue.NameValidationResult||(ue.NameValidationResult={}));var b=214;function de(Z){return fe(Z,!0)}ue.validatePackageName=de;function fe(Z,v){if(!Z)return 1;if(Z.length>b)return 2;if(Z.charCodeAt(0)===46)return 3;if(Z.charCodeAt(0)===95)return 4;if(v){var W=/^@([^/]+)\/([^/]+)$/.exec(Z);if(W){var x=fe(W[1],!1);if(x!==0)return{name:W[1],isScopeName:!0,result:x};var $=fe(W[2],!1);return $!==0?{name:W[2],isScopeName:!1,result:$}:0}}return encodeURIComponent(Z)!==Z?5:0}function _(Z,v){return typeof Z=="object"?U(v,Z.result,Z.name,Z.isScopeName):U(v,Z,v,!1)}ue.renderPackageNameValidationFailure=_;function U(Z,v,W,x){var $=x?"Scope":"Package";switch(v){case 1:return"'"+Z+"':: "+$+" name '"+W+"' cannot be empty";case 2:return"'"+Z+"':: "+$+" name '"+W+"' should be less than "+b+" characters";case 3:return"'"+Z+"':: "+$+" name '"+W+"' cannot start with '.'";case 4:return"'"+Z+"':: "+$+" name '"+W+"' cannot start with '_'";case 5:return"'"+Z+"':: "+$+" name '"+W+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(v)}}})(s=e.JsTyping||(e.JsTyping={}))})(mn||(mn={}));var mn;(function(e){var s;(function(E){var ae=function(){function ie(le){this.text=le}return ie.prototype.getText=function(le,P){return le===0&&P===this.text.length?this.text:this.text.substring(le,P)},ie.prototype.getLength=function(){return this.text.length},ie.prototype.getChangeRange=function(){return},ie}();function X(ie){return new ae(ie)}E.fromString=X})(s=e.ScriptSnapshot||(e.ScriptSnapshot={}));var ue;(function(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"})(ue=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}));var ee;(function(E){E[E.Off=0]="Off",E[E.On=1]="On",E[E.Auto=2]="Auto"})(ee=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}));var Y;(function(E){E[E.Semantic=0]="Semantic",E[E.PartialSemantic=1]="PartialSemantic",E[E.Syntactic=2]="Syntactic"})(Y=e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={};var V;(function(E){E.Original="original",E.TwentyTwenty="2020"})(V=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={}));var ne;(function(E){E[E.Invoked=1]="Invoked",E[E.TriggerCharacter=2]="TriggerCharacter",E[E.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"})(ne=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var _e;(function(E){E.Type="Type",E.Parameter="Parameter",E.Enum="Enum"})(_e=e.InlayHintKind||(e.InlayHintKind={}));var O;(function(E){E.none="none",E.definition="definition",E.reference="reference",E.writtenReference="writtenReference"})(O=e.HighlightSpanKind||(e.HighlightSpanKind={}));var w;(function(E){E[E.None=0]="None",E[E.Block=1]="Block",E[E.Smart=2]="Smart"})(w=e.IndentStyle||(e.IndentStyle={}));var b;(function(E){E.Ignore="ignore",E.Insert="insert",E.Remove="remove"})(b=e.SemicolonPreference||(e.SemicolonPreference={}));function de(E){return{indentSize:4,tabSize:4,newLineCharacter:E||`
|
|
|
`,convertTabsToSpaces:!0,indentStyle:w.Smart,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:b.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=de,e.testFormatSettings=de(`
|
|
|
`);var fe;(function(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"})(fe=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var _;(function(E){E.Comment="comment",E.Region="region",E.Code="code",E.Imports="imports"})(_=e.OutliningSpanKind||(e.OutliningSpanKind={}));var U;(function(E){E[E.JavaScript=0]="JavaScript",E[E.SourceMap=1]="SourceMap",E[E.Declaration=2]="Declaration"})(U=e.OutputFileType||(e.OutputFileType={}));var Z;(function(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"})(Z=e.EndOfLineState||(e.EndOfLineState={}));var v;(function(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"})(v=e.TokenClass||(e.TokenClass={}));var W;(function(E){E.unknown="",E.warning="warning",E.keyword="keyword",E.scriptElement="script",E.moduleElement="module",E.classElement="class",E.localClassElement="local class",E.interfaceElement="interface",E.typeElement="type",E.enumElement="enum",E.enumMemberElement="enum member",E.variableElement="var",E.localVariableElement="local var",E.functionElement="function",E.localFunctionElement="local function",E.memberFunctionElement="method",E.memberGetAccessorElement="getter",E.memberSetAccessorElement="setter",E.memberVariableElement="property",E.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"})(W=e.ScriptElementKind||(e.ScriptElementKind={}));var x;(function(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"})(x=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var $;(function(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.ClassificationTypeNames||(e.ClassificationTypeNames={}));var L;(function(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"})(L=e.ClassificationType||(e.ClassificationType={}))})(mn||(mn={}));var mn;(function(e){e.scanner=e.createScanner(99,!0);var s;(function(ye){ye[ye.None=0]="None",ye[ye.Value=1]="Value",ye[ye.Type=2]="Type",ye[ye.Namespace=4]="Namespace",ye[ye.All=7]="All"})(s=e.SemanticMeaning||(e.SemanticMeaning={}));function ue(ye){switch(ye.kind){case 252:return e.isInJSFile(ye)&&e.getJSDocEnumTag(ye)?7:1;case 162:case 201:case 165:case 164:case 291:case 292:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 290:case 283:return 1;case 161:case 256:case 257:case 180:return 2;case 340:return ye.name===void 0?1|2:2;case 294:case 255:return 1|2;case 259:return e.isAmbientModule(ye)||e.getModuleInstanceState(ye)===1?4|1:4;case 258:case 267:case 268:case 263:case 264:case 269:case 270:return 7;case 300:return 4|1}return 7}e.getMeaningFromDeclaration=ue;function ee(ye){ye=o(ye);var cn=ye.parent;if(ye.kind===300)return 1;if(e.isExportAssignment(cn)||e.isExportSpecifier(cn)||e.isExternalModuleReference(cn)||e.isImportSpecifier(cn)||e.isImportClause(cn)||e.isImportEqualsDeclaration(cn)&&ye===cn.name){for(var Sn=cn;Sn;){if(e.isImportEqualsDeclaration(Sn)||e.isImportClause(Sn)||e.isExportDeclaration(Sn))return Sn.isTypeOnly?2:7;Sn=Sn.parent}return 7}else return V(ye)?Y(ye):e.isDeclarationName(ye)?ue(cn):e.isEntityName(ye)&&e.findAncestor(ye,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:w(ye)?2:ne(ye)?4:e.isTypeParameterDeclaration(cn)?(e.Debug.assert(e.isJSDocTemplateTag(cn.parent)),2):e.isLiteralTypeNode(cn)?2|1:1}e.getMeaningFromLocation=ee;function Y(ye){var cn=ye.kind===159?ye:e.isQualifiedName(ye.parent)&&ye.parent.right===ye?ye.parent:void 0;return cn&&cn.parent.kind===263?7:4}function V(ye){for(;ye.parent.kind===159;)ye=ye.parent;return e.isInternalModuleImportEqualsDeclaration(ye.parent)&&ye.parent.moduleReference===ye}e.isInRightSideOfInternalImportEqualsDeclaration=V;function ne(ye){return _e(ye)||O(ye)}function _e(ye){var cn=ye,Sn=!0;if(cn.parent.kind===159){for(;cn.parent&&cn.parent.kind===159;)cn=cn.parent;Sn=cn.right===ye}return cn.parent.kind===176&&!Sn}function O(ye){var cn=ye,Sn=!0;if(cn.parent.kind===204){for(;cn.parent&&cn.parent.kind===204;)cn=cn.parent;Sn=cn.name===ye}if(!Sn&&cn.parent.kind===226&&cn.parent.parent.kind===289){var Tt=cn.parent.parent.parent;return Tt.kind===255&&cn.parent.parent.token===117||Tt.kind===256&&cn.parent.parent.token===94}return!1}function w(ye){e.isRightSideOfQualifiedNameOrPropertyAccess(ye)&&(ye=ye.parent);switch(ye.kind){case 108:return!e.isExpressionNode(ye);case 190:return!0}switch(ye.parent.kind){case 176:return!0;case 198:return!ye.parent.isTypeOf;case 226:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(ye.parent)}return!1}function b(ye,cn,Sn){return cn===void 0&&(cn=!1),Sn===void 0&&(Sn=!1),$(ye,e.isCallExpression,v,cn,Sn)}e.isCallExpressionTarget=b;function de(ye,cn,Sn){return cn===void 0&&(cn=!1),Sn===void 0&&(Sn=!1),$(ye,e.isNewExpression,v,cn,Sn)}e.isNewExpressionTarget=de;function fe(ye,cn,Sn){return cn===void 0&&(cn=!1),Sn===void 0&&(Sn=!1),$(ye,e.isCallOrNewExpression,v,cn,Sn)}e.isCallOrNewExpressionTarget=fe;function _(ye,cn,Sn){return cn===void 0&&(cn=!1),Sn===void 0&&(Sn=!1),$(ye,e.isTaggedTemplateExpression,W,cn,Sn)}e.isTaggedTemplateTag=_;function U(ye,cn,Sn){return cn===void 0&&(cn=!1),Sn===void 0&&(Sn=!1),$(ye,e.isDecorator,v,cn,Sn)}e.isDecoratorTarget=U;function Z(ye,cn,Sn){return cn===void 0&&(cn=!1),Sn===void 0&&(Sn=!1),$(ye,e.isJsxOpeningLikeElement,x,cn,Sn)}e.isJsxOpeningLikeElementTagName=Z;function v(ye){return ye.expression}function W(ye){return ye.tag}function x(ye){return ye.tagName}function $(ye,cn,Sn,Tt,Vt){var Zr=Tt?E(ye):L(ye);return Vt&&(Zr=e.skipOuterExpressions(Zr)),!!Zr&&!!Zr.parent&&cn(Zr.parent)&&Sn(Zr.parent)===Zr}function L(ye){return B(ye)?ye.parent:ye}e.climbPastPropertyAccess=L;function E(ye){return B(ye)||A(ye)?ye.parent:ye}e.climbPastPropertyOrElementAccess=E;function ae(ye,cn){for(;ye;){if(ye.kind===248&&ye.label.escapedText===cn)return ye.label;ye=ye.parent}return}e.getTargetLabel=ae;function X(ye,cn){return e.isPropertyAccessExpression(ye.expression)?ye.expression.name.text===cn:!1}e.hasPropertyAccessExpressionWithName=X;function ie(ye){var cn;return e.isIdentifier(ye)&&((cn=e.tryCast(ye.parent,e.isBreakOrContinueStatement))===null||cn===void 0?void 0:cn.label)===ye}e.isJumpStatementTarget=ie;function le(ye){var cn;return e.isIdentifier(ye)&&((cn=e.tryCast(ye.parent,e.isLabeledStatement))===null||cn===void 0?void 0:cn.label)===ye}e.isLabelOfLabeledStatement=le;function P(ye){return le(ye)||ie(ye)}e.isLabelName=P;function I(ye){var cn;return((cn=e.tryCast(ye.parent,e.isJSDocTag))===null||cn===void 0?void 0:cn.tagName)===ye}e.isTagName=I;function re(ye){var cn;return((cn=e.tryCast(ye.parent,e.isQualifiedName))===null||cn===void 0?void 0:cn.right)===ye}e.isRightSideOfQualifiedName=re;function B(ye){var cn;return((cn=e.tryCast(ye.parent,e.isPropertyAccessExpression))===null||cn===void 0?void 0:cn.name)===ye}e.isRightSideOfPropertyAccess=B;function A(ye){var cn;return((cn=e.tryCast(ye.parent,e.isElementAccessExpression))===null||cn===void 0?void 0:cn.argumentExpression)===ye}e.isArgumentExpressionOfElementAccess=A;function f(ye){var cn;return((cn=e.tryCast(ye.parent,e.isModuleDeclaration))===null||cn===void 0?void 0:cn.name)===ye}e.isNameOfModuleDeclaration=f;function F(ye){var cn;return e.isIdentifier(ye)&&((cn=e.tryCast(ye.parent,e.isFunctionLike))===null||cn===void 0?void 0:cn.name)===ye}e.isNameOfFunctionDeclaration=F;function g(ye){switch(ye.parent.kind){case 165:case 164:case 291:case 294:case 167:case 166:case 170:case 171:case 259:return e.getNameOfDeclaration(ye.parent)===ye;case 205:return ye.parent.argumentExpression===ye;case 160:return!0;case 194:return ye.parent.parent.kind===192;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=g;function p(ye){return e.isExternalModuleImportEqualsDeclaration(ye.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(ye.parent.parent)===ye}e.isExpressionOfExternalModuleImportEqualsDeclaration=p;function d(ye){for(e.isJSDocTypeAlias(ye)&&(ye=ye.parent.parent);;){if(ye=ye.parent,!ye)return;switch(ye.kind){case 300:case 167:case 166:case 254:case 211:case 170:case 171:case 255:case 256:case 258:case 259:return ye}}}e.getContainerNode=d;function T(ye){switch(ye.kind){case 300:return e.isExternalModule(ye)?"module":"script";case 259:return"module";case 255:case 224:return"class";case 256:return"interface";case 257:case 333:case 340:return"type";case 258:return"enum";case 252:return Da(ye);case 201:return Da(e.getRootDeclaration(ye));case 212:case 254:case 211:return"function";case 170:return"getter";case 171:return"setter";case 167:case 166:return"method";case 291:var cn=ye.initializer;return e.isFunctionLike(cn)?"method":"property";case 165:case 164:case 292:case 293:return"property";case 174:return"index";case 173:return"construct";case 172:return"call";case 169:case 168:return"constructor";case 161:return"type parameter";case 294:return"enum member";case 162:return e.hasSyntacticModifier(ye,16476)?"property":"parameter";case 263:case 268:case 273:case 266:case 272:return"alias";case 219:var Sn=e.getAssignmentDeclarationKind(ye),Tt=ye.right;switch(Sn){case 7:case 8:case 9:case 0:return"";case 1:case 2:var Vt=T(Tt);return Vt===""?"const":Vt;case 3:return e.isFunctionExpression(Tt)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(Tt)?"method":"property";case 6:return"local class";default:return e.assertType(Sn),""}case 79:return e.isImportClause(ye.parent)?"alias":"";case 269:var Zr=T(ye.expression);return Zr===""?"const":Zr;default:return""}function Da(gi){return e.isVarConst(gi)?"const":e.isLet(gi)?"let":"var"}}e.getNodeKind=T;function m(ye){switch(ye.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(ye)&&ye.parent.kind===162;default:return!1}}e.isThis=m;var k=/^\/\/\/\s*</;function N(ye,cn){var Sn=e.getLineStarts(cn),Tt=cn.getLineAndCharacterOfPosition(ye).line;return Sn[Tt]}e.getLineStartPositionForPosition=N;function D(ye,cn){return J(ye.pos,ye.end,cn)}e.rangeContainsRange=D;function R(ye,cn){return q(ye,cn.pos)&&q(ye,cn.end)}e.rangeContainsRangeExclusive=R;function me(ye,cn){return ye.pos<=cn&&cn<=ye.end}e.rangeContainsPosition=me;function q(ye,cn){return ye.pos<cn&&cn<ye.end}e.rangeContainsPositionExclusive=q;function J(ye,cn,Sn){return ye<=Sn.pos&&cn>=Sn.end}e.startEndContainsRange=J;function C(ye,cn,Sn){return ye.pos<=cn&&ye.end>=Sn}e.rangeContainsStartEnd=C;function we(ye,cn,Sn){return te(ye.pos,ye.end,cn,Sn)}e.rangeOverlapsWithStartEnd=we;function Oe(ye,cn,Sn,Tt){return te(ye.getStart(cn),ye.end,Sn,Tt)}e.nodeOverlapsWithStartEnd=Oe;function te(ye,cn,Sn,Tt){var Vt=Math.max(ye,Sn),Zr=Math.min(cn,Tt);return Vt<Zr}e.startEndOverlapsWithStartEnd=te;function Te(ye,cn,Sn){return e.Debug.assert(ye.pos<=cn),cn<ye.end||!be(ye,Sn)}e.positionBelongsToNode=Te;function be(ye,cn){if(ye===void 0||e.nodeIsMissing(ye))return!1;switch(ye.kind){case 255:case 256:case 258:case 203:case 199:case 180:case 233:case 260:case 261:case 267:case 271:return Ce(ye,19,cn);case 290:return be(ye.block,cn);case 207:if(!ye.arguments)return!0;case 206:case 210:case 189:return Ce(ye,21,cn);case 177:case 178:return be(ye.type,cn);case 169:case 170:case 171:case 254:case 211:case 167:case 166:case 173:case 172:case 212:return ye.body?be(ye.body,cn):ye.type?be(ye.type,cn):Se(ye,21,cn);case 259:return!!ye.body&&be(ye.body,cn);case 237:return ye.elseStatement?be(ye.elseStatement,cn):be(ye.thenStatement,cn);case 236:return be(ye.expression,cn)||Se(ye,26,cn);case 202:case 200:case 205:case 160:case 182:return Ce(ye,23,cn);case 174:return ye.type?be(ye.type,cn):Se(ye,23,cn);case 287:case 288:return!1;case 240:case 241:case 242:case 239:return be(ye.statement,cn);case 238:return Se(ye,115,cn)?Ce(ye,21,cn):be(ye.statement,cn);case 179:return be(ye.exprName,cn);case 214:case 213:case 215:case 222:case 223:var Sn=ye;return be(Sn.expression,cn);case 208:return be(ye.template,cn);case 221:var Tt=e.lastOrUndefined(ye.templateSpans);return be(Tt,cn);case 231:return e.nodeIsPresent(ye.literal);case 270:case 264:return e.nodeIsPresent(ye.moduleSpecifier);case 217:return be(ye.operand,cn);case 219:return be(ye.right,cn);case 220:return be(ye.whenFalse,cn);default:return!0}}function Ce(ye,cn,Sn){var Tt=ye.getChildren(Sn);if(Tt.length){var Vt=e.last(Tt);if(Vt.kind===cn)return!0;if(Vt.kind===26&&Tt.length!==1)return Tt[Tt.length-2].kind===cn}return!1}function Ue(ye){var cn=ce(ye);if(!cn)return;var Sn=cn.getChildren(),Tt=e.indexOfNode(Sn,ye);return{listItemIndex:Tt,list:cn}}e.findListItemInfo=Ue;function Se(ye,cn,Sn){return!!$e(ye,cn,Sn)}e.hasChildOfKind=Se;function $e(ye,cn,Sn){return e.find(ye.getChildren(Sn),function(Tt){return Tt.kind===cn})}e.findChildOfKind=$e;function ce(ye){var cn=e.find(ye.parent.getChildren(),function(Sn){return e.isSyntaxList(Sn)&&D(Sn,ye)});return e.Debug.assert(!cn||e.contains(cn.getChildren(),ye)),cn}e.findContainingList=ce;function Le(ye){return ye.kind===88}function qe(ye){return ye.kind===84}function pe(ye){return ye.kind===98}function Me(ye){if(e.isNamedDeclaration(ye))return ye.name;if(e.isClassDeclaration(ye)){var cn=ye.modifiers&&e.find(ye.modifiers,Le);if(cn)return cn}if(e.isClassExpression(ye)){var Sn=e.find(ye.getChildren(),qe);if(Sn)return Sn}}function fn(ye){if(e.isNamedDeclaration(ye))return ye.name;if(e.isFunctionDeclaration(ye)){var cn=e.find(ye.modifiers,Le);if(cn)return cn}if(e.isFunctionExpression(ye)){var Sn=e.find(ye.getChildren(),pe);if(Sn)return Sn}}function Ye(ye){var cn;return e.findAncestor(ye,function(Sn){return e.isTypeNode(Sn)&&(cn=Sn),!e.isQualifiedName(Sn.parent)&&!e.isTypeNode(Sn.parent)&&!e.isTypeElement(Sn.parent)}),cn}function Ne(ye,cn){var Sn=cn.getContextualType(ye);if(Sn)return Sn;var Tt=ye.parent;if(Tt&&e.isBinaryExpression(Tt)&&cl(Tt.operatorToken.kind))return cn.getTypeAtLocation(ye===Tt.left?Tt.right:Tt.left);var Vt=Ye(ye);return Vt&&cn.getTypeAtLocation(Vt)}e.getContextualTypeOrAncestorTypeNodeType=Ne;function je(ye,cn){if(!cn)switch(ye.kind){case 255:case 224:return Me(ye);case 254:case 211:return fn(ye)}if(e.isNamedDeclaration(ye))return ye.name}function xn(ye,cn){if(ye.importClause){if(ye.importClause.name&&ye.importClause.namedBindings)return;if(ye.importClause.name)return ye.importClause.name;if(ye.importClause.namedBindings){if(e.isNamedImports(ye.importClause.namedBindings)){var Sn=e.singleOrUndefined(ye.importClause.namedBindings.elements);return Sn?Sn.name:void 0}else if(e.isNamespaceImport(ye.importClause.namedBindings))return ye.importClause.namedBindings.name}}if(!cn)return ye.moduleSpecifier}function Wn(ye,cn){if(ye.exportClause){if(e.isNamedExports(ye.exportClause)){var Sn=e.singleOrUndefined(ye.exportClause.elements);return Sn?ye.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(ye.exportClause))return ye.exportClause.name}if(!cn)return ye.moduleSpecifier}function dn(ye){if(ye.types.length===1)return ye.types[0].expression}function vn(ye,cn){var Sn=ye.parent;if(e.isModifier(ye)&&(cn||ye.kind!==88)?e.contains(Sn.modifiers,ye):ye.kind===84?e.isClassDeclaration(Sn)||e.isClassExpression(ye):ye.kind===98?e.isFunctionDeclaration(Sn)||e.isFunctionExpression(ye):ye.kind===118?e.isInterfaceDeclaration(Sn):ye.kind===92?e.isEnumDeclaration(Sn):ye.kind===150?e.isTypeAliasDeclaration(Sn):ye.kind===141||ye.kind===140?e.isModuleDeclaration(Sn):ye.kind===100?e.isImportEqualsDeclaration(Sn):ye.kind===135?e.isGetAccessorDeclaration(Sn):ye.kind===147&&e.isSetAccessorDeclaration(Sn)){var Tt=je(Sn,cn);if(Tt)return Tt}if((ye.kind===113||ye.kind===85||ye.kind===119)&&e.isVariableDeclarationList(Sn)&&Sn.declarations.length===1){var Vt=Sn.declarations[0];if(e.isIdentifier(Vt.name))return Vt.name}if(ye.kind===150){if(e.isImportClause(Sn)&&Sn.isTypeOnly){var Tt=xn(Sn.parent,cn);if(Tt)return Tt}if(e.isExportDeclaration(Sn)&&Sn.isTypeOnly){var Tt=Wn(Sn,cn);if(Tt)return Tt}}if(ye.kind===127){if(e.isImportSpecifier(Sn)&&Sn.propertyName||e.isExportSpecifier(Sn)&&Sn.propertyName||e.isNamespaceImport(Sn)||e.isNamespaceExport(Sn))return Sn.name;if(e.isExportDeclaration(Sn)&&Sn.exportClause&&e.isNamespaceExport(Sn.exportClause))return Sn.exportClause.name}if(ye.kind===100&&e.isImportDeclaration(Sn)){var Tt=xn(Sn,cn);if(Tt)return Tt}if(ye.kind===93){if(e.isExportDeclaration(Sn)){var Tt=Wn(Sn,cn);if(Tt)return Tt}if(e.isExportAssignment(Sn))return e.skipOuterExpressions(Sn.expression)}if(ye.kind===144&&e.isExternalModuleReference(Sn))return Sn.expression;if(ye.kind===154&&(e.isImportDeclaration(Sn)||e.isExportDeclaration(Sn))&&Sn.moduleSpecifier)return Sn.moduleSpecifier;if((ye.kind===94||ye.kind===117)&&e.isHeritageClause(Sn)&&Sn.token===ye.kind){var Tt=dn(Sn);if(Tt)return Tt}if(ye.kind===94){if(e.isTypeParameterDeclaration(Sn)&&Sn.constraint&&e.isTypeReferenceNode(Sn.constraint))return Sn.constraint.typeName;if(e.isConditionalTypeNode(Sn)&&e.isTypeReferenceNode(Sn.extendsType))return Sn.extendsType.typeName}if(ye.kind===136&&e.isInferTypeNode(Sn))return Sn.typeParameter.name;if(ye.kind===101&&e.isTypeParameterDeclaration(Sn)&&e.isMappedTypeNode(Sn.parent))return Sn.name;if(ye.kind===139&&e.isTypeOperatorNode(Sn)&&Sn.operator===139&&e.isTypeReferenceNode(Sn.type))return Sn.type.typeName;if(ye.kind===143&&e.isTypeOperatorNode(Sn)&&Sn.operator===143&&e.isArrayTypeNode(Sn.type)&&e.isTypeReferenceNode(Sn.type.elementType))return Sn.type.elementType.typeName;if(!cn){if((ye.kind===103&&e.isNewExpression(Sn)||ye.kind===114&&e.isVoidExpression(Sn)||ye.kind===112&&e.isTypeOfExpression(Sn)||ye.kind===131&&e.isAwaitExpression(Sn)||ye.kind===125&&e.isYieldExpression(Sn)||ye.kind===89&&e.isDeleteExpression(Sn))&&Sn.expression)return e.skipOuterExpressions(Sn.expression);if((ye.kind===101||ye.kind===102)&&e.isBinaryExpression(Sn)&&Sn.operatorToken===ye)return e.skipOuterExpressions(Sn.right);if(ye.kind===127&&e.isAsExpression(Sn)&&e.isTypeReferenceNode(Sn.type))return Sn.type.typeName;if(ye.kind===101&&e.isForInStatement(Sn)||ye.kind===158&&e.isForOfStatement(Sn))return e.skipOuterExpressions(Sn.expression)}return ye}function o(ye){return vn(ye,!1)}e.getAdjustedReferenceLocation=o;function Cn(ye){return vn(ye,!0)}e.getAdjustedRenameLocation=Cn;function z(ye,cn){return tn(ye,cn,function(Sn){return e.isPropertyNameLiteral(Sn)||e.isKeyword(Sn.kind)||e.isPrivateIdentifier(Sn)})}e.getTouchingPropertyName=z;function tn(ye,cn,Sn){return Un(ye,cn,!1,Sn,!1)}e.getTouchingToken=tn;function $n(ye,cn){return Un(ye,cn,!0,void 0,!1)}e.getTokenAtPosition=$n;function Un(ye,cn,Sn,Tt,Vt){var Zr=ye;e:for(;;){for(var Da=0,gi=Zr.getChildren(ye);Da<gi.length;Da++){var Eo=gi[Da],Fo=Sn?Eo.getFullStart():Eo.getStart(ye,!0);if(Fo>cn)break;var bs=Eo.getEnd();if(cn<bs||cn===bs&&(Eo.kind===1||Vt)){Zr=Eo;continue e}else if(Tt&&bs===cn){var Li=Qe(cn,ye,Eo);if(Li&&Tt(Li))return Li}}return Zr}}function oe(ye,cn){for(var Sn=$n(ye,cn);hn(Sn);){var Tt=ke(Sn,Sn.parent,ye);if(!Tt)return;Sn=Tt}return Sn}e.findFirstNonJsxWhitespaceToken=oe;function Pe(ye,cn){var Sn=$n(ye,cn);return e.isToken(Sn)&&cn>Sn.getStart(ye)&&cn<Sn.getEnd()?Sn:Qe(cn,ye)}e.findTokenOnLeftOfPosition=Pe;function ke(ye,cn,Sn){return Tt(cn);function Tt(Vt){return e.isToken(Vt)&&Vt.pos===ye.end?Vt:e.firstDefined(Vt.getChildren(Sn),function(Zr){var Da=Zr.pos<=ye.pos&&Zr.end>ye.end||Zr.pos===ye.end;return Da&&Zn(Zr,Sn)?Tt(Zr):void 0})}}e.findNextToken=ke;function Qe(ye,cn,Sn,Tt){var Vt=Zr(Sn||cn);return e.Debug.assert(!(Vt&&hn(Vt))),Vt;function Zr(Da){if(gn(Da)&&Da.kind!==1)return Da;var gi=Da.getChildren(cn),Eo=e.binarySearchKey(gi,ye,function(Zo,Ds){return Ds},function(Zo,Ds){return ye<gi[Zo].end?!gi[Zo-1]||ye>=gi[Zo-1].end?0:1:-1});if(Eo>=0&&gi[Eo]){var Fo=gi[Eo];if(ye<Fo.end){var bs=Fo.getStart(cn,!Tt),Li=bs>=ye||!Zn(Fo,cn)||hn(Fo);if(Li){var Uo=Ze(gi,Eo,cn);return Uo&&xe(Uo,cn)}else return Zr(Fo)}}e.Debug.assert(Sn!==void 0||Da.kind===300||Da.kind===1||e.isJSDocCommentContainingNode(Da));var Hn=Ze(gi,gi.length,cn);return Hn&&xe(Hn,cn)}}e.findPrecedingToken=Qe;function gn(ye){return e.isToken(ye)&&!hn(ye)}function xe(ye,cn){if(gn(ye))return ye;var Sn=ye.getChildren(cn);if(Sn.length===0)return ye;var Tt=Ze(Sn,Sn.length,cn);return Tt&&xe(Tt,cn)}function Ze(ye,cn,Sn){for(var Tt=cn-1;Tt>=0;Tt--){var Vt=ye[Tt];if(hn(Vt))e.Debug.assert(Tt>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Zn(ye[Tt],Sn))return ye[Tt]}}function wn(ye,cn,Sn){if(Sn===void 0&&(Sn=Qe(cn,ye)),Sn&&e.isStringTextContainingNode(Sn)){var Tt=Sn.getStart(ye),Vt=Sn.getEnd();if(Tt<cn&&cn<Vt)return!0;if(cn===Vt)return!!Sn.isUnterminated}return!1}e.isInString=wn;function Be(ye,cn){var Sn=$n(ye,cn);return Sn?Sn.kind===11||(Sn.kind===29&&Sn.parent.kind===11||(Sn.kind===29&&Sn.parent.kind===286||Sn&&Sn.kind===19&&Sn.parent.kind===286))?!0:Sn.kind===29&&Sn.parent.kind===279:!1}e.isInsideJsxElementOrAttribute=Be;function hn(ye){return e.isJsxText(ye)&&ye.containsOnlyTriviaWhiteSpaces}function Kn(ye,cn){var Sn=$n(ye,cn);return e.isTemplateLiteralKind(Sn.kind)&&cn>Sn.getStart(ye)}e.isInTemplateString=Kn;function Je(ye,cn){var Sn=$n(ye,cn);return e.isJsxText(Sn)||Sn.kind===18&&e.isJsxExpression(Sn.parent)&&e.isJsxElement(Sn.parent.parent)?!0:!!(Sn.kind===29&&e.isJsxOpeningLikeElement(Sn.parent)&&e.isJsxElement(Sn.parent.parent))}e.isInJSXText=Je;function En(ye,cn){function Sn(Tt){for(;Tt;)if(Tt.kind>=277&&Tt.kind<=286||Tt.kind===11||Tt.kind===29||Tt.kind===31||Tt.kind===79||Tt.kind===19||Tt.kind===18||Tt.kind===43)Tt=Tt.parent;else if(Tt.kind===276){if(cn>Tt.getStart(ye))return!0;Tt=Tt.parent}else return!1;return!1}return Sn($n(ye,cn))}e.isInsideJsxElement=En;function Nn(ye,cn,Sn){var Tt=e.tokenToString(ye.kind),Vt=e.tokenToString(cn),Zr=ye.getFullStart(),Da=Sn.text.lastIndexOf(Vt,Zr);if(Da===-1)return;if(Sn.text.lastIndexOf(Tt,Zr-1)<Da){var gi=Qe(Da+1,Sn);if(gi&&gi.kind===cn)return gi}for(var Eo=ye.kind,Fo=0;;){var bs=Qe(ye.getFullStart(),Sn);if(!bs)return;if(ye=bs,ye.kind===cn){if(Fo===0)return ye;Fo--}else ye.kind===Eo&&Fo++}}e.findPrecedingMatchingToken=Nn;function ct(ye,cn,Sn){return cn?ye.getNonNullableType():Sn?ye.getNonOptionalType():ye}e.removeOptionality=ct;function yt(ye,cn,Sn){var Tt=$t(ye,cn);return Tt!==void 0&&(e.isPartOfTypeNode(Tt.called)||Gt(Tt.called,Tt.nTypeArguments,Sn).length!==0||yt(Tt.called,cn,Sn))}e.isPossiblyTypeArgumentPosition=yt;function Gt(ye,cn,Sn){var Tt=Sn.getTypeAtLocation(ye);e.isOptionalChain(ye.parent)&&(Tt=ct(Tt,e.isOptionalChainRoot(ye.parent),!0));var Vt=e.isNewExpression(ye.parent)?Tt.getConstructSignatures():Tt.getCallSignatures();return Vt.filter(function(Zr){return!!Zr.typeParameters&&Zr.typeParameters.length>=cn})}e.getPossibleGenericSignatures=Gt;function $t(ye,cn){if(cn.text.lastIndexOf("<",ye?ye.pos:cn.text.length)===-1)return;for(var Sn=ye,Tt=0,Vt=0;Sn;){switch(Sn.kind){case 29:if(Sn=Qe(Sn.getFullStart(),cn),Sn&&Sn.kind===28&&(Sn=Qe(Sn.getFullStart(),cn)),!Sn||!e.isIdentifier(Sn))return;if(!Tt)return e.isDeclarationName(Sn)?void 0:{called:Sn,nTypeArguments:Vt};Tt--;break;case 49:Tt=3;break;case 48:Tt=2;break;case 31:Tt++;break;case 19:if(Sn=Nn(Sn,18,cn),!Sn)return;break;case 21:if(Sn=Nn(Sn,20,cn),!Sn)return;break;case 23:if(Sn=Nn(Sn,22,cn),!Sn)return;break;case 27:Vt++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 139:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(Sn))break;return}Sn=Qe(Sn.getFullStart(),cn)}return}e.getPossibleTypeArgumentsInfo=$t;function Ke(ye,cn,Sn){return e.formatting.getRangeOfEnclosingComment(ye,cn,void 0,Sn)}e.isInComment=Ke;function Vn(ye,cn){var Sn=$n(ye,cn);return!!e.findAncestor(Sn,e.isJSDoc)}e.hasDocComment=Vn;function Zn(ye,cn){return ye.kind===1?!!ye.jsDoc:ye.getWidth(cn)!==0}function Re(ye,cn){cn===void 0&&(cn=0);var Sn=[],Tt=e.isDeclaration(ye)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(ye)&~cn:0;return Tt&8&&Sn.push("private"),Tt&16&&Sn.push("protected"),Tt&4&&Sn.push("public"),(Tt&32||e.isClassStaticBlockDeclaration(ye))&&Sn.push("static"),Tt&128&&Sn.push("abstract"),Tt&1&&Sn.push("export"),Tt&8192&&Sn.push("deprecated"),ye.flags&8388608&&Sn.push("declare"),ye.kind===269&&Sn.push("export"),Sn.length>0?Sn.join(","):""}e.getNodeModifiers=Re;function Pn(ye){return ye.kind===176||ye.kind===206?ye.typeArguments:e.isFunctionLike(ye)||ye.kind===255||ye.kind===256?ye.typeParameters:void 0}e.getTypeArgumentOrTypeParameterList=Pn;function rt(ye){return ye===2||ye===3}e.isComment=rt;function Yn(ye){return!!(ye===10||ye===13||e.isTemplateLiteralKind(ye))}e.isStringOrRegularExpressionOrTemplateLiteral=Yn;function gt(ye){return 18<=ye&&ye<=78}e.isPunctuation=gt;function lt(ye,cn,Sn){return e.isTemplateLiteralKind(ye.kind)&&ye.getStart(Sn)<cn&&cn<ye.end||!!ye.isUnterminated&&cn===ye.end}e.isInsideTemplateLiteral=lt;function Fe(ye){switch(ye){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=Fe;function Bn(ye){var cn=e.clone(ye);return e.setConfigFileInOptions(cn,ye&&ye.configFile),cn}e.cloneCompilerOptions=Bn;function K(ye){if(ye.kind===202||ye.kind===203){if(ye.parent.kind===219&&ye.parent.left===ye&&ye.parent.operatorToken.kind===63)return!0;if(ye.parent.kind===242&&ye.parent.initializer===ye)return!0;if(K(ye.parent.kind===291?ye.parent.parent:ye.parent))return!0}return!1}e.isArrayLiteralOrObjectLiteralDestructuringPattern=K;function An(ye,cn){return ln(ye,cn,!0)}e.isInReferenceComment=An;function Fn(ye,cn){return ln(ye,cn,!1)}e.isInNonReferenceComment=Fn;function ln(ye,cn,Sn){var Tt=Ke(ye,cn,void 0);return!!Tt&&Sn===k.test(ye.text.substring(Tt.pos,Tt.end))}function Ln(ye){if(!ye)return;switch(ye.kind){case 10:case 14:return Dn(ye);default:return Xe(ye)}}e.getReplacementSpanForContextToken=Ln;function Xe(ye,cn,Sn){return e.createTextSpanFromBounds(ye.getStart(cn),(Sn||ye).getEnd())}e.createTextSpanFromNode=Xe;function Dn(ye){return ye.isUnterminated?void 0:e.createTextSpanFromBounds(ye.getStart()+1,ye.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=Dn;function rn(ye,cn){return e.createRange(ye.getStart(cn),ye.end)}e.createTextRangeFromNode=rn;function qn(ye){return e.createTextSpanFromBounds(ye.pos,ye.end)}e.createTextSpanFromRange=qn;function it(ye){return e.createRange(ye.start,ye.start+ye.length)}e.createTextRangeFromSpan=it;function ht(ye,cn,Sn){return Et(e.createTextSpan(ye,cn),Sn)}e.createTextChangeFromStartLength=ht;function Et(ye,cn){return{span:ye,newText:cn}}e.createTextChange=Et,e.typeKeywords=[129,128,156,132,95,136,139,142,104,145,146,143,148,149,110,114,151,152,153];function zt(ye){return e.contains(e.typeKeywords,ye)}e.isTypeKeyword=zt;function fr(ye){return ye.kind===150}e.isTypeKeywordToken=fr;function br(ye){return!!(ye.flags&1536)&&ye.name.charCodeAt(0)===34}e.isExternalModuleSymbol=br;function Jt(){var ye=[];return function(cn){var Sn=e.getNodeId(cn);return!ye[Sn]&&(ye[Sn]=!0)}}e.nodeSeenTracker=Jt;function mr(ye){return ye.getText(0,ye.getLength())}e.getSnapshotText=mr;function Ht(ye,cn){for(var Sn="",Tt=0;Tt<cn;Tt++)Sn+=ye;return Sn}e.repeatString=Ht;function Xr(ye){return ye.isTypeParameter()&&ye.getConstraint()||ye}e.skipConstraint=Xr;function At(ye){return ye.kind===160?e.isStringOrNumericLiteralLike(ye.expression)?ye.expression.text:void 0:e.isPrivateIdentifier(ye)?e.idText(ye):e.getTextOfIdentifierOrLiteral(ye)}e.getNameFromPropertyName=At;function Wr(ye){return ye.getSourceFiles().some(function(cn){return!cn.isDeclarationFile&&!ye.isSourceFileFromExternalLibrary(cn)&&!!(cn.externalModuleIndicator||cn.commonJsModuleIndicator)})}e.programContainsModules=Wr;function Or(ye){return ye.getSourceFiles().some(function(cn){return!cn.isDeclarationFile&&!ye.isSourceFileFromExternalLibrary(cn)&&!!cn.externalModuleIndicator})}e.programContainsEs6Modules=Or;function Ja(ye){return!!ye.module||ye.target>=2||!!ye.noEmit}e.compilerOptionsIndicateEs6Modules=Ja;function qa(ye,cn){return{fileExists:function(Sn){return ye.fileExists(Sn)},getCurrentDirectory:function(){return cn.getCurrentDirectory()},readFile:e.maybeBind(cn,cn.readFile),useCaseSensitiveFileNames:e.maybeBind(cn,cn.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(cn,cn.getSymlinkCache)||ye.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(cn,cn.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(cn,cn.getGlobalTypingsCacheLocation),redirectTargetsMap:ye.redirectTargetsMap,getProjectReferenceRedirect:function(Sn){return ye.getProjectReferenceRedirect(Sn)},isSourceOfProjectReferenceRedirect:function(Sn){return ye.isSourceOfProjectReferenceRedirect(Sn)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(cn,cn.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return ye.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=qa;function eo(ye,cn){return pr(pr({},qa(ye,cn)),{getCommonSourceDirectory:function(){return ye.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=eo;function Va(ye,cn,Sn,Tt){return ye||cn&&cn.length?la(ye,cn,Sn,Tt):void 0}e.makeImportIfNecessary=Va;function la(ye,cn,Sn,Tt,Vt){return e.factory.createImportDeclaration(void 0,void 0,ye||cn?e.factory.createImportClause(!!Vt,ye,cn&&cn.length?e.factory.createNamedImports(cn):void 0):void 0,typeof Sn=="string"?wt(Sn,Tt):Sn)}e.makeImport=la;function wt(ye,cn){return e.factory.createStringLiteral(ye,cn===0)}e.makeStringLiteral=wt;var rr;(function(ye){ye[ye.Single=0]="Single",ye[ye.Double=1]="Double"})(rr=e.QuotePreference||(e.QuotePreference={}));function Wt(ye,cn){return e.isStringDoubleQuoted(ye,cn)?1:0}e.quotePreferenceFromString=Wt;function Pr(ye,cn){if(cn.quotePreference&&cn.quotePreference!=="auto")return cn.quotePreference==="single"?0:1;var Sn=ye.imports&&e.find(ye.imports,function(Tt){return e.isStringLiteral(Tt)&&!e.nodeIsSynthesized(Tt.parent)});return Sn?Wt(Sn,ye):1}e.getQuotePreference=Pr;function ra(ye){switch(ye){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(ye)}}e.getQuoteFromPreference=ra;function Lt(ye){var cn=xt(ye);return cn===void 0?void 0:e.unescapeLeadingUnderscores(cn)}e.symbolNameNoDefault=Lt;function xt(ye){return ye.escapedName!=="default"?ye.escapedName:e.firstDefined(ye.declarations,function(cn){var Sn=e.getNameOfDeclaration(cn);return Sn&&Sn.kind===79?Sn.escapedText:void 0})}e.symbolEscapedNameNoDefault=xt;function Yt(ye){return e.isStringLiteralLike(ye)&&(e.isExternalModuleReference(ye.parent)||e.isImportDeclaration(ye.parent)||e.isRequireCall(ye.parent,!1)&&ye.parent.arguments[0]===ye||e.isImportCall(ye.parent)&&ye.parent.arguments[0]===ye)}e.isModuleSpecifierLike=Yt;function Qt(ye){return e.isBindingElement(ye)&&e.isObjectBindingPattern(ye.parent)&&e.isIdentifier(ye.name)&&!ye.propertyName}e.isObjectBindingElementWithoutPropertyName=Qt;function sr(ye,cn){var Sn=ye.getTypeAtLocation(cn.parent);return Sn&&ye.getPropertyOfType(Sn,cn.name.text)}e.getPropertySymbolFromBindingElement=sr;function at(ye,cn,Sn){if(!ye)return;for(;ye.parent;){if(e.isSourceFile(ye.parent)||!ea(Sn,ye.parent,cn))return ye;ye=ye.parent}}e.getParentNodeInSpan=at;function ea(ye,cn,Sn){return e.textSpanContainsPosition(ye,cn.getStart(Sn))&&cn.getEnd()<=e.textSpanEnd(ye)}function Fa(ye,cn){return ye.modifiers&&e.find(ye.modifiers,function(Sn){return Sn.kind===cn})}e.findModifier=Fa;function li(ye,cn,Sn,Tt){var Vt=e.isArray(Sn)?Sn[0]:Sn,Zr=Vt.kind===235?e.isRequireVariableStatement:e.isAnyImportSyntax,Da=e.filter(cn.statements,Zr),gi=e.isArray(Sn)?e.stableSort(Sn,e.OrganizeImports.compareImportsOrRequireStatements):[Sn];if(!Da.length)ye.insertNodesAtTopOfFile(cn,gi,Tt);else if(Da&&e.OrganizeImports.importsAreSorted(Da))for(var Eo=0,Fo=gi;Eo<Fo.length;Eo++){var bs=Fo[Eo],Li=e.OrganizeImports.getImportDeclarationInsertionIndex(Da,bs);if(Li===0){var Uo=Da[0]===cn.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};ye.insertNodeBefore(cn,Da[0],bs,!1,Uo)}else{var Hn=Da[Li-1];ye.insertNodeAfter(cn,Hn,bs)}}else{var Zo=e.lastOrUndefined(Da);Zo?ye.insertNodesAfter(cn,Zo,gi):ye.insertNodesAtTopOfFile(cn,gi,Tt)}}e.insertImports=li;function Si(ye,cn){return e.Debug.assert(ye.isTypeOnly),e.cast(ye.getChildAt(0,cn),fr)}e.getTypeKeywordOfTypeOnlyImport=Si;function Qr(ye,cn){return!!ye&&!!cn&&ye.start===cn.start&&ye.length===cn.length}e.textSpansEqual=Qr;function ci(ye,cn){return ye.fileName===cn.fileName&&Qr(ye.textSpan,cn.textSpan)}e.documentSpansEqual=ci;function Mi(ye,cn){if(ye){for(var Sn=0;Sn<ye.length;Sn++)if(ye.indexOf(ye[Sn])===Sn){var Tt=cn(ye[Sn],Sn);if(Tt)return Tt}}return}e.forEachUnique=Mi;function ro(ye,cn,Sn){for(var Tt=cn;Tt<Sn;Tt++)if(!e.isWhiteSpaceLike(ye.charCodeAt(Tt)))return!1;return!0}e.isTextWhiteSpaceLike=ro;function xi(ye){return ye.declarations&&ye.declarations.length>0&&ye.declarations[0].kind===162}e.isFirstDeclarationOfSymbolParameter=xi;var ui=lo();function lo(){var ye=e.defaultMaximumTruncationLength*10,cn,Sn,Tt,Vt;bs();var Zr=function(Li){return gi(Li,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Li=cn.length&&cn[cn.length-1].text;return Vt>ye&&Li&&Li!=="..."&&(e.isWhiteSpaceLike(Li.charCodeAt(Li.length-1))||cn.push(Vi(" ",e.SymbolDisplayPartKind.space)),cn.push(Vi("...",e.SymbolDisplayPartKind.punctuation))),cn},writeKeyword:function(Li){return gi(Li,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Li){return gi(Li,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Li){return gi(Li,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Li){return gi(Li,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Li){return gi(Li,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Li){return gi(Li,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Li){return gi(Li,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Li){return gi(Li,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Li){return gi(Li,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:Eo,writeLine:Fo,write:Zr,writeComment:Zr,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return Tt},increaseIndent:function(){Tt++},decreaseIndent:function(){Tt--},clear:bs,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Da(){if(Vt>ye)return;if(Sn){var Li=e.getIndentString(Tt);Li&&(Vt+=Li.length,cn.push(Vi(Li,e.SymbolDisplayPartKind.space))),Sn=!1}}function gi(Li,Uo){if(Vt>ye)return;Da(),Vt+=Li.length,cn.push(Vi(Li,Uo))}function Eo(Li,Uo){if(Vt>ye)return;Da(),Vt+=Li.length,cn.push(xo(Li,Uo))}function Fo(){if(Vt>ye)return;Vt+=1,cn.push(yn()),Sn=!0}function bs(){cn=[],Sn=!0,Tt=0,Vt=0}}function xo(ye,cn){return Vi(ye,Sn(cn));function Sn(Tt){var Vt=Tt.flags;return Vt&3?xi(Tt)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:Vt&4||(Vt&32768||Vt&65536)?e.SymbolDisplayPartKind.propertyName:Vt&8?e.SymbolDisplayPartKind.enumMemberName:Vt&16?e.SymbolDisplayPartKind.functionName:Vt&32?e.SymbolDisplayPartKind.className:Vt&64?e.SymbolDisplayPartKind.interfaceName:Vt&384?e.SymbolDisplayPartKind.enumName:Vt&1536?e.SymbolDisplayPartKind.moduleName:Vt&8192?e.SymbolDisplayPartKind.methodName:Vt&262144?e.SymbolDisplayPartKind.typeParameterName:Vt&524288||Vt&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=xo;function Vi(ye,cn){return{text:ye,kind:e.SymbolDisplayPartKind[cn]}}e.displayPart=Vi;function os(){return Vi(" ",e.SymbolDisplayPartKind.space)}e.spacePart=os;function Qi(ye){return Vi(e.tokenToString(ye),e.SymbolDisplayPartKind.keyword)}e.keywordPart=Qi;function mo(ye){return Vi(e.tokenToString(ye),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=mo;function Rs(ye){return Vi(e.tokenToString(ye),e.SymbolDisplayPartKind.operator)}e.operatorPart=Rs;function Ls(ye){return Vi(ye,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=Ls;function Ca(ye){return Vi(ye,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Ca;function ai(ye){var cn=e.stringToToken(ye);return cn===void 0?Pi(ye):Qi(cn)}e.textOrKeywordPart=ai;function Pi(ye){return Vi(ye,e.SymbolDisplayPartKind.text)}e.textPart=Pi;function wo(ye){return Vi(ye,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=wo;function Lo(ye){return Vi(ye,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=Lo;function _s(ye){return Vi(ye,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=_s;function Oi(ye,cn){return{text:e.getTextOfNode(ye),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(cn).fileName,textSpan:Xe(cn)}}}e.linkNamePart=Oi;function Io(ye){return Vi(ye,e.SymbolDisplayPartKind.link)}e.linkPart=Io;function fs(ye,cn){var Sn,Tt=e.isJSDocLink(ye)?"link":e.isJSDocLinkCode(ye)?"linkcode":"linkplain",Vt=[Io("{@"+Tt+" ")];if(!ye.name)ye.text&&Vt.push(_s(ye.text));else{var Zr=cn==null?void 0:cn.getSymbolAtLocation(ye.name),Da=(Zr==null?void 0:Zr.valueDeclaration)||((Sn=Zr==null?void 0:Zr.declarations)===null||Sn===void 0?void 0:Sn[0]);Da?(Vt.push(Oi(ye.name,Da)),ye.text&&Vt.push(_s(ye.text))):Vt.push(_s(e.getTextOfNode(ye.name)+" "+ye.text))}return Vt.push(Io("}")),Vt}e.buildLinkParts=fs;var Mo=`\r
|
|
|
`;function Ms(ye,cn){var Sn;return(cn==null?void 0:cn.newLineCharacter)||((Sn=ye.getNewLine)===null||Sn===void 0?void 0:Sn.call(ye))||Mo}e.getNewLineOrDefaultFromHost=Ms;function yn(){return Vi(`
|
|
|
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=yn;function _t(ye){try{return ye(ui),ui.displayParts()}finally{ui.clear()}}e.mapToDisplayParts=_t;function tr(ye,cn,Sn,Tt){return Tt===void 0&&(Tt=0),_t(function(Vt){ye.writeType(cn,Sn,Tt|1024|16384,Vt)})}e.typeToDisplayParts=tr;function oa(ye,cn,Sn,Tt,Vt){return Vt===void 0&&(Vt=0),_t(function(Zr){ye.writeSymbol(cn,Sn,Tt,Vt|8,Zr)})}e.symbolToDisplayParts=oa;function Za(ye,cn,Sn,Tt){return Tt===void 0&&(Tt=0),Tt|=16384|1024|32|8192,_t(function(Vt){ye.writeSignature(cn,Sn,Tt,void 0,Vt)})}e.signatureToDisplayParts=Za;function Ga(ye){return!!ye.parent&&e.isImportOrExportSpecifier(ye.parent)&&ye.parent.propertyName===ye}e.isImportOrExportSpecifierName=Ga;function He(ye,cn){return e.ensureScriptKind(ye,cn.getScriptKind&&cn.getScriptKind(ye))}e.getScriptKind=He;function se(ye,cn){for(var Sn=ye;j(Sn)||pn(Sn)&&Sn.target;)pn(Sn)&&Sn.target?Sn=Sn.target:Sn=e.skipAlias(Sn,cn);return Sn}e.getSymbolTarget=se;function pn(ye){return(ye.flags&33554432)!==0}function j(ye){return(ye.flags&2097152)!==0}function De(ye,cn){return e.getSymbolId(e.skipAlias(ye,cn))}e.getUniqueSymbolId=De;function Ve(ye,cn){for(;e.isWhiteSpaceLike(ye.charCodeAt(cn));)cn+=1;return cn}e.getFirstNonSpaceCharacterPosition=Ve;function un(ye,cn){for(;cn>-1&&e.isWhiteSpaceSingleLine(ye.charCodeAt(cn));)cn-=1;return cn+1}e.getPrecedingNonSpaceCharacterPosition=un;function jn(ye,cn){cn===void 0&&(cn=!0);var Sn=ye&&St(ye);return Sn&&!cn&&na(Sn),Sn}e.getSynthesizedDeepClone=jn;function mt(ye,cn,Sn){var Tt=Sn(ye);return Tt?e.setOriginalNode(Tt,ye):Tt=St(ye,Sn),Tt&&!cn&&na(Tt),Tt}e.getSynthesizedDeepCloneWithReplacements=mt;function St(ye,cn){var Sn=cn?function(Da){return mt(Da,!0,cn)}:jn,Tt=cn?function(Da){return Da&&_r(Da,!0,cn)}:function(Da){return Da&&ir(Da)},Vt=e.visitEachChild(ye,Sn,e.nullTransformationContext,Tt,Sn);if(Vt===ye){var Zr=e.isStringLiteral(ye)?e.setOriginalNode(e.factory.createStringLiteralFromNode(ye),ye):e.isNumericLiteral(ye)?e.setOriginalNode(e.factory.createNumericLiteral(ye.text,ye.numericLiteralFlags),ye):e.factory.cloneNode(ye);return e.setTextRange(Zr,ye)}return Vt.parent=void 0,Vt}function ir(ye,cn){return cn===void 0&&(cn=!0),ye&&e.factory.createNodeArray(ye.map(function(Sn){return jn(Sn,cn)}),ye.hasTrailingComma)}e.getSynthesizedDeepClones=ir;function _r(ye,cn,Sn){return e.factory.createNodeArray(ye.map(function(Tt){return mt(Tt,cn,Sn)}),ye.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=_r;function na(ye){wa(ye),za(ye)}e.suppressLeadingAndTrailingTrivia=na;function wa(ye){co(ye,512,Ss)}e.suppressLeadingTrivia=wa;function za(ye){co(ye,1024,e.getLastChild)}e.suppressTrailingTrivia=za;function bi(ye,cn){var Sn=ye.getSourceFile(),Tt=Sn.text;Xi(ye,Tt)?Js(ye,cn,Sn):yl(ye,cn,Sn),gl(ye,cn,Sn)}e.copyComments=bi;function Xi(ye,cn){for(var Sn=ye.getFullStart(),Tt=ye.getStart(),Vt=Sn;Vt<Tt;Vt++)if(cn.charCodeAt(Vt)===10)return!0;return!1}function co(ye,cn,Sn){e.addEmitFlags(ye,cn);var Tt=Sn(ye);Tt&&co(Tt,cn,Sn)}function Ss(ye){return ye.forEachChild(function(cn){return cn})}function No(ye,cn){for(var Sn=ye,Tt=1;!e.isFileLevelUniqueName(cn,Sn);Tt++)Sn=ye+"_"+Tt;return Sn}e.getUniqueName=No;function Ks(ye,cn,Sn,Tt){for(var Vt=0,Zr=-1,Da=0,gi=ye;Da<gi.length;Da++){var Eo=gi[Da],Fo=Eo.fileName,bs=Eo.textChanges;e.Debug.assert(Fo===cn);for(var Li=0,Uo=bs;Li<Uo.length;Li++){var Hn=Uo[Li],Zo=Hn.span,Ds=Hn.newText,Vs=ac(Ds,Sn);if(Vs!==-1&&(Zr=Zo.start+Vt+Vs,!Tt))return Zr;Vt+=Ds.length-Zo.length}}return e.Debug.assert(Tt),e.Debug.assert(Zr>=0),Zr}e.getRenameLocation=Ks;function Js(ye,cn,Sn,Tt,Vt){e.forEachLeadingCommentRange(Sn.text,ye.pos,Ol(cn,Sn,Tt,Vt,e.addSyntheticLeadingComment))}e.copyLeadingComments=Js;function gl(ye,cn,Sn,Tt,Vt){e.forEachTrailingCommentRange(Sn.text,ye.end,Ol(cn,Sn,Tt,Vt,e.addSyntheticTrailingComment))}e.copyTrailingComments=gl;function yl(ye,cn,Sn,Tt,Vt){e.forEachTrailingCommentRange(Sn.text,ye.pos,Ol(cn,Sn,Tt,Vt,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=yl;function Ol(ye,cn,Sn,Tt,Vt){return function(Zr,Da,gi,Eo){gi===3?(Zr+=2,Da-=2):Zr+=2,Vt(ye,Sn||gi,cn.text.slice(Zr,Da),Tt!==void 0?Tt:Eo)}}function ac(ye,cn){if(e.startsWith(ye,cn))return 0;var Sn=ye.indexOf(" "+cn);return Sn===-1&&(Sn=ye.indexOf("."+cn)),Sn===-1&&(Sn=ye.indexOf('"'+cn)),Sn===-1?-1:Sn+1}function vs(ye){return e.isBinaryExpression(ye)&&ye.operatorToken.kind===27||e.isObjectLiteralExpression(ye)||e.isAsExpression(ye)&&e.isObjectLiteralExpression(ye.expression)}e.needsParentheses=vs;function ic(ye,cn){var Sn=ye.parent;switch(Sn.kind){case 207:return cn.getContextualType(Sn);case 219:{var Tt=Sn,Vt=Tt.left,Zr=Tt.operatorToken,Da=Tt.right;return cl(Zr.kind)?cn.getTypeAtLocation(ye===Da?Vt:Da):cn.getContextualType(ye)}case 287:return Sn.expression===ye?Jn(Sn,cn):void 0;default:return cn.getContextualType(ye)}}e.getContextualTypeFromParent=ic;function Pl(ye,cn,Sn){var Tt=Pr(ye,cn),Vt=JSON.stringify(Sn);return Tt===0?"'"+e.stripQuotes(Vt).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":Vt}e.quote=Pl;function cl(ye){switch(ye){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=cl;function nl(ye){switch(ye.kind){case 10:case 14:case 221:case 208:return!0;default:return!1}}e.isStringLiteralOrTemplate=nl;function he(ye){return!!ye.getStringIndexType()||!!ye.getNumberIndexType()}e.hasIndexSignature=he;function Jn(ye,cn){return cn.getTypeAtLocation(ye.parent.parent.expression)}e.getSwitchedType=Jn,e.ANONYMOUS="anonymous function";function Ee(ye,cn,Sn,Tt){var Vt=Sn.getTypeChecker(),Zr=!0,Da=function(){Zr=!1},gi=Vt.typeToTypeNode(ye,cn,1,{trackSymbol:function(Eo,Fo,bs){return Zr=Zr&&Vt.isSymbolAccessible(Eo,Fo,bs,!1).accessibility===0,!Zr},reportInaccessibleThisError:Da,reportPrivateInBaseOfClassExpression:Da,reportInaccessibleUniqueSymbolError:Da,moduleResolverHost:eo(Sn,Tt)});return Zr?gi:void 0}e.getTypeNodeIfAccessible=Ee;function Mn(ye){return ye===172||ye===173||ye===174||ye===164||ye===166}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Mn;function dr(ye){return ye===254||ye===169||ye===167||ye===170||ye===171}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=dr;function Yr(ye){return ye===259}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Yr;function da(ye){return ye===235||ye===236||ye===238||ye===243||ye===244||ye===245||ye===249||ye===251||ye===165||ye===257||ye===264||ye===263||ye===270||ye===262||ye===269}e.syntaxRequiresTrailingSemicolonOrASI=da,e.syntaxMayBeASICandidate=e.or(Mn,dr,Yr,da);function ya(ye,cn){var Sn=ye.getLastToken(cn);if(Sn&&Sn.kind===26)return!1;if(Mn(ye.kind)){if(Sn&&Sn.kind===27)return!1}else if(Yr(ye.kind)){var Tt=e.last(ye.getChildren(cn));if(Tt&&e.isModuleBlock(Tt))return!1}else if(dr(ye.kind)){var Tt=e.last(ye.getChildren(cn));if(Tt&&e.isFunctionBlock(Tt))return!1}else if(!da(ye.kind))return!1;if(ye.kind===238)return!0;var Vt=e.findAncestor(ye,function(Eo){return!Eo.parent}),Zr=ke(ye,Vt,cn);if(!Zr||Zr.kind===19)return!0;var Da=cn.getLineAndCharacterOfPosition(ye.getEnd()).line,gi=cn.getLineAndCharacterOfPosition(Zr.getStart(cn)).line;return Da!==gi}function bo(ye,cn,Sn){var Tt=e.findAncestor(cn,function(Vt){return Vt.end!==ye?"quit":e.syntaxMayBeASICandidate(Vt.kind)});return!!Tt&&ya(Tt,Sn)}e.positionIsASICandidate=bo;function On(ye){var cn=0,Sn=0,Tt=5;return e.forEachChild(ye,function Vt(Zr){if(da(Zr.kind)){var Da=Zr.getLastToken(ye);Da&&Da.kind===26?cn++:Sn++}return cn+Sn>=Tt?!0:e.forEachChild(Zr,Vt)}),cn===0&&Sn<=1?!0:cn/Sn>1/Tt}e.probablyUsesSemicolons=On;function Bo(ye,cn){return qs(ye,ye.getDirectories,cn)||[]}e.tryGetDirectories=Bo;function ps(ye,cn,Sn,Tt,Vt){return qs(ye,ye.readDirectory,cn,Sn,Tt,Vt)||e.emptyArray}e.tryReadDirectory=ps;function ms(ye,cn){return qs(ye,ye.fileExists,cn)}e.tryFileExists=ms;function _l(ye,cn){return Gi(function(){return e.directoryProbablyExists(cn,ye)})||!1}e.tryDirectoryExists=_l;function Gi(ye){try{return ye()}catch(cn){return}}e.tryAndIgnoreErrors=Gi;function qs(ye,cn){for(var Sn=[],Tt=2;Tt<arguments.length;Tt++)Sn[Tt-2]=arguments[Tt];return Gi(function(){return cn&&cn.apply(ye,Sn)})}e.tryIOAndConsumeErrors=qs;function pl(ye,cn,Sn){var Tt=[];return e.forEachAncestorDirectory(ye,function(Vt){if(Vt===Sn)return!0;var Zr=e.combinePaths(Vt,"package.json");ms(cn,Zr)&&Tt.push(Zr)}),Tt}e.findPackageJsons=pl;function Ec(ye,cn){var Sn;return e.forEachAncestorDirectory(ye,function(Tt){if(Tt==="node_modules")return!0;if(Sn=e.findConfigFile(Tt,function(Vt){return ms(cn,Vt)},"package.json"),Sn)return!0}),Sn}e.findPackageJson=Ec;function lc(ye,cn){if(!cn.fileExists)return[];var Sn=[];return e.forEachAncestorDirectory(e.getDirectoryPath(ye),function(Tt){var Vt=e.combinePaths(Tt,"package.json");if(cn.fileExists(Vt)){var Zr=Pc(Vt,cn);Zr&&Sn.push(Zr)}}),Sn}e.getPackageJsonsVisibleToFile=lc;function Pc(ye,cn){if(!cn.readFile)return;var Sn=["dependencies","devDependencies","optionalDependencies","peerDependencies"],Tt=cn.readFile(ye)||"",Vt=au(Tt),Zr={};if(Vt)for(var Da=0,gi=Sn;Da<gi.length;Da++){var Eo=gi[Da],Fo=Vt[Eo];if(!Fo)continue;var bs=new e.Map;for(var Li in Fo)bs.set(Li,Fo[Li]);Zr[Eo]=bs}var Uo=[[1,Zr.dependencies],[2,Zr.devDependencies],[8,Zr.optionalDependencies],[4,Zr.peerDependencies]];return pr(pr({},Zr),{parseable:!!Vt,fileName:ye,get:Hn,has:function(Zo,Ds){return!!Hn(Zo,Ds)}});function Hn(Zo,Ds){Ds===void 0&&(Ds=15);for(var Vs=0,iu=Uo;Vs<iu.length;Vs++){var fc=iu[Vs],ou=fc[0],oo=fc[1];if(oo&&Ds&ou){var tl=oo.get(Zo);if(tl!==void 0)return tl}}}}e.createPackageJsonInfo=Pc;function oc(ye,cn,Sn){var Tt=(Sn.getPackageJsonsVisibleToFile&&Sn.getPackageJsonsVisibleToFile(ye.fileName)||lc(ye.fileName,Sn)).filter(function(Uo){return Uo.parseable}),Vt;return{allowsImportingAmbientModule:Da,allowsImportingSourceFile:gi,allowsImportingSpecifier:Eo};function Zr(Uo){for(var Hn=Li(Uo),Zo=0,Ds=Tt;Zo<Ds.length;Zo++){var Vs=Ds[Zo];if(Vs.has(Hn)||Vs.has(e.getTypesPackageName(Hn)))return!0}return!1}function Da(Uo,Hn){if(!Tt.length||!Uo.valueDeclaration)return!0;var Zo=Uo.valueDeclaration.getSourceFile(),Ds=bs(Zo.fileName,Hn);if(typeof Ds=="undefined")return!0;var Vs=e.stripQuotes(Uo.getName());return Fo(Vs)?!0:Zr(Ds)||Zr(Vs)}function gi(Uo,Hn){if(!Tt.length)return!0;var Zo=bs(Uo.fileName,Hn);return Zo?Zr(Zo):!0}function Eo(Uo){return!Tt.length||Fo(Uo)||(e.pathIsRelative(Uo)||e.isRootedDiskPath(Uo))?!0:Zr(Uo)}function Fo(Uo){return!!(e.isSourceFileJS(ye)&&e.JsTyping.nodeCoreModules.has(Uo)&&(Vt===void 0&&(Vt=cc(ye)),Vt))}function bs(Uo,Hn){if(!e.stringContains(Uo,"node_modules"))return;var Zo=e.moduleSpecifiers.getNodeModulesPackageName(Sn.getCompilationSettings(),ye.path,Uo,Hn,cn);if(!Zo)return;if(!e.pathIsRelative(Zo)&&!e.isRootedDiskPath(Zo))return Li(Zo)}function Li(Uo){var Hn=e.getPathComponents(e.getPackageNameFromTypesPackageName(Uo)).slice(1);return e.startsWith(Hn[0],"@")?Hn[0]+"/"+Hn[1]:Hn[0]}}e.createPackageJsonImportFilter=oc;function au(ye){try{return JSON.parse(ye)}catch(cn){return}}function cc(ye){return e.some(ye.imports,function(cn){var Sn=cn.text;return e.JsTyping.nodeCoreModules.has(Sn)})}e.consumesNodeCoreModules=cc;function Zl(ye){return e.contains(e.getPathComponents(ye),"node_modules")}e.isInsideNodeModules=Zl;function kn(ye){return ye.file!==void 0&&ye.start!==void 0&&ye.length!==void 0}e.isDiagnosticWithLocation=kn;function ot(ye,cn){var Sn=Xe(ye),Tt=e.binarySearchKey(cn,Sn,e.identity,e.compareTextSpans);if(Tt>=0){var Vt=cn[Tt];return e.Debug.assertEqual(Vt.file,ye.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(Vt,kn)}}e.findDiagnosticForNode=ot;function Nt(ye,cn){var Sn,Tt=e.binarySearchKey(cn,ye.start,function(gi){return gi.start},e.compareValues);for(Tt<0&&(Tt=~Tt);((Sn=cn[Tt-1])===null||Sn===void 0?void 0:Sn.start)===ye.start;)Tt--;for(var Vt=[],Zr=e.textSpanEnd(ye);;){var Da=e.tryCast(cn[Tt],kn);if(!Da||Da.start>Zr)break;e.textSpanContainsTextSpan(ye,Da)&&Vt.push(Da),Tt++}return Vt}e.getDiagnosticsWithinSpan=Nt;function or(ye){var cn=ye.startPosition,Sn=ye.endPosition;return e.createTextSpanFromBounds(cn,Sn===void 0?cn:Sn)}e.getRefactorContextSpan=or;function Sr(ye,cn,Sn){return Sn===void 0&&(Sn=e.identity),ye?e.isArray(ye)?Sn(e.map(ye,cn)):cn(ye,0):void 0}e.mapOneOrMany=Sr;function Er(ye){return e.isArray(ye)?e.first(ye):ye}e.firstOrOnly=Er;function Gr(ye,cn){return!(ye.flags&33554432)&&(ye.escapedName==="export="||ye.escapedName==="default")?e.firstDefined(ye.declarations,function(Sn){var Tt;return e.isExportAssignment(Sn)?(Tt=e.tryCast(e.skipOuterExpressions(Sn.expression),e.isIdentifier))===null||Tt===void 0?void 0:Tt.text:void 0})||e.codefix.moduleSymbolToValidIdentifier($r(ye),cn):ye.name}e.getNameForExportedSymbol=Gr;function $r(ye){var cn;return e.Debug.checkDefined(ye.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(ye.flags)+". "+("Declarations: "+((cn=ye.declarations)===null||cn===void 0?void 0:cn.map(function(Sn){var Tt=e.Debug.formatSyntaxKind(Sn.kind),Vt=e.isInJSFile(Sn),Zr=Sn.expression;return(Vt?"[JS]":"")+Tt+(Zr?" (expression: "+e.Debug.formatSyntaxKind(Zr.kind)+")":"")}).join(", "))+"."))}function zr(ye,cn,Sn){var Tt=cn.length;if(Tt+Sn>ye.length)return!1;for(var Vt=0;Vt<Tt;Vt++)if(cn.charCodeAt(Vt)!==ye.charCodeAt(Vt+Sn))return!1;return!0}e.stringContainsAt=zr;function wi(ye){return ye.charCodeAt(0)===95}e.startsWithUnderscore=wi;function Ta(ye){return!Oa(ye)}e.isGlobalDeclaration=Ta;function Oa(ye){var cn=ye.getSourceFile();return!cn.externalModuleIndicator&&!cn.commonJsModuleIndicator?!1:e.isInJSFile(ye)||!e.findAncestor(ye,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=Oa;function ji(ye){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(ye)&8192)}e.isDeprecatedDeclaration=ji;function Ri(ye,cn){var Sn=e.firstDefined(ye.imports,function(Tt){if(e.JsTyping.nodeCoreModules.has(Tt.text))return e.startsWith(Tt.text,"node:")});return Sn!=null?Sn:cn.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=Ri})(mn||(mn={}));var mn;(function(e){var s;(function(U){U[U.Named=0]="Named",U[U.Default=1]="Default",U[U.Namespace=2]="Namespace",U[U.CommonJS=3]="CommonJS"})(s=e.ImportKind||(e.ImportKind={}));var ue;(function(U){U[U.Named=0]="Named",U[U.Default=1]="Default",U[U.ExportEquals=2]="ExportEquals",U[U.UMD=3]="UMD"})(ue=e.ExportKind||(e.ExportKind={}));function ee(U){var Z=1,v=e.createMultiMap(),W=new e.Map,x,$={isUsableByFile:function(P){return P===x},isEmpty:function(){return!v.size},clear:function(){v.clear(),W.clear(),x=void 0},add:function(P,I,re,B,A,f,F,g,p){P!==x&&($.clear(),x=P);var d=f===1,T=d&&e.getLocalSymbolForExportDefault(I)||I,m=e.isExternalModuleSymbol(T)?e.unescapeLeadingUnderscores(re):e.getNameForExportedSymbol(T,g),k=e.stripQuotes(B.name),N=Z++,D=I.flags&33554432?void 0:I,R=B.flags&33554432?void 0:B;(!D||!R)&&W.set(N,[I,B]),v.add(E(m,I,k,p),{id:N,symbolTableKey:re,symbolName:m,moduleName:k,moduleFile:A,moduleFileName:A==null?void 0:A.fileName,exportKind:f,targetFlags:e.skipAlias(I,p).flags,isFromPackageJson:F,symbol:D,moduleSymbol:R})},get:function(P,I,re,B,A){if(P!==x)return;var f=v.get(E(I,re,B,A));return f==null?void 0:f.map(L)},forEach:function(P,I){if(P!==x)return;v.forEach(function(re,B){var A=ae(B),f=A.symbolName,F=A.ambientModuleName;I(re.map(L),f,!!F)})},releaseSymbols:function(){W.clear()},onFileChanged:function(P,I,re){return ie(P)&&ie(I)?!1:x&&x!==I.path||re&&e.consumesNodeCoreModules(P)!==e.consumesNodeCoreModules(I)||!e.arrayIsEqualTo(P.moduleAugmentations,I.moduleAugmentations)||!le(P,I)?($.clear(),!0):(x=I.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty($,"__cache",{get:function(){return v}}),$;function L(P){if(P.symbol&&P.moduleSymbol)return P;var I=P.id,re=P.exportKind,B=P.targetFlags,A=P.isFromPackageJson,f=P.moduleFileName,F=W.get(I)||e.emptyArray,g=F[0],p=F[1];if(g&&p)return{symbol:g,moduleSymbol:p,moduleFileName:f,exportKind:re,targetFlags:B,isFromPackageJson:A};var d=(A?U.getPackageJsonAutoImportProvider():U.getCurrentProgram()).getTypeChecker(),T=P.moduleSymbol||p||e.Debug.checkDefined(P.moduleFile?d.getMergedSymbol(P.moduleFile.symbol):d.tryFindAmbientModule(P.moduleName)),m=P.symbol||g||e.Debug.checkDefined(re===2?d.resolveExternalModuleSymbol(T):d.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(P.symbolTableKey),T),"Could not find symbol '"+P.symbolName+"' by key '"+P.symbolTableKey+"' in module "+T.name);return W.set(I,[m,T]),{symbol:m,moduleSymbol:T,moduleFileName:f,exportKind:re,targetFlags:B,isFromPackageJson:A}}function E(P,I,re,B){var A=e.stripQuotes(re),f=e.isExternalModuleNameRelative(A)?"/":A,F=e.skipAlias(I,B);return P+"|"+X(F)+"|"+f}function ae(P){var I=P.substring(0,P.indexOf("|")),re=P.substring(P.lastIndexOf("|")+1),B=re==="/"?void 0:re;return{symbolName:I,ambientModuleName:B}}function X(P){for(var I=P.name;P.parent;)I+=","+P.parent.name,P=P.parent;return I}function ie(P){return!P.commonJsModuleIndicator&&!P.externalModuleIndicator&&!P.moduleAugmentations&&!P.ambientModuleNames}function le(P,I){if(!e.arrayIsEqualTo(P.ambientModuleNames,I.ambientModuleNames))return!1;for(var re=-1,B=-1,A=function(d){var T=function(m){return e.isNonGlobalAmbientModule(m)&&m.name.text===d};if(re=e.findIndex(P.statements,T,re+1),B=e.findIndex(I.statements,T,B+1),P.statements[re]!==I.statements[B])return{value:!1}},f=0,F=I.ambientModuleNames;f<F.length;f++){var g=F[f],p=A(g);if(typeof p=="object")return p.value}return!0}}e.createCacheableExportInfoMap=ee;function Y(U,Z,v,W,x,$,L){var E;if(Z===v)return!1;var ae=L==null?void 0:L.get(Z.path,v.path,W);if((ae==null?void 0:ae.isAutoImportable)!==void 0)return ae.isAutoImportable;var X=e.hostGetCanonicalFileName($),ie=(E=$.getGlobalTypingsCacheLocation)===null||E===void 0?void 0:E.call($),le=!!e.moduleSpecifiers.forEachFileNameOfModule(Z.fileName,v.fileName,$,!1,function(I){var re=U.getSourceFile(I);return(re===v||!re)&&V(Z.fileName,I,X,ie)});if(x){var P=le&&x.allowsImportingSourceFile(v,$);return L==null||L.setIsAutoImportable(Z.path,v.path,W,P),P}return le}e.isImportableFile=Y;function V(U,Z,v,W){var x=e.forEachAncestorDirectory(Z,function(L){return e.getBaseFileName(L)==="node_modules"?L:void 0}),$=x&&e.getDirectoryPath(v(x));return $===void 0||e.startsWith(v(U),$)||!!W&&e.startsWith(v(W),$)}function ne(U,Z,v,W){var x,$;_e(U.getTypeChecker(),U.getSourceFiles(),function(ae,X){return W(ae,X,U,!1)});var L=v&&((x=Z.getPackageJsonAutoImportProvider)===null||x===void 0?void 0:x.call(Z));if(L){var E=e.timestamp();_e(L.getTypeChecker(),L.getSourceFiles(),function(ae,X){return W(ae,X,L,!0)}),($=Z.log)===null||$===void 0||$.call(Z,"forEachExternalModuleToImportFrom autoImportProvider: "+(e.timestamp()-E))}}e.forEachExternalModuleToImportFrom=ne;function _e(U,Z,v){for(var W=0,x=U.getAmbientModules();W<x.length;W++){var $=x[W];e.stringContains($.name,"*")||v($,void 0)}for(var L=0,E=Z;L<E.length;L++){var ae=E[L];e.isExternalOrCommonJsModule(ae)&&v(U.getMergedSymbol(ae.symbol),ae)}}function O(U,Z,v,W){var x,$,L,E,ae,X=e.timestamp();(x=Z.getPackageJsonAutoImportProvider)===null||x===void 0||x.call(Z);var ie=(($=Z.getCachedExportInfoMap)===null||$===void 0?void 0:$.call(Z))||ee({getCurrentProgram:function(){return v},getPackageJsonAutoImportProvider:function(){var re;return(re=Z.getPackageJsonAutoImportProvider)===null||re===void 0?void 0:re.call(Z)}});if(ie.isUsableByFile(U.path))return(L=Z.log)===null||L===void 0||L.call(Z,"getExportInfoMap: cache hit"),ie;(E=Z.log)===null||E===void 0||E.call(Z,"getExportInfoMap: cache miss or empty; calculating new results");var le=v.getCompilerOptions(),P=e.getEmitScriptTarget(le),I=0;return ne(v,Z,!0,function(re,B,A,f){++I%100===0&&(W==null||W.throwIfCancellationRequested());var F=new e.Map,g=A.getTypeChecker(),p=w(re,g,le);p&&b(p.symbol,g)&&ie.add(U.path,p.symbol,p.exportKind===1?"default":"export=",re,B,p.exportKind,f,P,g),g.forEachExportAndPropertyOfModule(re,function(d,T){d!==(p==null?void 0:p.symbol)&&b(d,g)&&e.addToSeen(F,d)&&ie.add(U.path,d,T,re,B,0,f,P,g)})}),(ae=Z.log)===null||ae===void 0||ae.call(Z,"getExportInfoMap: done in "+(e.timestamp()-X)+" ms"),ie}e.getExportInfoMap=O;function w(U,Z,v){var W=de(U,Z);if(!W)return;var x=W.symbol,$=W.exportKind,L=fe(x,Z,v);return L&&pr({symbol:x,exportKind:$},L)}e.getDefaultLikeExportInfo=w;function b(U,Z){return!Z.isUndefinedSymbol(U)&&!Z.isUnknownSymbol(U)&&!e.isKnownSymbol(U)&&!e.isPrivateIdentifierSymbol(U)}function de(U,Z){var v=Z.resolveExternalModuleSymbol(U);if(v!==U)return{symbol:v,exportKind:2};var W=Z.tryGetMemberInModuleExports("default",U);if(W)return{symbol:W,exportKind:1}}function fe(U,Z,v){var W=e.getLocalSymbolForExportDefault(U);if(W)return{symbolForMeaning:W,name:W.name};var x=_(U);if(x!==void 0)return{symbolForMeaning:U,name:x};if(U.flags&2097152){var $=Z.getImmediateAliasedSymbol(U);if($&&$.parent)return fe($,Z,v)}return U.escapedName!=="default"&&U.escapedName!=="export="?{symbolForMeaning:U,name:U.getName()}:{symbolForMeaning:U,name:e.getNameForExportedSymbol(U,v.target)}}function _(U){return U.declarations&&e.firstDefined(U.declarations,function(Z){var v;if(e.isExportAssignment(Z))return(v=e.tryCast(e.skipOuterExpressions(Z.expression),e.isIdentifier))===null||v===void 0?void 0:v.text;if(e.isExportSpecifier(Z))return e.Debug.assert(Z.name.text==="default","Expected the specifier to be a default export"),Z.propertyName&&Z.propertyName.text})}})(mn||(mn={}));var mn;(function(e){function s(){var E=e.createScanner(99,!1);function ae(ie,le,P){return V(X(ie,le,P),ie)}function X(ie,le,P){var I=0,re=0,B=[],A=O(le),f=A.prefix,F=A.pushTemplate;ie=f+ie;var g=f.length;F&&B.push(15),E.setText(ie);var p=0,d=[],T=0;do{I=E.scan(),e.isTrivia(I)||(N(),re=I);var m=E.getTextPos();if(Y(E.getTokenPos(),m,g,de(I),d),m>=ie.length){var k=ee(E,I,e.lastOrUndefined(B));k!==void 0&&(p=k)}}while(I!==1);function N(){switch(I){case 43:case 68:!ue[re]&&E.reScanSlashToken()===13&&(I=13);break;case 29:re===79&&T++;break;case 31:T>0&&T--;break;case 129:case 148:case 145:case 132:case 149:T>0&&!P&&(I=79);break;case 15:B.push(I);break;case 18:B.length>0&&B.push(I);break;case 19:if(B.length>0){var D=e.lastOrUndefined(B);D===15?(I=E.reScanTemplateToken(!1),I===17?B.pop():e.Debug.assertEqual(I,16,"Should have been a template middle.")):(e.Debug.assertEqual(D,18,"Should have been an open brace"),B.pop())}break;default:if(!e.isKeyword(I))break;(re===24||e.isKeyword(re)&&e.isKeyword(I)&&!_e(re,I))&&(I=79)}}return{endOfLineState:p,spans:d}}return{getClassificationsForLine:ae,getEncodedLexicalClassifications:X}}e.createClassifier=s;var ue=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(E){return E},function(){return!0});function ee(E,ae,X){switch(ae){case 10:{if(!E.isUnterminated())return;for(var ie=E.getTokenText(),le=ie.length-1,P=0;ie.charCodeAt(le-P)===92;)P++;return(P&1)===0?void 0:ie.charCodeAt(0)===34?3:2}case 3:return E.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(ae)){if(!E.isUnterminated())return;switch(ae){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+ae)}}return X===15?6:void 0}}function Y(E,ae,X,ie,le){if(ie===8)return;E===0&&X>0&&(E+=X);var P=ae-E;P>0&&le.push(E-X,P,ie)}function V(E,ae){for(var X=[],ie=E.spans,le=0,P=0;P<ie.length;P+=3){var I=ie[P],re=ie[P+1],B=ie[P+2];if(le>=0){var A=I-le;A>0&&X.push({length:A,classification:e.TokenClass.Whitespace})}X.push({length:re,classification:ne(B)}),le=I+re}var f=ae.length-le;return f>0&&X.push({length:f,classification:e.TokenClass.Whitespace}),{entries:X,finalLexState:E.endOfLineState}}function ne(E){switch(E){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function _e(E,ae){if(!e.isAccessibilityModifier(E))return!0;switch(ae){case 135:case 147:case 133:case 124:return!0;default:return!1}}function O(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 e.Debug.assertNever(E)}}function w(E){switch(E){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function b(E){switch(E){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function de(E){if(e.isKeyword(E))return 3;if(w(E)||b(E))return 5;if(E>=18&&E<=78)return 10;switch(E){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(E)?6:2}}function fe(E,ae,X,ie,le){return x(U(E,ae,X,ie,le))}e.getSemanticClassifications=fe;function _(E,ae){switch(ae){case 259:case 255:case 256:case 254:case 224:case 211:case 212:E.throwIfCancellationRequested()}}function U(E,ae,X,ie,le){var P=[];return X.forEachChild(function re(B){if(!B||!e.textSpanIntersectsWith(le,B.pos,B.getFullWidth()))return;if(_(ae,B.kind),e.isIdentifier(B)&&!e.nodeIsMissing(B)&&ie.has(B.escapedText)){var A=E.getSymbolAtLocation(B),f=A&&Z(A,e.getMeaningFromLocation(B),E);f&&I(B.getStart(X),B.getEnd(),f)}B.forEachChild(re)}),{spans:P,endOfLineState:0};function I(re,B,A){var f=B-re;e.Debug.assert(f>0,"Classification had non-positive length of "+f),P.push(re),P.push(f),P.push(A)}}e.getEncodedSemanticClassifications=U;function Z(E,ae,X){var ie=E.getFlags();return(ie&2885600)===0?void 0:ie&32?11:ie&384?12:ie&524288?16:ie&1536?ae&4||ae&1&&v(E)?14:void 0:ie&2097152?Z(X.getAliasedSymbol(E),ae,X):ae&2?ie&64?13:ie&262144?15:void 0:void 0}function v(E){return e.some(E.declarations,function(ae){return e.isModuleDeclaration(ae)&&e.getModuleInstanceState(ae)===1})}function W(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 x(E){e.Debug.assert(E.spans.length%3===0);for(var ae=E.spans,X=[],ie=0;ie<ae.length;ie+=3)X.push({textSpan:e.createTextSpan(ae[ie],ae[ie+1]),classificationType:W(ae[ie+2])});return X}function $(E,ae,X){return x(L(E,ae,X))}e.getSyntacticClassifications=$;function L(E,ae,X){var ie=X.start,le=X.length,P=e.createScanner(99,!1,ae.languageVariant,ae.text),I=e.createScanner(99,!1,ae.languageVariant,ae.text),re=[];return R(ae),{spans:re,endOfLineState:0};function B(me,q,J){re.push(me),re.push(q),re.push(J)}function A(me){for(P.setTextPos(me.pos);;){var q=P.getTextPos();if(!e.couldStartTrivia(ae.text,q))return q;var J=P.scan(),C=P.getTextPos(),we=C-q;if(!e.isTrivia(J))return q;switch(J){case 4:case 5:continue;case 2:case 3:f(me,J,q,we),P.setTextPos(C);continue;case 7:var Oe=ae.text,te=Oe.charCodeAt(q);if(te===60||te===62){B(q,we,1);continue}e.Debug.assert(te===124||te===61),T(Oe,q,C);break;case 6:break;default:e.Debug.assertNever(J)}}}function f(me,q,J,C){if(q===3){var we=e.parseIsolatedJSDocComment(ae.text,J,C);if(we&&we.jsDoc){e.setParent(we.jsDoc,me),g(we.jsDoc);return}}else if(q===2&&p(J,C))return;F(J,C)}function F(me,q){B(me,q,1)}function g(me){var q,J,C,we,Oe,te,Te,be=me.pos;if(me.tags)for(var Ce=0,Ue=me.tags;Ce<Ue.length;Ce++){var Se=Ue[Ce];Se.pos!==be&&F(be,Se.pos-be),B(Se.pos,1,10),B(Se.tagName.pos,Se.tagName.end-Se.tagName.pos,18),be=Se.tagName.end;var $e=Se.tagName.end;switch(Se.kind){case 335:var ce=Se;pe(ce),$e=ce.isNameFirst&&((q=ce.typeExpression)===null||q===void 0?void 0:q.end)||ce.name.end;break;case 342:var Le=Se;$e=Le.isNameFirst&&((J=Le.typeExpression)===null||J===void 0?void 0:J.end)||Le.name.end;break;case 339:d(Se),be=Se.end,$e=Se.typeParameters.end;break;case 340:var qe=Se;$e=((C=qe.typeExpression)===null||C===void 0?void 0:C.kind)===304&&((we=qe.fullName)===null||we===void 0?void 0:we.end)||((Oe=qe.typeExpression)===null||Oe===void 0?void 0:Oe.end)||$e;break;case 333:$e=Se.typeExpression.end;break;case 338:R(Se.typeExpression),be=Se.end,$e=Se.typeExpression.end;break;case 337:case 334:$e=Se.typeExpression.end;break;case 336:R(Se.typeExpression),be=Se.end,$e=((te=Se.typeExpression)===null||te===void 0?void 0:te.end)||$e;break;case 341:$e=((Te=Se.name)===null||Te===void 0?void 0:Te.end)||$e;break;case 323:case 324:$e=Se.class.end;break}typeof Se.comment=="object"?F(Se.comment.pos,Se.comment.end-Se.comment.pos):typeof Se.comment=="string"&&F($e,Se.end-$e)}be!==me.end&&F(be,me.end-be);return;function pe(Me){Me.isNameFirst&&(F(be,Me.name.pos-be),B(Me.name.pos,Me.name.end-Me.name.pos,17),be=Me.name.end),Me.typeExpression&&(F(be,Me.typeExpression.pos-be),R(Me.typeExpression),be=Me.typeExpression.end),Me.isNameFirst||(F(be,Me.name.pos-be),B(Me.name.pos,Me.name.end-Me.name.pos,17),be=Me.name.end)}}function p(me,q){var J=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,C=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,we=ae.text.substr(me,q),Oe=J.exec(we);if(!Oe)return!1;if(!Oe[3]||!(Oe[3]in e.commentPragmas))return!1;var te=me;F(te,Oe[1].length),te+=Oe[1].length,B(te,Oe[2].length,10),te+=Oe[2].length,B(te,Oe[3].length,21),te+=Oe[3].length;for(var Te=Oe[4],be=te;;){var Ce=C.exec(Te);if(!Ce)break;var Ue=te+Ce.index+Ce[1].length;Ue>be&&(F(be,Ue-be),be=Ue),B(be,Ce[2].length,22),be+=Ce[2].length,Ce[3].length&&(F(be,Ce[3].length),be+=Ce[3].length),B(be,Ce[4].length,5),be+=Ce[4].length,Ce[5].length&&(F(be,Ce[5].length),be+=Ce[5].length),B(be,Ce[6].length,24),be+=Ce[6].length}te+=Oe[4].length,te>be&&F(be,te-be),Oe[5]&&(B(te,Oe[5].length,10),te+=Oe[5].length);var Se=me+q;return te<Se&&F(te,Se-te),!0}function d(me){for(var q=0,J=me.getChildren();q<J.length;q++){var C=J[q];R(C)}}function T(me,q,J){var C;for(C=q;C<J&&!e.isLineBreak(me.charCodeAt(C));C++);for(B(q,C-q,1),I.setTextPos(C);I.getTextPos()<J;)m()}function m(){var me=I.getTextPos(),q=I.scan(),J=I.getTextPos(),C=D(q);C&&B(me,J-me,C)}function k(me){if(e.isJSDoc(me))return!0;if(e.nodeIsMissing(me))return!0;var q=N(me);if(!e.isToken(me)&&me.kind!==11&&q===void 0)return!1;var J=me.kind===11?me.pos:A(me),C=me.end-J;if(e.Debug.assert(C>=0),C>0){var we=q||D(me.kind,me);we&&B(J,C,we)}return!0}function N(me){switch(me.parent&&me.parent.kind){case 278:if(me.parent.tagName===me)return 19;break;case 279:if(me.parent.tagName===me)return 20;break;case 277:if(me.parent.tagName===me)return 21;break;case 283:if(me.parent.name===me)return 22;break}return}function D(me,q){if(e.isKeyword(me))return 3;if((me===29||me===31)&&(q&&e.getTypeArgumentOrTypeParameterList(q.parent)))return 10;if(e.isPunctuation(me)){if(q){var J=q.parent;if(me===63&&(J.kind===252||J.kind===165||J.kind===162||J.kind===283))return 5;if(J.kind===219||J.kind===217||J.kind===218||J.kind===220)return 5}return 10}else{if(me===8)return 4;if(me===9)return 25;if(me===10)return q&&q.parent.kind===283?24:6;if(me===13)return 6;if(e.isTemplateLiteralKind(me))return 6;if(me===11)return 23;if(me===79){if(q)switch(q.parent.kind){case 255:return q.parent.name===q?11:void 0;case 161:return q.parent.name===q?15:void 0;case 256:return q.parent.name===q?13:void 0;case 258:return q.parent.name===q?12:void 0;case 259:return q.parent.name===q?14:void 0;case 162:return q.parent.name===q?e.isThisIdentifier(q)?3:17:void 0}return 2}}}function R(me){if(!me)return;if(e.decodedTextSpanIntersectsWith(ie,le,me.pos,me.getFullWidth())){_(E,me.kind);for(var q=0,J=me.getChildren(ae);q<J.length;q++){var C=J[q];k(C)||R(C)}}}}e.getEncodedSyntacticClassifications=L})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V;(function(L){L[L.typeOffset=8]="typeOffset",L[L.modifierMask=255]="modifierMask"})(V=Y.TokenEncodingConsts||(Y.TokenEncodingConsts={}));var ne;(function(L){L[L.class=0]="class",L[L.enum=1]="enum",L[L.interface=2]="interface",L[L.namespace=3]="namespace",L[L.typeParameter=4]="typeParameter",L[L.type=5]="type",L[L.parameter=6]="parameter",L[L.variable=7]="variable",L[L.enumMember=8]="enumMember",L[L.property=9]="property",L[L.function=10]="function",L[L.member=11]="member"})(ne=Y.TokenType||(Y.TokenType={}));var _e;(function(L){L[L.declaration=0]="declaration",L[L.static=1]="static",L[L.async=2]="async",L[L.readonly=3]="readonly",L[L.defaultLibrary=4]="defaultLibrary",L[L.local=5]="local"})(_e=Y.TokenModifier||(Y.TokenModifier={}));function O(L,E,ae,X){var ie=w(L,E,ae,X);e.Debug.assert(ie.spans.length%3===0);for(var le=ie.spans,P=[],I=0;I<le.length;I+=3)P.push({textSpan:e.createTextSpan(le[I],le[I+1]),classificationType:le[I+2]});return P}Y.getSemanticClassifications=O;function w(L,E,ae,X){return{spans:b(L,ae,X,E),endOfLineState:0}}Y.getEncodedSemanticClassifications=w;function b(L,E,ae,X){var ie=[],le=function(P,I,re){ie.push(P.getStart(E),P.getWidth(E),(I+1<<8)+re)};return L&&E&&de(L,E,ae,le,X),ie}function de(L,E,ae,X,ie){var le=L.getTypeChecker(),P=!1;function I(re){switch(re.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 212:ie.throwIfCancellationRequested()}if(!re||!e.textSpanIntersectsWith(ae,re.pos,re.getFullWidth())||re.getFullWidth()===0)return;var B=P;if((e.isJsxElement(re)||e.isJsxSelfClosingElement(re))&&(P=!0),e.isJsxExpression(re)&&(P=!1),e.isIdentifier(re)&&!P&&!v(re)&&!e.isInfinityOrNaNString(re.escapedText)){var A=le.getSymbolAtLocation(re);if(A){A.flags&2097152&&(A=le.getAliasedSymbol(A));var f=fe(A,e.getMeaningFromLocation(re));if(f!==void 0){var F=0;if(re.parent){var g=e.isBindingElement(re.parent)||$.get(re.parent.kind)===f;g&&re.parent.name===re&&(F=1<<0)}f===6&&x(re)&&(f=9),f=_(le,re,f);var p=A.valueDeclaration;if(p){var d=e.getCombinedModifierFlags(p),T=e.getCombinedNodeFlags(p);d&32&&(F|=1<<1),d&256&&(F|=1<<2),f!==0&&f!==2&&((d&64||T&2||A.getFlags()&8)&&(F|=1<<3)),(f===7||f===10)&&U(p,E)&&(F|=1<<5),L.isSourceFileDefaultLibrary(p.getSourceFile())&&(F|=1<<4)}else A.declarations&&A.declarations.some(function(m){return L.isSourceFileDefaultLibrary(m.getSourceFile())})&&(F|=1<<4);X(re,f,F)}}}e.forEachChild(re,I),P=B}I(E)}function fe(L,E){var ae=L.getFlags();if(ae&32)return 0;if(ae&384)return 1;if(ae&524288)return 5;if(ae&64){if(E&2)return 2}else if(ae&262144)return 4;var X=L.valueDeclaration||L.declarations&&L.declarations[0];return X&&e.isBindingElement(X)&&(X=Z(X)),X&&$.get(X.kind)}function _(L,E,ae){if(ae===7||ae===9||ae===6){var X=L.getTypeAtLocation(E);if(X){var ie=function(le){return le(X)||X.isUnion()&&X.types.some(le)};if(ae!==6&&ie(function(le){return le.getConstructSignatures().length>0}))return 0;if(ie(function(le){return le.getCallSignatures().length>0})&&!ie(function(le){return le.getProperties().length>0})||W(E))return ae===9?11:10}}return ae}function U(L,E){return e.isBindingElement(L)&&(L=Z(L)),e.isVariableDeclaration(L)?(!e.isSourceFile(L.parent.parent.parent)||e.isCatchClause(L.parent))&&L.getSourceFile()===E:e.isFunctionDeclaration(L)?!e.isSourceFile(L.parent)&&L.getSourceFile()===E:!1}function Z(L){for(;;)if(e.isBindingElement(L.parent.parent))L=L.parent.parent;else return L.parent.parent}function v(L){var E=L.parent;return E&&(e.isImportClause(E)||e.isImportSpecifier(E)||e.isNamespaceImport(E))}function W(L){for(;x(L);)L=L.parent;return e.isCallExpression(L.parent)&&L.parent.expression===L}function x(L){return e.isQualifiedName(L.parent)&&L.parent.right===L||e.isPropertyAccessExpression(L.parent)&&L.parent.name===L}var $=new e.Map([[252,7],[162,6],[165,9],[259,3],[258,1],[294,8],[255,0],[167,11],[254,10],[211,10],[166,11],[170,9],[171,9],[164,9],[256,2],[257,5],[161,4],[291,9],[292,9]])})(ee=ue.v2020||(ue.v2020={}))})(s=e.classifier||(e.classifier={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){function V(te,Te,be,Ce,Ue,Se,$e,ce){if(e.isInReferenceComment(te,Te)){var Le=N(te,Te,Ue,Se);return Le&&w(Le)}if(e.isInString(te,Te,be)){if(!be||!e.isStringLiteralLike(be))return;var Le=fe(te,be,Te,Ce,Ue,Se,ce);return ne(Le,be,te,Ce,$e,Ue,ce)}}Y.getStringLiteralCompletions=V;function ne(te,Te,be,Ce,Ue,Se,$e){if(te===void 0)return;var ce=e.createTextSpanFromStringLiteralLikeContent(Te);switch(te.kind){case 0:return w(te.paths);case 1:{var Le=[];return ue.getCompletionEntriesFromSymbols(te.symbols,Le,Te,be,be,Ce,99,Ue,4,$e,Se),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:te.hasIndexSignature,optionalReplacementSpan:ce,entries:Le}}case 2:{var Le=te.types.map(function(pe){return{name:pe.value,kindModifiers:"",kind:"string",sortText:ue.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(Te)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:te.isNewIdentifier,optionalReplacementSpan:ce,entries:Le}}default:return e.Debug.assertNever(te)}}function _e(te,Te,be,Ce,Ue,Se,$e,ce,Le){if(!Ce||!e.isStringLiteralLike(Ce))return;var qe=fe(Te,Ce,be,Ue,Se,$e,Le);return qe&&O(te,Ce,qe,Te,Ue,ce)}Y.getStringLiteralCompletionDetails=_e;function O(te,Te,be,Ce,Ue,Se){switch(be.kind){case 0:{var $e=e.find(be.paths,function(ce){return ce.name===te});return $e&&ue.createCompletionDetails(te,b($e.extension),$e.kind,[e.textPart(te)])}case 1:{var $e=e.find(be.symbols,function(Le){return Le.name===te});return $e&&ue.createCompletionDetailsForSymbol($e,Ue,Ce,Te,Se)}case 2:return e.find(be.types,function(ce){return ce.value===te})?ue.createCompletionDetails(te,"","type",[e.textPart(te)]):void 0;default:return e.Debug.assertNever(be)}}function w(te){var Te=!1,be=!0,Ce=te.map(function(Ue){var Se=Ue.name,$e=Ue.kind,ce=Ue.span,Le=Ue.extension;return{name:Se,kind:$e,kindModifiers:b(Le),sortText:ue.SortText.LocationPriority,replacementSpan:ce}});return{isGlobalCompletion:Te,isMemberCompletion:!1,isNewIdentifierLocation:be,entries:Ce}}function b(te){switch(te){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".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return e.Debug.assertNever(te)}}var de;(function(te){te[te.Paths=0]="Paths",te[te.Properties=1]="Properties",te[te.Types=2]="Types"})(de||(de={}));function fe(te,Te,be,Ce,Ue,Se,$e){var ce=_(Te.parent);switch(ce.kind){case 194:{var Le=_(ce.parent);switch(Le.kind){case 176:{var qe=Le,pe=e.findAncestor(ce,function(Cn){return Cn.parent===qe});return pe?{kind:2,types:x(Ce.getTypeArgumentConstraint(pe)),isNewIdentifier:!1}:void 0}case 192:var Me=Le,fn=Me.indexType,Ye=Me.objectType;return e.rangeContainsPosition(fn,be)?v(Ce.getTypeFromTypeNode(Ye)):void 0;case 198:return{kind:0,paths:ae(te,Te,Ue,Se,Ce,$e)};case 185:{if(!e.isTypeReferenceNode(Le.parent))return;var Ne=U(Le,ce),je=x(Ce.getTypeArgumentConstraint(Le)).filter(function(Cn){return!e.contains(Ne,Cn.value)});return{kind:2,types:je,isNewIdentifier:!1}}default:return}}case 291:return e.isObjectLiteralExpression(ce.parent)&&ce.name===Te?W(Ce,ce.parent):o();case 205:{var xn=ce,Wn=xn.expression,dn=xn.argumentExpression;return Te===e.skipParentheses(dn)?v(Ce.getTypeAtLocation(Wn)):void 0}case 206:case 207:if(!Oe(Te)&&!e.isImportCall(ce)){var vn=e.SignatureHelp.getArgumentInfoForCompletions(Te,be,te);return vn?Z(vn,Ce):o()}case 264:case 270:case 275:return{kind:0,paths:ae(te,Te,Ue,Se,Ce,$e)};default:return o()}function o(){return{kind:2,types:x(e.getContextualTypeFromParent(Te,Ce)),isNewIdentifier:!1}}}function _(te){switch(te.kind){case 189:return e.walkUpParenthesizedTypes(te);case 210:return e.walkUpParenthesizedExpressions(te);default:return te}}function U(te,Te){return e.mapDefined(te.types,function(be){return be!==Te&&e.isLiteralTypeNode(be)&&e.isStringLiteral(be.literal)?be.literal.text:void 0})}function Z(te,Te){var be=!1,Ce=new e.Map,Ue=[];Te.getResolvedSignature(te.invocation,Ue,te.argumentCount);var Se=e.flatMap(Ue,function($e){if(!e.signatureHasRestParameter($e)&&te.argumentCount>$e.parameters.length)return;var ce=Te.getParameterType($e,te.argumentIndex);return be=be||!!(ce.flags&4),x(ce,Ce)});return{kind:2,types:Se,isNewIdentifier:be}}function v(te){return te&&{kind:1,symbols:e.filter(te.getApparentProperties(),function(Te){return!(Te.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Te.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(te)}}function W(te,Te){var be=te.getContextualType(Te);if(!be)return;var Ce=te.getContextualType(Te,4),Ue=ue.getPropertiesForObjectExpression(be,Ce,Te,te);return{kind:1,symbols:Ue,hasIndexSignature:e.hasIndexSignature(be)}}function x(te,Te){return Te===void 0&&(Te=new e.Map),te?(te=e.skipConstraint(te),te.isUnion()?e.flatMap(te.types,function(be){return x(be,Te)}):te.isStringLiteral()&&!(te.flags&1024)&&e.addToSeen(Te,te.value)?[te]:e.emptyArray):e.emptyArray}function $(te,Te,be){return{name:te,kind:Te,extension:be}}function L(te){return $(te,"directory",void 0)}function E(te,Te,be){var Ce=me(te,Te),Ue=te.length===0?void 0:e.createTextSpan(Te,te.length);return be.map(function(Se){var $e=Se.name,ce=Se.kind,Le=Se.extension;return Math.max($e.indexOf(e.directorySeparator),$e.indexOf(e.altDirectorySeparator))!==-1?{name:$e,kind:ce,extension:Le,span:Ue}:{name:$e,kind:ce,extension:Le,span:Ce}})}function ae(te,Te,be,Ce,Ue,Se){return E(Te.text,Te.getStart(te)+1,X(te,Te,be,Ce,Ue,Se))}function X(te,Te,be,Ce,Ue,Se){var $e=e.normalizeSlashes(Te.text),ce=te.path,Le=e.getDirectoryPath(ce);return q($e)||!be.baseUrl&&(e.isRootedDiskPath($e)||e.isUrl($e))?le($e,Le,be,Ce,ce,Se):F($e,Le,be,Ce,Ue)}function ie(te,Te){return Te===void 0&&(Te=0),{extensions:P(te),includeExtensionsOption:Te}}function le(te,Te,be,Ce,Ue,Se){var $e=Se.importModuleSpecifierEnding==="js"?2:0,ce=ie(be,$e);return be.rootDirs?re(be.rootDirs,te,Te,ce,be,Ce,Ue):A(te,Te,ce,Ce,Ue)}function P(te){var Te=e.getSupportedExtensions(te);return te.resolveJsonModule&&e.getEmitModuleResolutionKind(te)===e.ModuleResolutionKind.NodeJs?Te.concat(".json"):Te}function I(te,Te,be,Ce){te=te.map(function(Se){return e.normalizePath(e.isRootedDiskPath(Se)?Se:e.combinePaths(Te,Se))});var Ue=e.firstDefined(te,function(Se){return e.containsPath(Se,be,Te,Ce)?be.substr(Se.length):void 0});return e.deduplicate(Mt(Mt([],te.map(function(Se){return e.combinePaths(Se,Ue)}),!0),[be],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function re(te,Te,be,Ce,Ue,Se,$e){var ce=Ue.project||Se.getCurrentDirectory(),Le=!(Se.useCaseSensitiveFileNames&&Se.useCaseSensitiveFileNames()),qe=I(te,ce,be,Le);return e.flatMap(qe,function(pe){return A(Te,pe,Ce,Se,$e)})}var B;(function(te){te[te.Exclude=0]="Exclude",te[te.Include=1]="Include",te[te.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(B||(B={}));function A(te,Te,be,Ce,Ue,Se){var $e=be.extensions,ce=be.includeExtensionsOption;Se===void 0&&(Se=[]),te===void 0&&(te=""),te=e.normalizeSlashes(te),e.hasTrailingDirectorySeparator(te)||(te=e.getDirectoryPath(te)),te===""&&(te="."+e.directorySeparator),te=e.ensureTrailingDirectorySeparator(te);var Le=e.resolvePath(Te,te),qe=e.hasTrailingDirectorySeparator(Le)?Le:e.getDirectoryPath(Le),pe=!(Ce.useCaseSensitiveFileNames&&Ce.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(Ce,qe))return Se;var Me=e.tryReadDirectory(Ce,qe,$e,void 0,["./*"]);if(Me){for(var fn=new e.Map,Ye=0,Ne=Me;Ye<Ne.length;Ye++){var je=Ne[Ye];if(je=e.normalizePath(je),Ue&&e.comparePaths(je,Ue,Te,pe)===0)continue;var xn=void 0,Wn=e.moduleSpecifiers.tryGetJSExtensionForFile(je,Ce.getCompilationSettings());ce===0&&!e.fileExtensionIs(je,".json")?(xn=e.removeFileExtension(e.getBaseFileName(je)),fn.set(xn,e.tryGetExtensionFromPath(je))):ce===2&&Wn?(xn=e.changeExtension(e.getBaseFileName(je),Wn),fn.set(xn,Wn)):(xn=e.getBaseFileName(je),fn.set(xn,e.tryGetExtensionFromPath(je)))}fn.forEach(function(Qe,gn){Se.push($(gn,"script",Qe))})}var dn=e.tryGetDirectories(Ce,qe);if(dn)for(var vn=0,o=dn;vn<o.length;vn++){var Cn=o[vn],z=e.getBaseFileName(e.normalizePath(Cn));z!=="@types"&&Se.push(L(z))}var tn=e.findPackageJson(qe,Ce);if(tn){var $n=e.readJson(tn,Ce),Un=$n.typesVersions;if(typeof Un=="object"){var oe=e.getPackageJsonTypesVersionsPaths(Un),Pe=oe&&oe.paths,ke=Le.slice(e.ensureTrailingDirectorySeparator(qe).length);Pe&&f(Se,ke,qe,$e,Pe,Ce)}}return Se}function f(te,Te,be,Ce,Ue,Se){for(var $e in Ue){if(!e.hasProperty(Ue,$e))continue;var ce=Ue[$e];if(ce)for(var Le=function(je,xn,Wn){te.some(function(dn){return dn.name===je})||te.push($(je,xn,Wn))},qe=0,pe=p($e,ce,Te,be,Ce,Se);qe<pe.length;qe++){var Me=pe[qe],fn=Me.name,Ye=Me.kind,Ne=Me.extension;Le(fn,Ye,Ne)}}}function F(te,Te,be,Ce,Ue){var Se=be.baseUrl,$e=be.paths,ce=[],Le=ie(be);if(Se){var qe=be.project||Ce.getCurrentDirectory(),pe=e.normalizePath(e.combinePaths(qe,Se));A(te,pe,Le,Ce,void 0,ce),$e&&f(ce,te,pe,Le.extensions,$e,Ce)}for(var Me=g(te),fn=0,Ye=k(te,Me,Ue);fn<Ye.length;fn++){var Ne=Ye[fn];ce.push($(Ne,"external module name",void 0))}if(D(Ce,be,Te,Me,Le,ce),e.getEmitModuleResolutionKind(be)===e.ModuleResolutionKind.NodeJs){var je=!1;if(Me===void 0)for(var xn=function(o){ce.some(function(Cn){return Cn.name===o})||(je=!0,ce.push($(o,"external module name",void 0)))},Wn=0,dn=R(Ce,Te);Wn<dn.length;Wn++){var vn=dn[Wn];xn(vn)}je||e.forEachAncestorDirectory(Te,function(o){var Cn=e.combinePaths(o,"node_modules");e.tryDirectoryExists(Ce,Cn)&&A(te,Cn,Le,Ce,void 0,ce)})}return ce}function g(te){return we(te)?e.hasTrailingDirectorySeparator(te)?te:e.getDirectoryPath(te):void 0}function p(te,Te,be,Ce,Ue,Se){if(!e.endsWith(te,"*"))return e.stringContains(te,"*")?e.emptyArray:Le(te);var $e=te.slice(0,te.length-1),ce=e.tryRemovePrefix(be,$e);return ce===void 0?Le($e):e.flatMap(Te,function(qe){return d(ce,Ce,qe,Ue,Se)});function Le(qe){return e.startsWith(qe,be)?[L(qe)]:e.emptyArray}}function d(te,Te,be,Ce,Ue){if(!Ue.readDirectory)return;var Se=e.tryParsePattern(be);if(Se===void 0||e.isString(Se))return;var $e=e.resolvePath(Se.prefix),ce=e.hasTrailingDirectorySeparator(Se.prefix)?$e:e.getDirectoryPath($e),Le=e.hasTrailingDirectorySeparator(Se.prefix)?"":e.getBaseFileName($e),qe=we(te),pe=qe?e.hasTrailingDirectorySeparator(te)?te:e.getDirectoryPath(te):void 0,Me=qe?e.combinePaths(ce,Le+pe):ce,fn=e.normalizePath(Se.suffix),Ye=e.normalizePath(e.combinePaths(Te,Me)),Ne=qe?Ye:e.ensureTrailingDirectorySeparator(Ye)+Le,je=fn?"**/*":"./*",xn=e.mapDefined(e.tryReadDirectory(Ue,Ye,Ce,void 0,[je]),function(vn){var o=e.tryGetExtensionFromPath(vn),Cn=dn(vn);return Cn===void 0?void 0:$(e.removeFileExtension(Cn),"script",o)}),Wn=e.mapDefined(e.tryGetDirectories(Ue,Ye).map(function(vn){return e.combinePaths(Ye,vn)}),function(vn){var o=dn(vn);return o===void 0?void 0:L(o)});return Mt(Mt([],xn,!0),Wn,!0);function dn(vn){var o=T(e.normalizePath(vn),Ne,fn);return o===void 0?void 0:m(o)}}function T(te,Te,be){return e.startsWith(te,Te)&&e.endsWith(te,be)?te.slice(Te.length,te.length-be.length):void 0}function m(te){return te[0]===e.directorySeparator?te.slice(1):te}function k(te,Te,be){var Ce=be.getAmbientModules().map(function($e){return e.stripQuotes($e.name)}),Ue=Ce.filter(function($e){return e.startsWith($e,te)});if(Te!==void 0){var Se=e.ensureTrailingDirectorySeparator(Te);return Ue.map(function($e){return e.removePrefix($e,Se)})}return Ue}function N(te,Te,be,Ce){var Ue=e.getTokenAtPosition(te,Te),Se=e.getLeadingCommentRanges(te.text,Ue.pos),$e=Se&&e.find(Se,function(Ne){return Te>=Ne.pos&&Te<=Ne.end});if(!$e)return;var ce=te.text.slice($e.pos,Te),Le=J.exec(ce);if(!Le)return;var qe=Le[1],pe=Le[2],Me=Le[3],fn=e.getDirectoryPath(te.path),Ye=pe==="path"?A(Me,fn,ie(be,1),Ce,te.path):pe==="types"?D(Ce,be,fn,g(Me),ie(be)):e.Debug.fail();return E(Me,$e.pos+qe.length,Ye)}function D(te,Te,be,Ce,Ue,Se){Se===void 0&&(Se=[]);for(var $e=new e.Map,ce=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(Te,te)})||e.emptyArray,Le=0,qe=ce;Le<qe.length;Le++){var pe=qe[Le];je(pe)}for(var Me=0,fn=e.findPackageJsons(be,te);Me<fn.length;Me++){var Ye=fn[Me],Ne=e.combinePaths(e.getDirectoryPath(Ye),"node_modules/@types");je(Ne)}return Se;function je(xn){if(!e.tryDirectoryExists(te,xn))return;for(var Wn=0,dn=e.tryGetDirectories(te,xn);Wn<dn.length;Wn++){var vn=dn[Wn],o=e.unmangleScopedPackageName(vn);if(Te.types&&!e.contains(Te.types,o))continue;if(Ce===void 0)$e.has(o)||(Se.push($(o,"external module name",void 0)),$e.set(o,!0));else{var Cn=e.combinePaths(xn,vn),z=e.tryRemoveDirectoryPrefix(Ce,o,e.hostGetCanonicalFileName(te));z!==void 0&&A(z,Cn,Ue,te,void 0,Se)}}}}function R(te,Te){if(!te.readFile||!te.fileExists)return e.emptyArray;for(var be=[],Ce=0,Ue=e.findPackageJsons(Te,te);Ce<Ue.length;Ce++)for(var Se=Ue[Ce],$e=e.readJson(Se,te),ce=0,Le=C;ce<Le.length;ce++){var qe=Le[ce],pe=$e[qe];if(!pe)continue;for(var Me in pe)pe.hasOwnProperty(Me)&&!e.startsWith(Me,"@types/")&&be.push(Me)}return be}function me(te,Te){var be=Math.max(te.lastIndexOf(e.directorySeparator),te.lastIndexOf(e.altDirectorySeparator)),Ce=be!==-1?be+1:0,Ue=te.length-Ce;return Ue===0||e.isIdentifierText(te.substr(Ce,Ue),99)?void 0:e.createTextSpan(Te+Ce,Ue)}function q(te){if(te&&te.length>=2&&te.charCodeAt(0)===46){var Te=te.length>=3&&te.charCodeAt(1)===46?2:1,be=te.charCodeAt(Te);return be===47||be===92}return!1}var J=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,C=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function we(te){return e.stringContains(te,e.directorySeparator)}function Oe(te){return e.isCallExpression(te.parent)&&e.firstOrUndefined(te.parent.arguments)===te&&e.isIdentifier(te.parent.expression)&&te.parent.expression.escapedText==="require"}})(ee=ue.StringCompletions||(ue.StringCompletions={}))})(s=e.Completions||(e.Completions={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){ue.moduleSpecifierResolutionLimit=100,ue.moduleSpecifierResolutionCacheAttemptLimit=1e3;var ee;(function(Je){Je.LocalDeclarationPriority="10",Je.LocationPriority="11",Je.OptionalMember="12",Je.MemberDeclaredBySpreadAssignment="13",Je.SuggestedClassMembers="14",Je.GlobalsOrKeywords="15",Je.AutoImportSuggestions="16",Je.JavascriptIdentifiers="17",Je.DeprecatedLocalDeclarationPriority="18",Je.DeprecatedLocationPriority="19",Je.DeprecatedOptionalMember="20",Je.DeprecatedMemberDeclaredBySpreadAssignment="21",Je.DeprecatedSuggestedClassMembers="22",Je.DeprecatedGlobalsOrKeywords="23",Je.DeprecatedAutoImportSuggestions="24"})(ee=ue.SortText||(ue.SortText={}));var Y;(function(Je){Je[Je.LocalDeclarationPriority=10]="LocalDeclarationPriority",Je[Je.LocationPriority=11]="LocationPriority",Je[Je.OptionalMember=12]="OptionalMember",Je[Je.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",Je[Je.SuggestedClassMembers=14]="SuggestedClassMembers",Je[Je.GlobalsOrKeywords=15]="GlobalsOrKeywords",Je[Je.AutoImportSuggestions=16]="AutoImportSuggestions",Je[Je._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",Je[Je._DeprecatedStart=18]="_DeprecatedStart",Je[Je._First=10]="_First",Je[Je.DeprecatedOffset=8]="DeprecatedOffset"})(Y||(Y={}));var V;(function(Je){Je.ThisProperty="ThisProperty/"})(V=ue.CompletionSource||(ue.CompletionSource={}));var ne;(function(Je){Je[Je.ThisType=1]="ThisType",Je[Je.SymbolMember=2]="SymbolMember",Je[Je.Export=4]="Export",Je[Je.Promise=8]="Promise",Je[Je.Nullable=16]="Nullable",Je[Je.ResolvedExport=32]="ResolvedExport",Je[Je.SymbolMemberNoExport=2]="SymbolMemberNoExport",Je[Je.SymbolMemberExport=6]="SymbolMemberExport"})(ne||(ne={}));function _e(Je){return!!(Je.kind&1)}function O(Je){return!!(Je.kind&2)}function w(Je){return!!(Je&&Je.kind&4)}function b(Je){return!!(Je&&Je.kind===32)}function de(Je){return w(Je)||b(Je)}function fe(Je){return(w(Je)||b(Je))&&!!Je.isFromPackageJson}function _(Je){return!!(Je.kind&8)}function U(Je){return!!(Je.kind&16)}var Z;(function(Je){Je[Je.None=0]="None",Je[Je.All=1]="All",Je[Je.ClassElementKeywords=2]="ClassElementKeywords",Je[Je.InterfaceElementKeywords=3]="InterfaceElementKeywords",Je[Je.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",Je[Je.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",Je[Je.TypeAssertionKeywords=6]="TypeAssertionKeywords",Je[Je.TypeKeywords=7]="TypeKeywords",Je[Je.Last=7]="Last"})(Z||(Z={}));var v;(function(Je){Je[Je.Continue=0]="Continue",Je[Je.Success=1]="Success",Je[Je.Fail=2]="Fail"})(v||(v={}));function W(Je,En,Nn,ct,yt,Gt,$t){var Ke,Vn,Zn,Re=e.timestamp(),Pn=!1,rt=0,Yn=0,gt=0,lt=0,Fe=$t({tryResolve:K,resolutionLimitExceeded:function(){return Pn}}),Bn=lt?" ("+(gt/lt*100).toFixed(1)+"% hit rate)":"";return(Ke=En.log)===null||Ke===void 0||Ke.call(En,Je+": resolved "+Yn+" module specifiers, plus "+rt+" ambient and "+gt+" from cache"+Bn),(Vn=En.log)===null||Vn===void 0||Vn.call(En,Je+": response is "+(Pn?"incomplete":"complete")),(Zn=En.log)===null||Zn===void 0||Zn.call(En,Je+": "+(e.timestamp()-Re)),Fe;function K(An,Fn){if(Fn){var ln=e.codefix.getModuleSpecifierForBestExportInfo(An,ct,Nn,En,yt);return ln&&rt++,ln}var Ln=Gt||yt.allowIncompleteCompletions&&Yn<ue.moduleSpecifierResolutionLimit,Xe=!Ln&&yt.allowIncompleteCompletions&<<ue.moduleSpecifierResolutionCacheAttemptLimit,Dn=Ln||Xe?e.codefix.getModuleSpecifierForBestExportInfo(An,ct,Nn,En,yt,Xe):void 0;return(!Ln&&!Xe||Xe&&!Dn)&&(Pn=!0),Yn+=(Dn==null?void 0:Dn.computedWithoutCacheCount)||0,gt+=An.length-Yn,Xe&<++,Dn}}function x(Je,En,Nn,ct,yt,Gt,$t,Ke,Vn){var Zn,Re=Se(yt,ct).previousToken;if($t&&!e.isInString(ct,yt,Re)&&!$n(ct,$t,Re,yt))return;if($t===" ")return Gt.includeCompletionsForImportStatements&&Gt.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var Pn=En.getTypeChecker(),rt=En.getCompilerOptions(),Yn=Gt.allowIncompleteCompletions?(Zn=Je.getIncompleteCompletionsCache)===null||Zn===void 0?void 0:Zn.call(Je):void 0;if(Yn&&Ke===3&&Re&&e.isIdentifier(Re)){var gt=$(Yn,ct,Re,En,Je,Gt,Vn);if(gt)return gt}else Yn==null||Yn.clear();var lt=ue.StringCompletions.getStringLiteralCompletions(ct,yt,Re,Pn,rt,Je,Nn,Gt);if(lt)return lt;if(Re&&e.isBreakOrContinueStatement(Re.parent)&&(Re.kind===81||Re.kind===86||Re.kind===79))return m(Re.parent);var Fe=Ue(En,Nn,ct,ie(ct,rt),yt,Gt,void 0,Je,Vn);if(!Fe)return;switch(Fe.kind){case 0:var Bn=X(ct,Pn,rt,Nn,Fe,Gt);return(Bn==null?void 0:Bn.isIncomplete)&&(Yn==null||Yn.set(Bn)),Bn;case 1:return L(e.JsDoc.getJSDocTagNameCompletions());case 2:return L(e.JsDoc.getJSDocTagCompletions());case 3:return L(e.JsDoc.getJSDocParameterNameCompletions(Fe.tag));case 4:return E(Fe.keywords);default:return e.Debug.assertNever(Fe)}}ue.getCompletionsAtPosition=x;function $(Je,En,Nn,ct,yt,Gt,$t){var Ke,Vn=Je.get();if(!Vn)return;var Zn=Nn.text.toLowerCase(),Re=e.getExportInfoMap(En,yt,ct,$t),Pn=ct.getTypeChecker(),rt=(Ke=yt.getPackageJsonAutoImportProvider)===null||Ke===void 0?void 0:Ke.call(yt),Yn=rt==null?void 0:rt.getTypeChecker(),gt=W("continuePreviousIncompleteResponse",yt,ct,En,Gt,!1,function(lt){var Fe=e.mapDefined(Vn.entries,function(Bn){if(!Bn.hasAction||!Bn.source||!Bn.data||Bn.data.moduleSpecifier)return Bn;if(!hn(Bn.name,Zn))return;var K=e.Debug.checkDefined($e(Bn.name,Bn.data,ct,yt)),An=K.symbol,Fn=K.origin,ln=Re.get(En.path,Bn.name,An,Fn.moduleSymbol.name,Fn.isFromPackageJson?Yn:Pn),Ln=ln&<.tryResolve(ln,!e.isExternalModuleNameRelative(e.stripQuotes(Fn.moduleSymbol.name)));if(!Ln)return Bn;var Xe=pr(pr({},Fn),{kind:32,moduleSpecifier:Ln.moduleSpecifier});return Bn.data=f(Xe),Bn.source=d(Xe),Bn.sourceDisplay=[e.textPart(Xe.moduleSpecifier)],Bn});return lt.resolutionLimitExceeded()||(Vn.isIncomplete=void 0),Fe});return Vn.entries=gt,Vn}function L(Je){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Je}}function E(Je){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Je.map(function(En){return{name:e.tokenToString(En),kind:"keyword",kindModifiers:"",sortText:ee.GlobalsOrKeywords}})}}function ae(Je){return(Je==null?void 0:Je.kind)===79?e.createTextSpanFromNode(Je):void 0}function X(Je,En,Nn,ct,yt,Gt){var $t=yt.symbols,Ke=yt.completionKind,Vn=yt.isInSnippetScope,Zn=yt.isNewIdentifierLocation,Re=yt.location,Pn=yt.propertyAccessToConvert,rt=yt.keywordFilters,Yn=yt.literals,gt=yt.symbolToOriginInfoMap,lt=yt.recommendedCompletion,Fe=yt.isJsxInitializer,Bn=yt.isTypeOnlyLocation,K=yt.isJsxIdentifierExpected,An=yt.importCompletionNode,Fn=yt.insideJsDocTagTypeExpression,ln=yt.symbolToSortTextIdMap,Ln=yt.hasUnresolvedAutoImports;if(e.getLanguageVariant(Je.scriptKind)===1){var Xe=P(Re,Je);if(Xe)return Xe}var Dn=[];if(ie(Je,Nn)){var rn=T($t,Dn,void 0,Re,Je,En,Nn.target,ct,Ke,Gt,Nn,Bn,Pn,K,Fe,An,lt,gt,ln);I(Je,Re.pos,rn,Nn.target,Dn)}else{if(!Zn&&(!$t||$t.length===0)&&rt===0)return;T($t,Dn,void 0,Re,Je,En,Nn.target,ct,Ke,Gt,Nn,Bn,Pn,K,Fe,An,lt,gt,ln)}if(rt!==0)for(var qn=new e.Set(Dn.map(function(Jt){return Jt.name})),it=0,ht=pe(rt,!Fn&&e.isSourceFileJS(Je));it<ht.length;it++){var Et=ht[it];qn.has(Et.name)||Dn.push(Et)}for(var zt=0,fr=Yn;zt<fr.length;zt++){var br=fr[zt];Dn.push(B(Je,Gt,br))}return{isGlobalCompletion:Vn,isIncomplete:Gt.allowIncompleteCompletions&&Ln?!0:void 0,isMemberCompletion:le(Ke),isNewIdentifierLocation:Zn,optionalReplacementSpan:ae(Re),entries:Dn}}function ie(Je,En){return e.isSourceFileJS(Je)&&!e.isCheckJsEnabledForFile(Je,En)}function le(Je){switch(Je){case 0:case 3:case 2:return!0;default:return!1}}function P(Je,En){var Nn=e.findAncestor(Je,function(Zn){switch(Zn.kind){case 279:return!0;case 43:case 31:case 79:case 204:return!1;default:return"quit"}});if(Nn){var ct=!!e.findChildOfKind(Nn,31,En),yt=Nn.parent.openingElement.tagName,Gt=yt.getText(En),$t=Gt+(ct?"":">"),Ke=e.createTextSpanFromNode(Nn.tagName),Vn={name:$t,kind:"class",kindModifiers:void 0,sortText:ee.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Ke,entries:[Vn]}}return}function I(Je,En,Nn,ct,yt){e.getNameTable(Je).forEach(function(Gt,$t){if(Gt===En)return;var Ke=e.unescapeLeadingUnderscores($t);!Nn.has(Ke)&&e.isIdentifierText(Ke,ct)&&(Nn.add(Ke),yt.push({name:Ke,kind:"warning",kindModifiers:"",sortText:ee.JavascriptIdentifiers,isFromUncheckedFile:!0}))})}function re(Je,En,Nn){return typeof Nn=="object"?e.pseudoBigIntToString(Nn)+"n":e.isString(Nn)?e.quote(Je,En,Nn):JSON.stringify(Nn)}function B(Je,En,Nn){return{name:re(Je,En,Nn),kind:"string",kindModifiers:"",sortText:ee.LocationPriority}}function A(Je,En,Nn,ct,yt,Gt,$t,Ke,Vn,Zn,Re,Pn,rt,Yn,gt,lt){var Fe,Bn,K=e.getReplacementSpanForContextToken(Nn),An,Fn,ln,Ln,Xe=Vn&&U(Vn),Dn=Vn&&O(Vn)||Ke;if(Vn&&_e(Vn))Bn=Ke?"this"+(Xe?"?.":"")+"["+g(yt,lt,$t)+"]":"this"+(Xe?"?.":".")+$t;else if((Dn||Xe)&&Re){Bn=Dn?Ke?"["+g(yt,lt,$t)+"]":"["+$t+"]":$t,(Xe||Re.questionDotToken)&&(Bn="?."+Bn);var rn=e.findChildOfKind(Re,24,yt)||e.findChildOfKind(Re,28,yt);if(!rn)return;var qn=e.startsWith($t,Re.name.text)?Re.name.end:rn.end;K=e.createTextSpanFromBounds(rn.getStart(yt),qn)}if(Pn&&(Bn===void 0&&(Bn=$t),Bn="{"+Bn+"}",typeof Pn!="boolean"&&(K=e.createTextSpanFromNode(Pn,yt))),Vn&&_(Vn)&&Re){Bn===void 0&&(Bn=$t);var it=e.findPrecedingToken(Re.pos,yt),ht="";it&&e.positionIsASICandidate(it.end,it.parent,yt)&&(ht=";"),ht+="(await "+Re.expression.getText()+")",Bn=Ke?""+ht+Bn:""+ht+(Xe?"?.":".")+Bn,K=e.createTextSpanFromBounds(Re.getStart(yt),Re.end)}return b(Vn)&&(ln=[e.textPart(Vn.moduleSpecifier)],rt&&(Fe=F($t,rt,Vn,Yn,gt,lt),Bn=Fe.insertText,K=Fe.replacementSpan,Fn=lt.includeCompletionsWithSnippetText?!0:void 0)),Bn!==void 0&&!lt.includeCompletionsWithInsertText?void 0:((w(Vn)||b(Vn))&&(An=f(Vn),Ln=!rt),{name:$t,kind:e.SymbolDisplay.getSymbolKind(Gt,Je,ct),kindModifiers:e.SymbolDisplay.getSymbolModifiers(Gt,Je),sortText:En,source:d(Vn),hasAction:Ln?!0:void 0,isRecommended:p(Je,Zn,Gt)||void 0,insertText:Bn,replacementSpan:K,sourceDisplay:ln,isSnippet:Fn,isPackageJsonImport:fe(Vn)||void 0,isImportStatementCompletion:!!rt||void 0,data:An})}function f(Je){return{exportName:Je.exportName,fileName:Je.fileName,ambientModuleName:Je.fileName?void 0:e.stripQuotes(Je.moduleSymbol.name),isPackageJsonImport:Je.isFromPackageJson?!0:void 0,moduleSpecifier:b(Je)?Je.moduleSpecifier:void 0}}function F(Je,En,Nn,ct,yt,Gt){var $t=En.getSourceFile(),Ke=e.createTextSpanFromNode(En,$t),Vn=e.quote($t,Gt,Nn.moduleSpecifier),Zn=Nn.isDefaultExport?1:Nn.exportName==="export="?2:0,Re=Gt.includeCompletionsWithSnippetText?"$1":"",Pn=e.codefix.getImportKind($t,Zn,yt,!0),rt=ct?";":"";switch(Pn){case 3:return{replacementSpan:Ke,insertText:"import "+Je+Re+" = require("+Vn+")"+rt};case 1:return{replacementSpan:Ke,insertText:"import "+Je+Re+" from "+Vn+rt};case 2:return{replacementSpan:Ke,insertText:"import * as "+Je+" from "+Vn+rt};case 0:return{replacementSpan:Ke,insertText:"import { "+Je+Re+" } from "+Vn+rt}}}function g(Je,En,Nn){return/^\d+$/.test(Nn)?Nn:e.quote(Je,En,Nn)}function p(Je,En,Nn){return Je===En||!!(Je.flags&1048576)&&Nn.getExportSymbolOfSymbol(Je)===En}function d(Je){if(w(Je))return e.stripQuotes(Je.moduleSymbol.name);if(b(Je))return Je.moduleSpecifier;if((Je==null?void 0:Je.kind)===1)return V.ThisProperty}function T(Je,En,Nn,ct,yt,Gt,$t,Ke,Vn,Zn,Re,Pn,rt,Yn,gt,lt,Fe,Bn,K){for(var An,Fn=e.timestamp(),ln=xe(ct),Ln=e.probablyUsesSemicolons(yt),Xe=new e.Map,Dn=0;Dn<Je.length;Dn++){var rn=Je[Dn],qn=Bn==null?void 0:Bn[Dn],it=ce(rn,$t,qn,Vn,!!Yn);if(!it||Xe.get(it.name)||Vn===1&&K&&!mr(rn,K))continue;var ht=it.name,Et=it.needsConvertPropertyAccess,zt=(An=K==null?void 0:K[e.getSymbolId(rn)])!==null&&An!==void 0?An:11,fr=(Be(rn,Gt)?8+zt:zt).toString(),br=A(rn,fr,Nn,ct,yt,Gt,ht,Et,qn,Fe,rt,gt,lt,Ln,Re,Zn);if(!br)continue;var Jt=!qn&&!(rn.parent===void 0&&!e.some(rn.declarations,function(Ht){return Ht.getSourceFile()===ct.getSourceFile()}));Xe.set(ht,Jt),En.push(br)}return Ke("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-Fn)),{has:function(Ht){return Xe.has(Ht)},add:function(Ht){return Xe.set(Ht,!0)}};function mr(Ht,Xr){if(!e.isSourceFile(ct)){if(e.isExportAssignment(ct.parent))return!0;if(ln&&Ht.valueDeclaration===ln)return!1;var At=e.skipAlias(Ht,Gt);if(!!yt.externalModuleIndicator&&!Re.allowUmdGlobalAccess&&Xr[e.getSymbolId(Ht)]===15&&(Xr[e.getSymbolId(At)]===16||Xr[e.getSymbolId(At)]===11))return!1;if(Ht=At,e.isInRightSideOfInternalImportEqualsDeclaration(ct))return!!(Ht.flags&1920);if(Pn)return wn(Ht,Gt)}return!!(e.getCombinedLocalAndExportSymbolFlags(Ht)&111551)}}ue.getCompletionEntriesFromSymbols=T;function m(Je){var En=k(Je);if(En.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:En}}function k(Je){for(var En=[],Nn=new e.Map,ct=Je;ct&&!e.isFunctionLike(ct);){if(e.isLabeledStatement(ct)){var yt=ct.label.text;Nn.has(yt)||(Nn.set(yt,!0),En.push({name:yt,kindModifiers:"",kind:"label",sortText:ee.LocationPriority}))}ct=ct.parent}return En}function N(Je,En,Nn,ct,yt,Gt,$t){if(yt.data){var Ke=$e(yt.name,yt.data,Je,Gt);if(Ke)return{type:"symbol",symbol:Ke.symbol,location:e.getTouchingPropertyName(Nn,ct),previousToken:e.findPrecedingToken(ct,Nn,void 0),isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Ke.origin}}var Vn=Je.getCompilerOptions(),Zn=Ue(Je,En,Nn,ie(Nn,Vn),ct,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},yt,Gt);if(!Zn)return{type:"none"};if(Zn.kind!==0)return{type:"request",request:Zn};var Re=Zn.symbols,Pn=Zn.literals,rt=Zn.location,Yn=Zn.completionKind,gt=Zn.symbolToOriginInfoMap,lt=Zn.previousToken,Fe=Zn.isJsxInitializer,Bn=Zn.isTypeOnlyLocation,K=e.find(Pn,function(An){return re(Nn,$t,An)===yt.name});return K!==void 0?{type:"literal",literal:K}:e.firstDefined(Re,function(An,Fn){var ln=gt[Fn],Ln=ce(An,Vn.target,ln,Yn,Zn.isJsxIdentifierExpected);return Ln&&Ln.name===yt.name&&d(ln)===yt.source?{type:"symbol",symbol:An,location:rt,origin:ln,previousToken:lt,isJsxInitializer:Fe,isTypeOnlyLocation:Bn}:void 0})||{type:"none"}}function D(Je,En,Nn,ct,yt,Gt,$t,Ke,Vn){var Zn=Je.getTypeChecker(),Re=Je.getCompilerOptions(),Pn=yt.name,rt=e.findPrecedingToken(ct,Nn);if(e.isInString(Nn,ct,rt))return ue.StringCompletions.getStringLiteralCompletionDetails(Pn,Nn,ct,rt,Zn,Re,Gt,Vn,Ke);var Yn=N(Je,En,Nn,ct,yt,Gt,Ke);switch(Yn.type){case"request":{var gt=Yn.request;switch(gt.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(Pn);case 2:return e.JsDoc.getJSDocTagCompletionDetails(Pn);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(Pn);case 4:return gt.keywords.indexOf(e.stringToToken(Pn))>-1?R(Pn,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(gt)}}case"symbol":{var lt=Yn.symbol,Fe=Yn.location,Bn=Yn.origin,K=Yn.previousToken,An=J(Bn,lt,Je,Gt,Re,Nn,ct,K,$t,Ke,yt.data),Fn=An.codeActions,ln=An.sourceDisplay;return me(lt,Zn,Nn,Fe,Vn,Fn,ln)}case"literal":{var Ln=Yn.literal;return R(re(Nn,Ke,Ln),"string",typeof Ln=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return qe().some(function(Xe){return Xe.name===Pn})?R(Pn,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(Yn)}}ue.getCompletionEntryDetails=D;function R(Je,En,Nn){return q(Je,"",En,[e.displayPart(Je,Nn)])}function me(Je,En,Nn,ct,yt,Gt,$t){var Ke=En.runWithCancellationToken(yt,function(rt){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(rt,Je,Nn,ct,ct,7)}),Vn=Ke.displayParts,Zn=Ke.documentation,Re=Ke.symbolKind,Pn=Ke.tags;return q(Je.name,e.SymbolDisplay.getSymbolModifiers(En,Je),Re,Vn,Zn,Pn,Gt,$t)}ue.createCompletionDetailsForSymbol=me;function q(Je,En,Nn,ct,yt,Gt,$t,Ke){return{name:Je,kindModifiers:En,kind:Nn,displayParts:ct,documentation:yt,tags:Gt,codeActions:$t,source:Ke,sourceDisplay:Ke}}ue.createCompletionDetails=q;function J(Je,En,Nn,ct,yt,Gt,$t,Ke,Vn,Zn,Re){if(Re==null?void 0:Re.moduleSpecifier){var Pn=Se($t,Gt),rt=Pn.contextToken,Yn=Pn.previousToken;if(Yn&&Qe(rt||Yn))return{codeActions:void 0,sourceDisplay:[e.textPart(Re.moduleSpecifier)]}}if(!Je||!(w(Je)||b(Je)))return{codeActions:void 0,sourceDisplay:void 0};var gt=Je.isFromPackageJson?ct.getPackageJsonAutoImportProvider().getTypeChecker():Nn.getTypeChecker(),lt=Je.moduleSymbol,Fe=gt.getMergedSymbol(e.skipAlias(En.exportSymbol||En,gt)),Bn=e.codefix.getImportCompletionAction(Fe,lt,Gt,e.getNameForExportedSymbol(En,yt.target),ct,Nn,Vn,Ke&&e.isIdentifier(Ke)?Ke.getStart(Gt):$t,Zn),K=Bn.moduleSpecifier,An=Bn.codeAction;return e.Debug.assert(!(Re==null?void 0:Re.moduleSpecifier)||K===Re.moduleSpecifier),{sourceDisplay:[e.textPart(K)],codeActions:[An]}}function C(Je,En,Nn,ct,yt,Gt,$t){var Ke=N(Je,En,Nn,ct,yt,Gt,$t);return Ke.type==="symbol"?Ke.symbol:void 0}ue.getCompletionEntrySymbol=C;var we;(function(Je){Je[Je.Data=0]="Data",Je[Je.JsDocTagName=1]="JsDocTagName",Je[Je.JsDocTag=2]="JsDocTag",Je[Je.JsDocParameterName=3]="JsDocParameterName",Je[Je.Keywords=4]="Keywords"})(we||(we={}));var Oe;(function(Je){Je[Je.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",Je[Je.Global=1]="Global",Je[Je.PropertyAccess=2]="PropertyAccess",Je[Je.MemberLike=3]="MemberLike",Je[Je.String=4]="String",Je[Je.None=5]="None"})(Oe=ue.CompletionKind||(ue.CompletionKind={}));function te(Je,En,Nn){return e.firstDefined(En&&(En.isUnion()?En.types:[En]),function(ct){var yt=ct&&ct.symbol;return yt&&yt.flags&(8|384|32)&&!e.isAbstractConstructorSymbol(yt)?be(yt,Je,Nn):void 0})}function Te(Je,En,Nn,ct){var yt=Je.parent;switch(Je.kind){case 79:return e.getContextualTypeFromParent(Je,ct);case 63:switch(yt.kind){case 252:return ct.getContextualType(yt.initializer);case 219:return ct.getTypeAtLocation(yt.left);case 283:return ct.getContextualTypeForJsxAttribute(yt);default:return}case 103:return ct.getContextualType(yt);case 82:return e.getSwitchedType(e.cast(yt,e.isCaseClause),ct);case 18:return e.isJsxExpression(yt)&&yt.parent.kind!==276?ct.getContextualTypeForJsxAttribute(yt.parent):void 0;default:var Gt=e.SignatureHelp.getArgumentInfoForCompletions(Je,En,Nn);return Gt?ct.getContextualTypeForArgumentAtIndex(Gt.invocation,Gt.argumentIndex+(Je.kind===27?1:0)):e.isEqualityOperatorKind(Je.kind)&&e.isBinaryExpression(yt)&&e.isEqualityOperatorKind(yt.operatorToken.kind)?ct.getTypeAtLocation(yt.left):ct.getContextualType(Je)}}function be(Je,En,Nn){var ct=Nn.getAccessibleSymbolChain(Je,En,67108863,!1);return ct?e.first(ct):Je.parent&&(Ce(Je.parent)?Je:be(Je.parent,En,Nn))}function Ce(Je){var En;return!!((En=Je.declarations)===null||En===void 0?void 0:En.some(function(Nn){return Nn.kind===300}))}function Ue(Je,En,Nn,ct,yt,Gt,$t,Ke,Vn){var Zn=Je.getTypeChecker(),Re=e.timestamp(),Pn=e.getTokenAtPosition(Nn,yt);En("getCompletionData: Get current token: "+(e.timestamp()-Re)),Re=e.timestamp();var rt=e.isInComment(Nn,yt,Pn);En("getCompletionData: Is inside comment: "+(e.timestamp()-Re));var Yn=!1,gt=!1;if(rt){if(e.hasDocComment(Nn,yt)){if(Nn.text.charCodeAt(yt-1)===64)return{kind:1};var lt=e.getLineStartPositionForPosition(yt,Nn);if(!/[^\*|\s(/)]/.test(Nn.text.substring(lt,yt)))return{kind:2}}var Fe=Wn(Pn,yt);if(Fe){if(Fe.tagName.pos<=yt&&yt<=Fe.tagName.end)return{kind:1};if(Lt(Fe)&&Fe.typeExpression&&Fe.typeExpression.kind===304&&(Pn=e.getTokenAtPosition(Nn,yt),(!Pn||!e.isDeclarationName(Pn)&&(Pn.parent.kind!==342||Pn.parent.name!==Pn))&&(Yn=pn(Fe.typeExpression))),!Yn&&e.isJSDocParameterTag(Fe)&&(e.nodeIsMissing(Fe.name)||Fe.name.pos<=yt&&yt<=Fe.name.end))return{kind:3,tag:Fe}}if(!Yn){En("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}Re=e.timestamp();var Bn=Se(yt,Nn),K=Bn.previousToken,An=Bn.contextToken;En("getCompletionData: Get previous token: "+(e.timestamp()-Re));var Fn=Pn,ln,Ln=!1,Xe=!1,Dn=!1,rn=!1,qn=!1,it=!1,ht,Et=e.getTouchingPropertyName(Nn,yt);if(An){var zt=Qe(An);if(zt===154)return{kind:4,keywords:[154]};if(zt&&Gt.includeCompletionsForImportStatements&&Gt.includeCompletionsWithInsertText&&(ht=zt),!ht&&Vi(An)){En("Returning an empty list because completion was requested in an invalid position.");return}var fr=An.parent;if(An.kind===24||An.kind===28){Ln=An.kind===24,Xe=An.kind===28;switch(fr.kind){case 204:ln=fr,Fn=ln.expression;var br=e.getLeftmostAccessExpression(ln);if(e.nodeIsMissing(br)||(e.isCallExpression(Fn)||e.isFunctionLike(Fn))&&Fn.end===An.pos&&Fn.getChildCount(Nn)&&e.last(Fn.getChildren(Nn)).kind!==21)return;break;case 159:Fn=fr.left;break;case 259:Fn=fr.name;break;case 198:Fn=fr;break;case 229:Fn=fr.getFirstToken(Nn),e.Debug.assert(Fn.kind===100||Fn.kind===103);break;default:return}}else if(!ht&&Nn.languageVariant===1){if(fr&&fr.kind===204&&(An=fr,fr=fr.parent),Pn.parent===Et)switch(Pn.kind){case 31:(Pn.parent.kind===276||Pn.parent.kind===278)&&(Et=Pn);break;case 43:Pn.parent.kind===277&&(Et=Pn);break}switch(fr.kind){case 279:An.kind===43&&(rn=!0,Et=An);break;case 219:if(!Un(fr))break;case 277:case 276:case 278:it=!0,An.kind===29&&(Dn=!0,Et=An);break;case 286:case 285:K.kind===19&&Pn.kind===31&&(it=!0);break;case 283:if(fr.initializer===K&&K.end<yt){it=!0;break}switch(K.kind){case 63:qn=!0;break;case 79:it=!0,fr!==K.parent&&!fr.initializer&&e.findChildOfKind(fr,63,Nn)&&(qn=K)}break}}}var Jt=e.timestamp(),mr=5,Ht=!1,Xr=!1,At=!1,Wr=0,Or=[],Ja=[],qa=[],eo=new e.Map,Va=Mi(),la=e.memoizeOne(function(j){return e.createModuleSpecifierResolutionHost(j?Ke.getPackageJsonAutoImportProvider():Je,Ke)});if(Ln||Xe)xt();else if(Dn)Or=Zn.getJsxIntrinsicTagNamesAt(Et),e.Debug.assertEachIsDefined(Or,"getJsxIntrinsicTagNames() should all be defined"),at(),mr=1,Wr=0;else if(rn){var wt=An.parent.parent.openingElement.tagName,rr=Zn.getSymbolAtLocation(wt);rr&&(Or=[rr]),mr=1,Wr=0}else if(!at())return;En("getCompletionData: Semantic work: "+(e.timestamp()-Jt));var Wt=K&&Te(K,yt,Nn,Zn),Pr=e.mapDefined(Wt&&(Wt.isUnion()?Wt.types:[Wt]),function(j){return j.isLiteral()?j.value:void 0}),ra=K&&Wt&&te(K,Wt,Zn);return{kind:0,symbols:Or,completionKind:mr,isInSnippetScope:gt,propertyAccessToConvert:ln,isNewIdentifierLocation:Ht,location:Et,keywordFilters:Wr,literals:Pr,symbolToOriginInfoMap:Ja,recommendedCompletion:ra,previousToken:K,isJsxInitializer:qn,insideJsDocTagTypeExpression:Yn,symbolToSortTextIdMap:qa,isTypeOnlyLocation:Va,isJsxIdentifierExpected:it,importCompletionNode:ht,hasUnresolvedAutoImports:At};function Lt(j){switch(j.kind){case 335:case 342:case 336:case 338:case 340:return!0;default:return!1}}function xt(){mr=2;var j=e.isLiteralImportTypeNode(Fn),De=Yn||j&&!Fn.isTypeOf||e.isPartOfTypeNode(Fn.parent)||e.isPossiblyTypeArgumentPosition(An,Nn,Zn),Ve=e.isInRightSideOfInternalImportEqualsDeclaration(Fn);if(e.isEntityName(Fn)||j||e.isPropertyAccessExpression(Fn)){var un=e.isModuleDeclaration(Fn.parent);un&&(Ht=!0);var jn=Zn.getSymbolAtLocation(Fn);if(jn&&(jn=e.skipAlias(jn,Zn),jn.flags&(1536|384))){var mt=Zn.getExportsOfModule(jn);e.Debug.assertEachIsDefined(mt,"getExportsOfModule() should all be defined");for(var St=function(No){return Zn.isValidPropertyAccess(j?Fn:Fn.parent,No.name)},ir=function(No){return wn(No,Zn)},_r=un?function(No){var Ks;return!!(No.flags&1920)&&!((Ks=No.declarations)===null||Ks===void 0?void 0:Ks.every(function(Js){return Js.parent===Fn.parent}))}:Ve?function(No){return ir(No)||St(No)}:De?ir:St,na=0,wa=mt;na<wa.length;na++){var za=wa[na];_r(za)&&Or.push(za)}if(!De&&jn.declarations&&jn.declarations.some(function(No){return No.kind!==300&&No.kind!==259&&No.kind!==258})){var bi=Zn.getTypeOfSymbolAtLocation(jn,Fn).getNonOptionalType(),Xi=!1;if(bi.isNullableType()){var co=Ln&&!Xe&&Gt.includeAutomaticOptionalChainCompletions!==!1;(co||Xe)&&(bi=bi.getNonNullableType(),co&&(Xi=!0))}Yt(bi,!!(Fn.flags&32768),Xi)}return}}if(!De){var Ss=e.getThisContainer(Fn,!1);!e.isSourceFile(Ss)&&Ss.parent&&Zn.getTypeAtLocation(Ss);var bi=Zn.getTypeAtLocation(Fn).getNonOptionalType(),Xi=!1;if(bi.isNullableType()){var co=Ln&&!Xe&&Gt.includeAutomaticOptionalChainCompletions!==!1;(co||Xe)&&(bi=bi.getNonNullableType(),co&&(Xi=!0))}Yt(bi,!!(Fn.flags&32768),Xi)}}function Yt(j,De,Ve){Ht=!!j.getStringIndexType(),Xe&&e.some(j.getCallSignatures())&&(Ht=!0);var un=Fn.kind===198?Fn:Fn.parent;if(ct)Or.push.apply(Or,e.filter(vn(j,Zn),function(wa){return Zn.isValidPropertyAccessForCompletions(un,j,wa)}));else for(var jn=0,mt=j.getApparentProperties();jn<mt.length;jn++){var St=mt[jn];Zn.isValidPropertyAccessForCompletions(un,j,St)&&Qt(St,!1,Ve)}if(De&&Gt.includeCompletionsWithInsertText){var ir=Zn.getPromisedTypeOfPromise(j);if(ir)for(var _r=0,na=ir.getApparentProperties();_r<na.length;_r++){var St=na[_r];Zn.isValidPropertyAccessForCompletions(un,ir,St)&&Qt(St,!0,Ve)}}}function Qt(j,De,Ve){var un=e.firstDefined(j.declarations,function(Xi){return e.tryCast(e.getNameOfDeclaration(Xi),e.isComputedPropertyName)});if(un){var jn=sr(un.expression),mt=jn&&Zn.getSymbolAtLocation(jn),St=mt&&be(mt,An,Zn);if(St&&e.addToSeen(eo,e.getSymbolId(St))){var ir=Or.length;Or.push(St);var _r=St.parent;if(!_r||!e.isExternalModuleSymbol(_r))Ja[ir]={kind:bi(2)};else{var na={kind:bi(6),moduleSymbol:_r,isDefaultExport:!1,symbolName:St.name,exportName:St.name,fileName:e.isExternalModuleNameRelative(e.stripQuotes(_r.name))?e.cast(_r.valueDeclaration,e.isSourceFile).fileName:void 0};Ja[ir]=na}}else Gt.includeCompletionsWithInsertText&&(za(j),wa(j),Or.push(j))}else za(j),wa(j),Or.push(j);function wa(Xi){Pe(Xi)&&(qa[e.getSymbolId(Xi)]=10)}function za(Xi){Gt.includeCompletionsWithInsertText&&(De&&e.addToSeen(eo,e.getSymbolId(Xi))?Ja[Or.length]={kind:bi(8)}:Ve&&(Ja[Or.length]={kind:16}))}function bi(Xi){return Ve?Xi|16:Xi}}function sr(j){return e.isIdentifier(j)?j:e.isPropertyAccessExpression(j)?sr(j.expression):void 0}function at(){var j=Rs()||Ls()||li()||Ca()||ai()||ea()||Pi()||Fa()||(Si(),1);return j===1}function ea(){return _s(An)?(mr=5,Ht=!0,Wr=4,1):0}function Fa(){var j=Io(An),De=j&&Zn.getContextualType(j.attributes);if(!De)return 0;var Ve=j&&Zn.getContextualType(j.attributes,4);return Or=e.concatenate(Or,se(dn(De,Ve,j.attributes,Zn),j.attributes.properties)),Za(),mr=3,Ht=!1,1}function li(){return ht?(Ht=!0,ui(),1):0}function Si(){Wr=Oi(An)?5:1,mr=1,Ht=Qi(),K!==An&&e.Debug.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");var j=K!==An?K.getStart():yt,De=xo(An,j,Nn)||Nn;gt=ci(De);var Ve=(Va?0:111551)|788968|1920|2097152;Or=e.concatenate(Or,Zn.getSymbolsInScope(De,Ve)),e.Debug.assertEachIsDefined(Or,"getSymbolsInScope() should all be defined");for(var un=0,jn=Or;un<jn.length;un++){var mt=jn[un];!Zn.isArgumentsSymbol(mt)&&!e.some(mt.declarations,function(na){return na.getSourceFile()===Nn})&&(qa[e.getSymbolId(mt)]=15)}if(Gt.includeCompletionsWithInsertText&&De.kind!==300){var St=Zn.tryGetThisTypeAt(De,!1);if(St&&!oe(St,Nn,Zn))for(var ir=0,_r=vn(St,Zn);ir<_r.length;ir++){var mt=_r[ir];Ja[Or.length]={kind:1},Or.push(mt),qa[e.getSymbolId(mt)]=14}}ui(),Va&&(Wr=An&&e.isAssertionExpression(An.parent)?6:7)}function Qr(){return ht?!0:Xr?!1:Gt.includeCompletionsForModuleExports?Nn.externalModuleIndicator||Nn.commonJsModuleIndicator||e.compilerOptionsIndicateEs6Modules(Je.getCompilerOptions())?!0:e.programContainsModules(Je):!1}function ci(j){switch(j.kind){case 300:case 221:case 286:case 233:return!0;default:return e.isStatement(j)}}function Mi(){return Yn||!ro(An)&&(e.isPossiblyTypeArgumentPosition(An,Nn,Zn)||e.isPartOfTypeNode(Et)||xi(An))}function ro(j){return j&&(j.kind===112&&(j.parent.kind===179||e.isTypeOfExpression(j.parent))||j.kind===128&&j.parent.kind===175)}function xi(j){if(j){var De=j.parent.kind;switch(j.kind){case 58:return De===165||De===164||De===162||De===252||e.isFunctionLikeKind(De);case 63:return De===257;case 127:return De===227;case 29:return De===176||De===209;case 94:return De===161}}return!1}function ui(){var j,De;if(!Qr())return;if(e.Debug.assert(!($t==null?void 0:$t.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),$t&&!$t.source)return;var Ve=(j=Ke.getModuleSpecifierCache)===null||j===void 0?void 0:j.call(Ke),un=K&&e.isIdentifier(K)?K.text.toLowerCase():"",jn=e.getExportInfoMap(Nn,Ke,Je,Vn),mt=(De=Ke.getPackageJsonAutoImportProvider)===null||De===void 0?void 0:De.call(Ke),St=$t?void 0:e.createPackageJsonImportFilter(Nn,Gt,Ke);W("collectAutoImports",Ke,Je,Nn,Gt,!!ht,function(_r){jn.forEach(Nn.path,function(na,wa,za){if(!e.isIdentifierText(wa,e.getEmitScriptTarget(Ke.getCompilationSettings())))return;if(!$t&&e.isStringANonContextualKeyword(wa))return;if(!Va&&!ht&&!(na[0].targetFlags&111551))return;if(Va&&!(na[0].targetFlags&(1536|788968)))return;var bi=$t&&e.some(na,function(yl){return $t.source===e.stripQuotes(yl.moduleSymbol.name)});if(bi||!$t&&hn(wa,un)){var Xi=e.find(na,ir);if(!Xi)return;var co=_r.tryResolve(na,za)||{},Ss=co.exportInfo,No=Ss===void 0?Xi:Ss,Ks=co.moduleSpecifier,Js=No.exportKind===1,gl=Js&&e.getLocalSymbolForExportDefault(No.symbol)||No.symbol;lo(gl,{kind:Ks?32:4,moduleSpecifier:Ks,symbolName:wa,exportName:No.exportKind===2?"export=":No.symbol.name,fileName:No.moduleFileName,isDefaultExport:Js,moduleSymbol:No.moduleSymbol,isFromPackageJson:No.isFromPackageJson})}}),At=_r.resolutionLimitExceeded()});function ir(_r){var na=e.tryCast(_r.moduleSymbol.valueDeclaration,e.isSourceFile);if(!na){var wa=e.stripQuotes(_r.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(wa)&&e.startsWith(wa,"node:")!==e.shouldUseUriStyleNodeCoreModules(Nn,Je)?!1:St?St.allowsImportingAmbientModule(_r.moduleSymbol,la(_r.isFromPackageJson)):!0}return e.isImportableFile(_r.isFromPackageJson?mt:Je,Nn,na,Gt,St,la(_r.isFromPackageJson),Ve)}}function lo(j,De){var Ve=e.getSymbolId(j);if(qa[Ve]===15)return;Ja[Or.length]=De,qa[Ve]=ht?11:16,Or.push(j)}function xo(j,De,Ve){for(var un=j;un&&!e.positionBelongsToNode(un,De,Ve);)un=un.parent;return un}function Vi(j){var De=e.timestamp(),Ve=mo(j)||fs(j)||yn(j)||os(j)||e.isBigIntLiteral(j);return En("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-De)),Ve}function os(j){if(j.kind===11)return!0;if(j.kind===31&&j.parent){if(j.parent.kind===278)return Et.parent.kind!==278;if(j.parent.kind===279||j.parent.kind===277)return!!j.parent.parent&&j.parent.parent.kind===276}return!1}function Qi(){if(An){var j=An.parent.kind;switch(xn(An)){case 27:return j===206||j===169||j===207||j===202||j===219||j===177||j===203;case 20:return j===206||j===169||j===207||j===210||j===189;case 22:return j===202||j===174||j===160;case 140:case 141:return!0;case 24:return j===259;case 18:return j===255||j===203;case 63:return j===252||j===219;case 15:return j===221;case 16:return j===231;case 123:case 121:case 122:return j===165}}return!1}function mo(j){return(e.isRegularExpressionLiteral(j)||e.isStringTextContainingNode(j))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(j)),yt)||yt===j.end&&(!!j.isUnterminated||e.isRegularExpressionLiteral(j)))}function Rs(){var j=Cn(An);if(!j)return 0;var De=e.isIntersectionTypeNode(j.parent)?j.parent:void 0,Ve=De||j,un=z(Ve,Zn);if(!un)return 0;var jn=Zn.getTypeFromTypeNode(Ve),mt=vn(un,Zn),St=vn(jn,Zn),ir=new e.Set;return St.forEach(function(_r){return ir.add(_r.escapedName)}),Or=e.concatenate(Or,e.filter(mt,function(_r){return!ir.has(_r.escapedName)})),mr=0,Ht=!0,1}function Ls(){var j=wo(An);if(!j)return 0;mr=0;var De,Ve;if(j.kind===203){var un=ke(j,Zn);if(un===void 0)return j.flags&16777216?2:(Xr=!0,0);var jn=Zn.getContextualType(j,4),mt=(jn||un).getStringIndexType(),St=(jn||un).getNumberIndexType();if(Ht=!!mt||!!St,De=dn(un,jn,j,Zn),Ve=j.properties,De.length===0&&!St)return Xr=!0,0}else{e.Debug.assert(j.kind===199),Ht=!1;var ir=e.getRootDeclaration(j.parent);if(!e.isVariableLike(ir))return e.Debug.fail("Root declaration is not variable-like.");var _r=e.hasInitializer(ir)||e.hasType(ir)||ir.parent.parent.kind===242;if(!_r&&ir.kind===162&&(e.isExpression(ir.parent)?_r=!!Zn.getContextualType(ir.parent):(ir.parent.kind===167||ir.parent.kind===171)&&(_r=e.isExpression(ir.parent.parent)&&!!Zn.getContextualType(ir.parent.parent))),_r){var na=Zn.getTypeAtLocation(j);if(!na)return 2;var wa=e.getContainingClass(j);De=Zn.getPropertiesOfType(na).filter(function(za){return!(e.getDeclarationModifierFlagsFromSymbol(za)&24)||wa&&e.contains(na.symbol.declarations,wa)}),Ve=j.elements}}return De&&De.length>0&&(Or=e.concatenate(Or,tr(De,e.Debug.checkDefined(Ve)))),Za(),1}function Ca(){var j=An&&(An.kind===18||An.kind===27)?e.tryCast(An.parent,e.isNamedImportsOrExports):void 0;if(!j)return 0;var De=(j.kind===267?j.parent.parent:j.parent).moduleSpecifier;if(!De)return j.kind===267?2:0;var Ve=Zn.getSymbolAtLocation(De);if(!Ve)return 2;mr=3,Ht=!1;var un=Zn.getExportsAndPropertiesOfModule(Ve),jn=new e.Set(j.elements.filter(function(mt){return!pn(mt)}).map(function(mt){return(mt.propertyName||mt.name).escapedText}));return Or=e.concatenate(Or,un.filter(function(mt){return mt.escapedName!=="default"&&!jn.has(mt.escapedName)})),1}function ai(){var j,De=An&&(An.kind===18||An.kind===27)?e.tryCast(An.parent,e.isNamedExports):void 0;if(!De)return 0;var Ve=e.findAncestor(De,e.or(e.isSourceFile,e.isModuleDeclaration));return mr=5,Ht=!1,(j=Ve.locals)===null||j===void 0||j.forEach(function(un,jn){var mt,St;Or.push(un),((St=(mt=Ve.symbol)===null||mt===void 0?void 0:mt.exports)===null||St===void 0?void 0:St.has(jn))&&(qa[e.getSymbolId(un)]=12)}),1}function Pi(){var j=o(Nn,An,Et,yt);if(!j)return 0;if(mr=3,Ht=!0,Wr=An.kind===41?0:e.isClassLike(j)?2:3,!e.isClassLike(j))return 1;var De=An.kind===26?An.parent.parent:An.parent,Ve=e.isClassElement(De)?e.getEffectiveModifierFlags(De):0;if(An.kind===79&&!pn(An))switch(An.getText()){case"private":Ve=Ve|8;break;case"static":Ve=Ve|32;break;case"override":Ve=Ve|16384;break}if(e.isClassStaticBlockDeclaration(De)&&(Ve|=32),!(Ve&8)){var un=e.isClassLike(j)&&Ve&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(j)):e.getAllSuperTypeNodes(j),jn=e.flatMap(un,function(mt){var St=Zn.getTypeAtLocation(mt);return Ve&32?(St==null?void 0:St.symbol)&&Zn.getPropertiesOfType(Zn.getTypeOfSymbolAtLocation(St.symbol,j)):St&&Zn.getPropertiesOfType(St)});Or=e.concatenate(Or,He(jn,j.members,Ve))}return 1}function wo(j){if(j){var De=j.parent;switch(j.kind){case 18:case 27:if(e.isObjectLiteralExpression(De)||e.isObjectBindingPattern(De))return De;break;case 41:return e.isMethodDeclaration(De)?e.tryCast(De.parent,e.isObjectLiteralExpression):void 0;case 79:return j.text==="async"&&e.isShorthandPropertyAssignment(j.parent)?j.parent.parent:void 0}}return}function Lo(j){return!!j.parent&&e.isParameter(j.parent)&&e.isConstructorDeclaration(j.parent.parent)&&(e.isParameterPropertyModifier(j.kind)||e.isDeclarationName(j))}function _s(j){if(j){var De=j.parent;switch(j.kind){case 20:case 27:return e.isConstructorDeclaration(j.parent)?j.parent:void 0;default:if(Lo(j))return De.parent}}return}function Oi(j){if(j){var De,Ve=e.findAncestor(j.parent,function(un){return e.isClassLike(un)?"quit":e.isFunctionLikeDeclaration(un)&&De===un.body?!0:(De=un,!1)});return Ve&&Ve}}function Io(j){if(j){var De=j.parent;switch(j.kind){case 31:case 30:case 43:case 79:case 204:case 284:case 283:case 285:if(De&&(De.kind===277||De.kind===278)){if(j.kind===31){var Ve=e.findPrecedingToken(j.pos,Nn,void 0);if(!De.typeArguments||Ve&&Ve.kind===43)break}return De}else if(De.kind===283)return De.parent.parent;break;case 10:if(De&&(De.kind===283||De.kind===285))return De.parent.parent;break;case 19:if(De&&De.kind===286&&De.parent&&De.parent.kind===283)return De.parent.parent.parent;if(De&&De.kind===285)return De.parent.parent;break}}return}function fs(j){var De=j.parent,Ve=De.kind;switch(j.kind){case 27:return Ve===252||_t(j)||Ve===235||Ve===258||Ms(Ve)||Ve===256||Ve===200||Ve===257||e.isClassLike(De)&&!!De.typeParameters&&De.typeParameters.end>=j.pos;case 24:return Ve===200;case 58:return Ve===201;case 22:return Ve===200;case 20:return Ve===290||Ms(Ve);case 18:return Ve===258;case 29:return Ve===255||Ve===224||Ve===256||Ve===257||e.isFunctionLikeKind(Ve);case 124:return Ve===165&&!e.isClassLike(De.parent);case 25:return Ve===162||!!De.parent&&De.parent.kind===200;case 123:case 121:case 122:return Ve===162&&!e.isConstructorDeclaration(De.parent);case 127:return Ve===268||Ve===273||Ve===266;case 135:case 147:return!tn(j);case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 136:case 150:return!0;case 41:return e.isFunctionLike(j.parent)&&!e.isMethodDeclaration(j.parent)}if(Ne(xn(j))&&tn(j))return!1;if(Lo(j)&&(!e.isIdentifier(j)||e.isParameterPropertyModifier(xn(j))||pn(j)))return!1;switch(xn(j)){case 126:case 84:case 85:case 134:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 130:return e.isPropertyDeclaration(j.parent)}var un=e.findAncestor(j.parent,e.isClassLike);if(un&&j===K&&Mo(j,yt))return!1;var jn=e.getAncestor(j.parent,165);if(jn&&j!==K&&e.isClassLike(K.parent.parent)&&yt<=K.end){if(Mo(j,K.end))return!1;if(j.kind!==63&&(e.isInitializedProperty(jn)||e.hasType(jn)))return!0}return e.isDeclarationName(j)&&!e.isShorthandPropertyAssignment(j.parent)&&!e.isJsxAttribute(j.parent)&&!(e.isClassLike(j.parent)&&(j!==K||yt>K.end))}function Mo(j,De){return j.kind!==63&&(j.kind===26||!e.positionsAreOnSameLine(j.end,De,Nn))}function Ms(j){return e.isFunctionLikeKind(j)&&j!==169}function yn(j){if(j.kind===8){var De=j.getFullText();return De.charAt(De.length-1)==="."}return!1}function _t(j){return j.parent.kind===253&&!e.isPossiblyTypeArgumentPosition(j,Nn,Zn)}function tr(j,De){if(De.length===0)return j;for(var Ve=new e.Set,un=new e.Set,jn=0,mt=De;jn<mt.length;jn++){var St=mt[jn];if(St.kind!==291&&St.kind!==292&&St.kind!==201&&St.kind!==167&&St.kind!==170&&St.kind!==171&&St.kind!==293)continue;if(pn(St))continue;var ir=void 0;if(e.isSpreadAssignment(St))oa(St,Ve);else if(e.isBindingElement(St)&&St.propertyName)St.propertyName.kind===79&&(ir=St.propertyName.escapedText);else{var _r=e.getNameOfDeclaration(St);ir=_r&&e.isPropertyNameLiteral(_r)?e.getEscapedTextOfIdentifierOrLiteral(_r):void 0}ir!==void 0&&un.add(ir)}var na=j.filter(function(wa){return!un.has(wa.escapedName)});return Ga(Ve,na),na}function oa(j,De){var Ve=j.expression,un=Zn.getSymbolAtLocation(Ve),jn=un&&Zn.getTypeOfSymbolAtLocation(un,Ve),mt=jn&&jn.properties;mt&&mt.forEach(function(St){De.add(St.name)})}function Za(){Or.forEach(function(j){var De;if(j.flags&16777216){var Ve=e.getSymbolId(j);qa[Ve]=(De=qa[Ve])!==null&&De!==void 0?De:12}})}function Ga(j,De){if(j.size===0)return;for(var Ve=0,un=De;Ve<un.length;Ve++){var jn=un[Ve];j.has(jn.name)&&(qa[e.getSymbolId(jn)]=13)}}function He(j,De,Ve){for(var un=new e.Set,jn=0,mt=De;jn<mt.length;jn++){var St=mt[jn];if(St.kind!==165&&St.kind!==167&&St.kind!==170&&St.kind!==171)continue;if(pn(St))continue;if(e.hasEffectiveModifier(St,8))continue;if(e.isStatic(St)!==!!(Ve&32))continue;var ir=e.getPropertyNameForPropertyNameNode(St.name);ir&&un.add(ir)}return j.filter(function(_r){return!un.has(_r.escapedName)&&!!_r.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(_r)&8)&&!(_r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(_r.valueDeclaration))})}function se(j,De){for(var Ve=new e.Set,un=new e.Set,jn=0,mt=De;jn<mt.length;jn++){var St=mt[jn];if(pn(St))continue;St.kind===283?Ve.add(St.name.escapedText):e.isJsxSpreadAttribute(St)&&oa(St,un)}var ir=j.filter(function(_r){return!Ve.has(_r.escapedName)});return Ga(un,ir),ir}function pn(j){return j.getStart(Nn)<=yt&&yt<=j.getEnd()}}function Se(Je,En){var Nn=e.findPrecedingToken(Je,En);if(Nn&&Je<=Nn.end&&(e.isMemberName(Nn)||e.isKeyword(Nn.kind))){var ct=e.findPrecedingToken(Nn.getFullStart(),En,void 0);return{contextToken:ct,previousToken:Nn}}return{contextToken:Nn,previousToken:Nn}}function $e(Je,En,Nn,ct){var yt=En.isPackageJsonImport?ct.getPackageJsonAutoImportProvider():Nn,Gt=yt.getTypeChecker(),$t=En.ambientModuleName?Gt.tryFindAmbientModule(En.ambientModuleName):En.fileName?Gt.getMergedSymbol(e.Debug.checkDefined(yt.getSourceFile(En.fileName)).symbol):void 0;if(!$t)return;var Ke=En.exportName==="export="?Gt.resolveExternalModuleSymbol($t):Gt.tryGetMemberInModuleExportsAndProperties(En.exportName,$t);if(!Ke)return;var Vn=En.exportName==="default";return Ke=Vn&&e.getLocalSymbolForExportDefault(Ke)||Ke,{symbol:Ke,origin:{kind:En.moduleSpecifier?32:4,moduleSymbol:$t,symbolName:Je,isDefaultExport:Vn,exportName:En.exportName,fileName:En.fileName,isFromPackageJson:!!En.isPackageJsonImport}}}function ce(Je,En,Nn,ct,yt){var Gt=de(Nn)?Nn.symbolName:Je.name;if(Gt===void 0||Je.flags&1536&&e.isSingleOrDoubleQuote(Gt.charCodeAt(0))||e.isKnownSymbol(Je))return;var $t={name:Gt,needsConvertPropertyAccess:!1};if(e.isIdentifierText(Gt,En,yt?1:0)||Je.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Je.valueDeclaration))return $t;switch(ct){case 3:return;case 0:return{name:JSON.stringify(Gt),needsConvertPropertyAccess:!1};case 2:case 1:return Gt.charCodeAt(0)===32?void 0:{name:Gt,needsConvertPropertyAccess:!0};case 5:case 4:return $t;default:e.Debug.assertNever(ct)}}var Le=[],qe=e.memoize(function(){for(var Je=[],En=81;En<=158;En++)Je.push({name:e.tokenToString(En),kind:"keyword",kindModifiers:"",sortText:ee.GlobalsOrKeywords});return Je});function pe(Je,En){if(!En)return Me(Je);var Nn=Je+7+1;return Le[Nn]||(Le[Nn]=Me(Je).filter(function(ct){return!fn(e.stringToToken(ct.name))}))}function Me(Je){return Le[Je]||(Le[Je]=qe().filter(function(En){var Nn=e.stringToToken(En.name);switch(Je){case 0:return!1;case 1:return je(Nn)||Nn===134||Nn===140||Nn===150||Nn===141||e.isTypeKeyword(Nn)&&Nn!==151;case 5:return je(Nn);case 2:return Ne(Nn);case 3:return Ye(Nn);case 4:return e.isParameterPropertyModifier(Nn);case 6:return e.isTypeKeyword(Nn)||Nn===85;case 7:return e.isTypeKeyword(Nn);default:return e.Debug.assertNever(Je)}}))}function fn(Je){switch(Je){case 126:case 129:case 156:case 132:case 134:case 92:case 155:case 117:case 136:case 118:case 138:case 139:case 140:case 141:case 142:case 145:case 146:case 157:case 121:case 122:case 123:case 143:case 148:case 149:case 150:case 152:case 153:return!0;default:return!1}}function Ye(Je){return Je===143}function Ne(Je){switch(Je){case 126:case 133:case 135:case 147:case 130:case 134:case 157:return!0;default:return e.isClassMemberModifier(Je)}}function je(Je){return Je===130||Je===131||Je===127||!e.isContextualKeyword(Je)&&!Ne(Je)}function xn(Je){return e.isIdentifier(Je)?Je.originalKeywordKind||0:Je.kind}function Wn(Je,En){var Nn=e.findAncestor(Je,e.isJSDoc);return Nn&&Nn.tags&&(e.rangeContainsPosition(Nn,En)?e.findLast(Nn.tags,function(ct){return ct.pos<En}):void 0)}function dn(Je,En,Nn,ct){var yt=En&&En!==Je,Gt=yt&&!(En.flags&3)?ct.getUnionType([Je,En]):Je,$t=Gt.isUnion()?ct.getAllPossiblePropertiesOfTypes(Gt.types.filter(function(Vn){return!(Vn.flags&131068||ct.isArrayLikeType(Vn)||e.typeHasCallOrConstructSignatures(Vn,ct)||ct.isTypeInvalidDueToUnionDiscriminant(Vn,Nn))})):Gt.getApparentProperties();return yt?$t.filter(Ke):$t;function Ke(Vn){return e.some(Vn.declarations,function(Zn){return Zn.parent!==Nn})}}ue.getPropertiesForObjectExpression=dn;function vn(Je,En){return Je.isUnion()?e.Debug.checkEachDefined(En.getAllPossiblePropertiesOfTypes(Je.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(Je.getApparentProperties(),"getApparentProperties() should all be defined")}function o(Je,En,Nn,ct){switch(Nn.kind){case 343:return e.tryCast(Nn.parent,e.isObjectTypeDeclaration);case 1:var yt=e.tryCast(e.lastOrUndefined(e.cast(Nn.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(yt&&!e.findChildOfKind(yt,19,Je))return yt;break;case 79:{if(e.isPropertyDeclaration(Nn.parent)&&Nn.parent.initializer===Nn)return;if(tn(Nn))return e.findAncestor(Nn,e.isObjectTypeDeclaration)}}if(!En)return;if(Nn.kind===133||e.isIdentifier(En)&&e.isPropertyDeclaration(En.parent)&&e.isClassLike(Nn))return e.findAncestor(En,e.isClassLike);switch(En.kind){case 63:return;case 26:case 19:return tn(Nn)&&Nn.parent.name===Nn?Nn.parent.parent:e.tryCast(Nn,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(En.parent,e.isObjectTypeDeclaration);default:if(!tn(En))return e.getLineAndCharacterOfPosition(Je,En.getEnd()).line!==e.getLineAndCharacterOfPosition(Je,ct).line&&e.isObjectTypeDeclaration(Nn)?Nn:void 0;var Gt=e.isClassLike(En.parent.parent)?Ne:Ye;return Gt(En.kind)||En.kind===41||e.isIdentifier(En)&&Gt(e.stringToToken(En.text))?En.parent.parent:void 0}}function Cn(Je){if(!Je)return;var En=Je.parent;switch(Je.kind){case 18:if(e.isTypeLiteralNode(En))return En;break;case 26:case 27:case 79:if(En.kind===164&&e.isTypeLiteralNode(En.parent))return En.parent;break}return}function z(Je,En){if(!Je)return;if(e.isTypeNode(Je)&&e.isTypeReferenceType(Je.parent))return En.getTypeArgumentConstraint(Je);var Nn=z(Je.parent,En);if(!Nn)return;switch(Je.kind){case 164:return En.getTypeOfPropertyOfContextualType(Nn,Je.symbol.escapedName);case 186:case 180:case 185:return Nn}}function tn(Je){return Je.parent&&e.isClassOrTypeElement(Je.parent)&&e.isObjectTypeDeclaration(Je.parent.parent)}function $n(Je,En,Nn,ct){switch(En){case".":case"@":return!0;case'"':case"'":case"`":return!!Nn&&e.isStringLiteralOrTemplate(Nn)&&ct===Nn.getStart(Je)+1;case"#":return!!Nn&&e.isPrivateIdentifier(Nn)&&!!e.getContainingClass(Nn);case"<":return!!Nn&&Nn.kind===29&&(!e.isBinaryExpression(Nn.parent)||Un(Nn.parent));case"/":return!!Nn&&(e.isStringLiteralLike(Nn)?!!e.tryGetImportFromModuleSpecifier(Nn):Nn.kind===43&&e.isJsxClosingElement(Nn.parent));case" ":return!!Nn&&e.isImportKeyword(Nn)&&Nn.parent.kind===300;default:return e.Debug.assertNever(En)}}function Un(Je){var En=Je.left;return e.nodeIsMissing(En)}function oe(Je,En,Nn){var ct=Nn.resolveName("self",void 0,111551,!1);if(ct&&Nn.getTypeOfSymbolAtLocation(ct,En)===Je)return!0;var yt=Nn.resolveName("global",void 0,111551,!1);if(yt&&Nn.getTypeOfSymbolAtLocation(yt,En)===Je)return!0;var Gt=Nn.resolveName("globalThis",void 0,111551,!1);return!!(Gt&&Nn.getTypeOfSymbolAtLocation(Gt,En)===Je)}function Pe(Je){return!!(Je.valueDeclaration&&e.getEffectiveModifierFlags(Je.valueDeclaration)&32&&e.isClassLike(Je.valueDeclaration.parent))}function ke(Je,En){var Nn=En.getContextualType(Je);return Nn||(e.isBinaryExpression(Je.parent)&&Je.parent.operatorToken.kind===63&&Je===Je.parent.left?En.getTypeAtLocation(Je.parent):void 0)}function Qe(Je){var En=Nn();return En===154||En&&e.rangeIsOnSingleLine(En,En.getSourceFile())?En:void 0;function Nn(){var ct=Je.parent;return e.isImportEqualsDeclaration(ct)?gn(ct.moduleReference)?ct:void 0:e.isNamedImports(ct)||e.isNamespaceImport(ct)?gn(ct.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(ct)||ct.elements.length<2)&&!ct.parent.name?Je.kind===19||Je.kind===79?154:ct.parent.parent:void 0:e.isImportKeyword(Je)&&e.isSourceFile(ct)?Je:e.isImportKeyword(Je)&&e.isImportDeclaration(ct)&&gn(ct.moduleSpecifier)?ct:void 0}}function gn(Je){var En;return e.nodeIsMissing(Je)?!0:!((En=e.tryCast(e.isExternalModuleReference(Je)?Je.expression:Je,e.isStringLiteralLike))===null||En===void 0?void 0:En.text)}function xe(Je){var En=e.findAncestor(Je,function(Nn){return e.isFunctionBlock(Nn)||Ze(Nn)||e.isBindingPattern(Nn)?"quit":e.isVariableDeclaration(Nn)});return En}function Ze(Je){return Je.parent&&e.isArrowFunction(Je.parent)&&Je.parent.body===Je}function wn(Je,En,Nn){Nn===void 0&&(Nn=new e.Map);var ct=e.skipAlias(Je.exportSymbol||Je,En);return!!(ct.flags&788968)||En.isUnknownSymbol(ct)||!!(ct.flags&1536)&&e.addToSeen(Nn,e.getSymbolId(ct))&&En.getExportsOfModule(ct).some(function(yt){return wn(yt,En,Nn)})}function Be(Je,En){var Nn=e.skipAlias(Je,En).declarations;return!!e.length(Nn)&&e.every(Nn,e.isDeprecatedDeclaration)}function hn(Je,En){if(En.length===0)return!0;for(var Nn=!1,ct,yt=0,Gt=Je.length,$t=0;$t<Gt;$t++){var Ke=Je.charCodeAt($t),Vn=En.charCodeAt(yt);if((Ke===Vn||Ke===Kn(Vn))&&(Nn||(Nn=ct===void 0||97<=ct&&ct<=122&&65<=Ke&&Ke<=90||ct===95&&Ke!==95),Nn&&yt++,yt===En.length))return!0;ct=Ke}return!1}function Kn(Je){return 97<=Je&&Je<=122?Je-32:Je}})(s=e.Completions||(e.Completions={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(B,A,f,F,g){var p=e.getTouchingPropertyName(f,F);if(p.parent&&(e.isJsxOpeningElement(p.parent)&&p.parent.tagName===p||e.isJsxClosingElement(p.parent))){var d=p.parent.parent,T=d.openingElement,m=d.closingElement,k=[T,m].map(function(N){var D=N.tagName;return Y(D,f)});return[{fileName:f.fileName,highlightSpans:k}]}return V(F,p,B,A,g)||ne(p,f)}ue.getDocumentHighlights=ee;function Y(B,A){return{fileName:A.fileName,textSpan:e.createTextSpanFromNode(B,A),kind:"none"}}function V(B,A,f,F,g){var p=new e.Set(g.map(function(k){return k.fileName})),d=e.FindAllReferences.getReferenceEntriesForNode(B,A,f,g,F,void 0,p);if(!d)return;var T=e.arrayToMultiMap(d.map(e.FindAllReferences.toHighlightSpan),function(k){return k.fileName},function(k){return k.span}),m=e.createGetCanonicalFileName(f.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(T.entries()),function(k){var N=k[0],D=k[1];if(!p.has(N)){if(!f.redirectTargetsMap.has(e.toPath(N,f.getCurrentDirectory(),m)))return;var R=f.getSourceFile(N),me=e.find(g,function(q){return!!q.redirectInfo&&q.redirectInfo.redirectTarget===R});N=me.fileName,e.Debug.assert(p.has(N))}return{fileName:N,highlightSpans:D}})}function ne(B,A){var f=_e(B,A);return f&&[{fileName:A.fileName,highlightSpans:f}]}function _e(B,A){switch(B.kind){case 99:case 91:return e.isIfStatement(B.parent)?P(B.parent,A):void 0;case 105:return g(B.parent,e.isReturnStatement,ae);case 109:return g(B.parent,e.isThrowStatement,E);case 111:case 83:case 96:var f=B.kind===83?B.parent.parent:B.parent;return g(f,e.isTryStatement,L);case 107:return g(B.parent,e.isSwitchStatement,$);case 82:case 88:return e.isDefaultClause(B.parent)||e.isCaseClause(B.parent)?g(B.parent.parent.parent,e.isSwitchStatement,$):void 0;case 81:case 86:return g(B.parent,e.isBreakOrContinueStatement,x);case 97:case 115:case 90:return g(B.parent,function(d){return e.isIterationStatement(d,!0)},W);case 133:return F(e.isConstructorDeclaration,[133]);case 135:case 147:return F(e.isAccessor,[135,147]);case 131:return g(B.parent,e.isAwaitExpression,X);case 130:return p(X(B));case 125:return p(ie(B));default:return e.isModifierKind(B.kind)&&(e.isDeclaration(B.parent)||e.isVariableStatement(B.parent))?p(U(B.kind,B.parent)):void 0}function F(d,T){return g(B.parent,d,function(m){return e.mapDefined(m.symbol.declarations,function(k){return d(k)?e.find(k.getChildren(A),function(N){return e.contains(T,N.kind)}):void 0})})}function g(d,T,m){return T(d)?p(m(d,A)):void 0}function p(d){return d&&d.map(function(T){return Y(T,A)})}}function O(B){return e.isThrowStatement(B)?[B]:e.isTryStatement(B)?e.concatenate(B.catchClause?O(B.catchClause):B.tryBlock&&O(B.tryBlock),B.finallyBlock&&O(B.finallyBlock)):e.isFunctionLike(B)?void 0:de(B,O)}function w(B){for(var A=B;A.parent;){var f=A.parent;if(e.isFunctionBlock(f)||f.kind===300)return f;if(e.isTryStatement(f)&&f.tryBlock===A&&f.catchClause)return A;A=f}return}function b(B){return e.isBreakOrContinueStatement(B)?[B]:e.isFunctionLike(B)?void 0:de(B,b)}function de(B,A){var f=[];return B.forEachChild(function(F){var g=A(F);g!==void 0&&f.push.apply(f,e.toArray(g))}),f}function fe(B,A){var f=_(A);return!!f&&f===B}function _(B){return e.findAncestor(B,function(A){switch(A.kind){case 247:if(B.kind===243)return!1;case 240:case 241:case 242:case 239:case 238:return!B.label||re(A,B.label.escapedText);default:return e.isFunctionLike(A)&&"quit"}})}function U(B,A){return e.mapDefined(Z(A,e.modifierToFlag(B)),function(f){return e.findModifier(f,B)})}function Z(B,A){var f=B.parent;switch(f.kind){case 260:case 300:case 233:case 287:case 288:return A&128&&e.isClassDeclaration(B)?Mt(Mt([],B.members,!0),[B],!1):f.statements;case 169:case 167:case 254:return Mt(Mt([],f.parameters,!0),e.isClassLike(f.parent)?f.parent.members:[],!0);case 255:case 224:case 256:case 180:var F=f.members;if(A&(28|64)){var g=e.find(f.members,e.isConstructorDeclaration);if(g)return Mt(Mt([],F,!0),g.parameters,!0)}else if(A&128)return Mt(Mt([],F,!0),[f],!1);return F;case 203:return;default:e.Debug.assertNever(f,"Invalid container kind.")}}function v(B,A){for(var f=[],F=2;F<arguments.length;F++)f[F-2]=arguments[F];return A&&e.contains(f,A.kind)?(B.push(A),!0):!1}function W(B){var A=[];if(v(A,B.getFirstToken(),97,115,90)&&B.kind===238)for(var f=B.getChildren(),F=f.length-1;F>=0&&!v(A,f[F],115);F--);return e.forEach(b(B.statement),function(g){fe(B,g)&&v(A,g.getFirstToken(),81,86)}),A}function x(B){var A=_(B);if(A)switch(A.kind){case 240:case 241:case 242:case 238:case 239:return W(A);case 247:return $(A)}return}function $(B){var A=[];return v(A,B.getFirstToken(),107),e.forEach(B.caseBlock.clauses,function(f){v(A,f.getFirstToken(),82,88),e.forEach(b(f),function(F){fe(B,F)&&v(A,F.getFirstToken(),81)})}),A}function L(B,A){var f=[];if(v(f,B.getFirstToken(),111),B.catchClause&&v(f,B.catchClause.getFirstToken(),83),B.finallyBlock){var F=e.findChildOfKind(B,96,A);v(f,F,96)}return f}function E(B,A){var f=w(B);if(!f)return;var F=[];return e.forEach(O(f),function(g){F.push(e.findChildOfKind(g,109,A))}),e.isFunctionBlock(f)&&e.forEachReturnStatement(f,function(g){F.push(e.findChildOfKind(g,105,A))}),F}function ae(B,A){var f=e.getContainingFunction(B);if(!f)return;var F=[];return e.forEachReturnStatement(e.cast(f.body,e.isBlock),function(g){F.push(e.findChildOfKind(g,105,A))}),e.forEach(O(f.body),function(g){F.push(e.findChildOfKind(g,109,A))}),F}function X(B){var A=e.getContainingFunction(B);if(!A)return;var f=[];return A.modifiers&&A.modifiers.forEach(function(F){v(f,F,130)}),e.forEachChild(A,function(F){le(F,function(g){e.isAwaitExpression(g)&&v(f,g.getFirstToken(),131)})}),f}function ie(B){var A=e.getContainingFunction(B);if(!A)return;var f=[];return e.forEachChild(A,function(F){le(F,function(g){e.isYieldExpression(g)&&v(f,g.getFirstToken(),125)})}),f}function le(B,A){A(B),!e.isFunctionLike(B)&&!e.isClassLike(B)&&!e.isInterfaceDeclaration(B)&&!e.isModuleDeclaration(B)&&!e.isTypeAliasDeclaration(B)&&!e.isTypeNode(B)&&e.forEachChild(B,function(f){return le(f,A)})}function P(B,A){for(var f=I(B,A),F=[],g=0;g<f.length;g++){if(f[g].kind===91&&g<f.length-1){for(var p=f[g],d=f[g+1],T=!0,m=d.getStart(A)-1;m>=p.end;m--)if(!e.isWhiteSpaceSingleLine(A.text.charCodeAt(m))){T=!1;break}if(T){F.push({fileName:A.fileName,textSpan:e.createTextSpanFromBounds(p.getStart(),d.end),kind:"reference"}),g++;continue}}F.push(Y(f[g],A))}return F}function I(B,A){for(var f=[];e.isIfStatement(B.parent)&&B.parent.elseStatement===B;)B=B.parent;for(;;){var F=B.getChildren(A);v(f,F[0],99);for(var g=F.length-1;g>=0&&!v(f,F[g],91);g--);if(!B.elseStatement||!e.isIfStatement(B.elseStatement))break;B=B.elseStatement}return f}function re(B,A){return!!e.findAncestor(B.parent,function(f){return e.isLabeledStatement(f)?f.label.escapedText===A:"quit"})}})(s=e.DocumentHighlights||(e.DocumentHighlights={}))})(mn||(mn={}));var mn;(function(e){function s(V){return!!V.sourceFile}function ue(V,ne){return ee(V,ne)}e.createDocumentRegistry=ue;function ee(V,ne,_e){ne===void 0&&(ne="");var O=new e.Map,w=e.createGetCanonicalFileName(!!V);function b(){var L=e.arrayFrom(O.keys()).filter(function(E){return E&&E.charAt(0)==="_"}).map(function(E){var ae=O.get(E),X=[];return ae.forEach(function(ie,le){s(ie)?X.push({name:le,scriptKind:ie.sourceFile.scriptKind,refCount:ie.languageServiceRefCount}):ie.forEach(function(P,I){return X.push({name:le,scriptKind:I,refCount:P.languageServiceRefCount})})}),X.sort(function(ie,le){return le.refCount-ie.refCount}),{bucket:E,sourceFiles:X}});return JSON.stringify(L,void 0,2)}function de(L,E,ae,X,ie){var le=e.toPath(L,ne,w),P=Y(E);return fe(L,le,E,P,ae,X,ie)}function fe(L,E,ae,X,ie,le,P){return v(L,E,ae,X,ie,le,!0,P)}function _(L,E,ae,X,ie){var le=e.toPath(L,ne,w),P=Y(E);return U(L,le,E,P,ae,X,ie)}function U(L,E,ae,X,ie,le,P){return v(L,E,ae,X,ie,le,!1,P)}function Z(L,E){var ae=s(L)?L:L.get(e.Debug.checkDefined(E,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(E===void 0||!ae||ae.sourceFile.scriptKind===E,"Script kind should match provided ScriptKind:"+E+" and sourceFile.scriptKind: "+(ae==null?void 0:ae.sourceFile.scriptKind)+", !entry: "+!ae),ae}function v(L,E,ae,X,ie,le,P,I){I=e.ensureScriptKind(L,I);var re=I===6?100:ae.target||1,B=e.getOrUpdate(O,X,function(){return new e.Map}),A=B.get(E),f=A&&Z(A,I);if(!f&&_e){var F=_e.getDocument(X,E);F&&(e.Debug.assert(P),f={sourceFile:F,languageServiceRefCount:0},g())}if(f)f.sourceFile.version!==le&&(f.sourceFile=e.updateLanguageServiceSourceFile(f.sourceFile,ie,le,ie.getChangeRange(f.sourceFile.scriptSnapshot)),_e&&_e.setDocument(X,E,f.sourceFile)),P&&f.languageServiceRefCount++;else{var F=e.createLanguageServiceSourceFile(L,ie,re,le,!1,I);_e&&_e.setDocument(X,E,F),f={sourceFile:F,languageServiceRefCount:1},g()}return e.Debug.assert(f.languageServiceRefCount!==0),f.sourceFile;function g(){if(!A)B.set(E,f);else if(s(A)){var p=new e.Map;p.set(A.sourceFile.scriptKind,A),p.set(I,f),B.set(E,p)}else A.set(I,f)}}function W(L,E,ae){var X=e.toPath(L,ne,w),ie=Y(E);return x(X,ie,ae)}function x(L,E,ae){var X=e.Debug.checkDefined(O.get(E)),ie=X.get(L),le=Z(ie,ae);le.languageServiceRefCount--,e.Debug.assert(le.languageServiceRefCount>=0),le.languageServiceRefCount===0&&(s(ie)?X.delete(L):(ie.delete(ae),ie.size===1&&X.set(L,e.firstDefinedIterator(ie.values(),e.identity))))}function $(L,E){return e.arrayFrom(O.entries(),function(ae){var X=ae[0],ie=ae[1],le=ie.get(L),P=le&&Z(le,E);return[X,P&&P.languageServiceRefCount]})}return{acquireDocument:de,acquireDocumentWithKey:fe,updateDocument:_,updateDocumentWithKey:U,releaseDocument:W,releaseDocumentWithKey:x,getLanguageServiceRefCounts:$,reportStats:b,getKeyForCompilationSettings:Y}}e.createDocumentRegistryInternal=ee;function Y(V){return e.sourceFileAffectingCompilerOptions.map(function(ne){return e.getCompilerOptionValue(V,ne)}).join("|")}})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(X,ie,le,P){var I=b(X,le,P);return function(re,B,A){var f=ne(X,ie,I,B,le,P),F=f.directImports,g=f.indirectUsers;return pr({indirectUsers:g},_e(F,re,B.exportKind,le,A))}}ue.createImportTracker=ee;var Y;(function(X){X[X.Named=0]="Named",X[X.Default=1]="Default",X[X.ExportEquals=2]="ExportEquals"})(Y=ue.ExportKind||(ue.ExportKind={}));var V;(function(X){X[X.Import=0]="Import",X[X.Export=1]="Export"})(V=ue.ImportExport||(ue.ImportExport={}));function ne(X,ie,le,P,I,re){var B=P.exportingModuleSymbol,A=P.exportKind,f=e.nodeSeenTracker(),F=e.nodeSeenTracker(),g=[],p=!!B.globalExports,d=p?void 0:[];return m(B),{directImports:g,indirectUsers:T()};function T(){if(p)return X;if(B.declarations)for(var q=0,J=B.declarations;q<J.length;q++){var C=J[q];e.isExternalModuleAugmentation(C)&&ie.has(C.getSourceFile().fileName)&&R(C)}return d.map(e.getSourceFileOfNode)}function m(q){var J=me(q);if(J)for(var C=0,we=J;C<we.length;C++){var Oe=we[C];if(!f(Oe))continue;re&&re.throwIfCancellationRequested();switch(Oe.kind){case 206:if(e.isImportCall(Oe)){k(Oe);break}if(!p){var te=Oe.parent;if(A===2&&te.kind===252){var Te=te.name;if(Te.kind===79){g.push(Te);break}}}break;case 79:break;case 263:D(Oe,Oe.name,e.hasSyntacticModifier(Oe,1),!1);break;case 264:g.push(Oe);var be=Oe.importClause&&Oe.importClause.namedBindings;be&&be.kind===266?D(Oe,be.name,!1,!0):!p&&e.isDefaultImport(Oe)&&R(L(Oe));break;case 270:Oe.exportClause?Oe.exportClause.kind===272?R(L(Oe),!0):g.push(Oe):m($(Oe,I));break;case 198:Oe.isTypeOf&&!Oe.qualifier&&N(Oe)&&R(Oe.getSourceFile(),!0),g.push(Oe);break;default:e.Debug.failBadSyntaxKind(Oe,"Unexpected import kind.")}}}function k(q){var J=e.findAncestor(q,E)||q.getSourceFile();R(J,!!N(q,!0))}function N(q,J){return J===void 0&&(J=!1),e.findAncestor(q,function(C){return J&&E(C)?"quit":e.some(C.modifiers,function(we){return we.kind===93})})}function D(q,J,C,we){if(A===2)we||g.push(q);else if(!p){var Oe=L(q);e.Debug.assert(Oe.kind===300||Oe.kind===259),C||O(Oe,J,I)?R(Oe,!0):R(Oe)}}function R(q,J){J===void 0&&(J=!1),e.Debug.assert(!p);var C=F(q);if(!C)return;if(d.push(q),!J)return;var we=I.getMergedSymbol(q.symbol);if(!we)return;e.Debug.assert(!!(we.flags&1536));var Oe=me(we);if(Oe)for(var te=0,Te=Oe;te<Te.length;te++){var be=Te[te];e.isImportTypeNode(be)||R(L(be),!0)}}function me(q){return le.get(e.getSymbolId(q).toString())}}function _e(X,ie,le,P,I){var re=[],B=[];function A(k,N){re.push([k,N])}if(X)for(var f=0,F=X;f<F.length;f++){var g=F[f];p(g)}return{importSearches:re,singleReferences:B};function p(k){if(k.kind===263){ae(k)&&d(k.name);return}if(k.kind===79){d(k);return}if(k.kind===198){if(k.qualifier){var N=e.getFirstIdentifier(k.qualifier);N.escapedText===e.symbolName(ie)&&B.push(N)}else le===2&&B.push(k.argument.literal);return}if(k.moduleSpecifier.kind!==10)return;if(k.kind===270){k.exportClause&&e.isNamedExports(k.exportClause)&&T(k.exportClause);return}var D=k.importClause||{name:void 0,namedBindings:void 0},R=D.name,me=D.namedBindings;if(me)switch(me.kind){case 266:d(me.name);break;case 267:(le===0||le===1)&&T(me);break;default:e.Debug.assertNever(me)}if(R&&(le===1||le===2)&&(!I||R.escapedText===e.symbolEscapedNameNoDefault(ie))){var q=P.getSymbolAtLocation(R);A(R,q)}}function d(k){le===2&&(!I||m(k.escapedText))&&A(k,P.getSymbolAtLocation(k))}function T(k){if(!k)return;for(var N=0,D=k.elements;N<D.length;N++){var R=D[N],me=R.name,q=R.propertyName;if(!m((q||me).escapedText))continue;if(q)B.push(q),(!I||me.escapedText===ie.escapedName)&&A(me,P.getSymbolAtLocation(me));else{var J=R.kind===273&&R.propertyName?P.getExportSpecifierLocalTargetSymbol(R):P.getSymbolAtLocation(me);A(me,J)}}}function m(k){return k===ie.escapedName||le!==0&&k==="default"}}function O(X,ie,le){var P=le.getSymbolAtLocation(ie);return!!de(X,function(I){if(!e.isExportDeclaration(I))return;var re=I.exportClause,B=I.moduleSpecifier;return!B&&re&&e.isNamedExports(re)&&re.elements.some(function(A){return le.getExportSpecifierLocalTargetSymbol(A)===P})})}function w(X,ie,le){for(var P=[],I=X.getTypeChecker(),re=0,B=ie;re<B.length;re++){var A=B[re],f=le.valueDeclaration;if((f==null?void 0:f.kind)===300){for(var F=0,g=A.referencedFiles;F<g.length;F++){var p=g[F];X.getSourceFileFromReference(A,p)===f&&P.push({kind:"reference",referencingFile:A,ref:p})}for(var d=0,T=A.typeReferenceDirectives;d<T.length;d++){var p=T[d],m=X.getResolvedTypeReferenceDirectives().get(p.fileName);m!==void 0&&m.resolvedFileName===f.fileName&&P.push({kind:"reference",referencingFile:A,ref:p})}}fe(A,function(k,N){var D=I.getSymbolAtLocation(N);D===le&&P.push({kind:"import",literal:N})})}return P}ue.findModuleReferences=w;function b(X,ie,le){for(var P=new e.Map,I=0,re=X;I<re.length;I++){var B=re[I];le&&le.throwIfCancellationRequested(),fe(B,function(A,f){var F=ie.getSymbolAtLocation(f);if(F){var g=e.getSymbolId(F).toString(),p=P.get(g);p||P.set(g,p=[]),p.push(A)}})}return P}function de(X,ie){return e.forEach(X.kind===300?X.statements:X.body.statements,function(le){return ie(le)||E(le)&&e.forEach(le.body&&le.body.statements,ie)})}function fe(X,ie){if(X.externalModuleIndicator||X.imports!==void 0)for(var le=0,P=X.imports;le<P.length;le++){var I=P[le];ie(e.importFromModuleSpecifier(I),I)}else de(X,function(re){switch(re.kind){case 270:case 264:{var B=re;B.moduleSpecifier&&e.isStringLiteral(B.moduleSpecifier)&&ie(B,B.moduleSpecifier);break}case 263:{var B=re;ae(B)&&ie(B,B.moduleReference.expression);break}}})}function _(X,ie,le,P){return P?I():I()||re();function I(){var f,F=X.parent,g=F.parent;if(ie.exportSymbol)return F.kind===204?((f=ie.declarations)===null||f===void 0?void 0:f.some(function(k){return k===F}))&&e.isBinaryExpression(g)?m(g,!1):void 0:B(ie.exportSymbol,A(F));var p=Z(F,X);if(p&&e.hasSyntacticModifier(p,1))if(e.isImportEqualsDeclaration(p)&&p.moduleReference===X){if(P)return;var d=le.getSymbolAtLocation(p.name);return{kind:0,symbol:d}}else return B(ie,A(p));else{if(e.isNamespaceExport(F))return B(ie,0);if(e.isExportAssignment(F))return T(F);if(e.isExportAssignment(g))return T(g);if(e.isBinaryExpression(F))return m(F,!0);if(e.isBinaryExpression(g))return m(g,!0);if(e.isJSDocTypedefTag(F))return B(ie,0)}function T(k){if(!k.symbol.parent)return;var N=k.isExportEquals?2:1;return{kind:1,symbol:ie,exportInfo:{exportingModuleSymbol:k.symbol.parent,exportKind:N}}}function m(k,N){var D;switch(e.getAssignmentDeclarationKind(k)){case 1:D=0;break;case 2:D=2;break;default:return}var R=N?le.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(k.left,e.isAccessExpression))):ie;return R&&B(R,D)}}function re(){var f=v(X);if(!f)return;var F=le.getImmediateAliasedSymbol(ie);if(!F)return;F=x(F,le),F.escapedName==="export="&&(F=U(F,le));var g=e.symbolEscapedNameNoDefault(F);if(g===void 0||g==="default"||g===ie.escapedName)return{kind:0,symbol:F}}function B(f,F){var g=W(f,F,le);return g&&{kind:1,symbol:f,exportInfo:g}}function A(f){return e.hasSyntacticModifier(f,512)?1:0}}ue.getImportOrExportSymbol=_;function U(X,ie){if(X.flags&2097152)return e.Debug.checkDefined(ie.getImmediateAliasedSymbol(X));var le=e.Debug.checkDefined(X.valueDeclaration);return e.isExportAssignment(le)?e.Debug.checkDefined(le.expression.symbol):e.isBinaryExpression(le)?e.Debug.checkDefined(le.right.symbol):e.isSourceFile(le)?e.Debug.checkDefined(le.symbol):e.Debug.fail()}function Z(X,ie){var le=e.isVariableDeclaration(X)?X:e.isBindingElement(X)?e.walkUpBindingElementsAndPatterns(X):void 0;return le?X.name!==ie||e.isCatchClause(le.parent)?void 0:e.isVariableStatement(le.parent.parent)?le.parent.parent:void 0:X}function v(X){var ie=X.parent;switch(ie.kind){case 263:return ie.name===X&&ae(ie);case 268:return!ie.propertyName;case 265:case 266:return e.Debug.assert(ie.name===X),!0;case 201:return e.isInJSFile(X)&&e.isRequireVariableDeclaration(ie);default:return!1}}function W(X,ie,le){var P=X.parent;if(!P)return;var I=le.getMergedSymbol(P);return e.isExternalModuleSymbol(I)?{exportingModuleSymbol:I,exportKind:ie}:void 0}ue.getExportInfo=W;function x(X,ie){if(X.declarations)for(var le=0,P=X.declarations;le<P.length;le++){var I=P[le];if(e.isExportSpecifier(I)&&!I.propertyName&&!I.parent.parent.moduleSpecifier)return ie.getExportSpecifierLocalTargetSymbol(I);if(e.isPropertyAccessExpression(I)&&e.isModuleExportsAccessExpression(I.expression)&&!e.isPrivateIdentifier(I.name))return ie.getSymbolAtLocation(I);if(e.isShorthandPropertyAssignment(I)&&e.isBinaryExpression(I.parent.parent)&&e.getAssignmentDeclarationKind(I.parent.parent)===2)return ie.getExportSpecifierLocalTargetSymbol(I.name)}return X}function $(X,ie){return ie.getMergedSymbol(L(X).symbol)}function L(X){if(X.kind===206)return X.getSourceFile();var ie=X.parent;return ie.kind===300?ie:(e.Debug.assert(ie.kind===260),e.cast(ie.parent,E))}function E(X){return X.kind===259&&X.name.kind===10}function ae(X){return X.moduleReference.kind===275&&X.moduleReference.expression.kind===10}})(s=e.FindAllReferences||(e.FindAllReferences={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(g){g[g.Symbol=0]="Symbol",g[g.Label=1]="Label",g[g.Keyword=2]="Keyword",g[g.This=3]="This",g[g.String=4]="String",g[g.TripleSlashReference=5]="TripleSlashReference"})(ee=ue.DefinitionKind||(ue.DefinitionKind={}));var Y;(function(g){g[g.Span=0]="Span",g[g.Node=1]="Node",g[g.StringLiteral=2]="StringLiteral",g[g.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",g[g.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(Y=ue.EntryKind||(ue.EntryKind={}));function V(g,p){return p===void 0&&(p=1),{kind:p,node:g.name||g,context:_e(g)}}ue.nodeEntry=V;function ne(g){return g&&g.kind===void 0}ue.isContextWithStartAndEndNode=ne;function _e(g){if(e.isDeclaration(g))return O(g);if(!g.parent)return;if(!e.isDeclaration(g.parent)&&!e.isExportAssignment(g.parent)){if(e.isInJSFile(g)){var p=e.isBinaryExpression(g.parent)?g.parent:e.isAccessExpression(g.parent)&&e.isBinaryExpression(g.parent.parent)&&g.parent.parent.left===g.parent?g.parent.parent:void 0;if(p&&e.getAssignmentDeclarationKind(p)!==0)return O(p)}if(e.isJsxOpeningElement(g.parent)||e.isJsxClosingElement(g.parent))return g.parent.parent;if(e.isJsxSelfClosingElement(g.parent)||e.isLabeledStatement(g.parent)||e.isBreakOrContinueStatement(g.parent))return g.parent;if(e.isStringLiteralLike(g)){var d=e.tryGetImportFromModuleSpecifier(g);if(d){var T=e.findAncestor(d,function(k){return e.isDeclaration(k)||e.isStatement(k)||e.isJSDocTag(k)});return e.isDeclaration(T)?O(T):T}}var m=e.findAncestor(g,e.isComputedPropertyName);return m?O(m.parent):void 0}return g.parent.name===g||e.isConstructorDeclaration(g.parent)||e.isExportAssignment(g.parent)||(e.isImportOrExportSpecifier(g.parent)||e.isBindingElement(g.parent))&&g.parent.propertyName===g||g.kind===88&&e.hasSyntacticModifier(g.parent,513)?O(g.parent):void 0}function O(g){if(!g)return;switch(g.kind){case 252:return!e.isVariableDeclarationList(g.parent)||g.parent.declarations.length!==1?g:e.isVariableStatement(g.parent.parent)?g.parent.parent:e.isForInOrOfStatement(g.parent.parent)?O(g.parent.parent):g.parent;case 201:return O(g.parent.parent);case 268:return g.parent.parent.parent;case 273:case 266:return g.parent.parent;case 265:case 272:return g.parent;case 219:return e.isExpressionStatement(g.parent)?g.parent:g;case 242:case 241:return{start:g.initializer,end:g.expression};case 291:case 292:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(g.parent)?O(e.findAncestor(g.parent,function(p){return e.isBinaryExpression(p)||e.isForInOrOfStatement(p)})):g;default:return g}}ue.getContextNode=O;function w(g,p,d){if(!d)return;var T=ne(d)?I(d.start,p,d.end):I(d,p);return T.start!==g.start||T.length!==g.length?{contextSpan:T}:void 0}ue.toContextSpan=w;var b;(function(g){g[g.Other=0]="Other",g[g.References=1]="References",g[g.Rename=2]="Rename"})(b=ue.FindReferencesUse||(ue.FindReferencesUse={}));function de(g,p,d,T,m){var k=e.getTouchingPropertyName(T,m),N=F.getReferencedSymbolsForNode(m,k,g,d,p,{use:1}),D=g.getTypeChecker();return!N||!N.length?void 0:e.mapDefined(N,function(R){var me=R.definition,q=R.references;return me&&{definition:D.runWithCancellationToken(p,function(J){return W(me,J,k)}),references:q.map(E)}})}ue.findReferencedSymbols=de;function fe(g,p,d,T,m){var k=e.getTouchingPropertyName(T,m),N,D=_(g,p,d,k,m);if(k.parent.kind===204||k.parent.kind===201||k.parent.kind===205||k.kind===106)N=D&&Mt([],D,!0);else for(var R=D&&Mt([],D,!0),me=new e.Map;R&&R.length;){var q=R.shift();if(!e.addToSeen(me,e.getNodeId(q.node)))continue;N=e.append(N,q);var J=_(g,p,d,q.node,q.node.pos);J&&R.push.apply(R,J)}var C=g.getTypeChecker();return e.map(N,function(we){return ie(we,C)})}ue.getImplementationsAtPosition=fe;function _(g,p,d,T,m){if(T.kind===300)return;var k=g.getTypeChecker();if(T.parent.kind===292){var N=[];return F.getReferenceEntriesForShorthandPropertyAssignment(T,k,function(R){return N.push(V(R))}),N}else if(T.kind===106||e.isSuperProperty(T.parent)){var D=k.getSymbolAtLocation(T);return D.valueDeclaration&&[V(D.valueDeclaration)]}else return Z(m,T,g,d,p,{implementations:!0,use:1})}function U(g,p,d,T,m,k,N){return e.map(v(F.getReferencedSymbolsForNode(m,T,g,d,p,k)),function(D){return N(D,T,g.getTypeChecker())})}ue.findReferenceOrRenameEntries=U;function Z(g,p,d,T,m,k,N){return k===void 0&&(k={}),N===void 0&&(N=new e.Set(T.map(function(D){return D.fileName}))),v(F.getReferencedSymbolsForNode(g,p,d,T,m,k,N))}ue.getReferenceEntriesForNode=Z;function v(g){return g&&e.flatMap(g,function(p){return p.references})}function W(g,p,d){var T=function(){switch(g.type){case 0:{var q=g.symbol,J=$(q,p,d),C=J.displayParts,we=J.kind,Oe=C.map(function(Ue){return Ue.text}).join(""),te=q.declarations&&e.firstOrUndefined(q.declarations),Te=te?e.getNameOfDeclaration(te)||te:d;return pr(pr({},x(Te)),{name:Oe,kind:we,displayParts:C,context:O(te)})}case 1:{var Te=g.node;return pr(pr({},x(Te)),{name:Te.text,kind:"label",displayParts:[e.displayPart(Te.text,e.SymbolDisplayPartKind.text)]})}case 2:{var Te=g.node,be=e.tokenToString(Te.kind);return pr(pr({},x(Te)),{name:be,kind:"keyword",displayParts:[{text:be,kind:"keyword"}]})}case 3:{var Te=g.node,q=p.getSymbolAtLocation(Te),Ce=q&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(p,q,Te.getSourceFile(),e.getContainerNode(Te),Te).displayParts||[e.textPart("this")];return pr(pr({},x(Te)),{name:"this",kind:"var",displayParts:Ce})}case 4:{var Te=g.node;return pr(pr({},x(Te)),{name:Te.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(Te),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(g.reference),sourceFile:g.file,name:g.reference.fileName,kind:"string",displayParts:[e.displayPart('"'+g.reference.fileName+'"',e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(g)}}(),m=T.sourceFile,k=T.textSpan,N=T.name,D=T.kind,R=T.displayParts,me=T.context;return pr({containerKind:"",containerName:"",fileName:m.fileName,kind:D,name:N,textSpan:k,displayParts:R},w(k,m,me))}function x(g){var p=g.getSourceFile();return{sourceFile:p,textSpan:I(e.isComputedPropertyName(g)?g.expression:g,p)}}function $(g,p,d){var T=F.getIntersectingMeaningFromDeclarations(d,g),m=g.declarations&&e.firstOrUndefined(g.declarations)||d,k=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(p,g,m.getSourceFile(),m,m,T),N=k.displayParts,D=k.symbolKind;return{displayParts:N,kind:D}}function L(g,p,d,T){return pr(pr({},ae(g)),T&&X(g,p,d))}ue.toRenameLocation=L;function E(g){var p=ae(g);if(g.kind===0)return pr(pr({},p),{isWriteAccess:!1,isDefinition:!1});var d=g.kind,T=g.node;return pr(pr({},p),{isWriteAccess:B(T),isDefinition:A(T),isInString:d===2?!0:void 0})}ue.toReferenceEntry=E;function ae(g){if(g.kind===0)return{textSpan:g.textSpan,fileName:g.fileName};var p=g.node.getSourceFile(),d=I(g.node,p);return pr({textSpan:d,fileName:p.fileName},w(d,p,g.context))}function X(g,p,d){if(g.kind!==0&&e.isIdentifier(p)){var T=g.node,m=g.kind,k=T.parent,N=p.text,D=e.isShorthandPropertyAssignment(k);if(D||e.isObjectBindingElementWithoutPropertyName(k)&&k.name===T&&k.dotDotDotToken===void 0){var R={prefixText:N+": "},me={suffixText:": "+N};if(m===3)return R;if(m===4)return me;if(D){var q=k.parent;return e.isObjectLiteralExpression(q)&&e.isBinaryExpression(q.parent)&&e.isModuleExportsAccessExpression(q.parent.left)?R:me}else return R}else if(e.isImportSpecifier(k)&&!k.propertyName){var J=e.isExportSpecifier(p.parent)?d.getExportSpecifierLocalTargetSymbol(p.parent):d.getSymbolAtLocation(p);return e.contains(J.declarations,k)?{prefixText:N+" as "}:e.emptyOptions}else if(e.isExportSpecifier(k)&&!k.propertyName)return p===g.node||d.getSymbolAtLocation(p)===d.getSymbolAtLocation(g.node)?{prefixText:N+" as "}:{suffixText:" as "+N}}return e.emptyOptions}function ie(g,p){var d=ae(g);if(g.kind!==0){var T=g.node;return pr(pr({},d),le(T,p))}else return pr(pr({},d),{kind:"",displayParts:[]})}function le(g,p){var d=p.getSymbolAtLocation(e.isDeclaration(g)&&g.name?g.name:g);return d?$(d,p,g):g.kind===203?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:g.kind===224?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(g),displayParts:[]}}function P(g){var p=ae(g);if(g.kind===0)return{fileName:p.fileName,span:{textSpan:p.textSpan,kind:"reference"}};var d=B(g.node),T=pr({textSpan:p.textSpan,kind:d?"writtenReference":"reference",isInString:g.kind===2?!0:void 0},p.contextSpan&&{contextSpan:p.contextSpan});return{fileName:p.fileName,span:T}}ue.toHighlightSpan=P;function I(g,p,d){var T=g.getStart(p),m=(d||g).getEnd();return e.isStringLiteralLike(g)&&(e.Debug.assert(d===void 0),T+=1,m-=1),e.createTextSpanFromBounds(T,m)}function re(g){return g.kind===0?g.textSpan:I(g.node,g.node.getSourceFile())}ue.getTextSpanOfEntry=re;function B(g){var p=e.getDeclarationFromName(g);return!!p&&f(p)||g.kind===88||e.isWriteAccess(g)}function A(g){return g.kind===88||!!e.getDeclarationFromName(g)||e.isLiteralComputedPropertyDeclarationName(g)||g.kind===133&&e.isConstructorDeclaration(g.parent)}function f(g){if(g.flags&8388608)return!0;switch(g.kind){case 219:case 201:case 255:case 224:case 88:case 258:case 294:case 273:case 265:case 263:case 268:case 256:case 333:case 340:case 283:case 259:case 262:case 266:case 272:case 162:case 292:case 257:case 161:return!0;case 291:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(g.parent);case 254:case 211:case 169:case 167:case 170:case 171:return!!g.body;case 252:case 165:return!!g.initializer||e.isCatchClause(g.parent);case 166:case 164:case 342:case 335:return!1;default:return e.Debug.failBadSyntaxKind(g)}}var F;(function(g){function p(K,An,Fn,ln,Ln,Xe,Dn){var rn,qn;if(Xe===void 0&&(Xe={}),Dn===void 0&&(Dn=new e.Set(ln.map(function(Or){return Or.fileName}))),Xe.use===1?An=e.getAdjustedReferenceLocation(An):Xe.use===2&&(An=e.getAdjustedRenameLocation(An)),e.isSourceFile(An)){var it=e.GoToDefinition.getReferenceAtPosition(An,K,Fn);if(!(it==null?void 0:it.file))return;var ht=Fn.getTypeChecker().getMergedSymbol(it.file.symbol);if(ht)return R(Fn,ht,!1,ln,Dn);var Et=Fn.getFileIncludeReasons();return Et?[{definition:{type:5,reference:it.reference,file:An},references:T(it.file,Et,Fn)||e.emptyArray}]:void 0}if(!Xe.implementations){var zt=q(An,ln,Ln);if(zt)return zt}var fr=Fn.getTypeChecker(),br=fr.getSymbolAtLocation(e.isConstructorDeclaration(An)&&An.parent.name||An);if(!br){if(!Xe.implementations&&e.isStringLiteralLike(An)){if(e.isModuleSpecifierLike(An)){var Et=Fn.getFileIncludeReasons(),Jt=(qn=(rn=An.getSourceFile().resolvedModules)===null||rn===void 0?void 0:rn.get(An.text))===null||qn===void 0?void 0:qn.resolvedFileName,mr=Jt?Fn.getSourceFile(Jt):void 0;if(mr)return[{definition:{type:4,node:An},references:T(mr,Et,Fn)||e.emptyArray}]}return Gt(An,ln,fr,Ln)}return}if(br.escapedName==="export=")return R(Fn,br.parent,!1,ln,Dn);var Ht=k(br,Fn,ln,Ln,Xe,Dn);if(Ht&&!(br.flags&33554432))return Ht;var Xr=m(An,br,fr),At=Xr&&k(Xr,Fn,ln,Ln,Xe,Dn),Wr=J(br,An,ln,Dn,fr,Ln,Xe);return N(Fn,Ht,Wr,At)}g.getReferencedSymbolsForNode=p;function d(K,An,Fn,ln){var Ln,Xe;ln===void 0&&(ln=new e.Set(Fn.map(function(it){return it.fileName})));var Dn=(Ln=An.getSourceFile(K))===null||Ln===void 0?void 0:Ln.symbol;if(Dn)return((Xe=R(An,Dn,!1,Fn,ln)[0])===null||Xe===void 0?void 0:Xe.references)||e.emptyArray;var rn=An.getFileIncludeReasons(),qn=An.getSourceFile(K);return qn&&rn&&T(qn,rn,An)||e.emptyArray}g.getReferencesForFileName=d;function T(K,An,Fn){for(var ln,Ln=An.get(K.path)||e.emptyArray,Xe=0,Dn=Ln;Xe<Dn.length;Xe++){var rn=Dn[Xe];if(e.isReferencedFile(rn)){var qn=Fn.getSourceFileByPath(rn.file),it=e.getReferencedFileLocation(Fn.getSourceFileByPath,rn);e.isReferenceFileLocation(it)&&(ln=e.append(ln,{kind:0,fileName:qn.fileName,textSpan:e.createTextSpanFromRange(it)}))}}return ln}function m(K,An,Fn){if(K.parent&&e.isNamespaceExportDeclaration(K.parent)){var ln=Fn.getAliasedSymbol(An),Ln=Fn.getMergedSymbol(ln);if(ln!==Ln)return Ln}return}function k(K,An,Fn,ln,Ln,Xe){var Dn=K.flags&1536&&K.declarations&&e.find(K.declarations,e.isSourceFile);if(!Dn)return;var rn=K.exports.get("export="),qn=R(An,K,!!rn,Fn,Xe);if(!rn||!Xe.has(Dn.fileName))return qn;var it=An.getTypeChecker();return K=e.skipAlias(rn,it),N(An,qn,J(K,void 0,Fn,Xe,it,ln,Ln))}function N(K){for(var An=[],Fn=1;Fn<arguments.length;Fn++)An[Fn-1]=arguments[Fn];for(var ln,Ln=0,Xe=An;Ln<Xe.length;Ln++){var Dn=Xe[Ln];if(!Dn||!Dn.length)continue;if(!ln){ln=Dn;continue}for(var rn=function(Et){if(!Et.definition||Et.definition.type!==0)return ln.push(Et),"continue";var zt=Et.definition.symbol,fr=e.findIndex(ln,function(Jt){return!!Jt.definition&&Jt.definition.type===0&&Jt.definition.symbol===zt});if(fr===-1)return ln.push(Et),"continue";var br=ln[fr];ln[fr]={definition:br.definition,references:br.references.concat(Et.references).sort(function(Jt,mr){var Ht=D(K,Jt),Xr=D(K,mr);if(Ht!==Xr)return e.compareValues(Ht,Xr);var At=re(Jt),Wr=re(mr);return At.start!==Wr.start?e.compareValues(At.start,Wr.start):e.compareValues(At.length,Wr.length)})}},qn=0,it=Dn;qn<it.length;qn++){var ht=it[qn];rn(ht)}}return ln}function D(K,An){var Fn=An.kind===0?K.getSourceFile(An.fileName):An.node.getSourceFile();return K.getSourceFiles().indexOf(Fn)}function R(K,An,Fn,ln,Ln){e.Debug.assert(!!An.valueDeclaration);var Xe=e.mapDefined(ue.findModuleReferences(K,ln,An),function(br){if(br.kind==="import"){var Jt=br.literal.parent;if(e.isLiteralTypeNode(Jt)){var mr=e.cast(Jt.parent,e.isImportTypeNode);if(Fn&&!mr.qualifier)return}return V(br.literal)}else return{kind:0,fileName:br.referencingFile.fileName,textSpan:e.createTextSpanFromRange(br.ref)}});if(An.declarations)for(var Dn=0,rn=An.declarations;Dn<rn.length;Dn++){var qn=rn[Dn];switch(qn.kind){case 300:break;case 259:Ln.has(qn.getSourceFile().fileName)&&Xe.push(V(qn.name));break;default:e.Debug.assert(!!(An.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var it=An.exports.get("export=");if(it==null?void 0:it.declarations)for(var ht=0,Et=it.declarations;ht<Et.length;ht++){var qn=Et[ht],zt=qn.getSourceFile();if(Ln.has(zt.fileName)){var fr=e.isBinaryExpression(qn)&&e.isPropertyAccessExpression(qn.left)?qn.left.expression:e.isExportAssignment(qn)?e.Debug.checkDefined(e.findChildOfKind(qn,93,zt)):e.getNameOfDeclaration(qn)||qn;Xe.push(V(fr))}}return Xe.length?[{definition:{type:0,symbol:An},references:Xe}]:e.emptyArray}function me(K){return K.kind===143&&e.isTypeOperatorNode(K.parent)&&K.parent.operator===143}function q(K,An,Fn){if(e.isTypeKeyword(K.kind))return K.kind===114&&e.isVoidExpression(K.parent)||K.kind===143&&!me(K)?void 0:Wn(An,K.kind,Fn,K.kind===143?me:void 0);if(e.isStaticModifier(K)&&e.isClassStaticBlockDeclaration(K.parent))return[{definition:{type:2,node:K},references:[V(K)]}];if(e.isJumpStatementTarget(K)){var ln=e.getTargetLabel(K.parent,K.text);return ln&&je(ln.parent,ln)}else if(e.isLabelOfLabeledStatement(K))return je(K.parent,K);return e.isThis(K)?yt(K,An,Fn):K.kind===106?Nn(K):void 0}function J(K,An,Fn,ln,Ln,Xe,Dn){var rn=An&&Oe(K,An,Ln,!Bn(Dn))||K,qn=An?Pn(An,rn):7,it=[],ht=new be(Fn,ln,An?we(An):0,Ln,Xe,qn,Dn,it),Et=!Bn(Dn)||!rn.declarations?void 0:e.find(rn.declarations,e.isExportSpecifier);if(Et)z(Et.name,rn,Et,ht.createSearch(An,K,void 0),ht,!0,!0);else if(An&&An.kind===88&&rn.escapedName==="default"&&rn.parent)Pe(An,rn,ht),Ce(An,rn,{exportingModuleSymbol:rn.parent,exportKind:1},ht);else{var zt=ht.createSearch(An,rn,void 0,{allSearchSymbols:An?$t(rn,An,Ln,Dn.use===2,!!Dn.providePrefixAndSuffixTextForRename,!!Dn.implementations):[rn]});C(rn,ht,zt)}return it}function C(K,An,Fn){var ln=qe(K);if(ln)vn(ln,ln.getSourceFile(),Fn,An,!(e.isSourceFile(ln)&&!e.contains(An.sourceFiles,ln)));else for(var Ln=0,Xe=An.sourceFiles;Ln<Xe.length;Ln++){var Dn=Xe[Ln];An.cancellationToken.throwIfCancellationRequested(),ce(Dn,Fn,An)}}function we(K){switch(K.kind){case 169:case 133:return 1;case 79:if(e.isClassLike(K.parent))return e.Debug.assert(K.parent.name===K),2;default:return 0}}function Oe(K,An,Fn,ln){var Ln=An.parent;return e.isExportSpecifier(Ln)&&ln?tn(An,K,Ln,Fn):e.firstDefined(K.declarations,function(Xe){if(!Xe.parent){if(K.flags&33554432)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(An.kind)+": "+e.Debug.formatSymbol(K))}return e.isTypeLiteralNode(Xe.parent)&&e.isUnionTypeNode(Xe.parent.parent)?Fn.getPropertyOfType(Fn.getTypeFromTypeNode(Xe.parent.parent),K.name):void 0})}var te;(function(K){K[K.None=0]="None",K[K.Constructor=1]="Constructor",K[K.Class=2]="Class"})(te||(te={}));function Te(K){if(!(K.flags&(1536|33554432)))return;var An=K.declarations&&e.find(K.declarations,function(Fn){return!e.isSourceFile(Fn)&&!e.isModuleDeclaration(Fn)});return An&&An.symbol}var be=function(){function K(An,Fn,ln,Ln,Xe,Dn,rn,qn){this.sourceFiles=An,this.sourceFilesSet=Fn,this.specialSearchKind=ln,this.checker=Ln,this.cancellationToken=Xe,this.searchMeaning=Dn,this.options=rn,this.result=qn,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return K.prototype.includesSourceFile=function(An){return this.sourceFilesSet.has(An.fileName)},K.prototype.getImportSearches=function(An,Fn){return this.importTracker||(this.importTracker=ue.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(An,Fn,this.options.use===2)},K.prototype.createSearch=function(An,Fn,ln,Ln){Ln===void 0&&(Ln={});var Xe=Ln.text,Dn=Xe===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(Fn)||Te(Fn)||Fn)):Xe,rn=Ln.allSearchSymbols,qn=rn===void 0?[Fn]:rn,it=e.escapeLeadingUnderscores(Dn),ht=this.options.implementations&&An?Fe(An,Fn,this.checker):void 0;return{symbol:Fn,comingFrom:ln,text:Dn,escapedText:it,parents:ht,allSearchSymbols:qn,includes:function(Et){return e.contains(qn,Et)}}},K.prototype.referenceAdder=function(An){var Fn=e.getSymbolId(An),ln=this.symbolIdToReferences[Fn];return ln||(ln=this.symbolIdToReferences[Fn]=[],this.result.push({definition:{type:0,symbol:An},references:ln})),function(Ln,Xe){return ln.push(V(Ln,Xe))}},K.prototype.addStringOrCommentReference=function(An,Fn){this.result.push({definition:void 0,references:[{kind:0,fileName:An,textSpan:Fn}]})},K.prototype.markSearchedSymbols=function(An,Fn){for(var ln=e.getNodeId(An),Ln=this.sourceFileToSeenSymbols[ln]||(this.sourceFileToSeenSymbols[ln]=new e.Set),Xe=!1,Dn=0,rn=Fn;Dn<rn.length;Dn++){var qn=rn[Dn];Xe=e.tryAddToSet(Ln,e.getSymbolId(qn))||Xe}return Xe},K}();function Ce(K,An,Fn,ln){var Ln=ln.getImportSearches(An,Fn),Xe=Ln.importSearches,Dn=Ln.singleReferences,rn=Ln.indirectUsers;if(Dn.length)for(var qn=ln.referenceAdder(An),it=0,ht=Dn;it<ht.length;it++){var Et=ht[it];Se(Et,ln)&&qn(Et)}for(var zt=0,fr=Xe;zt<fr.length;zt++){var br=fr[zt],Jt=br[0],mr=br[1];dn(Jt.getSourceFile(),ln.createSearch(Jt,mr,1),ln)}if(rn.length){var Ht=void 0;switch(Fn.exportKind){case 0:Ht=ln.createSearch(K,An,1);break;case 1:Ht=ln.options.use===2?void 0:ln.createSearch(K,An,1,{text:"default"});break;case 2:break}if(Ht)for(var Xr=0,At=rn;Xr<At.length;Xr++){var Wr=At[Xr];ce(Wr,Ht,ln)}}}function Ue(K,An,Fn,ln,Ln,Xe,Dn,rn){for(var qn=ue.createImportTracker(K,new e.Set(K.map(function(qa){return qa.fileName})),An,Fn),it=qn(ln,{exportKind:Dn?1:0,exportingModuleSymbol:Ln},!1),ht=it.importSearches,Et=it.indirectUsers,zt=0,fr=ht;zt<fr.length;zt++){var br=fr[zt][0];rn(br)}for(var Jt=0,mr=Et;Jt<mr.length;Jt++)for(var Ht=mr[Jt],Xr=0,At=Ye(Ht,Dn?"default":Xe);Xr<At.length;Xr++){var Wr=At[Xr],Or=An.getSymbolAtLocation(Wr),Ja=e.some(Or==null?void 0:Or.declarations,function(qa){return!!e.tryCast(qa,e.isExportAssignment)});e.isIdentifier(Wr)&&!e.isImportOrExportSpecifier(Wr.parent)&&(Or===ln||Ja)&&rn(Wr)}}g.eachExportReference=Ue;function Se(K,An){return o(K,An)?An.options.use!==2?!0:e.isIdentifier(K)?!(e.isImportOrExportSpecifier(K.parent)&&K.escapedText==="default"):!1:!1}function $e(K,An){if(!K.declarations)return;for(var Fn=0,ln=K.declarations;Fn<ln.length;Fn++){var Ln=ln[Fn],Xe=Ln.getSourceFile();dn(Xe,An.createSearch(Ln,K,0),An,An.includesSourceFile(Xe))}}function ce(K,An,Fn){e.getNameTable(K).get(An.escapedText)!==void 0&&dn(K,An,Fn)}function Le(K,An){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(K.parent.parent)?An.getPropertySymbolOfDestructuringAssignment(K):void 0}function qe(K){var An=K.declarations,Fn=K.flags,ln=K.parent,Ln=K.valueDeclaration;if(Ln&&(Ln.kind===211||Ln.kind===224))return Ln;if(!An)return;if(Fn&(4|8192)){var Xe=e.find(An,function(fr){return e.hasEffectiveModifier(fr,8)||e.isPrivateIdentifierClassElementDeclaration(fr)});return Xe?e.getAncestor(Xe,255):void 0}if(An.some(e.isObjectBindingElementWithoutPropertyName))return;var Dn=ln&&!(K.flags&262144);if(Dn&&!(e.isExternalModuleSymbol(ln)&&!ln.globalExports))return;for(var rn,qn=0,it=An;qn<it.length;qn++){var ht=it[qn],Et=e.getContainerNode(ht);if(rn&&rn!==Et)return;if(!Et||Et.kind===300&&!e.isExternalOrCommonJsModule(Et))return;if(rn=Et,e.isFunctionExpression(rn))for(var zt=void 0;zt=e.getNextJSDocCommentLocation(rn);)rn=zt}return Dn?rn.getSourceFile():rn}function pe(K,An,Fn,ln){return ln===void 0&&(ln=Fn),Me(K,An,Fn,function(){return!0},ln)||!1}g.isSymbolReferencedInFile=pe;function Me(K,An,Fn,ln,Ln){Ln===void 0&&(Ln=Fn);var Xe=e.isParameterPropertyDeclaration(K.parent,K.parent.parent)?e.first(An.getSymbolsOfParameterPropertyDeclaration(K.parent,K.text)):An.getSymbolAtLocation(K);if(!Xe)return;for(var Dn=0,rn=Ye(Fn,Xe.name,Ln);Dn<rn.length;Dn++){var qn=rn[Dn];if(!e.isIdentifier(qn)||qn===K||qn.escapedText!==K.escapedText)continue;var it=An.getSymbolAtLocation(qn);if(it===Xe||An.getShorthandAssignmentValueSymbol(qn.parent)===Xe||e.isExportSpecifier(qn.parent)&&tn(qn,it,qn.parent,An)===Xe){var ht=ln(qn);if(ht)return ht}}}g.eachSymbolReferenceInFile=Me;function fn(K,An,Fn,ln){if(!K.name||!e.isIdentifier(K.name))return!1;for(var Ln=e.Debug.checkDefined(Fn.getSymbolAtLocation(K.name)),Xe=0,Dn=An;Xe<Dn.length;Xe++)for(var rn=Dn[Xe],qn=0,it=Ye(rn,Ln.name);qn<it.length;qn++){var ht=it[qn];if(!e.isIdentifier(ht)||ht===K.name||ht.escapedText!==K.name.escapedText)continue;var Et=e.climbPastPropertyAccess(ht),zt=e.isCallExpression(Et.parent)&&Et.parent.expression===Et?Et.parent:void 0,fr=Fn.getSymbolAtLocation(ht);if(fr&&Fn.getRootSymbols(fr).some(function(br){return br===Ln})&&ln(ht,zt))return!0}return!1}g.someSignatureUsage=fn;function Ye(K,An,Fn){return Fn===void 0&&(Fn=K),Ne(K,An,Fn).map(function(ln){return e.getTouchingPropertyName(K,ln)})}function Ne(K,An,Fn){Fn===void 0&&(Fn=K);var ln=[];if(!An||!An.length)return ln;for(var Ln=K.text,Xe=Ln.length,Dn=An.length,rn=Ln.indexOf(An,Fn.pos);rn>=0&&!(rn>Fn.end);){var qn=rn+Dn;(rn===0||!e.isIdentifierPart(Ln.charCodeAt(rn-1),99))&&(qn===Xe||!e.isIdentifierPart(Ln.charCodeAt(qn),99))&&ln.push(rn),rn=Ln.indexOf(An,rn+Dn+1)}return ln}function je(K,An){var Fn=K.getSourceFile(),ln=An.text,Ln=e.mapDefined(Ye(Fn,ln,K),function(Xe){return Xe===An||e.isJumpStatementTarget(Xe)&&e.getTargetLabel(Xe,ln)===An?V(Xe):void 0});return[{definition:{type:1,node:An},references:Ln}]}function xn(K,An){switch(K.kind){case 80:if(e.isJSDocMemberName(K.parent))return!0;case 79:return K.text.length===An.length;case 14:case 10:{var Fn=K;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Fn)||e.isNameOfModuleDeclaration(K)||e.isExpressionOfExternalModuleImportEqualsDeclaration(K)||e.isCallExpression(K.parent)&&e.isBindableObjectDefinePropertyCall(K.parent)&&K.parent.arguments[1]===K)&&Fn.text.length===An.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(K)&&K.text.length===An.length;case 88:return"default".length===An.length;default:return!1}}function Wn(K,An,Fn,ln){var Ln=e.flatMap(K,function(Xe){return Fn.throwIfCancellationRequested(),e.mapDefined(Ye(Xe,e.tokenToString(An),Xe),function(Dn){if(Dn.kind===An&&(!ln||ln(Dn)))return V(Dn)})});return Ln.length?[{definition:{type:2,node:Ln[0].node},references:Ln}]:void 0}function dn(K,An,Fn,ln){return ln===void 0&&(ln=!0),Fn.cancellationToken.throwIfCancellationRequested(),vn(K,K,An,Fn,ln)}function vn(K,An,Fn,ln,Ln){if(!ln.markSearchedSymbols(An,Fn.allSearchSymbols))return;for(var Xe=0,Dn=Ne(An,Fn.text,K);Xe<Dn.length;Xe++){var rn=Dn[Xe];Cn(An,rn,Fn,ln,Ln)}}function o(K,An){return!!(e.getMeaningFromLocation(K)&An.searchMeaning)}function Cn(K,An,Fn,ln,Ln){var Xe=e.getTouchingPropertyName(K,An);if(!xn(Xe,Fn.text)){!ln.options.implementations&&(ln.options.findInStrings&&e.isInString(K,An)||ln.options.findInComments&&e.isInNonReferenceComment(K,An))&&ln.addStringOrCommentReference(K.fileName,e.createTextSpan(An,Fn.text.length));return}if(!o(Xe,ln))return;var Dn=ln.checker.getSymbolAtLocation(Xe);if(!Dn)return;var rn=Xe.parent;if(e.isImportSpecifier(rn)&&rn.propertyName===Xe)return;if(e.isExportSpecifier(rn)){e.Debug.assert(Xe.kind===79),z(Xe,Dn,rn,Fn,ln,Ln);return}var qn=Re(Fn,Dn,Xe,ln);if(!qn){oe(Dn,Fn,ln);return}switch(ln.specialSearchKind){case 0:Ln&&Pe(Xe,qn,ln);break;case 1:ke(Xe,K,Fn,ln);break;case 2:Qe(Xe,Fn,ln);break;default:e.Debug.assertNever(ln.specialSearchKind)}Dn=e.isInJSFile(Xe)&&Xe.parent.kind===201&&e.isRequireVariableDeclaration(Xe.parent)?Xe.parent.symbol:Dn,Un(Xe,Dn,Fn,ln)}function z(K,An,Fn,ln,Ln,Xe,Dn){e.Debug.assert(!Dn||!!Ln.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var rn=Fn.parent,qn=Fn.propertyName,it=Fn.name,ht=rn.parent,Et=tn(K,An,Fn,Ln.checker);if(!Dn&&!ln.includes(Et))return;if(qn?K===qn?(ht.moduleSpecifier||Ht(),Xe&&Ln.options.use!==2&&Ln.markSeenReExportRHS(it)&&Pe(it,e.Debug.checkDefined(Fn.symbol),Ln)):Ln.markSeenReExportRHS(K)&&Ht():Ln.options.use===2&&it.escapedText==="default"||Ht(),!Bn(Ln.options)||Dn){var zt=K.originalKeywordKind===88||Fn.name.originalKeywordKind===88,fr=zt?1:0,br=e.Debug.checkDefined(Fn.symbol),Jt=ue.getExportInfo(br,fr,Ln.checker);Jt&&Ce(K,br,Jt,Ln)}if(ln.comingFrom!==1&&ht.moduleSpecifier&&!qn&&!Bn(Ln.options)){var mr=Ln.checker.getExportSpecifierLocalTargetSymbol(Fn);mr&&$e(mr,Ln)}function Ht(){Xe&&Pe(K,Et,Ln)}}function tn(K,An,Fn,ln){return $n(K,Fn)&&ln.getExportSpecifierLocalTargetSymbol(Fn)||An}function $n(K,An){var Fn=An.parent,ln=An.propertyName,Ln=An.name;return e.Debug.assert(ln===K||Ln===K),ln?ln===K:!Fn.parent.moduleSpecifier}function Un(K,An,Fn,ln){var Ln=ue.getImportOrExportSymbol(K,An,ln.checker,Fn.comingFrom===1);if(!Ln)return;var Xe=Ln.symbol;Ln.kind===0?Bn(ln.options)||$e(Xe,ln):Ce(K,Xe,Ln.exportInfo,ln)}function oe(K,An,Fn){var ln=K.flags,Ln=K.valueDeclaration,Xe=Fn.checker.getShorthandAssignmentValueSymbol(Ln),Dn=Ln&&e.getNameOfDeclaration(Ln);!(ln&33554432)&&Dn&&An.includes(Xe)&&Pe(Dn,Xe,Fn)}function Pe(K,An,Fn){var ln="kind"in An?An:{kind:void 0,symbol:An},Ln=ln.kind,Xe=ln.symbol,Dn=Fn.referenceAdder(Xe);Fn.options.implementations?hn(K,Dn,Fn):Dn(K,Ln)}function ke(K,An,Fn,ln){e.isNewExpressionTarget(K)&&Pe(K,Fn.symbol,ln);var Ln=function(){return ln.referenceAdder(Fn.symbol)};if(e.isClassLike(K.parent))e.Debug.assert(K.kind===88||K.parent.name===K),gn(Fn.symbol,An,Ln());else{var Xe=lt(K);Xe&&(Ze(Xe,Ln()),Be(Xe,ln))}}function Qe(K,An,Fn){Pe(K,An.symbol,Fn);var ln=K.parent;if(Fn.options.use===2||!e.isClassLike(ln))return;e.Debug.assert(ln.name===K);for(var Ln=Fn.referenceAdder(An.symbol),Xe=0,Dn=ln.members;Xe<Dn.length;Xe++){var rn=Dn[Xe];if(!(e.isMethodOrAccessor(rn)&&e.isStatic(rn)))continue;rn.body&&rn.body.forEachChild(function qn(it){it.kind===108?Ln(it):!e.isFunctionLike(it)&&!e.isClassLike(it)&&it.forEachChild(qn)})}}function gn(K,An,Fn){var ln=xe(K);if(ln&&ln.declarations)for(var Ln=0,Xe=ln.declarations;Ln<Xe.length;Ln++){var Dn=Xe[Ln],rn=e.findChildOfKind(Dn,133,An);e.Debug.assert(Dn.kind===169&&!!rn),Fn(rn)}K.exports&&K.exports.forEach(function(qn){var it=qn.valueDeclaration;if(it&&it.kind===167){var ht=it.body;ht&>(ht,108,function(Et){e.isNewExpressionTarget(Et)&&Fn(Et)})}})}function xe(K){return K.members&&K.members.get("__constructor")}function Ze(K,An){var Fn=xe(K.symbol);if(!(Fn&&Fn.declarations))return;for(var ln=0,Ln=Fn.declarations;ln<Ln.length;ln++){var Xe=Ln[ln];e.Debug.assert(Xe.kind===169);var Dn=Xe.body;Dn&>(Dn,106,function(rn){e.isCallExpressionTarget(rn)&&An(rn)})}}function wn(K){return!!xe(K.symbol)}function Be(K,An){if(wn(K))return;var Fn=K.symbol,ln=An.createSearch(void 0,Fn,void 0);C(Fn,An,ln)}function hn(K,An,Fn){if(e.isDeclarationName(K)&&rt(K.parent)){An(K);return}if(K.kind!==79)return;K.parent.kind===292&&Yn(K,Fn.checker,An);var ln=Kn(K);if(ln){An(ln);return}var Ln=e.findAncestor(K,function(qn){return!e.isQualifiedName(qn.parent)&&!e.isTypeNode(qn.parent)&&!e.isTypeElement(qn.parent)}),Xe=Ln.parent;if(e.hasType(Xe)&&Xe.type===Ln&&Fn.markSeenContainingTypeReference(Xe))if(e.hasInitializer(Xe))rn(Xe.initializer);else if(e.isFunctionLike(Xe)&&Xe.body){var Dn=Xe.body;Dn.kind===233?e.forEachReturnStatement(Dn,function(qn){qn.expression&&rn(qn.expression)}):rn(Dn)}else e.isAssertionExpression(Xe)&&rn(Xe.expression);function rn(qn){Je(qn)&&An(qn)}}function Kn(K){return e.isIdentifier(K)||e.isPropertyAccessExpression(K)?Kn(K.parent):e.isExpressionWithTypeArguments(K)?e.tryCast(K.parent.parent,e.isClassLike):void 0}function Je(K){switch(K.kind){case 210:return Je(K.expression);case 212:case 211:case 203:case 224:case 202:return!0;default:return!1}}function En(K,An,Fn,ln){if(K===An)return!0;var Ln=e.getSymbolId(K)+","+e.getSymbolId(An),Xe=Fn.get(Ln);if(Xe!==void 0)return Xe;Fn.set(Ln,!1);var Dn=!!K.declarations&&K.declarations.some(function(rn){return e.getAllSuperTypeNodes(rn).some(function(qn){var it=ln.getTypeAtLocation(qn);return!!it&&!!it.symbol&&En(it.symbol,An,Fn,ln)})});return Fn.set(Ln,Dn),Dn}function Nn(K){var An=e.getSuperContainer(K,!1);if(!An)return;var Fn=32;switch(An.kind){case 165:case 164:case 167:case 166:case 169:case 170:case 171:Fn&=e.getSyntacticModifierFlags(An),An=An.parent;break;default:return}var ln=An.getSourceFile(),Ln=e.mapDefined(Ye(ln,"super",An),function(Xe){if(Xe.kind!==106)return;var Dn=e.getSuperContainer(Xe,!1);return Dn&&e.isStatic(Dn)===!!Fn&&Dn.parent.symbol===An.symbol?V(Xe):void 0});return[{definition:{type:0,symbol:An.symbol},references:Ln}]}function ct(K){return K.kind===79&&K.parent.kind===162&&K.parent.name===K}function yt(K,An,Fn){var ln=e.getThisContainer(K,!1),Ln=32;switch(ln.kind){case 167:case 166:if(e.isObjectLiteralMethod(ln)){Ln&=e.getSyntacticModifierFlags(ln),ln=ln.parent;break}case 165:case 164:case 169:case 170:case 171:Ln&=e.getSyntacticModifierFlags(ln),ln=ln.parent;break;case 300:if(e.isExternalModule(ln)||ct(K))return;case 254:case 211:break;default:return}var Xe=e.flatMap(ln.kind===300?An:[ln.getSourceFile()],function(rn){return Fn.throwIfCancellationRequested(),Ye(rn,"this",e.isSourceFile(ln)?rn:ln).filter(function(qn){if(!e.isThis(qn))return!1;var it=e.getThisContainer(qn,!1);switch(ln.kind){case 211:case 254:return ln.symbol===it.symbol;case 167:case 166:return e.isObjectLiteralMethod(ln)&&ln.symbol===it.symbol;case 224:case 255:case 203:return it.parent&&ln.symbol===it.parent.symbol&&e.isStatic(it)===!!Ln;case 300:return it.kind===300&&!e.isExternalModule(it)&&!ct(qn)}})}).map(function(rn){return V(rn)}),Dn=e.firstDefined(Xe,function(rn){return e.isParameter(rn.node.parent)?rn.node:void 0});return[{definition:{type:3,node:Dn||K},references:Xe}]}function Gt(K,An,Fn,ln){var Ln=e.getContextualTypeOrAncestorTypeNodeType(K,Fn),Xe=e.flatMap(An,function(Dn){return ln.throwIfCancellationRequested(),e.mapDefined(Ye(Dn,K.text),function(rn){if(e.isStringLiteralLike(rn)&&rn.text===K.text)if(Ln){var qn=e.getContextualTypeOrAncestorTypeNodeType(rn,Fn);if(Ln!==Fn.getStringType()&&Ln===qn)return V(rn,2)}else return V(rn,2)})});return[{definition:{type:4,node:K},references:Xe}]}function $t(K,An,Fn,ln,Ln,Xe){var Dn=[];return Ke(K,An,Fn,ln,!(ln&&Ln),function(rn,qn,it){it&&(Zn(K)!==Zn(it)&&(it=void 0)),Dn.push(it||qn||rn)},function(){return!Xe}),Dn}function Ke(K,An,Fn,ln,Ln,Xe,Dn){var rn=e.getContainingObjectLiteralElement(An);if(rn){var qn=Fn.getShorthandAssignmentValueSymbol(An.parent);if(qn&&ln)return Xe(qn,void 0,void 0,3);var it=Fn.getContextualType(rn.parent),ht=it&&e.firstDefined(e.getPropertySymbolsFromContextualType(rn,Fn,it,!0),function(Va){return qa(Va,4)});if(ht)return ht;var Et=Le(An,Fn),zt=Et&&Xe(Et,void 0,void 0,4);if(zt)return zt;var fr=qn&&Xe(qn,void 0,void 0,3);if(fr)return fr}var br=m(An,K,Fn);if(br){var Jt=Xe(br,void 0,void 0,1);if(Jt)return Jt}var mr=qa(K);if(mr)return mr;if(K.valueDeclaration&&e.isParameterPropertyDeclaration(K.valueDeclaration,K.valueDeclaration.parent)){var Ht=Fn.getSymbolsOfParameterPropertyDeclaration(e.cast(K.valueDeclaration,e.isParameter),K.name);return e.Debug.assert(Ht.length===2&&!!(Ht[0].flags&1)&&!!(Ht[1].flags&4)),qa(K.flags&1?Ht[1]:Ht[0])}var Xr=e.getDeclarationOfKind(K,273);if(!ln||Xr&&!Xr.propertyName){var At=Xr&&Fn.getExportSpecifierLocalTargetSymbol(Xr);if(At){var Wr=Xe(At,void 0,void 0,1);if(Wr)return Wr}}if(!ln){var Or=void 0;return Ln?Or=e.isObjectBindingElementWithoutPropertyName(An.parent)?e.getPropertySymbolFromBindingElement(Fn,An.parent):void 0:Or=eo(K,Fn),Or&&qa(Or,4)}e.Debug.assert(ln);var Ja=Ln;if(Ja){var Or=eo(K,Fn);return Or&&qa(Or,4)}function qa(Va,la){return e.firstDefined(Fn.getRootSymbols(Va),function(wt){return Xe(Va,wt,void 0,la)||(wt.parent&&wt.parent.flags&(32|64)&&Dn(wt)?Vn(wt.parent,wt.name,Fn,function(rr){return Xe(Va,wt,rr,la)}):void 0)})}function eo(Va,la){var wt=e.getDeclarationOfKind(Va,201);if(wt&&e.isObjectBindingElementWithoutPropertyName(wt))return e.getPropertySymbolFromBindingElement(la,wt)}}function Vn(K,An,Fn,ln){var Ln=new e.Map;return Xe(K);function Xe(Dn){return!(Dn.flags&(32|64))||!e.addToSeen(Ln,e.getSymbolId(Dn))?void 0:e.firstDefined(Dn.declarations,function(rn){return e.firstDefined(e.getAllSuperTypeNodes(rn),function(qn){var it=Fn.getTypeAtLocation(qn),ht=it&&it.symbol&&Fn.getPropertyOfType(it,An);return it&&ht&&(e.firstDefined(Fn.getRootSymbols(ht),ln)||Xe(it.symbol))})})}}function Zn(K){if(!K.valueDeclaration)return!1;var An=e.getEffectiveModifierFlags(K.valueDeclaration);return!!(An&32)}function Re(K,An,Fn,ln){var Ln=ln.checker;return Ke(An,Fn,Ln,!1,ln.options.use!==2||!!ln.options.providePrefixAndSuffixTextForRename,function(Xe,Dn,rn,qn){return rn&&(Zn(An)!==Zn(rn)&&(rn=void 0)),K.includes(rn||Dn||Xe)?{symbol:Dn&&!(e.getCheckFlags(Xe)&6)?Dn:Xe,kind:qn}:void 0},function(Xe){return!(K.parents&&!K.parents.some(function(Dn){return En(Xe.parent,Dn,ln.inheritsFromCache,Ln)}))})}function Pn(K,An){var Fn=e.getMeaningFromLocation(K),ln=An.declarations;if(ln){var Ln=void 0;do{Ln=Fn;for(var Xe=0,Dn=ln;Xe<Dn.length;Xe++){var rn=Dn[Xe],qn=e.getMeaningFromDeclaration(rn);qn&Fn&&(Fn|=qn)}}while(Fn!==Ln)}return Fn}g.getIntersectingMeaningFromDeclarations=Pn;function rt(K){return K.flags&8388608?!(e.isInterfaceDeclaration(K)||e.isTypeAliasDeclaration(K)):e.isVariableLike(K)?e.hasInitializer(K):e.isFunctionLikeDeclaration(K)?!!K.body:e.isClassLike(K)||e.isModuleOrEnumDeclaration(K)}function Yn(K,An,Fn){var ln=An.getSymbolAtLocation(K),Ln=An.getShorthandAssignmentValueSymbol(ln.valueDeclaration);if(Ln)for(var Xe=0,Dn=Ln.getDeclarations();Xe<Dn.length;Xe++){var rn=Dn[Xe];e.getMeaningFromDeclaration(rn)&1&&Fn(rn)}}g.getReferenceEntriesForShorthandPropertyAssignment=Yn;function gt(K,An,Fn){e.forEachChild(K,function(ln){ln.kind===An&&Fn(ln),gt(ln,An,Fn)})}function lt(K){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(K).parent)}function Fe(K,An,Fn){var ln=e.isRightSideOfPropertyAccess(K)?K.parent:void 0,Ln=ln&&Fn.getTypeAtLocation(ln.expression),Xe=e.mapDefined(Ln&&(Ln.isUnionOrIntersection()?Ln.types:Ln.symbol===An.parent?void 0:[Ln]),function(Dn){return Dn.symbol&&Dn.symbol.flags&(32|64)?Dn.symbol:void 0});return Xe.length===0?void 0:Xe}function Bn(K){return K.use===2&&K.providePrefixAndSuffixTextForRename}})(F=ue.Core||(ue.Core={}))})(s=e.FindAllReferences||(e.FindAllReferences={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(g){return(e.isFunctionExpression(g)||e.isClassExpression(g))&&e.isNamedDeclaration(g)}function Y(g){return(e.isFunctionExpression(g)||e.isArrowFunction(g)||e.isClassExpression(g))&&e.isVariableDeclaration(g.parent)&&g===g.parent.initializer&&e.isIdentifier(g.parent.name)&&!!(e.getCombinedNodeFlags(g.parent)&2)}function V(g){return e.isSourceFile(g)||e.isModuleDeclaration(g)||e.isFunctionDeclaration(g)||e.isFunctionExpression(g)||e.isClassDeclaration(g)||e.isClassExpression(g)||e.isClassStaticBlockDeclaration(g)||e.isMethodDeclaration(g)||e.isMethodSignature(g)||e.isGetAccessorDeclaration(g)||e.isSetAccessorDeclaration(g)}function ne(g){return e.isSourceFile(g)||e.isModuleDeclaration(g)&&e.isIdentifier(g.name)||e.isFunctionDeclaration(g)||e.isClassDeclaration(g)||e.isClassStaticBlockDeclaration(g)||e.isMethodDeclaration(g)||e.isMethodSignature(g)||e.isGetAccessorDeclaration(g)||e.isSetAccessorDeclaration(g)||ee(g)||Y(g)}function _e(g){return e.isSourceFile(g)?g:e.isNamedDeclaration(g)?g.name:Y(g)?g.parent.name:e.Debug.checkDefined(g.modifiers&&e.find(g.modifiers,O))}function O(g){return g.kind===88}function w(g,p){var d=_e(p);return d&&g.getSymbolAtLocation(d)}function b(g,p){if(e.isSourceFile(p))return{text:p.fileName,pos:0,end:0};if((e.isFunctionDeclaration(p)||e.isClassDeclaration(p))&&!e.isNamedDeclaration(p)){var d=p.modifiers&&e.find(p.modifiers,O);if(d)return{text:"default",pos:d.getStart(),end:d.getEnd()}}if(e.isClassStaticBlockDeclaration(p)){var T=p.getSourceFile(),m=e.skipTrivia(T.text,e.moveRangePastModifiers(p).pos),k=m+6,N=g.getTypeChecker(),D=N.getSymbolAtLocation(p.parent),R=D?N.symbolToString(D,p.parent)+" ":"";return{text:R+"static {}",pos:m,end:k}}var me=Y(p)?p.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(p),"Expected call hierarchy item to have a name"),q=e.isIdentifier(me)?e.idText(me):e.isStringOrNumericLiteralLike(me)?me.text:e.isComputedPropertyName(me)&&e.isStringOrNumericLiteralLike(me.expression)?me.expression.text:void 0;if(q===void 0){var N=g.getTypeChecker(),D=N.getSymbolAtLocation(me);D&&(q=N.symbolToString(D,p))}if(q===void 0){var J=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});q=e.usingSingleLineStringWriter(function(C){return J.writeNode(4,p,p.getSourceFile(),C)})}return{text:q,pos:me.getStart(),end:me.getEnd()}}function de(g){var p,d;if(Y(g))return e.isModuleBlock(g.parent.parent.parent.parent)&&e.isIdentifier(g.parent.parent.parent.parent.parent.name)?g.parent.parent.parent.parent.parent.name.getText():void 0;switch(g.kind){case 170:case 171:case 167:return g.parent.kind===203?(p=e.getAssignedName(g.parent))===null||p===void 0?void 0:p.getText():(d=e.getNameOfDeclaration(g.parent))===null||d===void 0?void 0:d.getText();case 254:case 255:case 259:if(e.isModuleBlock(g.parent)&&e.isIdentifier(g.parent.parent.name))return g.parent.parent.name.getText()}}function fe(g,p){if(p.body)return p;if(e.isConstructorDeclaration(p))return e.getFirstConstructorWithBody(p.parent);if(e.isFunctionDeclaration(p)||e.isMethodDeclaration(p)){var d=w(g,p);return d&&d.valueDeclaration&&e.isFunctionLikeDeclaration(d.valueDeclaration)&&d.valueDeclaration.body?d.valueDeclaration:void 0}return p}function _(g,p){var d=w(g,p),T;if(d&&d.declarations){var m=e.indicesOf(d.declarations),k=e.map(d.declarations,function(J){return{file:J.getSourceFile().fileName,pos:J.pos}});m.sort(function(J,C){return e.compareStringsCaseSensitive(k[J].file,k[C].file)||k[J].pos-k[C].pos});for(var N=e.map(m,function(J){return d.declarations[J]}),D=void 0,R=0,me=N;R<me.length;R++){var q=me[R];ne(q)&&((!D||D.parent!==q.parent||D.end!==q.pos)&&(T=e.append(T,q)),D=q)}}return T}function U(g,p){var d,T,m;return e.isClassStaticBlockDeclaration(p)?p:e.isFunctionLikeDeclaration(p)?(T=(d=fe(g,p))!==null&&d!==void 0?d:_(g,p))!==null&&T!==void 0?T:p:(m=_(g,p))!==null&&m!==void 0?m:p}function Z(g,p){for(var d=g.getTypeChecker(),T=!1;;){if(ne(p))return U(d,p);if(V(p)){var m=e.findAncestor(p,ne);return m&&U(d,m)}if(e.isDeclarationName(p)){if(ne(p.parent))return U(d,p.parent);if(V(p.parent)){var m=e.findAncestor(p.parent,ne);return m&&U(d,m)}return e.isVariableDeclaration(p.parent)&&p.parent.initializer&&Y(p.parent.initializer)?p.parent.initializer:void 0}if(e.isConstructorDeclaration(p))return ne(p.parent)?p.parent:void 0;if(p.kind===124&&e.isClassStaticBlockDeclaration(p.parent)){p=p.parent;continue}if(e.isVariableDeclaration(p)&&p.initializer&&Y(p.initializer))return p.initializer;if(!T){var k=d.getSymbolAtLocation(p);if(k&&(k.flags&2097152&&(k=d.getAliasedSymbol(k)),k.valueDeclaration)){T=!0,p=k.valueDeclaration;continue}}return}}ue.resolveCallHierarchyDeclaration=Z;function v(g,p){var d=p.getSourceFile(),T=b(g,p),m=de(p),k=e.getNodeKind(p),N=e.getNodeModifiers(p),D=e.createTextSpanFromBounds(e.skipTrivia(d.text,p.getFullStart(),!1,!0),p.getEnd()),R=e.createTextSpanFromBounds(T.pos,T.end);return{file:d.fileName,kind:k,kindModifiers:N,name:T.text,containerName:m,span:D,selectionSpan:R}}ue.createCallHierarchyItem=v;function W(g){return g!==void 0}function x(g){if(g.kind===1){var p=g.node;if(e.isCallOrNewExpressionTarget(p,!0,!0)||e.isTaggedTemplateTag(p,!0,!0)||e.isDecoratorTarget(p,!0,!0)||e.isJsxOpeningLikeElementTagName(p,!0,!0)||e.isRightSideOfPropertyAccess(p)||e.isArgumentExpressionOfElementAccess(p)){var d=p.getSourceFile(),T=e.findAncestor(p,ne)||d;return{declaration:T,range:e.createTextRangeFromNode(p,d)}}}}function $(g){return e.getNodeId(g.declaration)}function L(g,p){return{from:g,fromSpans:p}}function E(g,p){return L(v(g,p[0].declaration),e.map(p,function(d){return e.createTextSpanFromRange(d.range)}))}function ae(g,p,d){if(e.isSourceFile(p)||e.isModuleDeclaration(p)||e.isClassStaticBlockDeclaration(p))return[];var T=_e(p),m=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(g,d,g.getSourceFiles(),T,0,{use:1},x),W);return m?e.group(m,$,function(k){return E(g,k)}):[]}ue.getIncomingCalls=ae;function X(g,p){function d(m){var k=e.isTaggedTemplateExpression(m)?m.tag:e.isJsxOpeningLikeElement(m)?m.tagName:e.isAccessExpression(m)||e.isClassStaticBlockDeclaration(m)?m:m.expression,N=Z(g,k);if(N){var D=e.createTextRangeFromNode(k,m.getSourceFile());if(e.isArray(N))for(var R=0,me=N;R<me.length;R++){var q=me[R];p.push({declaration:q,range:D})}else p.push({declaration:N,range:D})}}function T(m){if(!m)return;if(m.flags&8388608)return;if(ne(m)){if(e.isClassLike(m))for(var k=0,N=m.members;k<N.length;k++){var D=N[k];D.name&&e.isComputedPropertyName(D.name)&&T(D.name.expression)}return}switch(m.kind){case 79:case 263:case 264:case 270:case 256:case 257:return;case 168:d(m);return;case 209:case 227:T(m.expression);return;case 252:case 162:T(m.name),T(m.initializer);return;case 206:d(m),T(m.expression),e.forEach(m.arguments,T);return;case 207:d(m),T(m.expression),e.forEach(m.arguments,T);return;case 208:d(m),T(m.tag),T(m.template);return;case 278:case 277:d(m),T(m.tagName),T(m.attributes);return;case 163:d(m),T(m.expression);return;case 204:case 205:d(m),e.forEachChild(m,T);break}if(e.isPartOfTypeNode(m))return;e.forEachChild(m,T)}return T}function ie(g,p){e.forEach(g.statements,p)}function le(g,p){!e.hasSyntacticModifier(g,2)&&g.body&&e.isModuleBlock(g.body)&&e.forEach(g.body.statements,p)}function P(g,p,d){var T=fe(g,p);T&&(e.forEach(T.parameters,d),d(T.body))}function I(g,p){p(g.body)}function re(g,p){e.forEach(g.decorators,p);var d=e.getClassExtendsHeritageElement(g);d&&p(d.expression);for(var T=0,m=g.members;T<m.length;T++){var k=m[T];e.forEach(k.decorators,p),e.isPropertyDeclaration(k)?p(k.initializer):e.isConstructorDeclaration(k)&&k.body?(e.forEach(k.parameters,p),p(k.body)):e.isClassStaticBlockDeclaration(k)&&p(k)}}function B(g,p){var d=[],T=X(g,d);switch(p.kind){case 300:ie(p,T);break;case 259:le(p,T);break;case 254:case 211:case 212:case 167:case 170:case 171:P(g.getTypeChecker(),p,T);break;case 255:case 224:re(p,T);break;case 168:I(p,T);break;default:e.Debug.assertNever(p)}return d}function A(g,p){return{to:g,fromSpans:p}}function f(g,p){return A(v(g,p[0].declaration),e.map(p,function(d){return e.createTextSpanFromRange(d.range)}))}function F(g,p){return p.flags&8388608||e.isMethodSignature(p)?[]:e.group(B(g,p),$,function(d){return f(g,d)})}ue.getOutgoingCalls=F})(s=e.CallHierarchy||(e.CallHierarchy={}))})(mn||(mn={}));var mn;(function(e){function s(_,U,Z,v,W,x,$){var L=e.hostUsesCaseSensitiveFileNames(v),E=e.createGetCanonicalFileName(L),ae=ue(U,Z,E,$),X=ue(Z,U,E,$);return e.textChanges.ChangeTracker.with({host:v,formatContext:W,preferences:x},function(ie){Y(_,ie,ae,U,Z,v.getCurrentDirectory(),L),V(_,ie,ae,X,v,E)})}e.getEditsForFileRename=s;function ue(_,U,Z,v){var W=Z(_);return function($){var L=v&&v.tryGetSourcePosition({fileName:$,pos:0}),E=x(L?L.fileName:$);return L?E===void 0?void 0:ee(L.fileName,E,$,Z):E};function x($){if(Z($)===W)return U;var L=e.tryRemoveDirectoryPrefix($,W,Z);return L===void 0?void 0:U+"/"+L}}e.getPathUpdater=ue;function ee(_,U,Z,v){var W=e.getRelativePathFromFile(_,U,v);return _e(e.getDirectoryPath(Z),W)}function Y(_,U,Z,v,W,x,$){var L=_.getCompilerOptions().configFile;if(!L)return;var E=e.getDirectoryPath(L.fileName),ae=e.getTsConfigObjectLiteralExpression(L);if(!ae)return;fe(ae,function(P,I){switch(I){case"files":case"include":case"exclude":{var re=X(P);if(re||I!=="include"||!e.isArrayLiteralExpression(P.initializer))return;var B=e.mapDefined(P.initializer.elements,function(f){return e.isStringLiteral(f)?f.text:void 0});if(B.length===0)return;var A=e.getFileMatcherPatterns(E,[],B,$,x);e.getRegexFromPattern(e.Debug.checkDefined(A.includeFilePattern),$).test(v)&&!e.getRegexFromPattern(e.Debug.checkDefined(A.includeFilePattern),$).test(W)&&U.insertNodeAfter(L,e.last(P.initializer.elements),e.factory.createStringLiteral(le(W)));return}case"compilerOptions":fe(P.initializer,function(f,F){var g=e.getOptionFromName(F);g&&(g.isFilePath||g.type==="list"&&g.element.isFilePath)?X(f):F==="paths"&&fe(f.initializer,function(p){if(!e.isArrayLiteralExpression(p.initializer))return;for(var d=0,T=p.initializer.elements;d<T.length;d++){var m=T[d];ie(m)}})});return}});function X(P){for(var I=e.isArrayLiteralExpression(P.initializer)?P.initializer.elements:[P.initializer],re=!1,B=0,A=I;B<A.length;B++){var f=A[B];re=ie(f)||re}return re}function ie(P){if(!e.isStringLiteral(P))return!1;var I=_e(E,P.text),re=Z(I);return re!==void 0?(U.replaceRangeWithText(L,de(P,L),le(re)),!0):!1}function le(P){return e.getRelativePathFromDirectory(E,P,!$)}}function V(_,U,Z,v,W,x){for(var $=_.getSourceFiles(),L=function(ie){var le=Z(ie.fileName),P=le!=null?le:ie.fileName,I=e.getDirectoryPath(P),re=v(ie.fileName),B=re||ie.fileName,A=e.getDirectoryPath(B),f=le!==void 0||re!==void 0;b(ie,U,function(F){if(!e.pathIsRelative(F))return;var g=_e(A,F),p=Z(g);return p===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(I,p,x))},function(F){var g=_.getTypeChecker().getSymbolAtLocation(F);if((g==null?void 0:g.declarations)&&g.declarations.some(function(d){return e.isAmbientModule(d)}))return;var p=re!==void 0?w(F,e.resolveModuleName(F.text,B,_.getCompilerOptions(),W),Z,$):O(g,F,ie,_,W,Z);return p!==void 0&&(p.updated||f&&e.pathIsRelative(F.text))?e.moduleSpecifiers.updateModuleSpecifier(_.getCompilerOptions(),x(P),p.newFileName,e.createModuleSpecifierResolutionHost(_,W),F.text):void 0})},E=0,ae=$;E<ae.length;E++){var X=ae[E];L(X)}}function ne(_,U){return e.normalizePath(e.combinePaths(_,U))}function _e(_,U){return e.ensurePathIsNonModuleName(ne(_,U))}function O(_,U,Z,v,W,x){if(_){var $=e.find(_.declarations,e.isSourceFile).fileName,L=x($);return L===void 0?{newFileName:$,updated:!1}:{newFileName:L,updated:!0}}else{var E=W.resolveModuleNames?W.getResolvedModuleWithFailedLookupLocationsFromCache&&W.getResolvedModuleWithFailedLookupLocationsFromCache(U.text,Z.fileName):v.getResolvedModuleWithFailedLookupLocationsFromCache(U.text,Z.fileName);return w(U,E,x,v.getSourceFiles())}}function w(_,U,Z,v){if(!U)return;if(U.resolvedModule){var W=E(U.resolvedModule.resolvedFileName);if(W)return W}var x=e.forEach(U.failedLookupLocations,$)||e.pathIsRelative(_.text)&&e.forEach(U.failedLookupLocations,L);if(x)return x;return U.resolvedModule&&{newFileName:U.resolvedModule.resolvedFileName,updated:!1};function $(ae){var X=Z(ae);return X&&e.find(v,function(ie){return ie.fileName===X})?L(ae):void 0}function L(ae){return e.endsWith(ae,"/package.json")?void 0:E(ae)}function E(ae){var X=Z(ae);return X&&{newFileName:X,updated:!0}}}function b(_,U,Z,v){for(var W=0,x=_.referencedFiles||e.emptyArray;W<x.length;W++){var $=x[W],L=Z($.fileName);L!==void 0&&L!==_.text.slice($.pos,$.end)&&U.replaceRangeWithText(_,$,L)}for(var E=0,ae=_.imports;E<ae.length;E++){var X=ae[E],L=v(X);L!==void 0&&L!==X.text&&U.replaceRangeWithText(_,de(X,_),L)}}function de(_,U){return e.createRange(_.getStart(U)+1,_.end-1)}function fe(_,U){if(!e.isObjectLiteralExpression(_))return;for(var Z=0,v=_.properties;Z<v.length;Z++){var W=v[Z];e.isPropertyAssignment(W)&&e.isStringLiteral(W.name)&&U(W,W.name.text)}}})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(le,P,I){var re=_e(P,I,le),B=re&&[E(re.reference.fileName,re.fileName,re.unverified)]||e.emptyArray;if(re==null?void 0:re.file)return B;var A=e.getTouchingPropertyName(P,I);if(A===P)return;var f=A.parent,F=le.getTypeChecker();if(A.kind===157||e.isJSDocOverrideTag(A)&&e.rangeContainsPosition(A.tagName,I))return ne(F,A)||e.emptyArray;if(e.isJumpStatementTarget(A)){var g=e.getTargetLabel(A.parent,A.text);return g?[W(F,g,"label",A.text,void 0)]:void 0}if(e.isStaticModifier(A)&&e.isClassStaticBlockDeclaration(A.parent)){var p=A.parent.parent,d=_(p,F),T=e.filter(p.members,e.isClassStaticBlockDeclaration),m=d?F.symbolToString(d,p):"",k=A.getSourceFile();return e.map(T,function(Oe){var te=e.moveRangePastModifiers(Oe).pos;return te=e.skipTrivia(k.text,te),W(F,Oe,"constructor","static {}",m,{start:te,length:"static".length})})}var N=_(A,F);if(!N)return e.concatenate(B,fe(A,F));var D=X(F,A);if(D&&!(e.isJsxOpeningLikeElement(A.parent)&&ie(D))){var R=$(F,D);if(F.getRootSymbols(N).some(function(Oe){return Y(Oe,D)}))return[R];var me=Z(F,N,A,D)||e.emptyArray;return A.kind===106?Mt([R],me,!0):Mt(Mt([],me,!0),[R],!1)}if(A.parent.kind===292){var q=F.getShorthandAssignmentValueSymbol(N.valueDeclaration),J=(q==null?void 0:q.declarations)?q.declarations.map(function(Oe){return v(Oe,F,q,A)}):e.emptyArray;return e.concatenate(J,V(F,A)||e.emptyArray)}if(e.isPropertyName(A)&&e.isBindingElement(f)&&e.isObjectBindingPattern(f.parent)&&A===(f.propertyName||f.name)){var C=e.getNameFromPropertyName(A),we=F.getTypeAtLocation(f.parent);return C===void 0?e.emptyArray:e.flatMap(we.isUnion()?we.types:[we],function(Oe){var te=Oe.getProperty(C);return te&&Z(F,te,A)})}return e.concatenate(B,V(F,A)||Z(F,N,A))}ue.getDefinitionAtPosition=ee;function Y(le,P){return le===P.symbol||le===P.symbol.parent||e.isAssignmentExpression(P.parent)||!e.isCallLikeExpression(P.parent)&&le===P.parent.symbol}function V(le,P){var I=e.getContainingObjectLiteralElement(P);if(I){var re=I&&le.getContextualType(I.parent);if(re)return e.flatMap(e.getPropertySymbolsFromContextualType(I,le,re,!1),function(B){return Z(le,B,P)})}}function ne(le,P){var I=e.findAncestor(P,e.isClassElement);if(!(I&&I.name))return;var re=e.findAncestor(I,e.isClassLike);if(!re)return;var B=e.getEffectiveBaseTypeNode(re),A=B?le.getTypeAtLocation(B):void 0;if(!A)return;var f=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(I.name)),F=e.hasStaticModifier(I)?le.getPropertyOfType(le.getTypeOfSymbolAtLocation(A.symbol,re),f):le.getPropertyOfType(A,f);return F?Z(le,F,P):void 0}function _e(le,P,I){var re,B,A=L(le.referencedFiles,P);if(A){var f=I.getSourceFileFromReference(le,A);return f&&{reference:A,fileName:f.fileName,file:f,unverified:!1}}var F=L(le.typeReferenceDirectives,P);if(F){var g=I.getResolvedTypeReferenceDirectives().get(F.fileName),f=g&&I.getSourceFile(g.resolvedFileName);return f&&{reference:F,fileName:f.fileName,file:f,unverified:!1}}var p=L(le.libReferenceDirectives,P);if(p){var f=I.getLibFileFromReference(p);return f&&{reference:p,fileName:f.fileName,file:f,unverified:!1}}if((re=le.resolvedModules)===null||re===void 0?void 0:re.size){var d=e.getTokenAtPosition(le,P);if(e.isModuleSpecifierLike(d)&&e.isExternalModuleNameRelative(d.text)&&le.resolvedModules.has(d.text)){var T=(B=le.resolvedModules.get(d.text))===null||B===void 0?void 0:B.resolvedFileName,m=T||e.resolvePath(e.getDirectoryPath(le.fileName),d.text);return{file:I.getSourceFile(m),fileName:m,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!T}}}return}ue.getReferenceAtPosition=_e;function O(le,P,I){var re=e.getTouchingPropertyName(P,I);if(re===P)return;var B=le.getSymbolAtLocation(re);if(!B)return;var A=le.getTypeOfSymbolAtLocation(B,re),f=b(B,A,le),F=f&&w(f,le,re);return F&&F.length!==0?F:w(A,le,re)}ue.getTypeDefinitionAtPosition=O;function w(le,P,I){return e.flatMap(le.isUnion()&&!(le.flags&32)?le.types:[le],function(re){return re.symbol&&Z(P,re.symbol,I)})}function b(le,P,I){if(P.symbol===le||le.valueDeclaration&&P.symbol&&e.isVariableDeclaration(le.valueDeclaration)&&le.valueDeclaration.initializer===P.symbol.valueDeclaration){var re=P.getCallSignatures();if(re.length===1)return I.getReturnTypeOfSignature(e.first(re))}return}function de(le,P,I){var re=ee(le,P,I);if(!re||re.length===0)return;var B=L(P.referencedFiles,I)||L(P.typeReferenceDirectives,I)||L(P.libReferenceDirectives,I);if(B)return{definitions:re,textSpan:e.createTextSpanFromRange(B)};var A=e.getTouchingPropertyName(P,I),f=e.createTextSpan(A.getStart(),A.getWidth());return{definitions:re,textSpan:f}}ue.getDefinitionAndBoundSpan=de;function fe(le,P){return e.mapDefined(P.getIndexInfosAtLocation(le),function(I){return I.declaration&&$(P,I.declaration)})}function _(le,P){var I=P.getSymbolAtLocation(le);if((I==null?void 0:I.declarations)&&I.flags&2097152&&U(le,I.declarations[0])){var re=P.getAliasedSymbol(I);if(re.declarations)return re}return I}function U(le,P){if(le.kind!==79)return!1;if(le.parent===P)return!0;switch(P.kind){case 265:case 263:return!0;case 268:return P.parent.kind===267;case 201:case 252:return e.isInJSFile(P)&&e.isRequireVariableDeclaration(P);default:return!1}}function Z(le,P,I,re){var B=e.filter(P.declarations,function(g){return g!==re&&(!e.isAssignmentDeclaration(g)||g===P.valueDeclaration)})||void 0;return A()||f()||e.map(B,function(g){return v(g,le,P,I)});function A(){if(P.flags&32&&!(P.flags&(16|3))&&(e.isNewExpressionTarget(I)||I.kind===133)){var g=e.find(B,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return F(g.members,!0)}}function f(){return e.isCallOrNewExpressionTarget(I)||e.isNameOfFunctionDeclaration(I)?F(B,!1):void 0}function F(g,p){if(!g)return;var d=g.filter(p?e.isConstructorDeclaration:e.isFunctionLike),T=d.filter(function(m){return!!m.body});return d.length?T.length!==0?T.map(function(m){return v(m,le,P,I)}):[v(e.last(d),le,P,I)]:void 0}}function v(le,P,I,re){var B=P.symbolToString(I),A=e.SymbolDisplay.getSymbolKind(P,I,re),f=I.parent?P.symbolToString(I.parent,re):"";return W(P,le,A,B,f)}function W(le,P,I,re,B,A){var f=P.getSourceFile();if(!A){var F=e.getNameOfDeclaration(P)||P;A=e.createTextSpanFromNode(F,f)}return pr(pr({fileName:f.fileName,textSpan:A,kind:I,name:re,containerKind:void 0,containerName:B},e.FindAllReferences.toContextSpan(A,f,e.FindAllReferences.getContextNode(P))),{isLocal:!x(le,P)})}function x(le,P){if(le.isDeclarationVisible(P))return!0;if(!P.parent)return!1;if(e.hasInitializer(P.parent)&&P.parent.initializer===P)return x(le,P.parent);switch(P.kind){case 165:case 170:case 171:case 167:if(e.hasEffectiveModifier(P,8))return!1;case 169:case 291:case 292:case 203:case 224:case 212:case 211:return x(le,P.parent);default:return!1}}function $(le,P){return v(P,le,P.symbol,P)}function L(le,P){return e.find(le,function(I){return e.textRangeContainsPositionInclusive(I,P)})}ue.findReferenceInPosition=L;function E(le,P,I){return{fileName:P,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:le,containerName:void 0,containerKind:void 0,unverified:I}}function ae(le){var P=e.findAncestor(le,function(re){return!e.isRightSideOfPropertyAccess(re)}),I=P==null?void 0:P.parent;return I&&e.isCallLikeExpression(I)&&e.getInvokedExpression(I)===P?I:void 0}function X(le,P){var I=ae(P),re=I&&le.getResolvedSignature(I);return e.tryCast(re&&re.declaration,function(B){return e.isFunctionLike(B)&&!e.isFunctionTypeNode(B)})}function ie(le){switch(le.kind){case 169:case 178:case 173:return!0;default:return!1}}})(s=e.GoToDefinition||(e.GoToDefinition={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=["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","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Y,V;function ne(P,I){var re=[];return e.forEachUnique(P,function(B){for(var A=0,f=O(B);A<f.length;A++){var F=f[A];if(F.comment===void 0||e.isJSDoc(F)&&B.kind!==340&&B.kind!==333&&F.tags&&F.tags.some(function(p){return p.kind===340||p.kind===333})&&!F.tags.some(function(p){return p.kind===335||p.kind===336}))continue;var g=b(F.comment,I);e.contains(re,g,_e)||re.push(g)}}),e.flatten(e.intersperse(re,[e.lineBreakPart()]))}ue.getJsDocCommentsFromDeclarations=ne;function _e(P,I){return e.arraysEqual(P,I,function(re,B){return re.kind===B.kind&&re.text===B.text})}function O(P){switch(P.kind){case 335:case 342:return[P];case 333:case 340:return[P,P.parent];default:return e.getJSDocCommentsAndTags(P)}}function w(P,I){var re=[];return e.forEachUnique(P,function(B){var A=e.getJSDocTags(B);if(A.some(function(p){return p.kind===340||p.kind===333})&&!A.some(function(p){return p.kind===335||p.kind===336}))return;for(var f=0,F=A;f<F.length;f++){var g=F[f];re.push({name:g.tagName.text,text:de(g,I)})}}),re}ue.getJsDocTagsFromDeclarations=w;function b(P,I){return typeof P=="string"?[e.textPart(P)]:e.flatMap(P,function(re){return re.kind===316?[e.textPart(re.text)]:e.buildLinkParts(re,I)})}function de(P,I){var re=P.comment,B=P.kind,A=fe(B);switch(B){case 324:return F(P.class);case 323:return F(P.class);case 339:return g(P.typeParameters.map(function(p){return p.getText()}).join(", "));case 338:return F(P.typeExpression);case 340:case 333:case 342:case 335:case 341:var f=P.name;return f?F(f):re===void 0?void 0:b(re,I);default:return re===void 0?void 0:b(re,I)}function F(p){return g(p.getText())}function g(p){return re?p.match(/^https?$/)?Mt([e.textPart(p)],b(re,I),!0):Mt([A(p),e.spacePart()],b(re,I),!0):[e.textPart(p)]}}function fe(P){switch(P){case 335:return e.parameterNamePart;case 342:return e.propertyNamePart;case 339:return e.typeParameterNamePart;case 340:case 333:return e.typeAliasNamePart;default:return e.textPart}}function _(){return Y||(Y=e.map(ee,function(P){return{name:P,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}ue.getJSDocTagNameCompletions=_,ue.getJSDocTagNameCompletionDetails=Z;function U(){return V||(V=e.map(ee,function(P){return{name:"@"+P,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}ue.getJSDocTagCompletions=U;function Z(P){return{name:P,kind:"",kindModifiers:"",displayParts:[e.textPart(P)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}ue.getJSDocTagCompletionDetails=Z;function v(P){if(!e.isIdentifier(P.name))return e.emptyArray;var I=P.name.text,re=P.parent,B=re.parent;return e.isFunctionLike(B)?e.mapDefined(B.parameters,function(A){if(!e.isIdentifier(A.name))return;var f=A.name.text;return re.tags.some(function(F){return F!==P&&e.isJSDocParameterTag(F)&&e.isIdentifier(F.name)&&F.name.escapedText===f})||I!==void 0&&!e.startsWith(f,I)?void 0:{name:f,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}):[]}ue.getJSDocParameterNameCompletions=v;function W(P){return{name:P,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(P)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}ue.getJSDocParameterNameCompletionDetails=W;function x(P,I,re,B){var A=e.getTokenAtPosition(I,re),f=e.findAncestor(A,e.isJSDoc);if(f&&(f.comment!==void 0||e.length(f.tags)))return;var F=A.getStart(I);if(!f&&F<re)return;var g=ae(A,B);if(!g)return;var p=g.commentOwner,d=g.parameters,T=g.hasReturn;if(p.getStart(I)<re)return;var m=$(I,re),k=e.hasJSFileExtension(I.fileName),N=(d?L(d||[],k,m,P):"")+(T?E(m,P):""),D="/**",R=" */";if(N){var me=D+P+m+" * ",q=F===re?P+m:"",J=me+P+N+m+R+q;return{newText:J,caretOffset:me.length}}return{newText:D+R,caretOffset:3}}ue.getDocCommentTemplateAtPosition=x;function $(P,I){for(var re=P.text,B=e.getLineStartPositionForPosition(I,P),A=B;A<=I&&e.isWhiteSpaceSingleLine(re.charCodeAt(A));A++);return re.slice(B,A)}function L(P,I,re,B){return P.map(function(A,f){var F=A.name,g=A.dotDotDotToken,p=F.kind===79?F.text:"param"+f,d=I?g?"{...any} ":"{any} ":"";return re+" * @param "+d+p+B}).join("")}function E(P,I){return P+" * @returns"+I}function ae(P,I){return e.forEachAncestor(P,function(re){return X(re,I)})}function X(P,I){switch(P.kind){case 254:case 211:case 167:case 169:case 166:case 212:var re=P;return{commentOwner:P,parameters:re.parameters,hasReturn:ie(re,I)};case 291:return X(P.initializer,I);case 255:case 256:case 164:case 258:case 294:case 257:return{commentOwner:P};case 235:{var B=P,A=B.declarationList.declarations,f=A.length===1&&A[0].initializer?le(A[0].initializer):void 0;return f?{commentOwner:P,parameters:f.parameters,hasReturn:ie(f,I)}:{commentOwner:P}}case 300:return"quit";case 259:return P.parent.kind===259?void 0:{commentOwner:P};case 236:return X(P.expression,I);case 219:{var F=P;return e.getAssignmentDeclarationKind(F)===0?"quit":e.isFunctionLike(F.right)?{commentOwner:P,parameters:F.right.parameters,hasReturn:ie(F.right,I)}:{commentOwner:P}}case 165:var g=P.initializer;if(g&&(e.isFunctionExpression(g)||e.isArrowFunction(g)))return{commentOwner:P,parameters:g.parameters,hasReturn:ie(g,I)}}}function ie(P,I){return!!(I==null?void 0:I.generateReturnInDocTemplate)&&(e.isArrowFunction(P)&&e.isExpression(P.body)||e.isFunctionLikeDeclaration(P)&&P.body&&e.isBlock(P.body)&&!!e.forEachReturnStatement(P.body,function(re){return re}))}function le(P){for(;P.kind===210;)P=P.expression;switch(P.kind){case 211:case 212:return P;case 224:return e.find(P.members,e.isConstructorDeclaration)}}})(s=e.JsDoc||(e.JsDoc={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(fe,_,U,Z,v,W){var x=e.createPatternMatcher(Z);if(!x)return e.emptyArray;for(var $=[],L=function(ie){if(U.throwIfCancellationRequested(),W&&ie.isDeclarationFile)return"continue";ie.getNamedDeclarations().forEach(function(le,P){Y(x,P,le,_,ie.fileName,$)})},E=0,ae=fe;E<ae.length;E++){var X=ae[E];L(X)}return $.sort(b),(v===void 0?$:$.slice(0,v)).map(de)}ue.getNavigateToItems=ee;function Y(fe,_,U,Z,v,W){var x=fe.getMatchForLastSegmentOfPattern(_);if(!x)return;for(var $=0,L=U;$<L.length;$++){var E=L[$];if(!V(E,Z))continue;if(fe.patternContainsDots){var ae=fe.getFullMatch(w(E),_);ae&&W.push({name:_,fileName:v,matchKind:ae.kind,isCaseSensitive:ae.isCaseSensitive,declaration:E})}else W.push({name:_,fileName:v,matchKind:x.kind,isCaseSensitive:x.isCaseSensitive,declaration:E})}}function V(fe,_){switch(fe.kind){case 265:case 268:case 263:var U=_.getSymbolAtLocation(fe.name),Z=_.getAliasedSymbol(U);return U.escapedName!==Z.escapedName;default:return!0}}function ne(fe,_){var U=e.getNameOfDeclaration(fe);return!!U&&(O(U,_)||U.kind===160&&_e(U.expression,_))}function _e(fe,_){return O(fe,_)||e.isPropertyAccessExpression(fe)&&(_.push(fe.name.text),!0)&&_e(fe.expression,_)}function O(fe,_){return e.isPropertyNameLiteral(fe)&&(_.push(e.getTextOfIdentifierOrLiteral(fe)),!0)}function w(fe){var _=[],U=e.getNameOfDeclaration(fe);if(U&&U.kind===160&&!_e(U.expression,_))return e.emptyArray;_.shift();for(var Z=e.getContainerNode(fe);Z;){if(!ne(Z,_))return e.emptyArray;Z=e.getContainerNode(Z)}return _.reverse()}function b(fe,_){return e.compareValues(fe.matchKind,_.matchKind)||e.compareStringsCaseSensitiveUI(fe.name,_.name)}function de(fe){var _=fe.declaration,U=e.getContainerNode(_),Z=U&&e.getNameOfDeclaration(U);return{name:fe.name,kind:e.getNodeKind(_),kindModifiers:e.getNodeModifiers(_),matchKind:e.PatternMatchKind[fe.matchKind],isCaseSensitive:fe.isCaseSensitive,fileName:fe.fileName,textSpan:e.createTextSpanFromNode(_),containerName:Z?Z.text:"",containerKind:Z?e.getNodeKind(U):""}}})(s=e.NavigateTo||(e.NavigateTo={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee,Y=/\s+/g,V=150,ne,_e,O=[],w,b=[],de,fe=[];function _(pe,Me){ne=Me,_e=pe;try{return e.map(J($(pe)),we)}finally{Z()}}ue.getNavigationBarItems=_;function U(pe,Me){ne=Me,_e=pe;try{return C($(pe))}finally{Z()}}ue.getNavigationTree=U;function Z(){_e=void 0,ne=void 0,O=[],w=void 0,fe=[]}function v(pe){return qe(pe.getText(_e))}function W(pe){return pe.node.kind}function x(pe,Me){pe.children?pe.children.push(Me):pe.children=[Me]}function $(pe){e.Debug.assert(!O.length);var Me={node:pe,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};w=Me;for(var fn=0,Ye=pe.statements;fn<Ye.length;fn++){var Ne=Ye[fn];A(Ne)}return P(),e.Debug.assert(!w&&!O.length),Me}function L(pe,Me){x(w,E(pe,Me))}function E(pe,Me){return{node:pe,name:Me||(e.isDeclaration(pe)||e.isExpression(pe)?e.getNameOfDeclaration(pe):void 0),additionalNodes:void 0,parent:w,children:void 0,indent:w.indent+1}}function ae(pe){de||(de=new e.Map),de.set(pe,!0)}function X(pe){for(var Me=0;Me<pe;Me++)P()}function ie(pe,Me){for(var fn=[];!e.isPropertyNameLiteral(Me);){var Ye=e.getNameOrArgument(Me),Ne=e.getElementOrPropertyAccessName(Me);if(Me=Me.expression,Ne==="prototype"||e.isPrivateIdentifier(Ye))continue;fn.push(Ye)}fn.push(Me);for(var je=fn.length-1;je>0;je--){var Ye=fn[je];le(pe,Ye)}return[fn.length-1,fn[0]]}function le(pe,Me){var fn=E(pe,Me);x(w,fn),O.push(w),b.push(de),de=void 0,w=fn}function P(){w.children&&(f(w.children,w),D(w.children)),w=O.pop(),de=b.pop()}function I(pe,Me,fn){le(pe,fn),A(Me),P()}function re(pe){pe.initializer&&Le(pe.initializer)?(le(pe),e.forEachChild(pe.initializer,A),P()):I(pe,pe.initializer)}function B(pe){return!e.hasDynamicName(pe)||pe.kind!==219&&e.isPropertyAccessExpression(pe.name.expression)&&e.isIdentifier(pe.name.expression.expression)&&e.idText(pe.name.expression.expression)==="Symbol"}function A(pe){var Me;if(ne.throwIfCancellationRequested(),!pe||e.isToken(pe))return;switch(pe.kind){case 169:var fn=pe;I(fn,fn.body);for(var Ye=0,Ne=fn.parameters;Ye<Ne.length;Ye++){var je=Ne[Ye];e.isParameterPropertyDeclaration(je,fn)&&L(je)}break;case 167:case 170:case 171:case 166:B(pe)&&I(pe,pe.body);break;case 165:B(pe)&&re(pe);break;case 164:B(pe)&&L(pe);break;case 265:var xn=pe;xn.name&&L(xn.name);var Wn=xn.namedBindings;if(Wn)if(Wn.kind===266)L(Wn);else for(var dn=0,vn=Wn.elements;dn<vn.length;dn++){var o=vn[dn];L(o)}break;case 292:I(pe,pe.name);break;case 293:var Cn=pe.expression;e.isIdentifier(Cn)?L(pe,Cn):L(pe);break;case 201:case 291:case 252:{var z=pe;e.isBindingPattern(z.name)?A(z.name):re(z);break}case 254:var tn=pe.name;tn&&e.isIdentifier(tn)&&ae(tn.text),I(pe,pe.body);break;case 212:case 211:I(pe,pe.body);break;case 258:le(pe);for(var $n=0,Un=pe.members;$n<Un.length;$n++){var oe=Un[$n];Ce(oe)||L(oe)}P();break;case 255:case 224:case 256:le(pe);for(var Pe=0,ke=pe.members;Pe<ke.length;Pe++){var oe=ke[Pe];A(oe)}P();break;case 259:I(pe,be(pe).body);break;case 269:{var Qe=pe.expression,z=e.isObjectLiteralExpression(Qe)||e.isCallExpression(Qe)?Qe:e.isArrowFunction(Qe)||e.isFunctionExpression(Qe)?Qe.body:void 0;z?(le(pe),A(z),P()):L(pe);break}case 273:case 263:case 174:case 172:case 173:case 257:L(pe);break;case 206:case 219:{var gn=e.getAssignmentDeclarationKind(pe);switch(gn){case 1:case 2:I(pe,pe.right);return;case 6:case 3:{var xe=pe,Ze=xe.left,wn=gn===3?Ze.expression:Ze,Be=0,hn=void 0;e.isIdentifier(wn.expression)?(ae(wn.expression.text),hn=wn.expression):(Me=ie(xe,wn.expression),Be=Me[0],hn=Me[1]),gn===6?e.isObjectLiteralExpression(xe.right)&&(xe.right.properties.length>0&&(le(xe,hn),e.forEachChild(xe.right,A),P())):e.isFunctionExpression(xe.right)||e.isArrowFunction(xe.right)?I(pe,xe.right,hn):(le(xe,hn),I(pe,xe.right,Ze.name),P()),X(Be);return}case 7:case 9:{var Kn=pe,hn=gn===7?Kn.arguments[0]:Kn.arguments[0].expression,Je=Kn.arguments[1],En=ie(pe,hn),Be=En[0],Nn=En[1];le(pe,Nn),le(pe,e.setTextRange(e.factory.createIdentifier(Je.text),Je)),A(pe.arguments[2]),P(),P(),X(Be);return}case 5:{var xe=pe,Ze=xe.left,ct=Ze.expression;if(e.isIdentifier(ct)&&e.getElementOrPropertyAccessName(Ze)!=="prototype"&&de&&de.has(ct.text)){e.isFunctionExpression(xe.right)||e.isArrowFunction(xe.right)?I(pe,xe.right,ct):e.isBindableStaticAccessExpression(Ze)&&(le(xe,ct),I(xe.left,xe.right,e.getNameOrArgument(Ze)),P());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(gn)}}default:e.hasJSDocNodes(pe)&&e.forEach(pe.jsDoc,function(yt){e.forEach(yt.tags,function(Gt){e.isJSDocTypeAlias(Gt)&&L(Gt)})}),e.forEachChild(pe,A)}}function f(pe,Me){var fn=new e.Map;e.filterMutate(pe,function(Ye,Ne){var je=Ye.name||e.getNameOfDeclaration(Ye.node),xn=je&&v(je);if(!xn)return!0;var Wn=fn.get(xn);if(!Wn)return fn.set(xn,Ye),!0;if(Wn instanceof Array){for(var dn=0,vn=Wn;dn<vn.length;dn++){var o=vn[dn];if(p(o,Ye,Ne,Me))return!1}return Wn.push(Ye),!0}else{var o=Wn;return p(o,Ye,Ne,Me)?!1:(fn.set(xn,[o,Ye]),!0)}})}var F=(ee={},ee[5]=!0,ee[3]=!0,ee[7]=!0,ee[9]=!0,ee[0]=!1,ee[1]=!1,ee[2]=!1,ee[8]=!1,ee[6]=!0,ee[4]=!1,ee);function g(pe,Me,fn,Ye){function Ne(z){return e.isFunctionExpression(z)||e.isFunctionDeclaration(z)||e.isVariableDeclaration(z)}var je=e.isBinaryExpression(Me.node)||e.isCallExpression(Me.node)?e.getAssignmentDeclarationKind(Me.node):0,xn=e.isBinaryExpression(pe.node)||e.isCallExpression(pe.node)?e.getAssignmentDeclarationKind(pe.node):0;if(F[je]&&F[xn]||Ne(pe.node)&&F[je]||Ne(Me.node)&&F[xn]||e.isClassDeclaration(pe.node)&&T(pe.node)&&F[je]||e.isClassDeclaration(Me.node)&&F[xn]||e.isClassDeclaration(pe.node)&&T(pe.node)&&Ne(Me.node)||e.isClassDeclaration(Me.node)&&Ne(pe.node)&&T(pe.node)){var Wn=pe.additionalNodes&&e.lastOrUndefined(pe.additionalNodes)||pe.node;if(!e.isClassDeclaration(pe.node)&&!e.isClassDeclaration(Me.node)||Ne(pe.node)||Ne(Me.node)){var dn=Ne(pe.node)?pe.node:Ne(Me.node)?Me.node:void 0;if(dn!==void 0){var vn=e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),dn),o=E(vn);o.indent=pe.indent+1,o.children=pe.node===dn?pe.children:Me.children,pe.children=pe.node===dn?e.concatenate([o],Me.children||[Me]):e.concatenate(pe.children||[pr({},pe)],[o])}else(pe.children||Me.children)&&(pe.children=e.concatenate(pe.children||[pr({},pe)],Me.children||[Me]),pe.children&&(f(pe.children,pe),D(pe.children)));Wn=pe.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,pe.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),pe.node)}else pe.children=e.concatenate(pe.children,Me.children),pe.children&&f(pe.children,pe);var Cn=Me.node;return Ye.children[fn-1].node.end===Wn.end?e.setTextRange(Wn,{pos:Wn.pos,end:Cn.end}):(pe.additionalNodes||(pe.additionalNodes=[]),pe.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,pe.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),Me.node))),!0}return!(je===0)}function p(pe,Me,fn,Ye){return g(pe,Me,fn,Ye)?!0:d(pe.node,Me.node,Ye)?(N(pe,Me),!0):!1}function d(pe,Me,fn){if(pe.kind!==Me.kind||pe.parent!==Me.parent&&!(m(pe,fn)&&m(Me,fn)))return!1;switch(pe.kind){case 165:case 167:case 170:case 171:return e.isStatic(pe)===e.isStatic(Me);case 259:return k(pe,Me)&&Te(pe)===Te(Me);default:return!0}}function T(pe){return!!(pe.flags&8)}function m(pe,Me){var fn=e.isModuleBlock(pe.parent)?pe.parent.parent:pe.parent;return fn===Me.node||e.contains(Me.additionalNodes,fn)}function k(pe,Me){return pe.body.kind===Me.body.kind&&(pe.body.kind!==259||k(pe.body,Me.body))}function N(pe,Me){var fn;pe.additionalNodes=pe.additionalNodes||[],pe.additionalNodes.push(Me.node),Me.additionalNodes&&(fn=pe.additionalNodes).push.apply(fn,Me.additionalNodes),pe.children=e.concatenate(pe.children,Me.children),pe.children&&(f(pe.children,pe),D(pe.children))}function D(pe){pe.sort(R)}function R(pe,Me){return e.compareStringsCaseSensitiveUI(me(pe.node),me(Me.node))||e.compareValues(W(pe),W(Me))}function me(pe){if(pe.kind===259)return te(pe);var Me=e.getNameOfDeclaration(pe);if(Me&&e.isPropertyName(Me)){var fn=e.getPropertyNameForPropertyNameNode(Me);return fn&&e.unescapeLeadingUnderscores(fn)}switch(pe.kind){case 211:case 212:case 224:return $e(pe);default:return}}function q(pe,Me){if(pe.kind===259)return qe(te(pe));if(Me){var fn=e.isIdentifier(Me)?Me.text:e.isElementAccessExpression(Me)?"["+v(Me.argumentExpression)+"]":v(Me);if(fn.length>0)return qe(fn)}switch(pe.kind){case 300:var Ye=pe;return e.isExternalModule(Ye)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Ye.fileName))))+'"':"<global>";case 269:return e.isExportAssignment(pe)&&pe.isExportEquals?"export=":"default";case 212:case 254:case 211:case 255:case 224:return e.getSyntacticModifierFlags(pe)&512?"default":$e(pe);case 169:return"constructor";case 173:return"new()";case 172:return"()";case 174:return"[]";default:return"<unknown>"}}function J(pe){var Me=[];function fn(Ne){if(Ye(Ne)&&(Me.push(Ne),Ne.children))for(var je=0,xn=Ne.children;je<xn.length;je++){var Wn=xn[je];fn(Wn)}}return fn(pe),Me;function Ye(Ne){if(Ne.children)return!0;switch(W(Ne)){case 255:case 224:case 258:case 256:case 259:case 300:case 257:case 340:case 333:return!0;case 212:case 254:case 211:return je(Ne);default:return!1}function je(xn){if(!xn.node.body)return!1;switch(W(xn.parent)){case 260:case 300:case 167:case 169:return!0;default:return!1}}}}function C(pe){return{text:q(pe.node,pe.name),kind:e.getNodeKind(pe.node),kindModifiers:Se(pe.node),spans:Oe(pe),nameSpan:pe.name&&Ue(pe.name),childItems:e.map(pe.children,C)}}function we(pe){return{text:q(pe.node,pe.name),kind:e.getNodeKind(pe.node),kindModifiers:Se(pe.node),spans:Oe(pe),childItems:e.map(pe.children,Me)||fe,indent:pe.indent,bolded:!1,grayed:!1};function Me(fn){return{text:q(fn.node,fn.name),kind:e.getNodeKind(fn.node),kindModifiers:e.getNodeModifiers(fn.node),spans:Oe(fn),childItems:fe,indent:0,bolded:!1,grayed:!1}}}function Oe(pe){var Me=[Ue(pe.node)];if(pe.additionalNodes)for(var fn=0,Ye=pe.additionalNodes;fn<Ye.length;fn++){var Ne=Ye[fn];Me.push(Ue(Ne))}return Me}function te(pe){return e.isAmbientModule(pe)?e.getTextOfNode(pe.name):Te(pe)}function Te(pe){for(var Me=[e.getTextOfIdentifierOrLiteral(pe.name)];pe.body&&pe.body.kind===259;)pe=pe.body,Me.push(e.getTextOfIdentifierOrLiteral(pe.name));return Me.join(".")}function be(pe){return pe.body&&e.isModuleDeclaration(pe.body)?be(pe.body):pe}function Ce(pe){return!pe.name||pe.name.kind===160}function Ue(pe){return pe.kind===300?e.createTextSpanFromRange(pe):e.createTextSpanFromNode(pe,_e)}function Se(pe){return pe.parent&&pe.parent.kind===252&&(pe=pe.parent),e.getNodeModifiers(pe)}function $e(pe){var Me=pe.parent;if(pe.name&&e.getFullWidth(pe.name)>0)return qe(e.declarationNameToString(pe.name));if(e.isVariableDeclaration(Me))return qe(e.declarationNameToString(Me.name));if(e.isBinaryExpression(Me)&&Me.operatorToken.kind===63)return v(Me.left).replace(Y,"");if(e.isPropertyAssignment(Me))return v(Me.name);if(e.getSyntacticModifierFlags(pe)&512)return"default";if(e.isClassLike(pe))return"<class>";if(e.isCallExpression(Me)){var fn=ce(Me.expression);if(fn!==void 0){if(fn=qe(fn),fn.length>V)return fn+" callback";var Ye=qe(e.mapDefined(Me.arguments,function(Ne){return e.isStringLiteralLike(Ne)?Ne.getText(_e):void 0}).join(", "));return fn+"("+Ye+") callback"}}return"<function>"}function ce(pe){if(e.isIdentifier(pe))return pe.text;if(e.isPropertyAccessExpression(pe)){var Me=ce(pe.expression),fn=pe.name.text;return Me===void 0?fn:Me+"."+fn}else return}function Le(pe){switch(pe.kind){case 212:case 211:case 224:return!0;default:return!1}}function qe(pe){return pe=pe.length>V?pe.substring(0,V)+"...":pe,pe.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(s=e.NavigationBar||(e.NavigationBar={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(X,ie,le,P,I,re){var B=e.textChanges.ChangeTracker.fromContext({host:le,formatContext:ie,preferences:I}),A=function(N){return e.stableSort(_e(Y(N,X,P,re)),function(D,R){return L(D,R)})},f=X.statements.filter(e.isImportDeclaration);k(f,A);var F=X.statements.filter(e.isExportDeclaration);k(F,w);for(var g=0,p=X.statements.filter(e.isAmbientModule);g<p.length;g++){var d=p[g];if(!d.body)continue;var T=d.body.statements.filter(e.isImportDeclaration);k(T,A);var m=d.body.statements.filter(e.isExportDeclaration);k(m,w)}return B.getChanges();function k(N,D){if(e.length(N)===0)return;e.suppressLeadingTrivia(N[0]);var R=e.group(N,function(we){return ne(we.moduleSpecifier)}),me=e.stableSort(R,function(we,Oe){return _(we[0].moduleSpecifier,Oe[0].moduleSpecifier)}),q=e.flatMap(me,function(we){return ne(we[0].moduleSpecifier)?D(we):we});if(q.length===0)B.deleteNodes(X,N,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var J={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(le,ie.options)};B.replaceNodeWithNodes(X,N[0],q,J);var C=B.nodeHasTrailingComment(X,N[0],J);B.deleteNodes(X,N.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},C)}}}ue.organizeImports=ee;function Y(X,ie,le,P){if(P)return X;for(var I=le.getTypeChecker(),re=I.getJsxNamespace(ie),B=I.getJsxFragmentFactory(ie),A=!!(ie.transformFlags&2),f=[],F=0,g=X;F<g.length;F++){var p=g[F],d=p.importClause,T=p.moduleSpecifier;if(!d){f.push(p);continue}var m=d.name,k=d.namedBindings;if(m&&!D(m)&&(m=void 0),k)if(e.isNamespaceImport(k))D(k.name)||(k=void 0);else{var N=k.elements.filter(function(R){return D(R.name)});N.length<k.elements.length&&(k=N.length?e.factory.updateNamedImports(k,N):void 0)}m||k?f.push(b(p,m,k)):V(ie,T)&&(ie.isDeclarationFile?f.push(e.factory.createImportDeclaration(p.decorators,p.modifiers,void 0,T)):f.push(p))}return f;function D(R){return A&&(R.text===re||B&&R.text===B)||e.FindAllReferences.Core.isSymbolReferencedInFile(R,I,ie)}}function V(X,ie){var le=e.isStringLiteral(ie)&&ie.text;return e.isString(le)&&e.some(X.moduleAugmentations,function(P){return e.isStringLiteral(P)&&P.text===le})}function ne(X){return X!==void 0&&e.isStringLiteralLike(X)?X.text:void 0}function _e(X){var ie;if(X.length===0)return X;var le=O(X),P=le.importWithoutClause,I=le.typeOnlyImports,re=le.regularImports,B=[];P&&B.push(P);for(var A=0,f=[re,I];A<f.length;A++){var F=f[A],g=F===I,p=F.defaultImports,d=F.namespaceImports,T=F.namedImports;if(!g&&p.length===1&&d.length===1&&T.length===0){var m=p[0];B.push(b(m,m.importClause.name,d[0].importClause.namedBindings));continue}for(var k=e.stableSort(d,function(Te,be){return U(Te.importClause.namedBindings.name,be.importClause.namedBindings.name)}),N=0,D=k;N<D.length;N++){var R=D[N];B.push(b(R,void 0,R.importClause.namedBindings))}if(p.length===0&&T.length===0)continue;var me=void 0,q=[];if(p.length===1)me=p[0].importClause.name;else for(var J=0,C=p;J<C.length;J++){var m=C[J];q.push(e.factory.createImportSpecifier(e.factory.createIdentifier("default"),m.importClause.name))}q.push.apply(q,e.flatMap(T,function(Te){return Te.importClause.namedBindings.elements}));var we=de(q),Oe=p.length>0?p[0]:T[0],te=we.length===0?me?void 0:e.factory.createNamedImports(e.emptyArray):T.length===0?e.factory.createNamedImports(we):e.factory.updateNamedImports(T[0].importClause.namedBindings,we);g&&me&&te?(B.push(b(Oe,me,void 0)),B.push(b((ie=T[0])!==null&&ie!==void 0?ie:Oe,void 0,te))):B.push(b(Oe,me,te))}return B}ue.coalesceImports=_e;function O(X){for(var ie,le={defaultImports:[],namespaceImports:[],namedImports:[]},P={defaultImports:[],namespaceImports:[],namedImports:[]},I=0,re=X;I<re.length;I++){var B=re[I];if(B.importClause===void 0){ie=ie||B;continue}var A=B.importClause.isTypeOnly?le:P,f=B.importClause,F=f.name,g=f.namedBindings;F&&A.defaultImports.push(B),g&&(e.isNamespaceImport(g)?A.namespaceImports.push(B):A.namedImports.push(B))}return{importWithoutClause:ie,typeOnlyImports:le,regularImports:P}}function w(X){if(X.length===0)return X;var ie=d(X),le=ie.exportWithoutClause,P=ie.namedExports,I=ie.typeOnlyExports,re=[];le&&re.push(le);for(var B=0,A=[P,I];B<A.length;B++){var f=A[B];if(f.length===0)continue;var F=[];F.push.apply(F,e.flatMap(f,function(T){return T.exportClause&&e.isNamedExports(T.exportClause)?T.exportClause.elements:e.emptyArray}));var g=de(F),p=f[0];re.push(e.factory.updateExportDeclaration(p,p.decorators,p.modifiers,p.isTypeOnly,p.exportClause&&(e.isNamedExports(p.exportClause)?e.factory.updateNamedExports(p.exportClause,g):e.factory.updateNamespaceExport(p.exportClause,p.exportClause.name)),p.moduleSpecifier))}return re;function d(T){for(var m,k=[],N=[],D=0,R=T;D<R.length;D++){var me=R[D];me.exportClause===void 0?m=m||me:me.isTypeOnly?N.push(me):k.push(me)}return{exportWithoutClause:m,namedExports:k,typeOnlyExports:N}}}ue.coalesceExports=w;function b(X,ie,le){return e.factory.updateImportDeclaration(X,X.decorators,X.modifiers,e.factory.updateImportClause(X.importClause,X.importClause.isTypeOnly,ie,le),X.moduleSpecifier)}function de(X){return e.stableSort(X,fe)}function fe(X,ie){return U(X.propertyName||X.name,ie.propertyName||ie.name)||U(X.name,ie.name)}ue.compareImportOrExportSpecifiers=fe;function _(X,ie){var le=X===void 0?void 0:ne(X),P=ie===void 0?void 0:ne(ie);return e.compareBooleans(le===void 0,P===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(le),e.isExternalModuleNameRelative(P))||e.compareStringsCaseInsensitive(le,P)}ue.compareModuleSpecifiers=_;function U(X,ie){return e.compareStringsCaseInsensitive(X.text,ie.text)}function Z(X){var ie;switch(X.kind){case 263:return(ie=e.tryCast(X.moduleReference,e.isExternalModuleReference))===null||ie===void 0?void 0:ie.expression;case 264:return X.moduleSpecifier;case 235:return X.declarationList.declarations[0].initializer.arguments[0]}}function v(X){return e.arrayIsSorted(X,L)}ue.importsAreSorted=v;function W(X){return e.arrayIsSorted(X,fe)}ue.importSpecifiersAreSorted=W;function x(X,ie){var le=e.binarySearch(X,ie,e.identity,L);return le<0?~le:le}ue.getImportDeclarationInsertionIndex=x;function $(X,ie){var le=e.binarySearch(X,ie,e.identity,fe);return le<0?~le:le}ue.getImportSpecifierInsertionIndex=$;function L(X,ie){return _(Z(X),Z(ie))||E(X,ie)}ue.compareImportsOrRequireStatements=L;function E(X,ie){return e.compareValues(ae(X),ae(ie))}function ae(X){var ie;switch(X.kind){case 264:return X.importClause?X.importClause.isTypeOnly?1:((ie=X.importClause.namedBindings)===null||ie===void 0?void 0:ie.kind)===266?2:X.importClause.name?3:4:0;case 263:return 5;case 235:return 6}}})(s=e.OrganizeImports||(e.OrganizeImports={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(v,W){var x=[];return Y(v,W,x),V(v,x),x.sort(function($,L){return $.textSpan.start-L.textSpan.start})}ue.collectElements=ee;function Y(v,W,x){for(var $=40,L=0,E=Mt(Mt([],v.statements,!0),[v.endOfFileToken],!1),ae=E.length;L<ae;){for(;L<ae&&!e.isAnyImportSyntax(E[L]);)le(E[L]),L++;if(L===ae)break;for(var X=L;L<ae&&e.isAnyImportSyntax(E[L]);)w(E[L],v,W,x),L++;var ie=L-1;ie!==X&&x.push(b(e.findChildOfKind(E[X],100,v).getStart(v),E[ie].getEnd(),"imports"))}function le(P){var I;if($===0)return;W.throwIfCancellationRequested(),(e.isDeclaration(P)||e.isVariableStatement(P)||e.isReturnStatement(P)||P.kind===1)&&w(P,v,W,x),e.isFunctionLike(P)&&e.isBinaryExpression(P.parent)&&e.isPropertyAccessExpression(P.parent.left)&&w(P.parent.left,v,W,x),(e.isBlock(P)||e.isModuleBlock(P))&&O(P.statements.end,v,W,x),(e.isClassLike(P)||e.isInterfaceDeclaration(P))&&O(P.members.end,v,W,x);var re=de(P,v);re&&x.push(re),$--,e.isCallExpression(P)?($++,le(P.expression),$--,P.arguments.forEach(le),(I=P.typeArguments)===null||I===void 0||I.forEach(le)):e.isIfStatement(P)&&P.elseStatement&&e.isIfStatement(P.elseStatement)?(le(P.expression),le(P.thenStatement),$++,le(P.elseStatement),$--):P.forEachChild(le),$++}}function V(v,W){for(var x=[],$=v.getLineStarts(),L=0,E=$;L<E.length;L++){var ae=E[L],X=v.getLineEndOfPosition(ae),ie=v.text.substring(ae,X),le=_e(ie);if(!le||e.isInComment(v,ae))continue;if(le[1]){var I=x.pop();I&&(I.textSpan.length=X-I.textSpan.start,I.hintSpan.length=X-I.textSpan.start,W.push(I))}else{var P=e.createTextSpanFromBounds(v.text.indexOf("//",ae),X);x.push(U(P,"region",P,!1,le[2]||"#region"))}}}var ne=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function _e(v){return v=e.trimStringStart(v),e.startsWith(v,"//")?(v=e.trimString(v.slice(2)),ne.exec(v)):null}function O(v,W,x,$){var L=e.getLeadingCommentRanges(W.text,v);if(!L)return;for(var E=-1,ae=-1,X=0,ie=W.getFullText(),le=0,P=L;le<P.length;le++){var I=P[le],re=I.kind,B=I.pos,A=I.end;x.throwIfCancellationRequested();switch(re){case 2:var f=ie.slice(B,A);if(_e(f)){F(),X=0;break}X===0&&(E=B),ae=A,X++;break;case 3:F(),$.push(b(B,A,"comment")),X=0;break;default:e.Debug.assertNever(re)}}F();function F(){X>1&&$.push(b(E,ae,"comment"))}}function w(v,W,x,$){if(e.isJsxText(v))return;O(v.pos,W,x,$)}function b(v,W,x){return U(e.createTextSpanFromBounds(v,W),x)}function de(v,W){switch(v.kind){case 233:if(e.isFunctionLike(v.parent))return fe(v.parent,v,W);switch(v.parent.kind){case 238:case 241:case 242:case 240:case 237:case 239:case 246:case 290:return I(v.parent);case 250:var x=v.parent;if(x.tryBlock===v)return I(v.parent);if(x.finallyBlock===v){var $=e.findChildOfKind(x,96,W);if($)return I($)}default:return U(e.createTextSpanFromNode(v,W),"code")}case 260:return I(v.parent);case 255:case 224:case 256:case 258:case 261:case 180:case 199:return I(v);case 182:return I(v,!1,!e.isTupleTypeNode(v.parent),22);case 287:case 288:return re(v.statements);case 203:return P(v);case 202:return P(v,22);case 276:return ae(v);case 280:return X(v);case 277:case 278:return ie(v.attributes);case 221:case 14:return le(v);case 200:return I(v,!1,!e.isBindingElement(v.parent),22);case 212:return E(v);case 206:return L(v)}function L(B){if(!B.arguments.length)return;var A=e.findChildOfKind(B,20,W),f=e.findChildOfKind(B,21,W);return!A||!f||e.positionsAreOnSameLine(A.pos,f.pos,W)?void 0:_(A,f,B,W,!1,!0)}function E(B){if(e.isBlock(B.body)||e.positionsAreOnSameLine(B.body.getFullStart(),B.body.getEnd(),W))return;var A=e.createTextSpanFromBounds(B.body.getFullStart(),B.body.getEnd());return U(A,"code",e.createTextSpanFromNode(B))}function ae(B){var A=e.createTextSpanFromBounds(B.openingElement.getStart(W),B.closingElement.getEnd()),f=B.openingElement.tagName.getText(W),F="<"+f+">...</"+f+">";return U(A,"code",A,!1,F)}function X(B){var A=e.createTextSpanFromBounds(B.openingFragment.getStart(W),B.closingFragment.getEnd()),f="<>...</>";return U(A,"code",A,!1,f)}function ie(B){return B.properties.length===0?void 0:b(B.getStart(W),B.getEnd(),"code")}function le(B){return B.kind===14&&B.text.length===0?void 0:b(B.getStart(W),B.getEnd(),"code")}function P(B,A){return A===void 0&&(A=18),I(B,!1,!e.isArrayLiteralExpression(B.parent)&&!e.isCallExpression(B.parent),A)}function I(B,A,f,F,g){A===void 0&&(A=!1),f===void 0&&(f=!0),F===void 0&&(F=18),g===void 0&&(g=F===18?19:23);var p=e.findChildOfKind(v,F,W),d=e.findChildOfKind(v,g,W);return p&&d&&_(p,d,B,W,A,f)}function re(B){return B.length?U(e.createTextSpanFromRange(B),"code"):void 0}}function fe(v,W,x){var $=Z(v,W,x),L=e.findChildOfKind(W,19,x);return $&&L&&_($,L,v,x,v.kind!==212)}function _(v,W,x,$,L,E){L===void 0&&(L=!1),E===void 0&&(E=!0);var ae=e.createTextSpanFromBounds(E?v.getFullStart():v.getStart($),W.getEnd());return U(ae,"code",e.createTextSpanFromNode(x,$),L)}function U(v,W,x,$,L){return x===void 0&&(x=v),$===void 0&&($=!1),L===void 0&&(L="..."),{textSpan:v,kind:W,hintSpan:x,bannerText:L,autoCollapse:$}}function Z(v,W,x){if(e.isNodeArrayMultiLine(v.parameters,x)){var $=e.findChildOfKind(v,20,x);if($)return $}return e.findChildOfKind(W,18,x)}})(s=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(mn||(mn={}));var mn;(function(e){var s;(function(f){f[f.exact=0]="exact",f[f.prefix=1]="prefix",f[f.substring=2]="substring",f[f.camelCase=3]="camelCase"})(s=e.PatternMatchKind||(e.PatternMatchKind={}));function ue(f,F){return{kind:f,isCaseSensitive:F}}function ee(f){var F=new e.Map,g=f.trim().split(".").map(function(p){return _(p.trim())});return g.some(function(p){return!p.subWordTextChunks.length})?void 0:{getFullMatch:function(p,d){return Y(p,d,g,F)},getMatchForLastSegmentOfPattern:function(p){return _e(p,e.last(g),F)},patternContainsDots:g.length>1}}e.createPatternMatcher=ee;function Y(f,F,g,p){var d=_e(F,e.last(g),p);if(!d)return;if(g.length-1>f.length)return;for(var T,m=g.length-2,k=f.length-1;m>=0;m-=1,k-=1)T=O(T,_e(f[k],g[m],p));return T}function V(f,F){var g=F.get(f);return g||F.set(f,g=X(f)),g}function ne(f,F,g){var p=v(f,F.textLowerCase);if(p===0)return ue(F.text.length===f.length?s.exact:s.prefix,e.startsWith(f,F.text));if(F.isLowerCase){if(p===-1)return;for(var d=V(f,g),T=0,m=d;T<m.length;T++){var k=m[T];if(b(f,k,F.text,!0))return ue(s.substring,b(f,k,F.text,!1))}if(F.text.length<f.length&&U(f.charCodeAt(p)))return ue(s.substring,!1)}else{if(f.indexOf(F.text)>0)return ue(s.substring,!0);if(F.characterSpans.length>0){var N=V(f,g),D=fe(f,N,F,!1)?!0:fe(f,N,F,!0)?!1:void 0;if(D!==void 0)return ue(s.camelCase,D)}}}function _e(f,F,g){if(A(F.totalTextChunk.text,function(D){return D!==32&&D!==42})){var p=ne(f,F.totalTextChunk,g);if(p)return p}for(var d=F.subWordTextChunks,T,m=0,k=d;m<k.length;m++){var N=k[m];T=O(T,ne(f,N,g))}return T}function O(f,F){return e.min(f,F,w)}function w(f,F){return f===void 0?1:F===void 0?-1:e.compareValues(f.kind,F.kind)||e.compareBooleans(!f.isCaseSensitive,!F.isCaseSensitive)}function b(f,F,g,p,d){return d===void 0&&(d={start:0,length:g.length}),d.length<=F.length&&B(0,d.length,function(T){return de(g.charCodeAt(d.start+T),f.charCodeAt(F.start+T),p)})}function de(f,F,g){return g?W(f)===W(F):f===F}function fe(f,F,g,p){for(var d=g.characterSpans,T=0,m=0,k,N;;){if(m===d.length)return!0;if(T===F.length)return!1;for(var D=F[T],R=!1;m<d.length;m++){var me=d[m];if(R&&(!U(g.text.charCodeAt(d[m-1].start))||!U(g.text.charCodeAt(d[m].start))))break;if(!b(f,D,g.text,p,me))break;R=!0,k=k===void 0?T:k,N=N===void 0?!0:N,D=e.createTextSpan(D.start+me.length,D.length-me.length)}!R&&N!==void 0&&(N=!1),T++}}function _(f){return{totalTextChunk:E(f),subWordTextChunks:L(f)}}function U(f){if(f>=65&&f<=90)return!0;if(f<127||!e.isUnicodeIdentifierStart(f,99))return!1;var F=String.fromCharCode(f);return F===F.toUpperCase()}function Z(f){if(f>=97&&f<=122)return!0;if(f<127||!e.isUnicodeIdentifierStart(f,99))return!1;var F=String.fromCharCode(f);return F===F.toLowerCase()}function v(f,F){for(var g=f.length-F.length,p=function(m){if(A(F,function(k,N){return W(f.charCodeAt(N+m))===k}))return{value:m}},d=0;d<=g;d++){var T=p(d);if(typeof T=="object")return T.value}return-1}function W(f){return f>=65&&f<=90?97+(f-65):f<127?f:String.fromCharCode(f).toLowerCase().charCodeAt(0)}function x(f){return f>=48&&f<=57}function $(f){return U(f)||Z(f)||x(f)||f===95||f===36}function L(f){for(var F=[],g=0,p=0,d=0;d<f.length;d++){var T=f.charCodeAt(d);$(T)?(p===0&&(g=d),p++):p>0&&(F.push(E(f.substr(g,p))),p=0)}return p>0&&F.push(E(f.substr(g,p))),F}function E(f){var F=f.toLowerCase();return{text:f,textLowerCase:F,isLowerCase:f===F,characterSpans:ae(f)}}function ae(f){return ie(f,!1)}e.breakIntoCharacterSpans=ae;function X(f){return ie(f,!0)}e.breakIntoWordSpans=X;function ie(f,F){for(var g=[],p=0,d=1;d<f.length;d++){var T=x(f.charCodeAt(d-1)),m=x(f.charCodeAt(d)),k=re(f,F,d),N=F&&I(f,d,p);(le(f.charCodeAt(d-1))||le(f.charCodeAt(d))||T!==m||k||N)&&(P(f,p,d)||g.push(e.createTextSpan(p,d-p)),p=d)}return P(f,p,f.length)||g.push(e.createTextSpan(p,f.length-p)),g}function le(f){switch(f){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 P(f,F,g){return A(f,function(p){return le(p)&&p!==95},F,g)}function I(f,F,g){return F!==g&&F+1<f.length&&U(f.charCodeAt(F))&&Z(f.charCodeAt(F+1))&&A(f,U,g,F)}function re(f,F,g){var p=U(f.charCodeAt(g-1)),d=U(f.charCodeAt(g));return d&&(!F||!p)}function B(f,F,g){for(var p=f;p<F;p++)if(!g(p))return!1;return!0}function A(f,F,g,p){return g===void 0&&(g=0),p===void 0&&(p=f.length),B(g,p,function(d){return F(f.charCodeAt(d),d)})}})(mn||(mn={}));var mn;(function(e){function s(ue,ee,Y){ee===void 0&&(ee=!0),Y===void 0&&(Y=!1);var V={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},ne=[],_e,O,w,b=0,de=!1;function fe(){return O=w,w=e.scanner.scan(),w===18?b++:w===19&&b--,w}function _(){var B=e.scanner.getTokenValue(),A=e.scanner.getTokenPos();return{fileName:B,pos:A,end:A+B.length}}function U(){_e||(_e=[]),_e.push({ref:_(),depth:b})}function Z(){ne.push(_()),v()}function v(){b===0&&(de=!0)}function W(){var B=e.scanner.getToken();return B===134?(B=fe(),B===140&&(B=fe(),B===10&&U()),!0):!1}function x(){if(O===24)return!1;var B=e.scanner.getToken();if(B===100){if(B=fe(),B===20){if(B=fe(),B===10||B===14)return Z(),!0}else{if(B===10)return Z(),!0;if(B===150){var A=e.scanner.lookAhead(function(){var f=e.scanner.scan();return f!==154&&(f===41||f===18||f===79||e.isKeyword(f))});A&&(B=fe())}if(B===79||e.isKeyword(B))if(B=fe(),B===154){if(B=fe(),B===10)return Z(),!0}else if(B===63){if(L(!0))return!0}else if(B===27)B=fe();else return!0;if(B===18){for(B=fe();B!==19&&B!==1;)B=fe();B===19&&(B=fe(),B===154&&(B=fe(),B===10&&Z()))}else B===41&&(B=fe(),B===127&&(B=fe(),(B===79||e.isKeyword(B))&&(B=fe(),B===154&&(B=fe(),B===10&&Z()))))}return!0}return!1}function $(){var B=e.scanner.getToken();if(B===93){if(v(),B=fe(),B===150){var A=e.scanner.lookAhead(function(){var f=e.scanner.scan();return f===41||f===18});A&&(B=fe())}if(B===18){for(B=fe();B!==19&&B!==1;)B=fe();B===19&&(B=fe(),B===154&&(B=fe(),B===10&&Z()))}else if(B===41)B=fe(),B===154&&(B=fe(),B===10&&Z());else if(B===100){if(B=fe(),B===150){var A=e.scanner.lookAhead(function(){var F=e.scanner.scan();return F===79||e.isKeyword(F)});A&&(B=fe())}if((B===79||e.isKeyword(B))&&(B=fe(),B===63&&L(!0)))return!0}return!0}return!1}function L(B,A){A===void 0&&(A=!1);var f=B?fe():e.scanner.getToken();return f===144?(f=fe(),f===20&&(f=fe(),(f===10||A&&f===14)&&Z()),!0):!1}function E(){var B=e.scanner.getToken();if(B===79&&e.scanner.getTokenValue()==="define"){if(B=fe(),B!==20)return!0;if(B=fe(),B===10||B===14)if(B=fe(),B===27)B=fe();else return!0;if(B!==22)return!0;for(B=fe();B!==23&&B!==1;)(B===10||B===14)&&Z(),B=fe();return!0}return!1}function ae(){for(e.scanner.setText(ue),fe();!(e.scanner.getToken()===1);){if(W()||x()||$()||Y&&(L(!1,!0)||E()))continue;fe()}e.scanner.setText(void 0)}if(ee&&ae(),e.processCommentPragmas(V,ue),e.processPragmasIntoFields(V,e.noop),de){if(_e)for(var X=0,ie=_e;X<ie.length;X++){var le=ie[X];ne.push(le.ref)}return{referencedFiles:V.referencedFiles,typeReferenceDirectives:V.typeReferenceDirectives,libReferenceDirectives:V.libReferenceDirectives,importedFiles:ne,isLibFile:!!V.hasNoDefaultLib,ambientExternalModules:void 0}}else{var P=void 0;if(_e)for(var I=0,re=_e;I<re.length;I++){var le=re[I];le.depth===0?(P||(P=[]),P.push(le.ref.fileName)):ne.push(le.ref)}return{referencedFiles:V.referencedFiles,typeReferenceDirectives:V.typeReferenceDirectives,libReferenceDirectives:V.libReferenceDirectives,importedFiles:ne,isLibFile:!!V.hasNoDefaultLib,ambientExternalModules:P}}}e.preProcessFile=s})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(de,fe,_,U){var Z=e.getAdjustedRenameLocation(e.getTouchingPropertyName(fe,_));if(b(Z)){var v=Y(Z,de.getTypeChecker(),fe,de,U);if(v)return v}return O(e.Diagnostics.You_cannot_rename_this_element)}ue.getRenameInfo=ee;function Y(de,fe,_,U,Z){var v=fe.getSymbolAtLocation(de);if(!v){if(e.isStringLiteralLike(de)){var W=e.getContextualTypeOrAncestorTypeNodeType(de,fe);if(W&&(W.flags&128||W.flags&1048576&&e.every(W.types,function(ie){return!!(ie.flags&128)})))return _e(de.text,de.text,"string","",de,_)}else if(e.isLabelName(de)){var x=e.getTextOfNode(de);return _e(x,x,"label","",de,_)}return}var $=v.declarations;if(!$||$.length===0)return;if($.some(function(ie){return V(U,ie)}))return O(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(de)&&de.originalKeywordKind===88&&v.parent&&v.parent.flags&1536)return;if(e.isStringLiteralLike(de)&&e.tryGetImportFromModuleSpecifier(de))return Z&&Z.allowRenameOfImportPath?ne(de,_,v):void 0;var L=e.SymbolDisplay.getSymbolKind(fe,v,de),E=e.isImportOrExportSpecifierName(de)||e.isStringOrNumericLiteralLike(de)&&de.parent.kind===160?e.stripQuotes(e.getTextOfIdentifierOrLiteral(de)):void 0,ae=E||fe.symbolToString(v),X=E||fe.getFullyQualifiedName(v);return _e(ae,X,L,e.SymbolDisplay.getSymbolModifiers(fe,v),de,_)}function V(de,fe){var _=fe.getSourceFile();return de.isSourceFileDefaultLibrary(_)&&e.fileExtensionIs(_.fileName,".d.ts")}function ne(de,fe,_){if(!e.isExternalModuleNameRelative(de.text))return O(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var U=_.declarations&&e.find(_.declarations,e.isSourceFile);if(!U)return;var Z=e.endsWith(de.text,"/index")||e.endsWith(de.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(U.fileName),"/index"),v=Z===void 0?U.fileName:Z,W=Z===void 0?"module":"directory",x=de.text.lastIndexOf("/")+1,$=e.createTextSpan(de.getStart(fe)+1+x,de.text.length-x);return{canRename:!0,fileToRename:v,kind:W,displayName:v,fullDisplayName:v,kindModifiers:"",triggerSpan:$}}function _e(de,fe,_,U,Z,v){return{canRename:!0,fileToRename:void 0,kind:_,displayName:de,fullDisplayName:fe,kindModifiers:U,triggerSpan:w(Z,v)}}function O(de){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(de)}}function w(de,fe){var _=de.getStart(fe),U=de.getWidth(fe);return e.isStringLiteralLike(de)&&(_+=1,U-=2),e.createTextSpan(_,U)}function b(de){switch(de.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(de);default:return!1}}})(s=e.Rename||(e.Rename={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(_,U){var Z,v={textSpan:e.createTextSpanFromBounds(U.getFullStart(),U.getEnd())},W=U;e:for(;;){var x=ne(W);if(!x.length)break;for(var $=0;$<x.length;$++){var L=x[$-1],E=x[$],ae=x[$+1];if(e.getTokenPosOfNode(E,U,!0)>_)break e;var X=e.singleOrUndefined(e.getTrailingCommentRanges(U.text,E.end));if(X&&X.kind===2&&A(X.pos,X.end),Y(U,_,E)){if(e.isBlock(E)||e.isTemplateSpan(E)||e.isTemplateHead(E)||e.isTemplateTail(E)||L&&e.isTemplateHead(L)||e.isVariableDeclarationList(E)&&e.isVariableStatement(W)||e.isSyntaxList(E)&&e.isVariableDeclarationList(W)||e.isVariableDeclaration(E)&&e.isSyntaxList(W)&&x.length===1||e.isJSDocTypeExpression(E)||e.isJSDocSignature(E)||e.isJSDocTypeLiteral(E)){W=E;break}if(e.isTemplateSpan(W)&&ae&&e.isTemplateMiddleOrTemplateTail(ae)){var ie=E.getFullStart()-"${".length,le=ae.getStart()+"}".length;B(ie,le)}var P=e.isSyntaxList(E)&&b(L)&&de(ae)&&!e.positionsAreOnSameLine(L.getStart(),ae.getStart(),U),I=P?L.getEnd():E.getStart(),re=P?ae.getStart():fe(U,E);e.hasJSDocNodes(E)&&((Z=E.jsDoc)===null||Z===void 0?void 0:Z.length)&&B(e.first(E.jsDoc).getStart(),re),B(I,re),(e.isStringLiteral(E)||e.isTemplateLiteral(E))&&B(I+1,re-1),W=E;break}if($===x.length-1)break e}}return v;function B(f,F){if(f!==F){var g=e.createTextSpanFromBounds(f,F);(!v||!e.textSpansEqual(g,v.textSpan)&&e.textSpanIntersectsWithPosition(g,_))&&(v=pr({textSpan:g},v&&{parent:v}))}}function A(f,F){B(f,F);for(var g=f;U.text.charCodeAt(g)===47;)g++;B(g,F)}}ue.getSmartSelectionRange=ee;function Y(_,U,Z){if(e.Debug.assert(Z.pos<=U),U<Z.end)return!0;var v=Z.getEnd();return v===U?e.getTouchingPropertyName(_,U).pos<Z.end:!1}var V=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function ne(_){if(e.isSourceFile(_))return _e(_.getChildAt(0).getChildren(),V);if(e.isMappedTypeNode(_)){var U=_.getChildren(),Z=U[0],v=U.slice(1),W=e.Debug.checkDefined(v.pop());e.Debug.assertEqual(Z.kind,18),e.Debug.assertEqual(W.kind,19);var x=_e(v,function(ae){return ae===_.readonlyToken||ae.kind===143||ae===_.questionToken||ae.kind===57}),$=_e(x,function(ae){var X=ae.kind;return X===22||X===161||X===23});return[Z,w(O($,function(ae){var X=ae.kind;return X===58})),W]}if(e.isPropertySignature(_)){var v=_e(_.getChildren(),function(X){return X===_.name||e.contains(_.modifiers,X)});return O(v,function(X){var ie=X.kind;return ie===58})}if(e.isParameter(_)){var L=_e(_.getChildren(),function(ae){return ae===_.dotDotDotToken||ae===_.name}),E=_e(L,function(ae){return ae===L[0]||ae===_.questionToken});return O(E,function(ae){var X=ae.kind;return X===63})}return e.isBindingElement(_)?O(_.getChildren(),function(ae){var X=ae.kind;return X===63}):_.getChildren()}function _e(_,U){for(var Z=[],v,W=0,x=_;W<x.length;W++){var $=x[W];U($)?(v=v||[],v.push($)):(v&&(Z.push(w(v)),v=void 0),Z.push($))}return v&&Z.push(w(v)),Z}function O(_,U,Z){if(Z===void 0&&(Z=!0),_.length<2)return _;var v=e.findIndex(_,U);if(v===-1)return _;var W=_.slice(0,v),x=_[v],$=e.last(_),L=Z&&$.kind===26,E=_.slice(v+1,L?_.length-1:void 0),ae=e.compact([W.length?w(W):void 0,x,E.length?w(E):void 0]);return L?ae.concat($):ae}function w(_){return e.Debug.assertGreaterThanOrEqual(_.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(_),_[0].pos,e.last(_).end)}function b(_){var U=_&&_.kind;return U===18||U===22||U===20||U===278}function de(_){var U=_&&_.kind;return U===19||U===23||U===21||U===279}function fe(_,U){switch(U.kind){case 335:case 333:case 342:case 340:case 337:return _.getLineEndOfPosition(U.getStart());default:return U.getEnd()}}})(s=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(R){R[R.Call=0]="Call",R[R.TypeArgs=1]="TypeArgs",R[R.Contextual=2]="Contextual"})(ee||(ee={}));function Y(R,me,q,J,C){var we=R.getTypeChecker(),Oe=e.findTokenOnLeftOfPosition(me,q);if(!Oe)return;var te=!!J&&J.kind==="characterTyped";if(te&&(e.isInString(me,q,Oe)||e.isInComment(me,q)))return;var Te=!!J&&J.kind==="invoked",be=P(Oe,q,me,we,Te);if(!be)return;C.throwIfCancellationRequested();var Ce=ne(be,we,me,Oe,te);return C.throwIfCancellationRequested(),Ce?we.runWithCancellationToken(C,function(Ue){return Ce.kind===0?f(Ce.candidates,Ce.resolvedSignature,be,me,Ue):F(Ce.symbol,be,me,Ue)}):e.isSourceFileJS(me)?O(be,R,C):void 0}ue.getSignatureHelpItems=Y;var V;(function(R){R[R.Candidate=0]="Candidate",R[R.Type=1]="Type"})(V||(V={}));function ne(R,me,q,J,C){var we=R.invocation,Oe=R.argumentCount;switch(we.kind){case 0:{if(C&&!_e(J,we.node,q))return;var te=[],Te=me.getResolvedSignatureForSignatureHelp(we.node,te,Oe);return te.length===0?void 0:{kind:0,candidates:te,resolvedSignature:Te}}case 1:{var be=we.called;if(C&&!w(J,q,e.isIdentifier(be)?be.parent:be))return;var te=e.getPossibleGenericSignatures(be,Oe,me);if(te.length!==0)return{kind:0,candidates:te,resolvedSignature:e.first(te)};var Ce=me.getSymbolAtLocation(be);return Ce&&{kind:1,symbol:Ce}}case 2:return{kind:0,candidates:[we.signature],resolvedSignature:we.signature};default:return e.Debug.assertNever(we)}}function _e(R,me,q){if(!e.isCallOrNewExpression(me))return!1;var J=me.getChildren(q);switch(R.kind){case 20:return e.contains(J,R);case 27:{var C=e.findContainingList(R);return!!C&&e.contains(J,C)}case 29:return w(R,q,me.expression);default:return!1}}function O(R,me,q){if(R.invocation.kind===2)return;var J=re(R.invocation),C=e.isPropertyAccessExpression(J)?J.name.text:void 0,we=me.getTypeChecker();return C===void 0?void 0:e.firstDefined(me.getSourceFiles(),function(Oe){return e.firstDefined(Oe.getNamedDeclarations().get(C),function(te){var Te=te.symbol&&we.getTypeOfSymbolAtLocation(te.symbol,te),be=Te&&Te.getCallSignatures();if(be&&be.length)return we.runWithCancellationToken(q,function(Ce){return f(be,be[0],R,Oe,Ce,!0)})})})}function w(R,me,q){for(var J=R.getFullStart(),C=R.parent;C;){var we=e.findPrecedingToken(J,me,C,!0);if(we)return e.rangeContainsRange(q,we);C=C.parent}return e.Debug.fail("Could not find preceding token")}function b(R,me,q){var J=_(R,me,q);return!J||J.isTypeParameterList||J.invocation.kind!==0?void 0:{invocation:J.invocation.node,argumentCount:J.argumentCount,argumentIndex:J.argumentIndex}}ue.getArgumentInfoForCompletions=b;function de(R,me){var q=fe(R,me);if(!q)return;var J=q.list,C=q.argumentIndex,we=E(J);C!==0&&e.Debug.assertLessThan(C,we);var Oe=ie(J,me);return{list:J,argumentIndex:C,argumentCount:we,argumentsSpan:Oe}}function fe(R,me){if(R.kind===29||R.kind===20)return{list:I(R.parent,R,me),argumentIndex:0};var q=e.findContainingList(R);return q&&{list:q,argumentIndex:L(q,R)}}function _(R,me,q){var J=R.parent;if(e.isCallOrNewExpression(J)){var C=J,we=de(R,q);if(!we)return;var Oe=we.list,te=we.argumentIndex,Te=we.argumentCount,be=we.argumentsSpan,Ce=!!J.typeArguments&&J.typeArguments.pos===Oe.pos;return{isTypeParameterList:Ce,invocation:{kind:0,node:C},argumentsSpan:be,argumentIndex:te,argumentCount:Te}}else{if(e.isNoSubstitutionTemplateLiteral(R)&&e.isTaggedTemplateExpression(J))return e.isInsideTemplateLiteral(R,me,q)?X(J,0,q):void 0;if(e.isTemplateHead(R)&&J.parent.kind===208){var Ue=J,Se=Ue.parent;e.Debug.assert(Ue.kind===221);var te=e.isInsideTemplateLiteral(R,me,q)?0:1;return X(Se,te,q)}else if(e.isTemplateSpan(J)&&e.isTaggedTemplateExpression(J.parent.parent)){var $e=J,Se=J.parent.parent;if(e.isTemplateTail(R)&&!e.isInsideTemplateLiteral(R,me,q))return;var ce=$e.parent.templateSpans.indexOf($e),te=ae(ce,R,me,q);return X(Se,te,q)}else if(e.isJsxOpeningLikeElement(J)){var Le=J.attributes.pos,qe=e.skipTrivia(q.text,J.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:J},argumentsSpan:e.createTextSpan(Le,qe-Le),argumentIndex:0,argumentCount:1}}else{var pe=e.getPossibleTypeArgumentsInfo(R,q);if(pe){var Me=pe.called,fn=pe.nTypeArguments,C={kind:1,called:Me},be=e.createTextSpanFromBounds(Me.getStart(q),R.end);return{isTypeParameterList:!0,invocation:C,argumentsSpan:be,argumentIndex:fn,argumentCount:fn+1}}return}}}function U(R,me,q,J){return W(R,me,q,J)||_(R,me,q)}function Z(R){return e.isBinaryExpression(R.parent)?Z(R.parent):R}function v(R){return e.isBinaryExpression(R.left)?v(R.left)+1:2}function W(R,me,q,J){var C=x(R,q,J);if(!C)return;var we=C.contextualType,Oe=C.argumentIndex,te=C.argumentCount,Te=C.argumentsSpan,be=we.getNonNullableType(),Ce=be.getCallSignatures();if(Ce.length!==1)return;var Ue={kind:2,signature:e.first(Ce),node:R,symbol:$(be.symbol)};return{isTypeParameterList:!1,invocation:Ue,argumentsSpan:Te,argumentIndex:Oe,argumentCount:te}}function x(R,me,q){if(R.kind!==20&&R.kind!==27)return;var J=R.parent;switch(J.kind){case 210:case 167:case 211:case 212:var C=de(R,me);if(!C)return;var we=C.argumentIndex,Oe=C.argumentCount,te=C.argumentsSpan,Te=e.isMethodDeclaration(J)?q.getContextualTypeForObjectLiteralElement(J):q.getContextualType(J);return Te&&{contextualType:Te,argumentIndex:we,argumentCount:Oe,argumentsSpan:te};case 219:{var be=Z(J),Ce=q.getContextualType(be),Ue=R.kind===20?0:v(J)-1,Se=v(be);return Ce&&{contextualType:Ce,argumentIndex:Ue,argumentCount:Se,argumentsSpan:e.createTextSpanFromNode(J)}}default:return}}function $(R){return R.name==="__type"&&e.firstDefined(R.declarations,function(me){return e.isFunctionTypeNode(me)?me.parent.symbol:void 0})||R}function L(R,me){for(var q=0,J=0,C=R.getChildren();J<C.length;J++){var we=C[J];if(we===me)break;we.kind!==27&&q++}return q}function E(R){var me=R.getChildren(),q=e.countWhere(me,function(J){return J.kind!==27});return me.length>0&&e.last(me).kind===27&&q++,q}function ae(R,me,q,J){return e.Debug.assert(q>=me.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(me)?e.isInsideTemplateLiteral(me,q,J)?0:R+2:R+1}function X(R,me,q){var J=e.isNoSubstitutionTemplateLiteral(R.template)?1:R.template.templateSpans.length+1;return me!==0&&e.Debug.assertLessThan(me,J),{isTypeParameterList:!1,invocation:{kind:0,node:R},argumentsSpan:le(R,q),argumentIndex:me,argumentCount:J}}function ie(R,me){var q=R.getFullStart(),J=e.skipTrivia(me.text,R.getEnd(),!1);return e.createTextSpan(q,J-q)}function le(R,me){var q=R.template,J=q.getStart(),C=q.getEnd();if(q.kind===221){var we=e.last(q.templateSpans);we.literal.getFullWidth()===0&&(C=e.skipTrivia(me.text,C,!1))}return e.createTextSpan(J,C-J)}function P(R,me,q,J,C){for(var we=function(Te){e.Debug.assert(e.rangeContainsRange(Te.parent,Te),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(Te.kind)+", parent: "+e.Debug.formatSyntaxKind(Te.parent.kind)});var be=U(Te,me,q,J);if(be)return{value:be}},Oe=R;!e.isSourceFile(Oe)&&(C||!e.isBlock(Oe));Oe=Oe.parent){var te=we(Oe);if(typeof te=="object")return te.value}return}function I(R,me,q){var J=R.getChildren(q),C=J.indexOf(me);return e.Debug.assert(C>=0&&J.length>C+1),J[C+1]}function re(R){return R.kind===0?e.getInvokedExpression(R.node):R.called}function B(R){return R.kind===0?R.node:R.kind===1?R.called:R.node}var A=8192|70221824|16384;function f(R,me,q,J,C,we){var Oe,te=q.isTypeParameterList,Te=q.argumentCount,be=q.argumentsSpan,Ce=q.invocation,Ue=q.argumentIndex,Se=B(Ce),$e=Ce.kind===2?Ce.symbol:C.getSymbolAtLocation(re(Ce))||we&&((Oe=me.declaration)===null||Oe===void 0?void 0:Oe.symbol),ce=$e?e.symbolToDisplayParts(C,$e,we?J:void 0,void 0):e.emptyArray,Le=e.map(R,function(o){return d(o,ce,te,C,Se,J)});Ue!==0&&e.Debug.assertLessThan(Ue,Te);for(var qe=0,pe=0,Me=0;Me<Le.length;Me++){var fn=Le[Me];if(R[Me]===me&&(qe=pe,fn.length>1))for(var Ye=0,Ne=0,je=fn;Ne<je.length;Ne++){var xn=je[Ne];if(xn.isVariadic||xn.parameters.length>=Te){qe=pe+Ye;break}Ye++}pe+=fn.length}e.Debug.assert(qe!==-1);var Wn={items:e.flatMapToMutable(Le,e.identity),applicableSpan:be,selectedItemIndex:qe,argumentIndex:Ue,argumentCount:Te},dn=Wn.items[qe];if(dn.isVariadic){var vn=e.findIndex(dn.parameters,function(o){return!!o.isRest});-1<vn&&vn<dn.parameters.length-1?Wn.argumentIndex=dn.parameters.length:Wn.argumentIndex=Math.min(Wn.argumentIndex,dn.parameters.length-1)}return Wn}function F(R,me,q,J){var C=me.argumentCount,we=me.argumentsSpan,Oe=me.invocation,te=me.argumentIndex,Te=J.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(R);if(!Te)return;var be=[g(R,Te,J,B(Oe),q)];return{items:be,applicableSpan:we,selectedItemIndex:0,argumentIndex:te,argumentCount:C}}function g(R,me,q,J,C){var we=e.symbolToDisplayParts(q,R),Oe=e.createPrinter({removeComments:!0}),te=me.map(function(Ue){return D(Ue,q,J,C,Oe)}),Te=R.getDocumentationComment(q),be=R.getJsDocTags(q),Ce=Mt(Mt([],we,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:Ce,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:p,parameters:te,documentation:Te,tags:be}}var p=[e.punctuationPart(27),e.spacePart()];function d(R,me,q,J,C,we){var Oe=(q?m:k)(R,J,C,we);return e.map(Oe,function(te){var Te=te.isVariadic,be=te.parameters,Ce=te.prefix,Ue=te.suffix,Se=Mt(Mt([],me,!0),Ce,!0),$e=Mt(Mt([],Ue,!0),T(R,C,J),!0),ce=R.getDocumentationComment(J),Le=R.getJsDocTags();return{isVariadic:Te,prefixDisplayParts:Se,suffixDisplayParts:$e,separatorDisplayParts:p,parameters:be,documentation:ce,tags:Le}})}function T(R,me,q){return e.mapToDisplayParts(function(J){J.writePunctuation(":"),J.writeSpace(" ");var C=q.getTypePredicateOfSignature(R);C?q.writeTypePredicate(C,me,void 0,J):q.writeType(q.getReturnTypeOfSignature(R),me,void 0,J)})}function m(R,me,q,J){var C=(R.target||R).typeParameters,we=e.createPrinter({removeComments:!0}),Oe=(C||e.emptyArray).map(function(Te){return D(Te,me,q,J,we)}),te=R.thisParameter?[me.symbolToParameterDeclaration(R.thisParameter,q,A)]:[];return me.getExpandedParameters(R).map(function(Te){var be=e.factory.createNodeArray(Mt(Mt([],te,!0),e.map(Te,function(Ue){return me.symbolToParameterDeclaration(Ue,q,A)}),!0)),Ce=e.mapToDisplayParts(function(Ue){we.writeList(2576,be,J,Ue)});return{isVariadic:!1,parameters:Oe,prefix:[e.punctuationPart(29)],suffix:Mt([e.punctuationPart(31)],Ce,!0)}})}function k(R,me,q,J){var C=e.createPrinter({removeComments:!0}),we=e.mapToDisplayParts(function(Te){if(R.typeParameters&&R.typeParameters.length){var be=e.factory.createNodeArray(R.typeParameters.map(function(Ce){return me.typeParameterToDeclaration(Ce,q,A)}));C.writeList(53776,be,J,Te)}}),Oe=me.getExpandedParameters(R),te=me.hasEffectiveRestParameter(R)?Oe.length===1?function(Te){return!0}:function(Te){return!!(Te.length&&Te[Te.length-1].checkFlags&32768)}:function(Te){return!1};return Oe.map(function(Te){return{isVariadic:te(Te),parameters:Te.map(function(be){return N(be,me,q,J,C)}),prefix:Mt(Mt([],we,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function N(R,me,q,J,C){var we=e.mapToDisplayParts(function(Te){var be=me.symbolToParameterDeclaration(R,q,A);C.writeNode(4,be,J,Te)}),Oe=me.isOptionalParameter(R.valueDeclaration),te=!!(R.checkFlags&32768);return{name:R.name,documentation:R.getDocumentationComment(me),displayParts:we,isOptional:Oe,isRest:te}}function D(R,me,q,J,C){var we=e.mapToDisplayParts(function(Oe){var te=me.typeParameterToDeclaration(R,q,A);C.writeNode(4,te,J,Oe)});return{name:R.symbol.name,documentation:R.symbol.getDocumentationComment(me),displayParts:we,isOptional:!1,isRest:!1}}})(s=e.SignatureHelp||(e.SignatureHelp={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=30,Y=function(O){return new RegExp("^\\s?/\\*\\*?\\s?"+O+"\\s?\\*\\/\\s?$")};function V(O){return O.includeInlayParameterNameHints==="literals"||O.includeInlayParameterNameHints==="all"}function ne(O){return O.includeInlayParameterNameHints==="literals"}function _e(O){var w=O.file,b=O.program,de=O.span,fe=O.cancellationToken,_=O.preferences,U=w.text,Z=b.getCompilerOptions(),v=b.getTypeChecker(),W=[];return x(w),W;function x(m){if(!m||m.getFullWidth()===0)return;switch(m.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 167:case 212:fe.throwIfCancellationRequested()}return e.textSpanIntersectsWith(de,m.pos,m.getFullWidth())?e.isTypeNode(m)?void 0:(_.includeInlayVariableTypeHints&&e.isVariableDeclaration(m)||_.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(m)?le(m):_.includeInlayEnumMemberValueHints&&e.isEnumMember(m)?X(m):V(_)&&(e.isCallExpression(m)||e.isNewExpression(m))?P(m):(_.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(m)&&e.hasContextSensitiveParameters(m)&&F(m),_.includeInlayFunctionLikeReturnTypeHints&&$(m)&&A(m)),e.forEachChild(m,x)):void 0}function $(m){return e.isArrowFunction(m)||e.isFunctionExpression(m)||e.isFunctionDeclaration(m)||e.isMethodDeclaration(m)||e.isGetAccessorDeclaration(m)}function L(m,k,N){W.push({text:""+(N?"...":"")+p(m,ee)+":",position:k,kind:"Parameter",whitespaceAfter:!0})}function E(m,k){W.push({text:": "+p(m,ee),position:k,kind:"Type",whitespaceBefore:!0})}function ae(m,k){W.push({text:"= "+p(m,ee),position:k,kind:"Enum",whitespaceBefore:!0})}function X(m){if(m.initializer)return;var k=v.getConstantValue(m);k!==void 0&&ae(k.toString(),m.end)}function ie(m){return m.symbol&&m.symbol.flags&1536}function le(m){if(!m.initializer||e.isBindingPattern(m.name))return;var k=e.getEffectiveTypeAnnotationNode(m);if(k)return;var N=v.getTypeAtLocation(m);if(ie(N))return;var D=d(N);D&&E(D,m.name.end)}function P(m){var k=m.arguments;if(!k||!k.length)return;var N=[],D=v.getResolvedSignatureForSignatureHelp(m,N);if(!D||!N.length)return;for(var R=0;R<k.length;++R){var me=k[R],q=e.skipParentheses(me);if(ne(_)&&!B(q))continue;var J=v.getParameterIdentifierNameAtPosition(D,R);if(J){var C=J[0],we=J[1],Oe=_.includeInlayParameterNameHintsWhenArgumentMatchesName||!I(q,C);if(!Oe&&!we)continue;var te=e.unescapeLeadingUnderscores(C);if(re(q,te))continue;L(te,me.getStart(),we)}}}function I(m,k){return e.isIdentifier(m)?m.text===k:e.isPropertyAccessExpression(m)?m.name.text===k:!1}function re(m,k){if(!e.isIdentifierText(k,Z.target,e.getLanguageVariant(w.scriptKind)))return!1;var N=e.getLeadingCommentRanges(U,m.pos);if(!(N==null?void 0:N.length))return!1;var D=Y(k);return e.some(N,function(R){return D.test(U.substring(R.pos,R.end))})}function B(m){switch(m.kind){case 217:{var k=m.operand;return e.isLiteralExpression(k)||e.isIdentifier(k)&&e.isInfinityOrNaNString(k.escapedText)}case 110:case 95:case 104:return!0;case 79:{var N=m.escapedText;return T(N)||e.isInfinityOrNaNString(N)}}return e.isLiteralExpression(m)}function A(m){if(e.isArrowFunction(m)&&!e.findChildOfKind(m,20,w))return;var k=e.getEffectiveReturnTypeNode(m);if(k||!m.body)return;var N=v.getSignatureFromDeclaration(m);if(!N)return;var D=v.getReturnTypeOfSignature(N);if(ie(D))return;var R=d(D);if(!R)return;E(R,f(m))}function f(m){var k=e.findChildOfKind(m,21,w);return k?k.end:m.parameters.end}function F(m){var k=v.getSignatureFromDeclaration(m);if(!k)return;for(var N=0;N<m.parameters.length&&N<k.parameters.length;++N){var D=m.parameters[N],R=e.getEffectiveTypeAnnotationNode(D);if(R)continue;var me=g(k.parameters[N]);if(!me)continue;E(me,D.end)}}function g(m){var k=m.valueDeclaration;if(!k||!e.isParameter(k))return;var N=v.getTypeOfSymbolAtLocation(m,k);return ie(N)?void 0:d(N)}function p(m,k){return m.length>k?m.substr(0,k-"...".length)+"...":m}function d(m){var k=70221824|1048576|16384,N={removeComments:!0},D=e.createPrinter(N);return e.usingSingleLineStringWriter(function(R){var me=v.typeToTypeNode(m,void 0,k,R);e.Debug.assertIsDefined(me,"should always get typenode"),D.writeNode(4,me,w,R)})}function T(m){return m==="undefined"}}ue.provideInlayHints=_e})(s=e.InlayHints||(e.InlayHints={}))})(mn||(mn={}));var mn;(function(e){var s=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function ue(ne){var _e=e.createGetCanonicalFileName(ne.useCaseSensitiveFileNames()),O=ne.getCurrentDirectory(),w=new e.Map,b=new e.Map;return{tryGetSourcePosition:_,tryGetGeneratedPosition:U,toLineColumnOffset:x,clearCache:$};function de(L){return e.toPath(L,O,_e)}function fe(L,E){var ae=de(L),X=b.get(ae);if(X)return X;var ie;if(ne.getDocumentPositionMapper)ie=ne.getDocumentPositionMapper(L,E);else if(ne.readFile){var le=W(L);ie=le&&e.getDocumentPositionMapper({getSourceFileLike:W,getCanonicalFileName:_e,log:function(P){return ne.log(P)}},L,e.getLineInfo(le.text,e.getLineStarts(le)),function(P){return!ne.fileExists||ne.fileExists(P)?ne.readFile(P):void 0})}return b.set(ae,ie||e.identitySourceMapConsumer),ie||e.identitySourceMapConsumer}function _(L){if(!e.isDeclarationFileName(L.fileName))return;var E=Z(L.fileName);if(!E)return;var ae=fe(L.fileName).getSourcePosition(L);return!ae||ae===L?void 0:_(ae)||ae}function U(L){if(e.isDeclarationFileName(L.fileName))return;var E=Z(L.fileName);if(!E)return;var ae=ne.getProgram();if(ae.isSourceOfProjectReferenceRedirect(E.fileName))return;var X=ae.getCompilerOptions(),ie=e.outFile(X),le=ie?e.removeFileExtension(ie)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(L.fileName,ae.getCompilerOptions(),O,ae.getCommonSourceDirectory(),_e);if(le===void 0)return;var P=fe(le,L.fileName).getGeneratedPosition(L);return P===L?void 0:P}function Z(L){var E=ne.getProgram();if(!E)return;var ae=de(L),X=E.getSourceFileByPath(ae);return X&&X.resolvedPath===ae?X:void 0}function v(L){var E=de(L),ae=w.get(E);if(ae!==void 0)return ae||void 0;if(!ne.readFile||ne.fileExists&&!ne.fileExists(E)){w.set(E,!1);return}var X=ne.readFile(E),ie=X?V(X):!1;return w.set(E,ie),ie||void 0}function W(L){return ne.getSourceFileLike?ne.getSourceFileLike(L):Z(L)||v(L)}function x(L,E){var ae=W(L);return ae.getLineAndCharacterOfPosition(E)}function $(){w.clear(),b.clear()}}e.getSourceMapper=ue;function ee(ne,_e,O,w){var b=e.tryGetSourceMappingURL(O);if(b){var de=s.exec(b);if(de){if(de[1]){var fe=de[1];return Y(ne,e.base64decode(e.sys,fe),_e)}b=void 0}}var _=[];b&&_.push(b),_.push(_e+".map");for(var U=b&&e.getNormalizedAbsolutePath(b,e.getDirectoryPath(_e)),Z=0,v=_;Z<v.length;Z++){var W=v[Z],x=e.getNormalizedAbsolutePath(W,e.getDirectoryPath(_e)),$=w(x,U);if(e.isString($))return Y(ne,$,x);if($!==void 0)return $||void 0}return}e.getDocumentPositionMapper=ee;function Y(ne,_e,O){var w=e.tryParseRawSourceMap(_e);return!w||!w.sources||!w.file||!w.mappings||w.sourcesContent&&w.sourcesContent.some(e.isString)?void 0:e.createDocumentPositionMapper(ne,w,O)}function V(ne,_e){return{text:ne,lineMap:_e,getLineAndCharacterOfPosition:function(O){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),O)}}}})(mn||(mn={}));var mn;(function(e){var s=new e.Map;function ue($,L,E){L.getSemanticDiagnostics($,E);var ae=[],X=L.getTypeChecker();$.commonJsModuleIndicator&&(e.programContainsEs6Modules(L)||e.compilerOptionsIndicateEs6Modules(L.getCompilerOptions()))&&ee($)&&ae.push(e.createDiagnosticForNode(w($.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var ie=e.isSourceFileJS($);if(s.clear(),F($),e.getAllowSyntheticDefaultImports(L.getCompilerOptions()))for(var le=0,P=$.imports;le<P.length;le++){var I=P[le],re=e.importFromModuleSpecifier(I),B=V(re);if(!B)continue;var A=e.getResolvedModule($,I.text),f=A&&L.getSourceFile(A.resolvedFileName);f&&f.externalModuleIndicator&&e.isExportAssignment(f.externalModuleIndicator)&&f.externalModuleIndicator.isExportEquals&&ae.push(e.createDiagnosticForNode(B,e.Diagnostics.Import_may_be_converted_to_a_default_import))}return e.addRange(ae,$.bindSuggestionDiagnostics),e.addRange(ae,L.getSuggestionDiagnostics($,E)),ae.sort(function(g,p){return g.start-p.start});function F(g){if(ie)W(g,X)&&ae.push(e.createDiagnosticForNode(e.isVariableDeclaration(g.parent)?g.parent.name:g,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(g)&&g.parent===$&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){var p=g.declarationList.declarations[0].initializer;p&&e.isRequireCall(p,!0)&&ae.push(e.createDiagnosticForNode(p,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(g)&&ae.push(e.createDiagnosticForNode(g.name||g,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}x(g)&&ne(g,X,ae),g.forEachChild(F)}}e.computeSuggestionDiagnostics=ue;function ee($){return $.statements.some(function(L){switch(L.kind){case 235:return L.declarationList.declarations.some(function(X){return!!X.initializer&&e.isRequireCall(Y(X.initializer),!0)});case 236:{var E=L.expression;if(!e.isBinaryExpression(E))return e.isRequireCall(E,!0);var ae=e.getAssignmentDeclarationKind(E);return ae===1||ae===2}default:return!1}})}function Y($){return e.isPropertyAccessExpression($)?Y($.expression):$}function V($){switch($.kind){case 264:var L=$.importClause,E=$.moduleSpecifier;return L&&!L.name&&L.namedBindings&&L.namedBindings.kind===266&&e.isStringLiteral(E)?L.namedBindings.name:void 0;case 263:return $.name;default:return}}function ne($,L,E){_e($,L)&&!s.has(v($))&&E.push(e.createDiagnosticForNode(!$.name&&e.isVariableDeclaration($.parent)&&e.isIdentifier($.parent.name)?$.parent.name:$,e.Diagnostics.This_may_be_converted_to_an_async_function))}function _e($,L){return!e.isAsyncFunction($)&&$.body&&e.isBlock($.body)&&b($.body,L)&&O($,L)}function O($,L){var E=L.getSignatureFromDeclaration($),ae=E?L.getReturnTypeOfSignature(E):void 0;return!!ae&&!!L.getPromisedTypeOfPromise(ae)}e.returnsPromise=O;function w($){return e.isBinaryExpression($)?$.left:$}function b($,L){return!!e.forEachReturnStatement($,function(E){return de(E,L)})}function de($,L){return e.isReturnStatement($)&&!!$.expression&&fe($.expression,L)}e.isReturnStatementWithFixablePromiseHandler=de;function fe($,L){if(!_($)||!$.arguments.every(function(ae){return Z(ae,L)}))return!1;for(var E=$.expression;_(E)||e.isPropertyAccessExpression(E);){if(e.isCallExpression(E)&&!E.arguments.every(function(ae){return Z(ae,L)}))return!1;E=E.expression}return!0}e.isFixablePromiseHandler=fe;function _($){return e.isCallExpression($)&&(e.hasPropertyAccessExpressionWithName($,"then")&&U($)||e.hasPropertyAccessExpressionWithName($,"catch"))}function U($){return $.arguments.length>2?!1:$.arguments.length<2?!0:e.some($.arguments,function(L){return L.kind===104||e.isIdentifier(L)&&L.text==="undefined"})}function Z($,L){switch($.kind){case 254:case 211:var E=e.getFunctionFlags($);if(E&1)return!1;case 212:s.set(v($),!0);case 104:return!0;case 79:case 204:{var ae=L.getSymbolAtLocation($);return ae?L.isUndefinedSymbol(ae)||e.some(e.skipAlias(ae,L).declarations,function(X){return e.isFunctionLike(X)||e.hasInitializer(X)&&!!X.initializer&&e.isFunctionLike(X.initializer)}):!1}default:return!1}}function v($){return $.pos.toString()+":"+$.end.toString()}function W($,L){var E,ae,X,ie;if($.kind===211){if(e.isVariableDeclaration($.parent)&&((E=$.symbol.members)===null||E===void 0?void 0:E.size))return!0;var le=L.getSymbolOfExpando($,!1);return!!(le&&(((ae=le.exports)===null||ae===void 0?void 0:ae.size)||((X=le.members)===null||X===void 0?void 0:X.size)))}return $.kind===254?!!((ie=$.symbol.members)===null||ie===void 0?void 0:ie.size):!1}function x($){switch($.kind){case 254:case 167:case 211:case 212:return!0;default:return!1}}e.canBeConvertedToAsync=x})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=8192|70221824|16384;function Y(b,de,fe){var _=V(b,de,fe);if(_!=="")return _;var U=e.getCombinedLocalAndExportSymbolFlags(de);return U&32?e.getDeclarationOfKind(de,224)?"local class":"class":U&384?"enum":U&524288?"type":U&64?"interface":U&262144?"type parameter":U&8?"enum member":U&2097152?"alias":U&1536?"module":_}ue.getSymbolKind=Y;function V(b,de,fe){var _=b.getRootSymbols(de);if(_.length===1&&e.first(_).flags&8192&&b.getTypeOfSymbolAtLocation(de,fe).getNonNullableType().getCallSignatures().length!==0)return"method";if(b.isUndefinedSymbol(de))return"var";if(b.isArgumentsSymbol(de))return"local var";if(fe.kind===108&&e.isExpression(fe))return"parameter";var U=e.getCombinedLocalAndExportSymbolFlags(de);if(U&3)return e.isFirstDeclarationOfSymbolParameter(de)?"parameter":de.valueDeclaration&&e.isVarConst(de.valueDeclaration)?"const":e.forEach(de.declarations,e.isLet)?"let":w(de)?"local var":"var";if(U&16)return w(de)?"local function":"function";if(U&32768)return"getter";if(U&65536)return"setter";if(U&8192)return"method";if(U&16384)return"constructor";if(U&4){if(U&33554432&&de.checkFlags&6){var Z=e.forEach(b.getRootSymbols(de),function(W){var x=W.getFlags();if(x&(98308|3))return"property"});if(!Z){var v=b.getTypeOfSymbolAtLocation(de,fe);return v.getCallSignatures().length?"method":"property"}return Z}switch(fe.parent&&fe.parent.kind){case 278:case 276:case 277:return fe.kind===79?"property":"JSX attribute";case 283:return"JSX attribute";default:return"property"}}return""}function ne(b){if(b.declarations&&b.declarations.length){var de=b.declarations,fe=de[0],_=de.slice(1),U=e.length(_)&&e.isDeprecatedDeclaration(fe)&&e.some(_,function(v){return!e.isDeprecatedDeclaration(v)})?8192:0,Z=e.getNodeModifiers(fe,U);if(Z)return Z.split(",")}return[]}function _e(b,de){if(!de)return"";var fe=new e.Set(ne(de));if(de.flags&2097152){var _=b.getAliasedSymbol(de);_!==de&&e.forEach(ne(_),function(U){fe.add(U)})}return de.flags&16777216&&fe.add("optional"),fe.size>0?e.arrayFrom(fe.values()).join(","):""}ue.getSymbolModifiers=_e;function O(b,de,fe,_,U,Z,v){var W;Z===void 0&&(Z=e.getMeaningFromLocation(U));var x=[],$=[],L=[],E=e.getCombinedLocalAndExportSymbolFlags(de),ae=Z&1?V(b,de,U):"",X=!1,ie=U.kind===108&&e.isInExpressionContext(U),le,P,I,re,B=!1;if(U.kind===108&&!ie)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(ae!==""||E&32||E&2097152){(ae==="getter"||ae==="setter")&&(ae="property");var A=void 0;if(le=ie?b.getTypeAtLocation(U):b.getTypeOfSymbolAtLocation(de,U),U.parent&&U.parent.kind===204){var f=U.parent.name;(f===U||f&&f.getFullWidth()===0)&&(U=U.parent)}var F=void 0;if(e.isCallOrNewExpression(U)?F=U:(e.isCallExpressionTarget(U)||e.isNewExpressionTarget(U)||U.parent&&(e.isJsxOpeningLikeElement(U.parent)||e.isTaggedTemplateExpression(U.parent))&&e.isFunctionLike(de.valueDeclaration))&&(F=U.parent),F){A=b.getResolvedSignature(F);var g=F.kind===207||e.isCallExpression(F)&&F.expression.kind===106,p=g?le.getConstructSignatures():le.getCallSignatures();if(A&&!e.contains(p,A.target)&&!e.contains(p,A)&&(A=p.length?p[0]:void 0),A){g&&E&32?(ae="constructor",qe(le.symbol,ae)):E&2097152?(ae="alias",pe(ae),x.push(e.spacePart()),g&&(A.flags&4&&(x.push(e.keywordPart(126)),x.push(e.spacePart())),x.push(e.keywordPart(103)),x.push(e.spacePart())),Le(de)):qe(de,ae);switch(ae){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":x.push(e.punctuationPart(58)),x.push(e.spacePart()),!(e.getObjectFlags(le)&16)&&le.symbol&&(e.addRange(x,e.symbolToDisplayParts(b,le.symbol,_,void 0,4|1)),x.push(e.lineBreakPart())),g&&(A.flags&4&&(x.push(e.keywordPart(126)),x.push(e.spacePart())),x.push(e.keywordPart(103)),x.push(e.spacePart())),Me(A,p,262144);break;default:Me(A,p)}X=!0,B=p.length>1}}else if(e.isNameOfFunctionDeclaration(U)&&!(E&98304)||U.kind===133&&U.parent.kind===169){var d=U.parent,T=de.declarations&&e.find(de.declarations,function(Ye){return Ye===(U.kind===133?d.parent:d)});if(T){var p=d.kind===169?le.getNonNullableType().getConstructSignatures():le.getNonNullableType().getCallSignatures();b.isImplementationOfOverload(d)?A=p[0]:A=b.getSignatureFromDeclaration(d),d.kind===169?(ae="constructor",qe(le.symbol,ae)):qe(d.kind===172&&!(le.symbol.flags&2048||le.symbol.flags&4096)?le.symbol:de,ae),A&&Me(A,p),X=!0,B=p.length>1}}}if(E&32&&!X&&!ie&&($e(),e.getDeclarationOfKind(de,224)?pe("local class"):x.push(e.keywordPart(84)),x.push(e.spacePart()),Le(de),fn(de,fe)),E&64&&Z&2&&(Se(),x.push(e.keywordPart(118)),x.push(e.spacePart()),Le(de),fn(de,fe)),E&524288&&Z&2&&(Se(),x.push(e.keywordPart(150)),x.push(e.spacePart()),Le(de),fn(de,fe),x.push(e.spacePart()),x.push(e.operatorPart(63)),x.push(e.spacePart()),e.addRange(x,e.typeToDisplayParts(b,b.getDeclaredTypeOfSymbol(de),_,8388608))),E&384&&(Se(),e.some(de.declarations,function(Ye){return e.isEnumDeclaration(Ye)&&e.isEnumConst(Ye)})&&(x.push(e.keywordPart(85)),x.push(e.spacePart())),x.push(e.keywordPart(92)),x.push(e.spacePart()),Le(de)),E&1536&&!ie){Se();var m=e.getDeclarationOfKind(de,259),k=m&&m.name&&m.name.kind===79;x.push(e.keywordPart(k?141:140)),x.push(e.spacePart()),Le(de)}if(E&262144&&Z&2)if(Se(),x.push(e.punctuationPart(20)),x.push(e.textPart("type parameter")),x.push(e.punctuationPart(21)),x.push(e.spacePart()),Le(de),de.parent)ce(),Le(de.parent,_),fn(de.parent,_);else{var N=e.getDeclarationOfKind(de,161);if(N===void 0)return e.Debug.fail();var m=N.parent;if(m)if(e.isFunctionLikeKind(m.kind)){ce();var A=b.getSignatureFromDeclaration(m);m.kind===173?(x.push(e.keywordPart(103)),x.push(e.spacePart())):m.kind!==172&&m.name&&Le(m.symbol),e.addRange(x,e.signatureToDisplayParts(b,A,fe,32))}else m.kind===257&&(ce(),x.push(e.keywordPart(150)),x.push(e.spacePart()),Le(m.symbol),fn(m.symbol,fe))}if(E&8){ae="enum member",qe(de,"enum member");var m=(W=de.declarations)===null||W===void 0?void 0:W[0];if((m==null?void 0:m.kind)===294){var D=b.getConstantValue(m);D!==void 0&&(x.push(e.spacePart()),x.push(e.operatorPart(63)),x.push(e.spacePart()),x.push(e.displayPart(e.getTextOfConstantValue(D),typeof D=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(de.flags&2097152){if(Se(),!X){var R=b.getAliasedSymbol(de);if(R!==de&&R.declarations&&R.declarations.length>0){var me=R.declarations[0],q=e.getNameOfDeclaration(me);if(q){var J=e.isModuleWithStringLiteralName(me)&&e.hasSyntacticModifier(me,2),C=de.name!=="default"&&!J,we=O(b,R,e.getSourceFileOfNode(me),me,q,Z,C?de:R);x.push.apply(x,we.displayParts),x.push(e.lineBreakPart()),I=we.documentation,re=we.tags}else I=R.getContextualDocumentationComment(me,b),re=R.getJsDocTags(b)}}if(de.declarations)switch(de.declarations[0].kind){case 262:x.push(e.keywordPart(93)),x.push(e.spacePart()),x.push(e.keywordPart(141));break;case 269:x.push(e.keywordPart(93)),x.push(e.spacePart()),x.push(e.keywordPart(de.declarations[0].isExportEquals?63:88));break;case 273:x.push(e.keywordPart(93));break;default:x.push(e.keywordPart(100))}x.push(e.spacePart()),Le(de),e.forEach(de.declarations,function(Ye){if(Ye.kind===263){var Ne=Ye;if(e.isExternalModuleImportEqualsDeclaration(Ne))x.push(e.spacePart()),x.push(e.operatorPart(63)),x.push(e.spacePart()),x.push(e.keywordPart(144)),x.push(e.punctuationPart(20)),x.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(Ne)),e.SymbolDisplayPartKind.stringLiteral)),x.push(e.punctuationPart(21));else{var je=b.getSymbolAtLocation(Ne.moduleReference);je&&(x.push(e.spacePart()),x.push(e.operatorPart(63)),x.push(e.spacePart()),Le(je,_))}return!0}})}if(!X)if(ae!==""){if(le){if(ie?(Se(),x.push(e.keywordPart(108))):qe(de,ae),ae==="property"||ae==="JSX attribute"||E&3||ae==="local var"||ie){if(x.push(e.punctuationPart(58)),x.push(e.spacePart()),le.symbol&&le.symbol.flags&262144){var Oe=e.mapToDisplayParts(function(Ye){var Ne=b.typeParameterToDeclaration(le,_,ee);Ue().writeNode(4,Ne,e.getSourceFileOfNode(e.getParseTreeNode(_)),Ye)});e.addRange(x,Oe)}else e.addRange(x,e.typeToDisplayParts(b,le,_));if(de.target&&de.target.tupleLabelDeclaration){var te=de.target.tupleLabelDeclaration;e.Debug.assertNode(te.name,e.isIdentifier),x.push(e.spacePart()),x.push(e.punctuationPart(20)),x.push(e.textPart(e.idText(te.name))),x.push(e.punctuationPart(21))}}else if(E&16||E&8192||E&16384||E&131072||E&98304||ae==="method"){var p=le.getNonNullableType().getCallSignatures();p.length&&(Me(p[0],p),B=p.length>1)}}}else ae=Y(b,de,U);if($.length===0&&!B&&($=de.getContextualDocumentationComment(_,b)),$.length===0&&E&4&&(de.parent&&de.declarations&&e.forEach(de.parent.declarations,function(Ye){return Ye.kind===300})))for(var Te=0,be=de.declarations;Te<be.length;Te++){var m=be[Te];if(!m.parent||m.parent.kind!==219)continue;var Ce=b.getSymbolAtLocation(m.parent.right);if(!Ce)continue;if($=Ce.getDocumentationComment(b),L=Ce.getJsDocTags(b),$.length>0)break}return L.length===0&&!B&&(L=de.getJsDocTags(b)),$.length===0&&I&&($=I),L.length===0&&re&&(L=re),{displayParts:x,documentation:$,symbolKind:ae,tags:L.length===0?void 0:L};function Ue(){return P||(P=e.createPrinter({removeComments:!0})),P}function Se(){x.length&&x.push(e.lineBreakPart()),$e()}function $e(){v&&(pe("alias"),x.push(e.spacePart()))}function ce(){x.push(e.spacePart()),x.push(e.keywordPart(101)),x.push(e.spacePart())}function Le(Ye,Ne){v&&Ye===de&&(Ye=v);var je=e.symbolToDisplayParts(b,Ye,Ne||fe,void 0,1|2|4);e.addRange(x,je),de.flags&16777216&&x.push(e.punctuationPart(57))}function qe(Ye,Ne){Se(),Ne&&(pe(Ne),Ye&&!e.some(Ye.declarations,function(je){return e.isArrowFunction(je)||(e.isFunctionExpression(je)||e.isClassExpression(je))&&!je.name})&&(x.push(e.spacePart()),Le(Ye)))}function pe(Ye){switch(Ye){case"var":case"function":case"let":case"const":case"constructor":x.push(e.textOrKeywordPart(Ye));return;default:x.push(e.punctuationPart(20)),x.push(e.textOrKeywordPart(Ye)),x.push(e.punctuationPart(21));return}}function Me(Ye,Ne,je){je===void 0&&(je=0),e.addRange(x,e.signatureToDisplayParts(b,Ye,_,je|32)),Ne.length>1&&(x.push(e.spacePart()),x.push(e.punctuationPart(20)),x.push(e.operatorPart(39)),x.push(e.displayPart((Ne.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),x.push(e.spacePart()),x.push(e.textPart(Ne.length===2?"overload":"overloads")),x.push(e.punctuationPart(21))),$=Ye.getDocumentationComment(b),L=Ye.getJsDocTags(),Ne.length>1&&$.length===0&&L.length===0&&($=Ne[0].getDocumentationComment(b),L=Ne[0].getJsDocTags())}function fn(Ye,Ne){var je=e.mapToDisplayParts(function(xn){var Wn=b.symbolToTypeParameterDeclarations(Ye,Ne,ee);Ue().writeList(53776,Wn,e.getSourceFileOfNode(e.getParseTreeNode(Ne)),xn)});e.addRange(x,je)}}ue.getSymbolDisplayPartsDocumentationAndSymbolKind=O;function w(b){return b.parent?!1:e.forEach(b.declarations,function(de){if(de.kind===211)return!0;if(de.kind!==252&&de.kind!==254)return!1;for(var fe=de.parent;!e.isFunctionBlock(fe);fe=fe.parent)if(fe.kind===300||fe.kind===260)return!1;return!0})}})(s=e.SymbolDisplay||(e.SymbolDisplay={}))})(mn||(mn={}));var mn;(function(e){function s(V,ne){var _e=[],O=ne.compilerOptions?Y(ne.compilerOptions,_e):{},w=e.getDefaultCompilerOptions();for(var b in w)e.hasProperty(w,b)&&O[b]===void 0&&(O[b]=w[b]);for(var de=0,fe=e.transpileOptionValueCompilerOptions;de<fe.length;de++){var _=fe[de];O[_.name]=_.transpileOptionValue}O.suppressOutputPathCheck=!0,O.allowNonTsExtensions=!0;var U=ne.fileName||(ne.compilerOptions&&ne.compilerOptions.jsx?"module.tsx":"module.ts"),Z=e.createSourceFile(U,V,O.target);ne.moduleName&&(Z.moduleName=ne.moduleName),ne.renamedDependencies&&(Z.renamedDependencies=new e.Map(e.getEntries(ne.renamedDependencies)));var v=e.getNewLineCharacter(O),W,x,$={getSourceFile:function(E){return E===e.normalizePath(U)?Z:void 0},writeFile:function(E,ae){e.fileExtensionIs(E,".map")?(e.Debug.assertEqual(x,void 0,"Unexpected multiple source map outputs, file:",E),x=ae):(e.Debug.assertEqual(W,void 0,"Unexpected multiple outputs, file:",E),W=ae)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(E){return E},getCurrentDirectory:function(){return""},getNewLine:function(){return v},fileExists:function(E){return E===U},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},L=e.createProgram([U],O,$);return ne.reportDiagnostics&&(e.addRange(_e,L.getSyntacticDiagnostics(Z)),e.addRange(_e,L.getOptionsDiagnostics())),L.emit(void 0,void 0,void 0,void 0,ne.transformers),W===void 0?e.Debug.fail("Output generation failed"):{outputText:W,diagnostics:_e,sourceMapText:x}}e.transpileModule=s;function ue(V,ne,_e,O,w){var b=s(V,{compilerOptions:ne,fileName:_e,reportDiagnostics:!!O,moduleName:w});return e.addRange(O,b.diagnostics),b.outputText}e.transpile=ue;var ee;function Y(V,ne){ee=ee||e.filter(e.optionDeclarations,function(de){return typeof de.type=="object"&&!e.forEachEntry(de.type,function(fe){return typeof fe!="number"})}),V=e.cloneCompilerOptions(V);for(var _e=function(de){if(!e.hasProperty(V,de.name))return"continue";var fe=V[de.name];e.isString(fe)?V[de.name]=e.parseCustomTypeOption(de,fe,ne):e.forEachEntry(de.type,function(_){return _===fe})||ne.push(e.createCompilerDiagnosticForInvalidCustomType(de))},O=0,w=ee;O<w.length;O++){var b=w[O];_e(b)}return V}e.fixupCompilerOptions=Y})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(V){V[V.FormatDocument=0]="FormatDocument",V[V.FormatSelection=1]="FormatSelection",V[V.FormatOnEnter=2]="FormatOnEnter",V[V.FormatOnSemicolon=3]="FormatOnSemicolon",V[V.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",V[V.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(ee=ue.FormattingRequestKind||(ue.FormattingRequestKind={}));var Y=function(){function V(ne,_e,O){this.sourceFile=ne,this.formattingRequestKind=_e,this.options=O}return V.prototype.updateContext=function(ne,_e,O,w,b){this.currentTokenSpan=e.Debug.checkDefined(ne),this.currentTokenParent=e.Debug.checkDefined(_e),this.nextTokenSpan=e.Debug.checkDefined(O),this.nextTokenParent=e.Debug.checkDefined(w),this.contextNode=e.Debug.checkDefined(b),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},V.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},V.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},V.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var ne=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,_e=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=ne===_e}return this.tokensAreOnSameLine},V.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},V.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},V.prototype.NodeIsOnOneLine=function(ne){var _e=this.sourceFile.getLineAndCharacterOfPosition(ne.getStart(this.sourceFile)).line,O=this.sourceFile.getLineAndCharacterOfPosition(ne.getEnd()).line;return _e===O},V.prototype.BlockIsOnOneLine=function(ne){var _e=e.findChildOfKind(ne,18,this.sourceFile),O=e.findChildOfKind(ne,19,this.sourceFile);if(_e&&O){var w=this.sourceFile.getLineAndCharacterOfPosition(_e.getEnd()).line,b=this.sourceFile.getLineAndCharacterOfPosition(O.getStart(this.sourceFile)).line;return w===b}return!1},V}();ue.FormattingContext=Y})(s=e.formatting||(e.formatting={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=e.createScanner(99,!1,0),Y=e.createScanner(99,!1,1),V;(function(_e){_e[_e.Scan=0]="Scan",_e[_e.RescanGreaterThanToken=1]="RescanGreaterThanToken",_e[_e.RescanSlashToken=2]="RescanSlashToken",_e[_e.RescanTemplateToken=3]="RescanTemplateToken",_e[_e.RescanJsxIdentifier=4]="RescanJsxIdentifier",_e[_e.RescanJsxText=5]="RescanJsxText",_e[_e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(V||(V={}));function ne(_e,O,w,b,de){var fe=O===1?Y:ee;fe.setText(_e),fe.setTextPos(w);var _=!0,U,Z,v,W,x,$=de({advance:L,readTokenInfo:re,readEOFTokenRange:A,isOnToken:f,isOnEOF:F,getCurrentLeadingTrivia:function(){return U},lastTrailingTriviaWasNewLine:function(){return _},skipToEndOf:p,skipToStartOf:d});return x=void 0,fe.setText(void 0),$;function L(){x=void 0;var T=fe.getStartPos()!==w;T?_=!!Z&&e.last(Z).kind===4:fe.scan(),U=void 0,Z=void 0;for(var m=fe.getStartPos();m<b;){var k=fe.getToken();if(!e.isTrivia(k))break;fe.scan();var N={pos:m,end:fe.getStartPos(),kind:k};m=fe.getStartPos(),U=e.append(U,N)}v=fe.getStartPos()}function E(T){switch(T.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function ae(T){if(T.parent)switch(T.parent.kind){case 283:case 278:case 279:case 277:return e.isKeyword(T.kind)||T.kind===79}return!1}function X(T){return e.isJsxText(T)}function ie(T){return T.kind===13}function le(T){return T.kind===16||T.kind===17}function P(T){return T.parent&&e.isJsxAttribute(T.parent)&&T.parent.initializer===T}function I(T){return T===43||T===68}function re(T){e.Debug.assert(f());var m=E(T)?1:ie(T)?2:le(T)?3:ae(T)?4:X(T)?5:P(T)?6:0;if(x&&m===W)return g(x,T);fe.getStartPos()!==v&&(e.Debug.assert(x!==void 0),fe.setTextPos(v),fe.scan());var k=B(T,m),N=ue.createTextRangeWithKind(fe.getStartPos(),fe.getTextPos(),k);for(Z&&(Z=void 0);fe.getStartPos()<b&&!(k=fe.scan(),!e.isTrivia(k));){var D=ue.createTextRangeWithKind(fe.getStartPos(),fe.getTextPos(),k);if(Z||(Z=[]),Z.push(D),k===4){fe.scan();break}}return x={leadingTrivia:U,trailingTrivia:Z,token:N},g(x,T)}function B(T,m){var k=fe.getToken();W=0;switch(m){case 1:if(k===31){W=1;var N=fe.reScanGreaterToken();return e.Debug.assert(T.kind===N),N}break;case 2:if(I(k)){W=2;var N=fe.reScanSlashToken();return e.Debug.assert(T.kind===N),N}break;case 3:if(k===19)return W=3,fe.reScanTemplateToken(!1);break;case 4:return W=4,fe.scanJsxIdentifier();case 5:return W=5,fe.reScanJsxToken(!1);case 6:return W=6,fe.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(m)}return k}function A(){return e.Debug.assert(F()),ue.createTextRangeWithKind(fe.getStartPos(),fe.getTextPos(),1)}function f(){var T=x?x.token.kind:fe.getToken(),m=x?x.token.pos:fe.getStartPos();return m<b&&T!==1&&!e.isTrivia(T)}function F(){var T=x?x.token.kind:fe.getToken();return T===1}function g(T,m){return e.isToken(m)&&T.token.kind!==m.kind&&(T.token.kind=m.kind),T}function p(T){fe.setTextPos(T.end),v=fe.getStartPos(),W=void 0,x=void 0,_=!1,U=void 0,Z=void 0}function d(T){fe.setTextPos(T.pos),v=fe.getStartPos(),W=void 0,x=void 0,_=!1,U=void 0,Z=void 0}}ue.getFormattingScanner=ne})(s=e.formatting||(e.formatting={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){ue.anyContext=e.emptyArray;var ee;(function(V){V[V.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",V[V.StopProcessingTokenActions=2]="StopProcessingTokenActions",V[V.InsertSpace=4]="InsertSpace",V[V.InsertNewLine=8]="InsertNewLine",V[V.DeleteSpace=16]="DeleteSpace",V[V.DeleteToken=32]="DeleteToken",V[V.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",V[V.StopAction=3]="StopAction",V[V.ModifySpaceAction=28]="ModifySpaceAction",V[V.ModifyTokenAction=96]="ModifyTokenAction"})(ee=ue.RuleAction||(ue.RuleAction={}));var Y;(function(V){V[V.None=0]="None",V[V.CanDeleteNewLines=1]="CanDeleteNewLines"})(Y=ue.RuleFlags||(ue.RuleFlags={}))})(s=e.formatting||(e.formatting={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(){for(var z=[],tn=0;tn<=158;tn++)tn!==1&&z.push(tn);function $n(){for(var Vn=[],Zn=0;Zn<arguments.length;Zn++)Vn[Zn]=arguments[Zn];return{tokens:z.filter(function(Re){return!Vn.some(function(Pn){return Pn===Re})}),isSpecific:!1}}var Un={tokens:z,isSpecific:!1},oe=V(Mt(Mt([],z,!0),[3],!1)),Pe=V(Mt(Mt([],z,!0),[1],!1)),ke=_e(81,158),Qe=_e(29,78),gn=[101,102,158,127,138],xe=[45,46,54,53],Ze=[8,9,79,20,22,18,108,103],wn=[79,20,108,103],Be=[79,21,23,103],hn=[79,20,108,103],Kn=[79,21,23,103],Je=[2,3],En=Mt([79],e.typeKeywords,!0),Nn=oe,ct=V([79,3,84,93,100]),yt=V([21,3,90,111,96,91]),Gt=[Y("IgnoreBeforeComment",Un,Je,ue.anyContext,1),Y("IgnoreAfterLineComment",2,Un,ue.anyContext,1),Y("NotSpaceBeforeColon",Un,58,[C,W,x],16),Y("SpaceAfterColon",58,Un,[C,W],4),Y("NoSpaceBeforeQuestionMark",Un,57,[C,W,x],16),Y("SpaceAfterQuestionMarkInConditionalOperator",57,Un,[C,L],4),Y("NoSpaceAfterQuestionMark",57,Un,[C],16),Y("NoSpaceBeforeDot",Un,[24,28],[C],16),Y("NoSpaceAfterDot",[24,28],Un,[C],16),Y("NoSpaceBetweenImportParenInImportType",100,20,[C,J],16),Y("NoSpaceAfterUnaryPrefixOperator",xe,Ze,[C,W],16),Y("NoSpaceAfterUnaryPreincrementOperator",45,wn,[C],16),Y("NoSpaceAfterUnaryPredecrementOperator",46,hn,[C],16),Y("NoSpaceBeforeUnaryPostincrementOperator",Be,45,[C,dn],16),Y("NoSpaceBeforeUnaryPostdecrementOperator",Kn,46,[C,dn],16),Y("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[C,v],4),Y("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[C,v],4),Y("SpaceAfterAddWhenFollowedByPreincrement",39,45,[C,v],4),Y("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[C,v],4),Y("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[C,v],4),Y("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[C,v],4),Y("NoSpaceAfterCloseBrace",19,[27,26],[C],16),Y("NewLineBeforeCloseBraceInBlockContext",oe,19,[ie],8),Y("SpaceAfterCloseBrace",19,$n(21),[C,p],4),Y("SpaceBetweenCloseBraceAndElse",19,91,[C],4),Y("SpaceBetweenCloseBraceAndWhile",19,115,[C],4),Y("NoSpaceBetweenEmptyBraceBrackets",18,19,[C,T],16),Y("SpaceAfterConditionalClosingParen",21,22,[d],4),Y("NoSpaceBetweenFunctionKeywordAndStar",98,41,[f],16),Y("SpaceAfterStarInGeneratorDeclaration",41,79,[f],4),Y("SpaceAfterFunctionInFuncDecl",98,Un,[B],4),Y("NewLineAfterOpenBraceInBlockContext",18,Un,[ie],8),Y("SpaceAfterGetSetInMember",[135,147],79,[B],4),Y("NoSpaceBetweenYieldKeywordAndStar",125,41,[C,xn],16),Y("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],Un,[C,xn],4),Y("NoSpaceBetweenReturnAndSemicolon",105,26,[C],16),Y("SpaceAfterCertainKeywords",[113,109,103,89,105,112,131],Un,[C],4),Y("SpaceAfterLetConstInVariableDeclaration",[119,85],Un,[C,ce],4),Y("NoSpaceBeforeOpenParenInFuncCall",Un,20,[C,N,D],16),Y("SpaceBeforeBinaryKeywordOperator",Un,gn,[C,v],4),Y("SpaceAfterBinaryKeywordOperator",gn,Un,[C,v],4),Y("SpaceAfterVoidOperator",114,Un,[C,je],4),Y("SpaceBetweenAsyncAndOpenParen",130,20,[q,C],4),Y("SpaceBetweenAsyncAndFunctionKeyword",130,[98,79],[C],4),Y("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[C],16),Y("SpaceBeforeJsxAttribute",Un,79,[Te,C],4),Y("SpaceBeforeSlashInJsxOpeningElement",Un,43,[Ce,C],4),Y("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Ce,C],16),Y("NoSpaceBeforeEqualInJsxAttribute",Un,63,[be,C],16),Y("NoSpaceAfterEqualInJsxAttribute",63,Un,[be,C],16),Y("NoSpaceAfterModuleImport",[140,144],20,[C],16),Y("SpaceAfterCertainTypeScriptKeywords",[126,84,134,88,92,93,94,135,117,100,118,140,141,121,123,122,143,147,124,150,154,139,136],Un,[C],4),Y("SpaceBeforeCertainTypeScriptKeywords",Un,[94,117,154],[C],4),Y("SpaceAfterModuleName",10,18,[qe],4),Y("SpaceBeforeArrow",Un,38,[C],4),Y("SpaceAfterArrow",38,Un,[C],4),Y("NoSpaceAfterEllipsis",25,79,[C],16),Y("NoSpaceAfterOptionalParameters",57,[21,27],[C,W],16),Y("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[C,pe],16),Y("NoSpaceBeforeOpenAngularBracket",En,29,[C,Ye],16),Y("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[C,Ye],16),Y("NoSpaceAfterOpenAngularBracket",29,Un,[C,Ye],16),Y("NoSpaceBeforeCloseAngularBracket",Un,31,[C,Ye],16),Y("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[C,Ye,A],16),Y("SpaceBeforeAt",[21,79],59,[C],4),Y("NoSpaceAfterAt",59,Un,[C],16),Y("SpaceAfterDecorator",Un,[126,79,93,88,84,124,123,121,122,135,147,22,41],[Se],4),Y("NoSpaceBeforeNonNullAssertionOperator",Un,53,[C,Wn],16),Y("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[C,Me],16),Y("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[C],4)],$t=[Y("SpaceAfterConstructor",133,20,[w("insertSpaceAfterConstructor"),C],4),Y("NoSpaceAfterConstructor",133,20,[de("insertSpaceAfterConstructor"),C],16),Y("SpaceAfterComma",27,Un,[w("insertSpaceAfterCommaDelimiter"),C,Oe,R,me],4),Y("NoSpaceAfterComma",27,Un,[de("insertSpaceAfterCommaDelimiter"),C,Oe],16),Y("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[w("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),B],4),Y("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[de("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),B],16),Y("SpaceAfterKeywordInControl",ke,20,[w("insertSpaceAfterKeywordsInControlFlowStatements"),d],4),Y("NoSpaceAfterKeywordInControl",ke,20,[de("insertSpaceAfterKeywordsInControlFlowStatements"),d],16),Y("SpaceAfterOpenParen",20,Un,[w("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),C],4),Y("SpaceBeforeCloseParen",Un,21,[w("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),C],4),Y("SpaceBetweenOpenParens",20,20,[w("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),C],4),Y("NoSpaceBetweenParens",20,21,[C],16),Y("NoSpaceAfterOpenParen",20,Un,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),C],16),Y("NoSpaceBeforeCloseParen",Un,21,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),C],16),Y("SpaceAfterOpenBracket",22,Un,[w("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),C],4),Y("SpaceBeforeCloseBracket",Un,23,[w("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),C],4),Y("NoSpaceBetweenBrackets",22,23,[C],16),Y("NoSpaceAfterOpenBracket",22,Un,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),C],16),Y("NoSpaceBeforeCloseBracket",Un,23,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),C],16),Y("SpaceAfterOpenBrace",18,Un,[_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ae],4),Y("SpaceBeforeCloseBrace",Un,19,[_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ae],4),Y("NoSpaceBetweenEmptyBraceBrackets",18,19,[C,T],16),Y("NoSpaceAfterOpenBrace",18,Un,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),C],16),Y("NoSpaceBeforeCloseBrace",Un,19,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),C],16),Y("SpaceBetweenEmptyBraceBrackets",18,19,[w("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Y("NoSpaceBetweenEmptyBraceBrackets",18,19,[b("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),C],16),Y("SpaceAfterTemplateHeadAndMiddle",[15,16],Un,[w("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),we],4,1),Y("SpaceBeforeTemplateMiddleAndTail",Un,[16,17],[w("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),C],4),Y("NoSpaceAfterTemplateHeadAndMiddle",[15,16],Un,[de("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),we],16,1),Y("NoSpaceBeforeTemplateMiddleAndTail",Un,[16,17],[de("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),C],16),Y("SpaceAfterOpenBraceInJsxExpression",18,Un,[w("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),C,te],4),Y("SpaceBeforeCloseBraceInJsxExpression",Un,19,[w("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),C,te],4),Y("NoSpaceAfterOpenBraceInJsxExpression",18,Un,[de("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),C,te],16),Y("NoSpaceBeforeCloseBraceInJsxExpression",Un,19,[de("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),C,te],16),Y("SpaceAfterSemicolonInFor",26,Un,[w("insertSpaceAfterSemicolonInForStatements"),C,U],4),Y("NoSpaceAfterSemicolonInFor",26,Un,[de("insertSpaceAfterSemicolonInForStatements"),C,U],16),Y("SpaceBeforeBinaryOperator",Un,Qe,[w("insertSpaceBeforeAndAfterBinaryOperators"),C,v],4),Y("SpaceAfterBinaryOperator",Qe,Un,[w("insertSpaceBeforeAndAfterBinaryOperators"),C,v],4),Y("NoSpaceBeforeBinaryOperator",Un,Qe,[de("insertSpaceBeforeAndAfterBinaryOperators"),C,v],16),Y("NoSpaceAfterBinaryOperator",Qe,Un,[de("insertSpaceBeforeAndAfterBinaryOperators"),C,v],16),Y("SpaceBeforeOpenParenInFuncDecl",Un,20,[w("insertSpaceBeforeFunctionParenthesis"),C,B],4),Y("NoSpaceBeforeOpenParenInFuncDecl",Un,20,[de("insertSpaceBeforeFunctionParenthesis"),C,B],16),Y("NewLineBeforeOpenBraceInControl",yt,18,[w("placeOpenBraceOnNewLineForControlBlocks"),d,X],8,1),Y("NewLineBeforeOpenBraceInFunction",Nn,18,[w("placeOpenBraceOnNewLineForFunctions"),B,X],8,1),Y("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ct,18,[w("placeOpenBraceOnNewLineForFunctions"),F,X],8,1),Y("SpaceAfterTypeAssertion",31,Un,[w("insertSpaceAfterTypeAssertion"),C,Ne],4),Y("NoSpaceAfterTypeAssertion",31,Un,[de("insertSpaceAfterTypeAssertion"),C,Ne],16),Y("SpaceBeforeTypeAnnotation",Un,[57,58],[w("insertSpaceBeforeTypeAnnotation"),C,$],4),Y("NoSpaceBeforeTypeAnnotation",Un,[57,58],[de("insertSpaceBeforeTypeAnnotation"),C,$],16),Y("NoOptionalSemicolon",26,Pe,[O("semicolons",e.SemicolonPreference.Remove),o],32),Y("OptionalSemicolon",Un,Pe,[O("semicolons",e.SemicolonPreference.Insert),Cn],64)],Ke=[Y("NoSpaceBeforeSemicolon",Un,26,[C],16),Y("SpaceBeforeOpenBraceInControl",yt,18,[fe("placeOpenBraceOnNewLineForControlBlocks"),d,Le,E],4,1),Y("SpaceBeforeOpenBraceInFunction",Nn,18,[fe("placeOpenBraceOnNewLineForFunctions"),B,I,Le,E],4,1),Y("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ct,18,[fe("placeOpenBraceOnNewLineForFunctions"),F,Le,E],4,1),Y("NoSpaceBeforeComma",Un,27,[C],16),Y("NoSpaceBeforeOpenBracket",$n(130,82),22,[C],16),Y("NoSpaceAfterCloseBracket",23,Un,[C,Ue],16),Y("SpaceAfterSemicolon",26,Un,[C],4),Y("SpaceBetweenForAndAwaitKeyword",97,131,[C],4),Y("SpaceBetweenStatements",[21,90,91,82],Un,[C,Oe,Z],4),Y("SpaceAfterTryCatchFinally",[111,83,96],18,[C],4)];return Mt(Mt(Mt([],Gt,!0),$t,!0),Ke,!0)}ue.getAllRules=ee;function Y(z,tn,$n,Un,oe,Pe){return Pe===void 0&&(Pe=0),{leftTokenRange:ne(tn),rightTokenRange:ne($n),rule:{debugName:z,context:Un,action:oe,flags:Pe}}}function V(z){return{tokens:z,isSpecific:!0}}function ne(z){return typeof z=="number"?V([z]):e.isArray(z)?V(z):z}function _e(z,tn,$n){$n===void 0&&($n=[]);for(var Un=[],oe=z;oe<=tn;oe++)e.contains($n,oe)||Un.push(oe);return V(Un)}function O(z,tn){return function($n){return $n.options&&$n.options[z]===tn}}function w(z){return function(tn){return tn.options&&tn.options.hasOwnProperty(z)&&!!tn.options[z]}}function b(z){return function(tn){return tn.options&&tn.options.hasOwnProperty(z)&&!tn.options[z]}}function de(z){return function(tn){return!tn.options||!tn.options.hasOwnProperty(z)||!tn.options[z]}}function fe(z){return function(tn){return!tn.options||!tn.options.hasOwnProperty(z)||!tn.options[z]||tn.TokensAreOnSameLine()}}function _(z){return function(tn){return!tn.options||!tn.options.hasOwnProperty(z)||!!tn.options[z]}}function U(z){return z.contextNode.kind===240}function Z(z){return!U(z)}function v(z){switch(z.contextNode.kind){case 219:return z.contextNode.operatorToken.kind!==27;case 220:case 187:case 227:case 273:case 268:case 175:case 185:case 186:return!0;case 201:case 257:case 263:case 269:case 252:case 162:case 294:case 165:case 164:return z.currentTokenSpan.kind===63||z.nextTokenSpan.kind===63;case 241:case 161:return z.currentTokenSpan.kind===101||z.nextTokenSpan.kind===101||z.currentTokenSpan.kind===63||z.nextTokenSpan.kind===63;case 242:return z.currentTokenSpan.kind===158||z.nextTokenSpan.kind===158}return!1}function W(z){return!v(z)}function x(z){return!$(z)}function $(z){var tn=z.contextNode.kind;return tn===165||tn===164||tn===162||tn===252||e.isFunctionLikeKind(tn)}function L(z){return z.contextNode.kind===220||z.contextNode.kind===187}function E(z){return z.TokensAreOnSameLine()||I(z)}function ae(z){return z.contextNode.kind===199||z.contextNode.kind===193||le(z)}function X(z){return I(z)&&!(z.NextNodeAllOnSameLine()||z.NextNodeBlockIsOnOneLine())}function ie(z){return P(z)&&!(z.ContextNodeAllOnSameLine()||z.ContextNodeBlockIsOnOneLine())}function le(z){return P(z)&&(z.ContextNodeAllOnSameLine()||z.ContextNodeBlockIsOnOneLine())}function P(z){return re(z.contextNode)}function I(z){return re(z.nextTokenParent)}function re(z){if(g(z))return!0;switch(z.kind){case 233:case 261:case 203:case 260:return!0}return!1}function B(z){switch(z.contextNode.kind){case 254:case 167:case 166:case 170:case 171:case 172:case 211:case 169:case 212:case 256:return!0}return!1}function A(z){return!B(z)}function f(z){return z.contextNode.kind===254||z.contextNode.kind===211}function F(z){return g(z.contextNode)}function g(z){switch(z.kind){case 255:case 224:case 256:case 258:case 180:case 259:case 270:case 271:case 264:case 267:return!0}return!1}function p(z){switch(z.currentTokenParent.kind){case 255:case 259:case 258:case 290:case 260:case 247:return!0;case 233:{var tn=z.currentTokenParent.parent;if(!tn||tn.kind!==212&&tn.kind!==211)return!0}}return!1}function d(z){switch(z.contextNode.kind){case 237:case 247:case 240:case 241:case 242:case 239:case 250:case 238:case 246:case 290:return!0;default:return!1}}function T(z){return z.contextNode.kind===203}function m(z){return z.contextNode.kind===206}function k(z){return z.contextNode.kind===207}function N(z){return m(z)||k(z)}function D(z){return z.currentTokenSpan.kind!==27}function R(z){return z.nextTokenSpan.kind!==23}function me(z){return z.nextTokenSpan.kind!==21}function q(z){return z.contextNode.kind===212}function J(z){return z.contextNode.kind===198}function C(z){return z.TokensAreOnSameLine()&&z.contextNode.kind!==11}function we(z){return z.contextNode.kind!==11}function Oe(z){return z.contextNode.kind!==276&&z.contextNode.kind!==280}function te(z){return z.contextNode.kind===286||z.contextNode.kind===285}function Te(z){return z.nextTokenParent.kind===283}function be(z){return z.contextNode.kind===283}function Ce(z){return z.contextNode.kind===277}function Ue(z){return!B(z)&&!I(z)}function Se(z){return z.TokensAreOnSameLine()&&!!z.contextNode.decorators&&$e(z.currentTokenParent)&&!$e(z.nextTokenParent)}function $e(z){for(;e.isExpressionNode(z);)z=z.parent;return z.kind===163}function ce(z){return z.currentTokenParent.kind===253&&z.currentTokenParent.getStart(z.sourceFile)===z.currentTokenSpan.pos}function Le(z){return z.formattingRequestKind!==2}function qe(z){return z.contextNode.kind===259}function pe(z){return z.contextNode.kind===180}function Me(z){return z.contextNode.kind===173}function fn(z,tn){if(z.kind!==29&&z.kind!==31)return!1;switch(tn.kind){case 176:case 209:case 257:case 255:case 224:case 256:case 254:case 211:case 212:case 167:case 166:case 172:case 173:case 206:case 207:case 226:return!0;default:return!1}}function Ye(z){return fn(z.currentTokenSpan,z.currentTokenParent)||fn(z.nextTokenSpan,z.nextTokenParent)}function Ne(z){return z.contextNode.kind===209}function je(z){return z.currentTokenSpan.kind===114&&z.currentTokenParent.kind===215}function xn(z){return z.contextNode.kind===222&&z.contextNode.expression!==void 0}function Wn(z){return z.contextNode.kind===228}function dn(z){return!vn(z)}function vn(z){switch(z.contextNode.kind){case 237:case 240:case 241:case 242:case 238:case 239:return!0;default:return!1}}function o(z){var tn=z.nextTokenSpan.kind,$n=z.nextTokenSpan.pos;if(e.isTrivia(tn)){var Un=z.nextTokenParent===z.currentTokenParent?e.findNextToken(z.currentTokenParent,e.findAncestor(z.currentTokenParent,function(ke){return!ke.parent}),z.sourceFile):z.nextTokenParent.getFirstToken(z.sourceFile);if(!Un)return!0;tn=Un.kind,$n=Un.getStart(z.sourceFile)}var oe=z.sourceFile.getLineAndCharacterOfPosition(z.currentTokenSpan.pos).line,Pe=z.sourceFile.getLineAndCharacterOfPosition($n).line;return oe===Pe?tn===19||tn===1:tn===232||tn===26?!1:z.contextNode.kind===256||z.contextNode.kind===257?!e.isPropertySignature(z.currentTokenParent)||!!z.currentTokenParent.type||tn!==20:e.isPropertyDeclaration(z.currentTokenParent)?!z.currentTokenParent.initializer:z.currentTokenParent.kind!==240&&z.currentTokenParent.kind!==234&&z.currentTokenParent.kind!==232&&tn!==22&&tn!==20&&tn!==39&&tn!==40&&tn!==43&&tn!==13&&tn!==27&&tn!==221&&tn!==15&&tn!==14&&tn!==24}function Cn(z){return e.positionIsASICandidate(z.currentTokenSpan.end,z.currentTokenParent,z.sourceFile)}})(s=e.formatting||(e.formatting={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(W,x){return{options:W,getRules:V(),host:x}}ue.getFormatContext=ee;var Y;function V(){return Y===void 0&&(Y=_e(ue.getAllRules())),Y}function ne(W){var x=0;return W&1&&(x|=28),W&2&&(x|=96),W&28&&(x|=28),W&96&&(x|=96),x}function _e(W){var x=O(W);return function($){var L=x[w($.currentTokenSpan.kind,$.nextTokenSpan.kind)];if(L){for(var E=[],ae=0,X=0,ie=L;X<ie.length;X++){var le=ie[X],P=~ne(ae);le.action&P&&e.every(le.context,function(I){return I($)})&&(E.push(le),ae|=le.action)}if(E.length)return E}}}function O(W){for(var x=new Array(fe*fe),$=new Array(x.length),L=0,E=W;L<E.length;L++)for(var ae=E[L],X=ae.leftTokenRange.isSpecific&&ae.rightTokenRange.isSpecific,ie=0,le=ae.leftTokenRange.tokens;ie<le.length;ie++)for(var P=le[ie],I=0,re=ae.rightTokenRange.tokens;I<re.length;I++){var B=re[I],A=w(P,B),f=x[A];f===void 0&&(f=x[A]=[]),U(f,ae.rule,X,$,A)}return x}function w(W,x){return e.Debug.assert(W<=158&&x<=158,"Must compute formatting context from tokens"),W*fe+x}var b=5,de=31,fe=158+1,_;(function(W){W[W.StopRulesSpecific=0]="StopRulesSpecific",W[W.StopRulesAny=b*1]="StopRulesAny",W[W.ContextRulesSpecific=b*2]="ContextRulesSpecific",W[W.ContextRulesAny=b*3]="ContextRulesAny",W[W.NoContextRulesSpecific=b*4]="NoContextRulesSpecific",W[W.NoContextRulesAny=b*5]="NoContextRulesAny"})(_||(_={}));function U(W,x,$,L,E){var ae=x.action&3?$?_.StopRulesSpecific:_.StopRulesAny:x.context!==ue.anyContext?$?_.ContextRulesSpecific:_.ContextRulesAny:$?_.NoContextRulesSpecific:_.NoContextRulesAny,X=L[E]||0;W.splice(Z(X,ae),0,x),L[E]=v(X,ae)}function Z(W,x){for(var $=0,L=0;L<=x;L+=b)$+=W&de,W>>=b;return $}function v(W,x){var $=(W>>x&de)+1;return e.Debug.assert(($&de)===$,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),W&~(de<<x)|$<<x}})(s=e.formatting||(e.formatting={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(A,f,F){var g={pos:A,end:f,kind:F};return e.Debug.isDebugging&&Object.defineProperty(g,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(F)}}),g}ue.createTextRangeWithKind=ee;var Y;(function(A){A[A.Unknown=-1]="Unknown"})(Y||(Y={}));function V(A,f,F){var g=f.getLineAndCharacterOfPosition(A).line;if(g===0)return[];for(var p=e.getEndLinePosition(g,f);e.isWhiteSpaceSingleLine(f.text.charCodeAt(p));)p--;e.isLineBreak(f.text.charCodeAt(p))&&p--;var d={pos:e.getStartPositionOfLine(g-1,f),end:p+1};return L(d,f,F,2)}ue.formatOnEnter=V;function ne(A,f,F){var g=de(A,26,f);return $(fe(g),f,F,3)}ue.formatOnSemicolon=ne;function _e(A,f,F){var g=de(A,18,f);if(!g)return[];var p=g.parent,d=fe(p),T={pos:e.getLineStartPositionForPosition(d.getStart(f),f),end:A};return L(T,f,F,4)}ue.formatOnOpeningCurly=_e;function O(A,f,F){var g=de(A,19,f);return $(fe(g),f,F,5)}ue.formatOnClosingCurly=O;function w(A,f){var F={pos:0,end:A.text.length};return L(F,A,f,0)}ue.formatDocument=w;function b(A,f,F,g){var p={pos:e.getLineStartPositionForPosition(A,F),end:f};return L(p,F,g,1)}ue.formatSelection=b;function de(A,f,F){var g=e.findPrecedingToken(A,F);return g&&g.kind===f&&A===g.getEnd()?g:void 0}function fe(A){for(var f=A;f&&f.parent&&f.parent.end===A.end&&!_(f.parent,f);)f=f.parent;return f}function _(A,f){switch(A.kind){case 255:case 256:return e.rangeContainsRange(A.members,f);case 259:var F=A.body;return!!F&&F.kind===260&&e.rangeContainsRange(F.statements,f);case 300:case 233:case 260:return e.rangeContainsRange(A.statements,f);case 290:return e.rangeContainsRange(A.block.statements,f)}return!1}function U(A,f){return F(f);function F(g){var p=e.forEachChild(g,function(T){return e.startEndContainsRange(T.getStart(f),T.end,A)&&T});if(p){var d=F(p);if(d)return d}return g}}function Z(A,f){if(!A.length)return p;var F=A.filter(function(d){return e.rangeOverlapsWithStartEnd(f,d.start,d.start+d.length)}).sort(function(d,T){return d.start-T.start});if(!F.length)return p;var g=0;return function(d){for(;;){if(g>=F.length)return!1;var T=F[g];if(d.end<=T.start)return!1;if(e.startEndOverlapsWithStartEnd(d.pos,d.end,T.start,T.start+T.length))return!0;g++}};function p(){return!1}}function v(A,f,F){var g=A.getStart(F);if(g===f.pos&&A.end===f.end)return g;var p=e.findPrecedingToken(f.pos,F);return p?p.end>=f.pos?A.pos:p.end:A.pos}function W(A,f,F){for(var g=-1,p;A;){var d=F.getLineAndCharacterOfPosition(A.getStart(F)).line;if(g!==-1&&d!==g)break;if(ue.SmartIndenter.shouldIndentChildNode(f,A,p,F))return f.indentSize;g=d,p=A,A=A.parent}return 0}function x(A,f,F,g,p,d){var T={pos:0,end:f.text.length};return ue.getFormattingScanner(f.text,F,T.pos,T.end,function(m){return E(T,A,g,p,m,d,1,function(k){return!1},f)})}ue.formatNodeGivenIndentation=x;function $(A,f,F,g){if(!A)return[];var p={pos:e.getLineStartPositionForPosition(A.getStart(f),f),end:A.end};return L(p,f,F,g)}function L(A,f,F,g){var p=U(A,f);return ue.getFormattingScanner(f.text,f.languageVariant,v(p,A,f),A.end,function(d){return E(A,p,ue.SmartIndenter.getIndentationForNode(p,A,f,F.options),W(p,F.options,f),d,F,g,Z(f.parseDiagnostics,A),f)})}function E(A,f,F,g,p,d,T,m,k){var N=d.options,D=d.getRules,R=d.host,me=new ue.FormattingContext(k,T,N),q,J,C,we,Oe=-1,te=[];if(p.advance(),p.isOnToken()){var Te=k.getLineAndCharacterOfPosition(f.getStart(k)).line,be=Te;f.decorators&&(be=k.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(f,k)).line),qe(f,f,Te,be,F,g)}if(!p.isOnToken()){var Ce=ue.SmartIndenter.nodeWillIndentChild(N,f,void 0,k,!1)?F+N.indentSize:F,Ue=p.getCurrentLeadingTrivia();Ue&&pe(Ue,Ce,!1,function(Un){return fn(Un,k.getLineAndCharacterOfPosition(Un.pos),f,f,void 0)})}return N.trimTrailingWhitespace!==!1&&o(),te;function Se(Un,oe,Pe,ke,Qe){if(e.rangeOverlapsWithStartEnd(ke,Un,oe)||e.rangeContainsStartEnd(ke,Un,oe)){if(Qe!==-1)return Qe}else{var gn=k.getLineAndCharacterOfPosition(Un).line,xe=e.getLineStartPositionForPosition(Un,k),Ze=ue.SmartIndenter.findFirstNonWhitespaceColumn(xe,Un,k,N);if(gn!==Pe||Un===Ze){var wn=ue.SmartIndenter.getBaseIndentation(N);return wn>Ze?wn:Ze}}return-1}function $e(Un,oe,Pe,ke,Qe,gn){var xe=ue.SmartIndenter.shouldIndentChildNode(N,Un)?N.indentSize:0;return gn===oe?{indentation:oe===we?Oe:Qe.getIndentation(),delta:Math.min(N.indentSize,Qe.getDelta(Un)+xe)}:Pe===-1?Un.kind===20&&oe===we?{indentation:Oe,delta:Qe.getDelta(Un)}:ue.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(ke,Un,oe,k)||ue.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(ke,Un,oe,k)||ue.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(ke,Un,oe,k)?{indentation:Qe.getIndentation(),delta:xe}:{indentation:Qe.getIndentation()+Qe.getDelta(Un),delta:xe}:{indentation:Pe,delta:xe}}function ce(Un){if(Un.modifiers&&Un.modifiers.length)return Un.modifiers[0].kind;switch(Un.kind){case 255:return 84;case 256:return 118;case 254:return 98;case 258:return 258;case 170:return 135;case 171:return 147;case 167:if(Un.asteriskToken)return 41;case 165:case 162:var oe=e.getNameOfDeclaration(Un);if(oe)return oe.kind}}function Le(Un,oe,Pe,ke){return{getIndentationForComment:function(xe,Ze,wn){switch(xe){case 19:case 23:case 21:return Pe+gn(wn)}return Ze!==-1?Ze:Pe},getIndentationForToken:function(xe,Ze,wn,Be){return!Be&&Qe(xe,Ze,wn)?Pe+gn(wn):Pe},getIndentation:function(){return Pe},getDelta:gn,recomputeIndentation:function(xe,Ze){ue.SmartIndenter.shouldIndentChildNode(N,Ze,Un,k)&&(Pe+=xe?N.indentSize:-N.indentSize,ke=ue.SmartIndenter.shouldIndentChildNode(N,Un)?N.indentSize:0)}};function Qe(xe,Ze,wn){switch(Ze){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(wn.kind){case 278:case 279:case 277:case 226:return!1}break;case 22:case 23:if(wn.kind!==193)return!1;break}return oe!==xe&&!(Un.decorators&&Ze===ce(Un))}function gn(xe){return ue.SmartIndenter.nodeWillIndentChild(N,Un,xe,k,!0)?ke:0}}function qe(Un,oe,Pe,ke,Qe,gn){if(!e.rangeOverlapsWithStartEnd(A,Un.getStart(k),Un.getEnd()))return;var xe=Le(Un,Pe,Qe,gn),Ze=oe;for(e.forEachChild(Un,function(En){hn(En,-1,Un,xe,Pe,ke,!1)},function(En){Kn(En,Un,Pe,xe)});p.isOnToken();){var wn=p.readTokenInfo(Un);if(wn.token.end>Un.end)break;Je(wn,Un,xe,Un)}if(!Un.parent&&p.isOnEOF()){var Be=p.readEOFTokenRange();Be.end<=Un.end&&q&&Ye(Be,k.getLineAndCharacterOfPosition(Be.pos).line,Un,q,C,J,oe,xe)}function hn(En,Nn,ct,yt,Gt,$t,Ke,Vn){var Zn=En.getStart(k),Re=k.getLineAndCharacterOfPosition(Zn).line,Pn=Re;En.decorators&&(Pn=k.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(En,k)).line);var rt=-1;if(Ke&&e.rangeContainsRange(A,ct)&&(rt=Se(Zn,En.end,Gt,A,Nn),rt!==-1&&(Nn=rt)),!e.rangeOverlapsWithStartEnd(A,En.pos,En.end))return En.end<A.pos&&p.skipToEndOf(En),Nn;if(En.getFullWidth()===0)return Nn;for(;p.isOnToken();){var Yn=p.readTokenInfo(Un);if(Yn.token.end>Zn){Yn.token.pos>Zn&&p.skipToStartOf(En);break}Je(Yn,Un,yt,Un)}if(!p.isOnToken())return Nn;if(e.isToken(En)){var Yn=p.readTokenInfo(En);if(En.kind!==11)return e.Debug.assert(Yn.token.end===En.end,"Token end is child end"),Je(Yn,Un,yt,En),Nn}var gt=En.kind===163?Re:$t,lt=$e(En,Re,rt,Un,yt,gt);return qe(En,Ze,Re,Pn,lt.indentation,lt.delta),Ze=Un,Vn&&ct.kind===202&&Nn===-1&&(Nn=lt.indentation),Nn}function Kn(En,Nn,ct,yt){e.Debug.assert(e.isNodeArray(En));var Gt=ie(Nn,En),$t=yt,Ke=ct;if(Gt!==0)for(;p.isOnToken();){var Vn=p.readTokenInfo(Nn);if(Vn.token.end>En.pos)break;if(Vn.token.kind===Gt){Ke=k.getLineAndCharacterOfPosition(Vn.token.pos).line,Je(Vn,Nn,yt,Nn);var Zn=void 0;if(Oe!==-1)Zn=Oe;else{var Re=e.getLineStartPositionForPosition(Vn.token.pos,k);Zn=ue.SmartIndenter.findFirstNonWhitespaceColumn(Re,Vn.token.pos,k,N)}$t=Le(Nn,ct,Zn,N.indentSize)}else Je(Vn,Nn,yt,Nn)}for(var Pn=-1,rt=0;rt<En.length;rt++){var Yn=En[rt];Pn=hn(Yn,Pn,Un,$t,Ke,Ke,!0,rt===0)}var gt=le(Gt);if(gt!==0&&p.isOnToken()){var Vn=p.readTokenInfo(Nn);if(Vn.token.kind===27&&e.isCallLikeExpression(Nn)){var lt=k.getLineAndCharacterOfPosition(Vn.token.pos).line;Ke!==lt&&(p.advance(),Vn=p.isOnToken()?p.readTokenInfo(Nn):void 0)}Vn&&Vn.token.kind===gt&&e.rangeContainsRange(Nn,Vn.token)&&Je(Vn,Nn,$t,Nn,!0)}}function Je(En,Nn,ct,yt,Gt){e.Debug.assert(e.rangeContainsRange(Nn,En.token));var $t=p.lastTrailingTriviaWasNewLine(),Ke=!1;En.leadingTrivia&&Me(En.leadingTrivia,Nn,Ze,ct);var Vn=0,Zn=e.rangeContainsRange(A,En.token),Re=k.getLineAndCharacterOfPosition(En.token.pos);if(Zn){var Pn=m(En.token),rt=q;if(Vn=fn(En.token,Re,Nn,Ze,ct),!Pn)if(Vn===0){var Yn=rt&&k.getLineAndCharacterOfPosition(rt.end).line;Ke=$t&&Re.line!==Yn}else Ke=Vn===1}if(En.trailingTrivia&&Me(En.trailingTrivia,Nn,Ze,ct),Ke){var gt=Zn&&!m(En.token)?ct.getIndentationForToken(Re.line,En.token.kind,yt,!!Gt):-1,lt=!0;if(En.leadingTrivia){var Fe=ct.getIndentationForComment(En.token.kind,gt,yt);lt=pe(En.leadingTrivia,Fe,lt,function(Bn){return Ne(Bn.pos,Fe,!1)})}gt!==-1&<&&(Ne(En.token.pos,gt,Vn===1),we=Re.line,Oe=gt)}p.advance(),Ze=Nn}}function pe(Un,oe,Pe,ke){for(var Qe=0,gn=Un;Qe<gn.length;Qe++){var xe=gn[Qe],Ze=e.rangeContainsRange(A,xe);switch(xe.kind){case 3:Ze&&Wn(xe,oe,!Pe),Pe=!1;break;case 2:Pe&&Ze&&ke(xe),Pe=!1;break;case 4:Pe=!0;break}}return Pe}function Me(Un,oe,Pe,ke){for(var Qe=0,gn=Un;Qe<gn.length;Qe++){var xe=gn[Qe];if(e.isComment(xe.kind)&&e.rangeContainsRange(A,xe)){var Ze=k.getLineAndCharacterOfPosition(xe.pos);fn(xe,Ze,oe,Pe,ke)}}}function fn(Un,oe,Pe,ke,Qe){var gn=m(Un),xe=0;if(!gn)if(q)xe=Ye(Un,oe.line,Pe,q,C,J,ke,Qe);else{var Ze=k.getLineAndCharacterOfPosition(A.pos);dn(Ze.line,oe.line)}return q=Un,J=Pe,C=oe.line,xe}function Ye(Un,oe,Pe,ke,Qe,gn,xe,Ze){me.updateContext(ke,gn,Un,Pe,xe);var wn=D(me),Be=me.options.trimTrailingWhitespace!==!1,hn=0;return wn?e.forEachRight(wn,function(Kn){hn=$n(Kn,ke,Qe,Un,oe);switch(hn){case 2:Pe.getStart(k)===Un.pos&&Ze.recomputeIndentation(!1,xe);break;case 1:Pe.getStart(k)===Un.pos&&Ze.recomputeIndentation(!0,xe);break;default:e.Debug.assert(hn===0)}Be=Be&&!(Kn.action&16)&&Kn.flags!==1}):Be=Be&&Un.kind!==1,oe!==Qe&&Be&&dn(Qe,oe,ke),hn}function Ne(Un,oe,Pe){var ke=B(oe,N);if(Pe)z(Un,0,ke);else{var Qe=k.getLineAndCharacterOfPosition(Un),gn=e.getStartPositionOfLine(Qe.line,k);(oe!==je(gn,Qe.character)||xn(ke,gn))&&z(gn,Qe.character,ke)}}function je(Un,oe){for(var Pe=0,ke=0;ke<oe;ke++)k.text.charCodeAt(Un+ke)===9?Pe+=N.tabSize-Pe%N.tabSize:Pe++;return Pe}function xn(Un,oe){return Un!==k.text.substr(oe,Un.length)}function Wn(Un,oe,Pe,ke){ke===void 0&&(ke=!0);var Qe=k.getLineAndCharacterOfPosition(Un.pos).line,gn=k.getLineAndCharacterOfPosition(Un.end).line;if(Qe===gn){Pe||Ne(Un.pos,oe,!1);return}for(var xe=[],Ze=Un.pos,wn=Qe;wn<gn;wn++){var Be=e.getEndLinePosition(wn,k);xe.push({pos:Ze,end:Be}),Ze=e.getStartPositionOfLine(wn+1,k)}if(ke&&xe.push({pos:Ze,end:Un.end}),xe.length===0)return;var hn=e.getStartPositionOfLine(Qe,k),Kn=ue.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(hn,xe[0].pos,k,N),Je=0;Pe&&(Je=1,Qe++);for(var En=oe-Kn.column,Nn=Je;Nn<xe.length;Nn++,Qe++){var ct=e.getStartPositionOfLine(Qe,k),yt=Nn===0?Kn:ue.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(xe[Nn].pos,xe[Nn].end,k,N),Gt=yt.column+En;if(Gt>0){var $t=B(Gt,N);z(ct,yt.character,$t)}else Cn(ct,yt.character)}}function dn(Un,oe,Pe){for(var ke=Un;ke<oe;ke++){var Qe=e.getStartPositionOfLine(ke,k),gn=e.getEndLinePosition(ke,k);if(Pe&&(e.isComment(Pe.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(Pe.kind))&&Pe.pos<=gn&&Pe.end>gn)continue;var xe=vn(Qe,gn);xe!==-1&&(e.Debug.assert(xe===Qe||!e.isWhiteSpaceSingleLine(k.text.charCodeAt(xe-1))),Cn(xe,gn+1-xe))}}function vn(Un,oe){for(var Pe=oe;Pe>=Un&&e.isWhiteSpaceSingleLine(k.text.charCodeAt(Pe));)Pe--;return Pe!==oe?Pe+1:-1}function o(){var Un=q?q.end:A.pos,oe=k.getLineAndCharacterOfPosition(Un).line,Pe=k.getLineAndCharacterOfPosition(A.end).line;dn(oe,Pe+1,q)}function Cn(Un,oe){oe&&te.push(e.createTextChangeFromStartLength(Un,oe,""))}function z(Un,oe,Pe){(oe||Pe)&&te.push(e.createTextChangeFromStartLength(Un,oe,Pe))}function tn(Un,oe){oe&&te.push(e.createTextChangeFromStartLength(Un,0,oe))}function $n(Un,oe,Pe,ke,Qe){var gn=Qe!==Pe;switch(Un.action){case 1:return 0;case 16:if(oe.end!==ke.pos)return Cn(oe.end,ke.pos-oe.end),gn?2:0;break;case 32:Cn(oe.pos,oe.end-oe.pos);break;case 8:if(Un.flags!==1&&Pe!==Qe)return 0;var xe=Qe-Pe;if(xe!==1)return z(oe.end,ke.pos-oe.end,e.getNewLineOrDefaultFromHost(R,N)),gn?0:1;break;case 4:if(Un.flags!==1&&Pe!==Qe)return 0;var Ze=ke.pos-oe.end;if(Ze!==1||k.text.charCodeAt(oe.end)!==32)return z(oe.end,ke.pos-oe.end," "),gn?2:0;break;case 64:tn(oe.end,";")}return 0}}var ae;(function(A){A[A.None=0]="None",A[A.LineAdded=1]="LineAdded",A[A.LineRemoved=2]="LineRemoved"})(ae||(ae={}));function X(A,f,F,g){g===void 0&&(g=e.getTokenAtPosition(A,f));var p=e.findAncestor(g,e.isJSDoc);p&&(g=p.parent);var d=g.getStart(A);if(d<=f&&f<g.getEnd())return;F=F===null?void 0:F===void 0?e.findPrecedingToken(f,A):F;var T=F&&e.getTrailingCommentRanges(A.text,F.end),m=e.getLeadingCommentRangesOfNode(g,A),k=e.concatenate(T,m);return k&&e.find(k,function(N){return e.rangeContainsPositionExclusive(N,f)||f===N.end&&(N.kind===2||f===A.getFullWidth())})}ue.getRangeOfEnclosingComment=X;function ie(A,f){switch(A.kind){case 169:case 254:case 211:case 167:case 166:case 212:if(A.typeParameters===f)return 29;if(A.parameters===f)return 20;break;case 206:case 207:if(A.typeArguments===f)return 29;if(A.arguments===f)return 20;break;case 176:if(A.typeArguments===f)return 29;break;case 180:return 18}return 0}function le(A){switch(A){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var P,I,re;function B(A,f){var F=!P||P.tabSize!==f.tabSize||P.indentSize!==f.indentSize;if(F&&(P={tabSize:f.tabSize,indentSize:f.indentSize},I=re=void 0),f.convertTabsToSpaces){var T=void 0,m=Math.floor(A/f.indentSize),k=A%f.indentSize;return re||(re=[]),re[m]===void 0?(T=e.repeatString(" ",f.indentSize*m),re[m]=T):T=re[m],k?T+e.repeatString(" ",k):T}else{var g=Math.floor(A/f.tabSize),p=A-g*f.tabSize,d=void 0;return I||(I=[]),I[g]===void 0?I[g]=d=e.repeatString(" ",g):d=I[g],p?d+e.repeatString(" ",p):d}}ue.getIndentationString=B})(s=e.formatting||(e.formatting={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V;(function(m){m[m.Unknown=-1]="Unknown"})(V||(V={}));function ne(m,k,N,D){if(D===void 0&&(D=!1),m>k.text.length)return de(N);if(N.indentStyle===e.IndentStyle.None)return 0;var R=e.findPrecedingToken(m,k,void 0,!0),me=ue.getRangeOfEnclosingComment(k,m,R||null);if(me&&me.kind===3)return _e(k,m,N,me);if(!R)return de(N);var q=e.isStringOrRegularExpressionOrTemplateLiteral(R.kind);if(q&&R.getStart(k)<=m&&m<R.end)return 0;var J=k.getLineAndCharacterOfPosition(m).line;if(N.indentStyle===e.IndentStyle.Block)return O(k,m,N);if(R.kind===27&&R.parent.kind!==219){var C=U(R,k,N);if(C!==-1)return C}var we=ie(m,R.parent,k);return we&&!e.rangeContainsRange(we,R)?I(we,k,N)+N.indentSize:w(k,m,R,J,D,N)}Y.getIndentation=ne;function _e(m,k,N,D){var R=e.getLineAndCharacterOfPosition(m,k).line-1,me=e.getLineAndCharacterOfPosition(m,D.pos).line;if(e.Debug.assert(me>=0),R<=me)return F(e.getStartPositionOfLine(me,m),k,m,N);var q=e.getStartPositionOfLine(R,m),J=f(q,k,m,N),C=J.column,we=J.character;if(C===0)return C;var Oe=m.text.charCodeAt(q+we);return Oe===42?C-1:C}function O(m,k,N){for(var D=k;D>0;){var R=m.text.charCodeAt(D);if(!e.isWhiteSpaceLike(R))break;D--}var me=e.getLineStartPositionForPosition(D,m);return F(me,D,m,N)}function w(m,k,N,D,R,me){for(var q,J=N;J;){if(e.positionBelongsToNode(J,k,m)&&d(me,J,q,m,!0)){var C=x(J,m),we=W(N,J,D,m),Oe=we!==0?R&&we===2?me.indentSize:0:D!==C.line?me.indentSize:0;return fe(J,C,void 0,Oe,m,!0,me)}var te=re(J,m,me,!0);if(te!==-1)return te;q=J,J=J.parent}return de(me)}function b(m,k,N,D){var R=N.getLineAndCharacterOfPosition(m.getStart(N));return fe(m,R,k,0,N,!1,D)}Y.getIndentationForNode=b;function de(m){return m.baseIndentSize||0}Y.getBaseIndentation=de;function fe(m,k,N,D,R,me,q){for(var J,C=m.parent;C;){var we=!0;if(N){var Oe=m.getStart(R);we=Oe<N.pos||Oe>N.end}var te=_(C,m,R),Te=te.line===k.line||L(C,m,k.line,R);if(we){var be=(J=X(m,R))===null||J===void 0?void 0:J[0],Ce=!!be&&x(be,R).line>te.line,Ue=re(m,R,q,Ce);if(Ue!==-1)return Ue+D;if(Ue=Z(m,C,k,Te,R,q),Ue!==-1)return Ue+D}d(q,C,m,R,me)&&!Te&&(D+=q.indentSize);var Se=$(C,m,k.line,R);m=C,C=m.parent,k=Se?R.getLineAndCharacterOfPosition(m.getStart(R)):te}return D+de(q)}function _(m,k,N){var D=X(k,N),R=D?D.pos:m.getStart(N);return N.getLineAndCharacterOfPosition(R)}function U(m,k,N){var D=e.findListItemInfo(m);return D&&D.listItemIndex>0?B(D.list.getChildren(),D.listItemIndex-1,k,N):-1}function Z(m,k,N,D,R,me){var q=(e.isDeclaration(m)||e.isStatementButNotDeclaration(m))&&(k.kind===300||!D);return q?A(N,R,me):-1}var v;(function(m){m[m.Unknown=0]="Unknown",m[m.OpenBrace=1]="OpenBrace",m[m.CloseBrace=2]="CloseBrace"})(v||(v={}));function W(m,k,N,D){var R=e.findNextToken(m,k,D);if(!R)return 0;if(R.kind===18)return 1;if(R.kind===19){var me=x(R,D).line;return N===me?2:0}return 0}function x(m,k){return k.getLineAndCharacterOfPosition(m.getStart(k))}function $(m,k,N,D){if(!(e.isCallExpression(m)&&e.contains(m.arguments,k)))return!1;var R=m.expression.getEnd(),me=e.getLineAndCharacterOfPosition(D,R).line;return me===N}Y.isArgumentAndStartLineOverlapsExpressionBeingCalled=$;function L(m,k,N,D){if(m.kind===237&&m.elseStatement===k){var R=e.findChildOfKind(m,91,D);e.Debug.assert(R!==void 0);var me=x(R,D).line;return me===N}return!1}Y.childStartsOnTheSameLineWithElseInIfStatement=L;function E(m,k,N,D){if(e.isConditionalExpression(m)&&(k===m.whenTrue||k===m.whenFalse)){var R=e.getLineAndCharacterOfPosition(D,m.condition.end).line;if(k===m.whenTrue)return N===R;var me=x(m.whenTrue,D).line,q=e.getLineAndCharacterOfPosition(D,m.whenTrue.end).line;return R===me&&q===N}return!1}Y.childIsUnindentedBranchOfConditionalExpression=E;function ae(m,k,N,D){if(e.isCallOrNewExpression(m)){if(!m.arguments)return!1;var R=e.find(m.arguments,function(C){return C.pos===k.pos});if(!R)return!1;var me=m.arguments.indexOf(R);if(me===0)return!1;var q=m.arguments[me-1],J=e.getLineAndCharacterOfPosition(D,q.getEnd()).line;if(N===J)return!0}return!1}Y.argumentStartsOnSameLineAsPreviousArgument=ae;function X(m,k){return m.parent&&le(m.getStart(k),m.getEnd(),m.parent,k)}Y.getContainingList=X;function ie(m,k,N){return k&&le(m,m,k,N)}function le(m,k,N,D){switch(N.kind){case 176:return R(N.typeArguments);case 203:return R(N.properties);case 202:return R(N.elements);case 180:return R(N.members);case 254:case 211:case 212:case 167:case 166:case 172:case 169:case 178:case 173:return R(N.typeParameters)||R(N.parameters);case 255:case 224:case 256:case 257:case 339:return R(N.typeParameters);case 207:case 206:return R(N.typeArguments)||R(N.arguments);case 253:return R(N.declarations);case 267:case 271:return R(N.elements);case 199:case 200:return R(N.elements)}function R(me){return me&&e.rangeContainsStartEnd(P(N,me,D),m,k)?me:void 0}}function P(m,k,N){for(var D=m.getChildren(N),R=1;R<D.length-1;R++)if(D[R].pos===k.pos&&D[R].end===k.end)return{pos:D[R-1].end,end:D[R+1].getStart(N)};return k}function I(m,k,N){return m?A(k.getLineAndCharacterOfPosition(m.pos),k,N):-1}function re(m,k,N,D){if(m.parent&&m.parent.kind===253)return-1;var R=X(m,k);if(R){var me=R.indexOf(m);if(me!==-1){var q=B(R,me,k,N);if(q!==-1)return q}return I(R,k,N)+(D?N.indentSize:0)}return-1}function B(m,k,N,D){e.Debug.assert(k>=0&&k<m.length);for(var R=m[k],me=x(R,N),q=k-1;q>=0;q--){if(m[q].kind===27)continue;var J=N.getLineAndCharacterOfPosition(m[q].end).line;if(J!==me.line)return A(me,N,D);me=x(m[q],N)}return-1}function A(m,k,N){var D=k.getPositionOfLineAndCharacter(m.line,0);return F(D,D+m.character,k,N)}function f(m,k,N,D){for(var R=0,me=0,q=m;q<k;q++){var J=N.text.charCodeAt(q);if(!e.isWhiteSpaceSingleLine(J))break;J===9?me+=D.tabSize+me%D.tabSize:me++,R++}return{column:me,character:R}}Y.findFirstNonWhitespaceCharacterAndColumn=f;function F(m,k,N,D){return f(m,k,N,D).column}Y.findFirstNonWhitespaceColumn=F;function g(m,k,N,D,R){var me=N?N.kind:0;switch(k.kind){case 236:case 255:case 224:case 256:case 258:case 257:case 202:case 233:case 260:case 203:case 180:case 193:case 182:case 261:case 288:case 287:case 210:case 204:case 206:case 207:case 235:case 269:case 245:case 220:case 200:case 199:case 278:case 281:case 277:case 286:case 166:case 172:case 173:case 162:case 177:case 178:case 189:case 208:case 216:case 271:case 267:case 273:case 268:case 165:return!0;case 252:case 291:case 219:if(!m.indentMultiLineObjectLiteralBeginningOnBlankLine&&D&&me===203)return T(D,N);if(k.kind!==219)return!0;break;case 238:case 239:case 241:case 242:case 240:case 237:case 254:case 211:case 167:case 169:case 170:case 171:return me!==233;case 212:return D&&me===210?T(D,N):me!==233;case 270:return me!==271;case 264:return me!==265||!!N.namedBindings&&N.namedBindings.kind!==267;case 276:return me!==279;case 280:return me!==282;case 186:case 185:if(me===180||me===182)return!1;break}return R}Y.nodeWillIndentChild=g;function p(m,k){switch(m){case 245:case 249:case 243:case 244:return k.kind!==233;default:return!1}}function d(m,k,N,D,R){return R===void 0&&(R=!1),g(m,k,N,D,!1)&&!(R&&N&&p(N.kind,k))}Y.shouldIndentChildNode=d;function T(m,k){var N=e.skipTrivia(m.text,k.pos),D=m.getLineAndCharacterOfPosition(N).line,R=m.getLineAndCharacterOfPosition(k.end).line;return D===R}})(ee=ue.SmartIndenter||(ue.SmartIndenter={}))})(s=e.formatting||(e.formatting={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(T){var m=T.__pos;return e.Debug.assert(typeof m=="number"),m}function Y(T,m){e.Debug.assert(typeof m=="number"),T.__pos=m}function V(T){var m=T.__end;return e.Debug.assert(typeof m=="number"),m}function ne(T,m){e.Debug.assert(typeof m=="number"),T.__end=m}var _e;(function(T){T[T.Exclude=0]="Exclude",T[T.IncludeAll=1]="IncludeAll",T[T.JSDoc=2]="JSDoc",T[T.StartLine=3]="StartLine"})(_e=ue.LeadingTriviaOption||(ue.LeadingTriviaOption={}));var O;(function(T){T[T.Exclude=0]="Exclude",T[T.ExcludeWhitespace=1]="ExcludeWhitespace",T[T.Include=2]="Include"})(O=ue.TrailingTriviaOption||(ue.TrailingTriviaOption={}));function w(T,m){return e.skipTrivia(T,m,!1,!0)}function b(T,m){for(var k=m;k<T.length;){var N=T.charCodeAt(k);if(e.isWhiteSpaceSingleLine(N)){k++;continue}return N===47}return!1}var de={leadingTriviaOption:_e.Exclude,trailingTriviaOption:O.Exclude},fe;(function(T){T[T.Remove=0]="Remove",T[T.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",T[T.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",T[T.Text=3]="Text"})(fe||(fe={}));function _(T,m,k,N){return{pos:U(T,m,N),end:v(T,k,N)}}function U(T,m,k,N){var D,R;N===void 0&&(N=!1);var me=k.leadingTriviaOption;if(me===_e.Exclude)return m.getStart(T);if(me===_e.StartLine){var q=m.getStart(T),J=e.getLineStartPositionForPosition(q,T);return e.rangeContainsPosition(m,J)?J:q}if(me===_e.JSDoc){var C=e.getJSDocCommentRanges(m,T.text);if(C==null?void 0:C.length)return e.getLineStartPositionForPosition(C[0].pos,T)}var we=m.getFullStart(),Oe=m.getStart(T);if(we===Oe)return Oe;var te=e.getLineStartPositionForPosition(we,T),Te=e.getLineStartPositionForPosition(Oe,T);if(Te===te)return me===_e.IncludeAll?we:Oe;if(N){var be=((D=e.getLeadingCommentRanges(T.text,we))===null||D===void 0?void 0:D[0])||((R=e.getTrailingCommentRanges(T.text,we))===null||R===void 0?void 0:R[0]);if(be)return e.skipTrivia(T.text,be.end,!0,!0)}var Ce=we>0?1:0,Ue=e.getStartPositionOfLine(e.getLineOfLocalPosition(T,te)+Ce,T);return Ue=w(T.text,Ue),e.getStartPositionOfLine(e.getLineOfLocalPosition(T,Ue),T)}function Z(T,m,k){var N=m.end,D=k.trailingTriviaOption;if(D===O.Include){var R=e.getTrailingCommentRanges(T.text,N);if(R)for(var me=e.getLineOfLocalPosition(T,m.end),q=0,J=R;q<J.length;q++){var C=J[q];if(C.kind===2||e.getLineOfLocalPosition(T,C.pos)>me)break;var we=e.getLineOfLocalPosition(T,C.end);if(we>me)return e.skipTrivia(T.text,C.end,!0,!0)}}return}function v(T,m,k){var N,D=m.end,R=k.trailingTriviaOption;if(R===O.Exclude)return D;if(R===O.ExcludeWhitespace){var me=e.concatenate(e.getTrailingCommentRanges(T.text,D),e.getLeadingCommentRanges(T.text,D)),q=(N=me==null?void 0:me[me.length-1])===null||N===void 0?void 0:N.end;return q||D}var J=Z(T,m,k);if(J)return J;var C=e.skipTrivia(T.text,D,!0);return C!==D&&(R===O.Include||e.isLineBreak(T.text.charCodeAt(C-1)))?C:D}function W(T,m){return!!m&&!!T.parent&&(m.kind===27||m.kind===26&&T.parent.kind===203)}function x(T){return e.isFunctionExpression(T)||e.isFunctionDeclaration(T)}ue.isThisTypeAnnotatable=x;var $=function(){function T(m,k){this.newLineCharacter=m,this.formatContext=k,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return T.fromContext=function(m){return new T(e.getNewLineOrDefaultFromHost(m.host,m.formatContext.options),m.formatContext)},T.with=function(m,k){var N=T.fromContext(m);return k(N),N.getChanges()},T.prototype.pushRaw=function(m,k){e.Debug.assertEqual(m.fileName,k.fileName);for(var N=0,D=k.textChanges;N<D.length;N++){var R=D[N];this.changes.push({kind:fe.Text,sourceFile:m,text:R.newText,range:e.createTextRangeFromSpan(R.span)})}},T.prototype.deleteRange=function(m,k){this.changes.push({kind:fe.Remove,sourceFile:m,range:k})},T.prototype.delete=function(m,k){this.deletedNodes.push({sourceFile:m,node:k})},T.prototype.deleteNode=function(m,k,N){N===void 0&&(N={leadingTriviaOption:_e.IncludeAll}),this.deleteRange(m,_(m,k,k,N))},T.prototype.deleteNodes=function(m,k,N,D){N===void 0&&(N={leadingTriviaOption:_e.IncludeAll});for(var R=0,me=k;R<me.length;R++){var q=me[R],J=U(m,q,N,D),C=v(m,q,N);this.deleteRange(m,{pos:J,end:C}),D=!!Z(m,q,N)}},T.prototype.deleteModifier=function(m,k){this.deleteRange(m,{pos:k.getStart(m),end:e.skipTrivia(m.text,k.end,!0)})},T.prototype.deleteNodeRange=function(m,k,N,D){D===void 0&&(D={leadingTriviaOption:_e.IncludeAll});var R=U(m,k,D),me=v(m,N,D);this.deleteRange(m,{pos:R,end:me})},T.prototype.deleteNodeRangeExcludingEnd=function(m,k,N,D){D===void 0&&(D={leadingTriviaOption:_e.IncludeAll});var R=U(m,k,D),me=N===void 0?m.text.length:U(m,N,D);this.deleteRange(m,{pos:R,end:me})},T.prototype.replaceRange=function(m,k,N,D){D===void 0&&(D={}),this.changes.push({kind:fe.ReplaceWithSingleNode,sourceFile:m,range:k,options:D,node:N})},T.prototype.replaceNode=function(m,k,N,D){D===void 0&&(D=de),this.replaceRange(m,_(m,k,k,D),N,D)},T.prototype.replaceNodeRange=function(m,k,N,D,R){R===void 0&&(R=de),this.replaceRange(m,_(m,k,N,R),D,R)},T.prototype.replaceRangeWithNodes=function(m,k,N,D){D===void 0&&(D={}),this.changes.push({kind:fe.ReplaceWithMultipleNodes,sourceFile:m,range:k,options:D,nodes:N})},T.prototype.replaceNodeWithNodes=function(m,k,N,D){D===void 0&&(D=de),this.replaceRangeWithNodes(m,_(m,k,k,D),N,D)},T.prototype.replaceNodeWithText=function(m,k,N){this.replaceRangeWithText(m,_(m,k,k,de),N)},T.prototype.replaceNodeRangeWithNodes=function(m,k,N,D,R){R===void 0&&(R=de),this.replaceRangeWithNodes(m,_(m,k,N,R),D,R)},T.prototype.nodeHasTrailingComment=function(m,k,N){return N===void 0&&(N=de),!!Z(m,k,N)},T.prototype.nextCommaToken=function(m,k){var N=e.findNextToken(k,k.parent,m);return N&&N.kind===27?N:void 0},T.prototype.replacePropertyAssignment=function(m,k,N){var D=this.nextCommaToken(m,k)?"":","+this.newLineCharacter;this.replaceNode(m,k,N,{suffix:D})},T.prototype.insertNodeAt=function(m,k,N,D){D===void 0&&(D={}),this.replaceRange(m,e.createRange(k),N,D)},T.prototype.insertNodesAt=function(m,k,N,D){D===void 0&&(D={}),this.replaceRangeWithNodes(m,e.createRange(k),N,D)},T.prototype.insertNodeAtTopOfFile=function(m,k,N){this.insertAtTopOfFile(m,k,N)},T.prototype.insertNodesAtTopOfFile=function(m,k,N){this.insertAtTopOfFile(m,k,N)},T.prototype.insertAtTopOfFile=function(m,k,N){var D=A(m),R={prefix:D===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(m.text.charCodeAt(D))?"":this.newLineCharacter)+(N?this.newLineCharacter:"")};e.isArray(k)?this.insertNodesAt(m,D,k,R):this.insertNodeAt(m,D,k,R)},T.prototype.insertFirstParameter=function(m,k,N){var D=e.firstOrUndefined(k);D?this.insertNodeBefore(m,D,N):this.insertNodeAt(m,k.pos,N)},T.prototype.insertNodeBefore=function(m,k,N,D,R){D===void 0&&(D=!1),R===void 0&&(R={}),this.insertNodeAt(m,U(m,k,R),N,this.getOptionsForInsertNodeBefore(k,N,D))},T.prototype.insertModifierAt=function(m,k,N,D){D===void 0&&(D={}),this.insertNodeAt(m,k,e.factory.createToken(N),D)},T.prototype.insertModifierBefore=function(m,k,N){return this.insertModifierAt(m,N.getStart(m),k,{suffix:" "})},T.prototype.insertCommentBeforeLine=function(m,k,N,D){var R=e.getStartPositionOfLine(k,m),me=e.getFirstNonSpaceCharacterPosition(m.text,R),q=f(m,me),J=e.getTouchingToken(m,q?me:N),C=m.text.slice(R,me),we=(q?"":this.newLineCharacter)+"//"+D+this.newLineCharacter+C;this.insertText(m,J.getStart(m),we)},T.prototype.insertJsdocCommentBefore=function(m,k,N){var D=k.getStart(m);if(k.jsDoc)for(var R=0,me=k.jsDoc;R<me.length;R++){var q=me[R];this.deleteRange(m,{pos:e.getLineStartPositionForPosition(q.getStart(m),m),end:v(m,q,{})})}var J=e.getPrecedingNonSpaceCharacterPosition(m.text,D-1),C=m.text.slice(J,D);this.insertNodeAt(m,D,N,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+C})},T.prototype.replaceRangeWithText=function(m,k,N){this.changes.push({kind:fe.Text,sourceFile:m,range:k,text:N})},T.prototype.insertText=function(m,k,N){this.replaceRangeWithText(m,e.createRange(k),N)},T.prototype.tryInsertTypeAnnotation=function(m,k,N){var D,R;if(e.isFunctionLike(k)){if(R=e.findChildOfKind(k,21,m),!R){if(!e.isArrowFunction(k))return!1;R=e.first(k.parameters)}}else R=(D=k.kind===252?k.exclamationToken:k.questionToken)!==null&&D!==void 0?D:k.name;return this.insertNodeAt(m,R.end,N,{prefix:": "}),!0},T.prototype.tryInsertThisTypeAnnotation=function(m,k,N){var D=e.findChildOfKind(k,20,m).getStart(m)+1,R=k.parameters.length?", ":"";this.insertNodeAt(m,D,N,{prefix:"this: ",suffix:R})},T.prototype.insertTypeParameters=function(m,k,N){var D=(e.findChildOfKind(k,20,m)||e.first(k.parameters)).getStart(m);this.insertNodesAt(m,D,N,{prefix:"<",suffix:">",joiner:", "})},T.prototype.getOptionsForInsertNodeBefore=function(m,k,N){return e.isStatement(m)||e.isClassElement(m)?{suffix:N?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(m)?{suffix:", "}:e.isParameter(m)?e.isParameter(k)?{suffix:", "}:{}:e.isStringLiteral(m)&&e.isImportDeclaration(m.parent)||e.isNamedImports(m)?{suffix:", "}:e.isImportSpecifier(m)?{suffix:","+(N?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(m)},T.prototype.insertNodeAtConstructorStart=function(m,k,N){var D=e.firstOrUndefined(k.body.statements);!D||!k.body.multiLine?this.replaceConstructorBody(m,k,Mt([N],k.body.statements,!0)):this.insertNodeBefore(m,D,N)},T.prototype.insertNodeAtConstructorStartAfterSuperCall=function(m,k,N){var D=e.find(k.body.statements,function(R){return e.isExpressionStatement(R)&&e.isSuperCall(R.expression)});!D||!k.body.multiLine?this.replaceConstructorBody(m,k,Mt(Mt([],k.body.statements,!0),[N],!1)):this.insertNodeAfter(m,D,N)},T.prototype.insertNodeAtConstructorEnd=function(m,k,N){var D=e.lastOrUndefined(k.body.statements);!D||!k.body.multiLine?this.replaceConstructorBody(m,k,Mt(Mt([],k.body.statements,!0),[N],!1)):this.insertNodeAfter(m,D,N)},T.prototype.replaceConstructorBody=function(m,k,N){this.replaceNode(m,k.body,e.factory.createBlock(N,!0))},T.prototype.insertNodeAtEndOfScope=function(m,k,N){var D=U(m,k.getLastToken(),{});this.insertNodeAt(m,D,N,{prefix:e.isLineBreak(m.text.charCodeAt(k.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},T.prototype.insertNodeAtClassStart=function(m,k,N){this.insertNodeAtStartWorker(m,k,N)},T.prototype.insertNodeAtObjectStart=function(m,k,N){this.insertNodeAtStartWorker(m,k,N)},T.prototype.insertNodeAtStartWorker=function(m,k,N){var D,R=(D=this.guessIndentationFromExistingMembers(m,k))!==null&&D!==void 0?D:this.computeIndentationForNewMember(m,k);this.insertNodeAt(m,ae(k).pos,N,this.getInsertNodeAtStartInsertOptions(m,k,R))},T.prototype.guessIndentationFromExistingMembers=function(m,k){for(var N,D=k,R=0,me=ae(k);R<me.length;R++){var q=me[R];if(e.rangeStartPositionsAreOnSameLine(D,q,m))return;var J=q.getStart(m),C=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(J,m),J,m,this.formatContext.options);if(N===void 0)N=C;else if(C!==N)return;D=q}return N},T.prototype.computeIndentationForNewMember=function(m,k){var N,D=k.getStart(m);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(D,m),D,m,this.formatContext.options)+((N=this.formatContext.options.indentSize)!==null&&N!==void 0?N:4)},T.prototype.getInsertNodeAtStartInsertOptions=function(m,k,N){var D=ae(k),R=D.length===0,me=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(k),{node:k,sourceFile:m}),q=e.isObjectLiteralExpression(k)&&(!e.isJsonSourceFile(m)||!R),J=e.isObjectLiteralExpression(k)&&e.isJsonSourceFile(m)&&R&&!me;return{indentation:N,prefix:(J?",":"")+this.newLineCharacter,suffix:q?",":""}},T.prototype.insertNodeAfterComma=function(m,k,N){var D=this.insertNodeAfterWorker(m,this.nextCommaToken(m,k)||k,N);this.insertNodeAt(m,D,N,this.getInsertNodeAfterOptions(m,k))},T.prototype.insertNodeAfter=function(m,k,N){var D=this.insertNodeAfterWorker(m,k,N);this.insertNodeAt(m,D,N,this.getInsertNodeAfterOptions(m,k))},T.prototype.insertNodeAtEndOfList=function(m,k,N){this.insertNodeAt(m,k.end,N,{prefix:", "})},T.prototype.insertNodesAfter=function(m,k,N){var D=this.insertNodeAfterWorker(m,k,e.first(N));this.insertNodesAt(m,D,N,this.getInsertNodeAfterOptions(m,k))},T.prototype.insertNodeAfterWorker=function(m,k,N){F(k,N)&&(m.text.charCodeAt(k.end-1)!==59&&this.replaceRange(m,e.createRange(k.end),e.factory.createToken(26)));var D=v(m,k,{});return D},T.prototype.getInsertNodeAfterOptions=function(m,k){var N=this.getInsertNodeAfterOptionsWorker(k);return pr(pr({},N),{prefix:k.end===m.end&&e.isStatement(k)?N.prefix?`
|
|
|
`+N.prefix:`
|
|
|
`:N.prefix})},T.prototype.getInsertNodeAfterOptionsWorker=function(m){switch(m.kind){case 255:case 259:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 252:case 10:case 79:return{prefix:", "};case 291:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 162:return{};default:return e.Debug.assert(e.isStatement(m)||e.isClassOrTypeElement(m)),{suffix:this.newLineCharacter}}},T.prototype.insertName=function(m,k,N){if(e.Debug.assert(!k.name),k.kind===212){var D=e.findChildOfKind(k,38,m),R=e.findChildOfKind(k,20,m);R?(this.insertNodesAt(m,R.getStart(m),[e.factory.createToken(98),e.factory.createIdentifier(N)],{joiner:" "}),p(this,m,D)):(this.insertText(m,e.first(k.parameters).getStart(m),"function "+N+"("),this.replaceRange(m,D,e.factory.createToken(21))),k.body.kind!==233&&(this.insertNodesAt(m,k.body.getStart(m),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(m,k.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var me=e.findChildOfKind(k,k.kind===211?98:84,m).end;this.insertNodeAt(m,me,e.factory.createIdentifier(N),{prefix:" "})}},T.prototype.insertExportModifier=function(m,k){this.insertText(m,k.getStart(m),"export ")},T.prototype.insertNodeInListAfter=function(m,k,N,D){if(D===void 0&&(D=e.formatting.SmartIndenter.getContainingList(k,m)),!D){e.Debug.fail("node is not a list element");return}var R=e.indexOfNode(D,k);if(R<0)return;var me=k.getEnd();if(R!==D.length-1){var q=e.getTokenAtPosition(m,k.end);if(q&&W(k,q)){var J=D[R+1],C=w(m.text,J.getFullStart()),we=""+e.tokenToString(q.kind)+m.text.substring(q.end,C);this.insertNodesAt(m,C,[N],{suffix:we})}}else{var Oe=k.getStart(m),te=e.getLineStartPositionForPosition(Oe,m),Te=void 0,be=!1;if(D.length===1)Te=27;else{var Ce=e.findPrecedingToken(k.pos,m);Te=W(k,Ce)?Ce.kind:27;var Ue=e.getLineStartPositionForPosition(D[R-1].getStart(m),m);be=Ue!==te}if(b(m.text,k.end)&&(be=!0),be){this.replaceRange(m,e.createRange(me),e.factory.createToken(Te));for(var Se=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(te,Oe,m,this.formatContext.options),$e=e.skipTrivia(m.text,me,!0,!1);$e!==me&&e.isLineBreak(m.text.charCodeAt($e-1));)$e--;this.replaceRange(m,e.createRange($e),N,{indentation:Se,prefix:this.newLineCharacter})}else this.replaceRange(m,e.createRange(me),N,{prefix:e.tokenToString(Te)+" "})}},T.prototype.parenthesizeExpression=function(m,k){this.replaceRange(m,e.rangeOfNode(k),e.factory.createParenthesizedExpression(k))},T.prototype.finishClassesWithNodesInsertedAtStart=function(){var m=this;this.classesWithNodesInsertedAtStart.forEach(function(k){var N=k.node,D=k.sourceFile,R=E(N,D),me=R[0],q=R[1];if(me!==void 0&&q!==void 0){var J=ae(N).length===0,C=e.positionsAreOnSameLine(me,q,D);J&&C&&me!==q-1&&m.deleteRange(D,e.createRange(me,q-1)),C&&m.insertText(D,q-1,m.newLineCharacter)}})},T.prototype.finishDeleteDeclarations=function(){for(var m=this,k=new e.Set,N=function(we,Oe){D.deletedNodes.some(function(te){return te.sourceFile===we&&e.rangeContainsRangeExclusive(te.node,Oe)})||(e.isArray(Oe)?D.deleteRange(we,e.rangeOfTypeParameters(we,Oe)):g.deleteDeclaration(D,k,we,Oe))},D=this,R=0,me=this.deletedNodes;R<me.length;R++){var q=me[R],J=q.sourceFile,C=q.node;N(J,C)}k.forEach(function(we){var Oe=we.getSourceFile(),te=e.formatting.SmartIndenter.getContainingList(we,Oe);if(we!==e.last(te))return;var Te=e.findLastIndex(te,function(be){return!k.has(be)},te.length-2);Te!==-1&&m.deleteRange(Oe,{pos:te[Te].end,end:L(Oe,te[Te+1])})})},T.prototype.getChanges=function(m){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var k=ie.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,m),N=0,D=this.newFiles;N<D.length;N++){var R=D[N],me=R.oldFile,q=R.fileName,J=R.statements;k.push(ie.newFileChanges(me,q,J,this.newLineCharacter,this.formatContext))}return k},T.prototype.createNewFile=function(m,k,N){this.newFiles.push({oldFile:m,fileName:k,statements:N})},T}();ue.ChangeTracker=$;function L(T,m){return e.skipTrivia(T.text,U(T,m,{leadingTriviaOption:_e.IncludeAll}),!1,!0)}function E(T,m){var k=e.findChildOfKind(T,18,m),N=e.findChildOfKind(T,19,m);return[k==null?void 0:k.end,N==null?void 0:N.end]}function ae(T){return e.isObjectLiteralExpression(T)?T.properties:T.members}function X(T,m,k,N){return ie.newFileChangesWorker(void 0,m,T,k,N)}ue.getNewFileText=X;var ie;(function(T){function m(J,C,we,Oe){return e.mapDefined(e.group(J,function(te){return te.sourceFile.path}),function(te){for(var Te=te[0].sourceFile,be=e.stableSort(te,function($e,ce){return $e.range.pos-ce.range.pos||$e.range.end-ce.range.end}),Ce=function($e){e.Debug.assert(be[$e].range.end<=be[$e+1].range.pos,"Changes overlap",function(){return JSON.stringify(be[$e].range)+" and "+JSON.stringify(be[$e+1].range)})},Ue=0;Ue<be.length-1;Ue++)Ce(Ue);var Se=e.mapDefined(be,function($e){var ce=e.createTextSpanFromRange($e.range),Le=D($e,Te,C,we,Oe);return ce.length===Le.length&&e.stringContainsAt(Te.text,Le,ce.start)?void 0:e.createTextChange(ce,Le)});return Se.length>0?{fileName:Te.fileName,textChanges:Se}:void 0})}T.getTextChangesFromChanges=m;function k(J,C,we,Oe,te){var Te=N(J,e.getScriptKindFromFileName(C),we,Oe,te);return{fileName:C,textChanges:[e.createTextChange(e.createTextSpan(0,0),Te)],isNewFile:!0}}T.newFileChanges=k;function N(J,C,we,Oe,te){var Te=we.map(function(Ue){return Ue===4?"":q(Ue,J,Oe).text}).join(Oe),be=e.createSourceFile("any file name",Te,99,!0,C),Ce=e.formatting.formatDocument(be,te);return le(Te,Ce)+Oe}T.newFileChangesWorker=N;function D(J,C,we,Oe,te){var Te;if(J.kind===fe.Remove)return"";if(J.kind===fe.Text)return J.text;var be=J.options,Ce=be===void 0?{}:be,Ue=J.range.pos,Se=function(Le){return me(Le,C,Ue,Ce,we,Oe,te)},$e=J.kind===fe.ReplaceWithMultipleNodes?J.nodes.map(function(Le){return e.removeSuffix(Se(Le),we)}).join(((Te=J.options)===null||Te===void 0?void 0:Te.joiner)||we):Se(J.node),ce=Ce.preserveLeadingWhitespace||Ce.indentation!==void 0||e.getLineStartPositionForPosition(Ue,C)===Ue?$e:$e.replace(/^\s+/,"");return(Ce.prefix||"")+ce+(!Ce.suffix||e.endsWith(ce,Ce.suffix)?"":Ce.suffix)}function R(J,C){var we=J.options,Oe=!we.semicolons||we.semicolons===e.SemicolonPreference.Ignore,te=we.semicolons===e.SemicolonPreference.Remove||Oe&&!e.probablyUsesSemicolons(C);return pr(pr({},we),{semicolons:te?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function me(J,C,we,Oe,te,Te,be){var Ce=Oe.indentation,Ue=Oe.prefix,Se=Oe.delta,$e=q(J,C,te),ce=$e.node,Le=$e.text;be&&be(ce,Le);var qe=R(Te,C),pe=Ce!==void 0?Ce:e.formatting.SmartIndenter.getIndentation(we,C,qe,Ue===te||e.getLineStartPositionForPosition(we,C)===we);Se===void 0&&(Se=e.formatting.SmartIndenter.shouldIndentChildNode(qe,J)&&qe.indentSize||0);var Me={text:Le,getLineAndCharacterOfPosition:function(Ye){return e.getLineAndCharacterOfPosition(this,Ye)}},fn=e.formatting.formatNodeGivenIndentation(ce,Me,C.languageVariant,pe,Se,pr(pr({},Te),{options:qe}));return le(Le,fn)}function q(J,C,we){var Oe=B(we),te=we===`
|
|
|
`?1:0;return e.createPrinter({newLine:te,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},Oe).writeNode(4,J,C,Oe),{text:Oe.getText(),node:I(J)}}T.getNonformattedText=q})(ie||(ie={}));function le(T,m){for(var k=m.length-1;k>=0;k--){var N=m[k],D=N.span,R=N.newText;T=""+T.substring(0,D.start)+R+T.substring(e.textSpanEnd(D))}return T}ue.applyChanges=le;function P(T){return e.skipTrivia(T,0)===T.length}function I(T){var m=e.visitEachChild(T,I,e.nullTransformationContext,re,I),k=e.nodeIsSynthesized(m)?m:Object.create(m);return e.setTextRangePosEnd(k,ee(T),V(T)),k}function re(T,m,k,N,D){var R=e.visitNodes(T,m,k,N,D);if(!R)return R;var me=R===T?e.factory.createNodeArray(R.slice(0)):R;return e.setTextRangePosEnd(me,ee(T),V(T)),me}function B(T){var m=0,k=e.createTextWriter(T),N=function(Cn){Cn&&Y(Cn,m)},D=function(Cn){Cn&&ne(Cn,m)},R=function(Cn){Cn&&Y(Cn,m)},me=function(Cn){Cn&&ne(Cn,m)},q=function(Cn){Cn&&Y(Cn,m)},J=function(Cn){Cn&&ne(Cn,m)};function C(Cn,z){if(z||!P(Cn)){m=k.getTextPos();for(var tn=0;e.isWhiteSpaceLike(Cn.charCodeAt(Cn.length-tn-1));)tn++;m-=tn}}function we(Cn){k.write(Cn),C(Cn,!1)}function Oe(Cn){k.writeComment(Cn)}function te(Cn){k.writeKeyword(Cn),C(Cn,!1)}function Te(Cn){k.writeOperator(Cn),C(Cn,!1)}function be(Cn){k.writePunctuation(Cn),C(Cn,!1)}function Ce(Cn){k.writeTrailingSemicolon(Cn),C(Cn,!1)}function Ue(Cn){k.writeParameter(Cn),C(Cn,!1)}function Se(Cn){k.writeProperty(Cn),C(Cn,!1)}function $e(Cn){k.writeSpace(Cn),C(Cn,!1)}function ce(Cn){k.writeStringLiteral(Cn),C(Cn,!1)}function Le(Cn,z){k.writeSymbol(Cn,z),C(Cn,!1)}function qe(Cn){k.writeLine(Cn)}function pe(){k.increaseIndent()}function Me(){k.decreaseIndent()}function fn(){return k.getText()}function Ye(Cn){k.rawWrite(Cn),C(Cn,!1)}function Ne(Cn){k.writeLiteral(Cn),C(Cn,!0)}function je(){return k.getTextPos()}function xn(){return k.getLine()}function Wn(){return k.getColumn()}function dn(){return k.getIndent()}function vn(){return k.isAtStartOfLine()}function o(){k.clear(),m=0}return{onBeforeEmitNode:N,onAfterEmitNode:D,onBeforeEmitNodeArray:R,onAfterEmitNodeArray:me,onBeforeEmitToken:q,onAfterEmitToken:J,write:we,writeComment:Oe,writeKeyword:te,writeOperator:Te,writePunctuation:be,writeTrailingSemicolon:Ce,writeParameter:Ue,writeProperty:Se,writeSpace:$e,writeStringLiteral:ce,writeSymbol:Le,writeLine:qe,increaseIndent:pe,decreaseIndent:Me,getText:fn,rawWrite:Ye,writeLiteral:Ne,getTextPos:je,getLine:xn,getColumn:Wn,getIndent:dn,isAtStartOfLine:vn,hasTrailingComment:function(){return k.hasTrailingComment()},hasTrailingWhitespace:function(){return k.hasTrailingWhitespace()},clear:o}}function A(T){for(var m,k=0,N=T.statements;k<N.length;k++){var D=N[k];if(e.isPrologueDirective(D))m=D;else break}var R=0,me=T.text;if(m)return R=m.end,Se(),R;var q=e.getShebang(me);q!==void 0&&(R=q.length,Se());var J=e.getLeadingCommentRanges(me,R);if(!J)return R;for(var C,we,Oe=0,te=J;Oe<te.length;Oe++){var Te=te[Oe];if(Te.kind===3){if(e.isPinnedComment(me,Te.pos)){C={range:Te,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(me,Te.pos,Te.end)){C={range:Te,pinnedOrTripleSlash:!0};continue}if(C){if(C.pinnedOrTripleSlash)break;var be=T.getLineAndCharacterOfPosition(Te.pos).line,Ce=T.getLineAndCharacterOfPosition(C.range.end).line;if(be>=Ce+2)break}if(T.statements.length){we===void 0&&(we=T.getLineAndCharacterOfPosition(T.statements[0].getStart()).line);var Ue=T.getLineAndCharacterOfPosition(Te.end).line;if(we<Ue+2)break}C={range:Te,pinnedOrTripleSlash:!1}}return C&&(R=C.range.end,Se()),R;function Se(){if(R<me.length){var $e=me.charCodeAt(R);e.isLineBreak($e)&&(R++,R<me.length&&$e===13&&me.charCodeAt(R)===10&&R++)}}}function f(T,m){return!e.isInComment(T,m)&&!e.isInString(T,m)&&!e.isInTemplateString(T,m)&&!e.isInJSXText(T,m)}ue.isValidLocationToAddComment=f;function F(T,m){return(e.isPropertySignature(T)||e.isPropertyDeclaration(T))&&e.isClassOrTypeElement(m)&&m.name.kind===160||e.isStatementButNotDeclaration(T)&&e.isStatementButNotDeclaration(m)}var g;(function(T){function m(R,me,q,J){switch(J.kind){case 162:{var C=J.parent;e.isArrowFunction(C)&&C.parameters.length===1&&!e.findChildOfKind(C,20,q)?R.replaceNodeWithText(q,J,"()"):d(R,me,q,J);break}case 264:case 263:var we=q.imports.length&&J===e.first(q.imports).parent||J===e.find(q.statements,e.isAnyImportSyntax);p(R,q,J,{leadingTriviaOption:we?_e.Exclude:e.hasJSDocNodes(J)?_e.JSDoc:_e.StartLine});break;case 201:var Oe=J.parent,te=Oe.kind===200&&J!==e.last(Oe.elements);te?p(R,q,J):d(R,me,q,J);break;case 252:D(R,me,q,J);break;case 161:d(R,me,q,J);break;case 268:var Te=J.parent;Te.elements.length===1?N(R,q,Te):d(R,me,q,J);break;case 266:N(R,q,J);break;case 26:p(R,q,J,{trailingTriviaOption:O.Exclude});break;case 98:p(R,q,J,{leadingTriviaOption:_e.Exclude});break;case 255:case 254:p(R,q,J,{leadingTriviaOption:e.hasJSDocNodes(J)?_e.JSDoc:_e.StartLine});break;default:J.parent?e.isImportClause(J.parent)&&J.parent.name===J?k(R,q,J.parent):e.isCallExpression(J.parent)&&e.contains(J.parent.arguments,J)?d(R,me,q,J):p(R,q,J):p(R,q,J)}}T.deleteDeclaration=m;function k(R,me,q){if(!q.namedBindings)p(R,me,q.parent);else{var J=q.name.getStart(me),C=e.getTokenAtPosition(me,q.name.end);if(C&&C.kind===27){var we=e.skipTrivia(me.text,C.end,!1,!0);R.deleteRange(me,{pos:J,end:we})}else p(R,me,q.name)}}function N(R,me,q){if(q.parent.name){var J=e.Debug.checkDefined(e.getTokenAtPosition(me,q.pos-1));R.deleteRange(me,{pos:J.getStart(me),end:q.end})}else{var C=e.getAncestor(q,264);p(R,me,C)}}function D(R,me,q,J){var C=J.parent;if(C.kind===290){R.deleteNodeRange(q,e.findChildOfKind(C,20,q),e.findChildOfKind(C,21,q));return}if(C.declarations.length!==1){d(R,me,q,J);return}var we=C.parent;switch(we.kind){case 242:case 241:R.replaceNode(q,J,e.factory.createObjectLiteralExpression());break;case 240:p(R,q,C);break;case 235:p(R,q,we,{leadingTriviaOption:e.hasJSDocNodes(we)?_e.JSDoc:_e.StartLine});break;default:e.Debug.assertNever(we)}}})(g||(g={}));function p(T,m,k,N){N===void 0&&(N={leadingTriviaOption:_e.IncludeAll});var D=U(m,k,N),R=v(m,k,N);T.deleteRange(m,{pos:D,end:R})}ue.deleteNode=p;function d(T,m,k,N){var D=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(N,k)),R=e.indexOfNode(D,N);if(e.Debug.assert(R!==-1),D.length===1){p(T,k,N);return}e.Debug.assert(!m.has(N),"Deleting a node twice"),m.add(N),T.deleteRange(k,{pos:L(k,N),end:R===D.length-1?v(k,N,{}):L(k,D[R+1])})}})(s=e.textChanges||(e.textChanges={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=e.createMultiMap(),Y=new e.Map;function V(L){return e.isArray(L)?e.formatStringFromArgs(e.getLocaleSpecificMessage(L[0]),L.slice(1)):e.getLocaleSpecificMessage(L)}function ne(L,E,ae){return w(L,V(ae),E,void 0,void 0)}ue.createCodeFixActionWithoutFixAll=ne;function _e(L,E,ae,X,ie,le){return w(L,V(ae),E,X,V(ie),le)}ue.createCodeFixAction=_e;function O(L,E,ae,X,ie,le){return w(L,V(ae),E,X,ie&&V(ie),le)}ue.createCodeFixActionMaybeFixAll=O;function w(L,E,ae,X,ie,le){return{fixName:L,description:E,changes:ae,fixId:X,fixAllDescription:ie,commands:le?[le]:void 0}}function b(L){for(var E=0,ae=L.errorCodes;E<ae.length;E++){var X=ae[E];ee.add(String(X),L)}if(L.fixIds)for(var ie=0,le=L.fixIds;ie<le.length;ie++){var P=le[ie];e.Debug.assert(!Y.has(P)),Y.set(P,L)}}ue.registerCodeFix=b;function de(){return e.arrayFrom(ee.keys())}ue.getSupportedErrorCodes=de;function fe(L,E){for(var ae=L.errorCodes,X=0,ie=0,le=E;ie<le.length;ie++){var P=le[ie];if(e.contains(ae,P.code)&&X++,X>1)break}var I=X<2;return function(re){var B=re.fixId,A=re.fixAllDescription,f=Yo(re,["fixId","fixAllDescription"]);return I?f:pr(pr({},f),{fixId:B,fixAllDescription:A})}}function _(L){var E=$(L),ae=ee.get(String(L.errorCode));return e.flatMap(ae,function(X){return e.map(X.getCodeActions(L),fe(X,E))})}ue.getFixes=_;function U(L){return Y.get(e.cast(L.fixId,e.isString)).getAllCodeActions(L)}ue.getAllFixes=U;function Z(L,E){return{changes:L,commands:E}}ue.createCombinedCodeActions=Z;function v(L,E){return{fileName:L,textChanges:E}}ue.createFileTextChanges=v;function W(L,E,ae){var X=[],ie=e.textChanges.ChangeTracker.with(L,function(le){return x(L,E,function(P){return ae(le,P,X)})});return Z(ie,X.length===0?void 0:X)}ue.codeFixAll=W;function x(L,E,ae){for(var X=0,ie=$(L);X<ie.length;X++){var le=ie[X];e.contains(E,le.code)&&ae(le)}}ue.eachDiagnostic=x;function $(L){var E=L.program,ae=L.sourceFile,X=L.cancellationToken;return Mt(Mt(Mt([],E.getSemanticDiagnostics(ae,X),!0),E.getSyntacticDiagnostics(ae,X),!0),e.computeSuggestionDiagnostics(ae,E,X),!0)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=new e.Map;function Y(_e,O){ee.set(_e,O)}ue.registerRefactor=Y;function V(_e){return e.arrayFrom(e.flatMapIterator(ee.values(),function(O){var w;return _e.cancellationToken&&_e.cancellationToken.isCancellationRequested()||!((w=O.kinds)===null||w===void 0?void 0:w.some(function(b){return ue.refactorKindBeginsWith(b,_e.kind)}))?void 0:O.getAvailableActions(_e)}))}ue.getApplicableRefactors=V;function ne(_e,O,w){var b=ee.get(O);return b&&b.getEditsForAction(_e,w)}ue.getEditsForRefactor=ne})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addConvertToUnknownForNonOverlappingTypes",Y=[e.Diagnostics.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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=e.textChanges.ChangeTracker.with(ne,function(O){return V(O,ne.sourceFile,ne.span.start)});return[ue.createCodeFixAction(ee,_e,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,ee,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e,O){return V(_e,O.file,O.start)})}});function V(ne,_e,O){var w=e.getTokenAtPosition(_e,O),b=e.Debug.checkDefined(e.findAncestor(w,function(fe){return e.isAsExpression(fe)||e.isTypeAssertionExpression(fe)}),"Expected to find an assertion expression"),de=e.isAsExpression(b)?e.factory.createAsExpression(b.expression,e.factory.createKeywordTypeNode(153)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(153),b.expression);ne.replaceNode(_e,b.expression,de)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){ue.registerCodeFix({errorCodes:[e.Diagnostics.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,e.Diagnostics.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(ee){var Y=ee.sourceFile,V=e.textChanges.ChangeTracker.with(ee,function(ne){var _e=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);ne.insertNodeAtEndOfScope(Y,Y,_e)});return[ue.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",V,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addMissingAsync",Y=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];ue.registerCodeFix({fixIds:[ee],errorCodes:Y,getCodeActions:function(w){var b=w.sourceFile,de=w.errorCode,fe=w.cancellationToken,_=w.program,U=w.span,Z=e.find(_.getDiagnosticsProducingTypeChecker().getDiagnostics(b,fe),O(U,de)),v=Z&&Z.relatedInformation&&e.find(Z.relatedInformation,function($){return $.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),W=_e(b,v);if(!W)return;var x=function($){return e.textChanges.ChangeTracker.with(w,$)};return[V(w,W,x)]},getAllCodeActions:function(w){var b=w.sourceFile,de=new e.Set;return ue.codeFixAll(w,Y,function(fe,_){var U=_.relatedInformation&&e.find(_.relatedInformation,function(W){return W.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),Z=_e(b,U);if(!Z)return;var v=function(W){return W(fe),[]};return V(w,Z,v,de)})}});function V(w,b,de,fe){var _=de(function(U){return ne(U,w.sourceFile,b,fe)});return ue.createCodeFixAction(ee,_,e.Diagnostics.Add_async_modifier_to_containing_function,ee,e.Diagnostics.Add_all_missing_async_modifiers)}function ne(w,b,de,fe){if(fe&&fe.has(e.getNodeId(de)))return;fe==null||fe.add(e.getNodeId(de));var _=e.factory.updateModifiers(e.getSynthesizedDeepClone(de,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(de)|256)));w.replaceNode(b,de,_)}function _e(w,b){if(!b)return;var de=e.getTokenAtPosition(w,b.start),fe=e.findAncestor(de,function(_){return _.getStart(w)<b.start||_.getEnd()>e.textSpanEnd(b)?"quit":(e.isArrowFunction(_)||e.isMethodDeclaration(_)||e.isFunctionExpression(_)||e.isFunctionDeclaration(_))&&e.textSpansEqual(b,e.createTextSpanFromNode(_,w))});return fe}function O(w,b){return function(de){var fe=de.start,_=de.length,U=de.relatedInformation,Z=de.code;return e.isNumber(fe)&&e.isNumber(_)&&e.textSpansEqual({start:fe,length:_},w)&&Z===b&&!!U&&e.some(U,function(v){return v.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addMissingAwait",Y=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,V=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],ne=Mt([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Y],V,!0);ue.registerCodeFix({fixIds:[ee],errorCodes:ne,getCodeActions:function(W){var x=W.sourceFile,$=W.errorCode,L=W.span,E=W.cancellationToken,ae=W.program,X=b(x,$,L,E,ae);if(!X)return;var ie=W.program.getTypeChecker(),le=function(P){return e.textChanges.ChangeTracker.with(W,P)};return e.compact([_e(W,X,$,ie,le),O(W,X,$,ie,le)])},getAllCodeActions:function(W){var x=W.sourceFile,$=W.program,L=W.cancellationToken,E=W.program.getTypeChecker(),ae=new e.Set;return ue.codeFixAll(W,ne,function(X,ie){var le=b(x,ie.code,ie,L,$);if(!le)return;var P=function(I){return I(X),[]};return _e(W,le,ie.code,E,P,ae)||O(W,le,ie.code,E,P,ae)})}});function _e(W,x,$,L,E,ae){var X=W.sourceFile,ie=W.program,le=W.cancellationToken,P=de(x,X,le,ie,L);if(P){var I=E(function(re){e.forEach(P.initializers,function(B){var A=B.expression;return Z(re,$,X,L,A,ae)}),ae&&P.needsSecondPassForFixAll&&Z(re,$,X,L,x,ae)});return ue.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",I,P.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,P.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function O(W,x,$,L,E,ae){var X=E(function(ie){return Z(ie,$,W.sourceFile,L,x,ae)});return ue.createCodeFixAction(ee,X,e.Diagnostics.Add_await,ee,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function w(W,x,$,L,E){var ae=E.getDiagnosticsProducingTypeChecker(),X=ae.getDiagnostics(W,L);return e.some(X,function(ie){var le=ie.start,P=ie.length,I=ie.relatedInformation,re=ie.code;return e.isNumber(le)&&e.isNumber(P)&&e.textSpansEqual({start:le,length:P},$)&&re===x&&!!I&&e.some(I,function(B){return B.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function b(W,x,$,L,E){var ae=e.getTokenAtPosition(W,$.start),X=e.findAncestor(ae,function(ie){return ie.getStart(W)<$.start||ie.getEnd()>e.textSpanEnd($)?"quit":e.isExpression(ie)&&e.textSpansEqual($,e.createTextSpanFromNode(ie,W))});return X&&w(W,x,$,L,E)&&U(X)?X:void 0}function de(W,x,$,L,E){var ae=fe(W,E);if(!ae)return;for(var X=ae.isCompleteFix,ie,le=function(B){var A=E.getSymbolAtLocation(B);if(!A)return"continue";var f=e.tryCast(A.valueDeclaration,e.isVariableDeclaration),F=f&&e.tryCast(f.name,e.isIdentifier),g=e.getAncestor(f,235);if(!f||!g||f.type||!f.initializer||g.getSourceFile()!==x||e.hasSyntacticModifier(g,1)||!F||!U(f.initializer))return X=!1,"continue";var p=L.getSemanticDiagnostics(x,$),d=e.FindAllReferences.Core.eachSymbolReferenceInFile(F,E,x,function(T){return B!==T&&!_(T,p,x,E)});if(d)return X=!1,"continue";(ie||(ie=[])).push({expression:f.initializer,declarationSymbol:A})},P=0,I=ae.identifiers;P<I.length;P++){var re=I[P];le(re)}return ie&&{initializers:ie,needsSecondPassForFixAll:!X}}function fe(W,x){if(e.isPropertyAccessExpression(W.parent)&&e.isIdentifier(W.parent.expression))return{identifiers:[W.parent.expression],isCompleteFix:!0};if(e.isIdentifier(W))return{identifiers:[W],isCompleteFix:!0};if(e.isBinaryExpression(W)){for(var $=void 0,L=!0,E=0,ae=[W.left,W.right];E<ae.length;E++){var X=ae[E],ie=x.getTypeAtLocation(X);if(x.getPromisedTypeOfPromise(ie)){if(!e.isIdentifier(X)){L=!1;continue}($||($=[])).push(X)}}return $&&{identifiers:$,isCompleteFix:L}}}function _(W,x,$,L){var E=e.isPropertyAccessExpression(W.parent)?W.parent.name:e.isBinaryExpression(W.parent)?W.parent:W,ae=e.find(x,function(X){return X.start===E.getStart($)&&X.start+X.length===E.getEnd()});return ae&&e.contains(ne,ae.code)||L.getTypeAtLocation(E).flags&1}function U(W){return W.kind&32768||!!e.findAncestor(W,function(x){return x.parent&&e.isArrowFunction(x.parent)&&x.parent.body===x||e.isBlock(x)&&(x.parent.kind===254||x.parent.kind===211||x.parent.kind===212||x.parent.kind===167)})}function Z(W,x,$,L,E,ae){if(e.isBinaryExpression(E))for(var X=0,ie=[E.left,E.right];X<ie.length;X++){var le=ie[X];if(ae&&e.isIdentifier(le)){var P=L.getSymbolAtLocation(le);if(P&&ae.has(e.getSymbolId(P)))continue}var I=L.getTypeAtLocation(le),re=L.getPromisedTypeOfPromise(I)?e.factory.createAwaitExpression(le):le;W.replaceNode($,le,re)}else if(x===Y&&e.isPropertyAccessExpression(E.parent)){if(ae&&e.isIdentifier(E.parent.expression)){var P=L.getSymbolAtLocation(E.parent.expression);if(P&&ae.has(e.getSymbolId(P)))return}W.replaceNode($,E.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(E.parent.expression))),v(W,E.parent.expression,$)}else if(e.contains(V,x)&&e.isCallOrNewExpression(E.parent)){if(ae&&e.isIdentifier(E)){var P=L.getSymbolAtLocation(E);if(P&&ae.has(e.getSymbolId(P)))return}W.replaceNode($,E,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(E))),v(W,E,$)}else{if(ae&&e.isVariableDeclaration(E.parent)&&e.isIdentifier(E.parent.name)){var P=L.getSymbolAtLocation(E.parent.name);if(P&&!e.tryAddToSet(ae,e.getSymbolId(P)))return}W.replaceNode($,E,e.factory.createAwaitExpression(E))}}function v(W,x,$){var L=e.findPrecedingToken(x.pos,$);L&&e.positionIsASICandidate(L.end,L.parent,$)&&W.insertText($,x.getStart($),";")}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addMissingConst",Y=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(de){var fe=e.textChanges.ChangeTracker.with(de,function(_){return V(_,de.sourceFile,de.span.start,de.program)});if(fe.length>0)return[ue.createCodeFixAction(ee,fe,e.Diagnostics.Add_const_to_unresolved_variable,ee,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[ee],getAllCodeActions:function(de){var fe=new e.Set;return ue.codeFixAll(de,Y,function(_,U){return V(_,U.file,U.start,de.program,fe)})}});function V(de,fe,_,U,Z){var v=e.getTokenAtPosition(fe,_),W=e.findAncestor(v,function(ae){return e.isForInOrOfStatement(ae.parent)?ae.parent.initializer===ae:_e(ae)?!1:"quit"});if(W)return ne(de,W,fe,Z);var x=v.parent;if(e.isBinaryExpression(x)&&x.operatorToken.kind===63&&e.isExpressionStatement(x.parent))return ne(de,v,fe,Z);if(e.isArrayLiteralExpression(x)){var $=U.getTypeChecker();return e.every(x.elements,function(ae){return O(ae,$)})?ne(de,x,fe,Z):void 0}var L=e.findAncestor(v,function(ae){return e.isExpressionStatement(ae.parent)?!0:w(ae)?!1:"quit"});if(L){var E=U.getTypeChecker();return b(L,E)?ne(de,L,fe,Z):void 0}}function ne(de,fe,_,U){(!U||e.tryAddToSet(U,fe))&&de.insertModifierBefore(_,85,fe)}function _e(de){switch(de.kind){case 79:case 202:case 203:case 291:case 292:return!0;default:return!1}}function O(de,fe){var _=e.isIdentifier(de)?de:e.isAssignmentExpression(de,!0)&&e.isIdentifier(de.left)?de.left:void 0;return!!_&&!fe.getSymbolAtLocation(_)}function w(de){switch(de.kind){case 79:case 219:case 27:return!0;default:return!1}}function b(de,fe){return e.isBinaryExpression(de)?de.operatorToken.kind===27?e.every([de.left,de.right],function(_){return b(_,fe)}):de.operatorToken.kind===63&&e.isIdentifier(de.left)&&!fe.getSymbolAtLocation(de.left):!1}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addMissingDeclareProperty",Y=[e.Diagnostics.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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=e.textChanges.ChangeTracker.with(ne,function(O){return V(O,ne.sourceFile,ne.span.start)});if(_e.length>0)return[ue.createCodeFixAction(ee,_e,e.Diagnostics.Prefix_with_declare,ee,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[ee],getAllCodeActions:function(ne){var _e=new e.Set;return ue.codeFixAll(ne,Y,function(O,w){return V(O,w.file,w.start,_e)})}});function V(ne,_e,O,w){var b=e.getTokenAtPosition(_e,O);if(!e.isIdentifier(b))return;var de=b.parent;de.kind===165&&(!w||e.tryAddToSet(w,de))&&ne.insertModifierBefore(_e,134,de)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addMissingInvocationForDecorator",Y=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=e.textChanges.ChangeTracker.with(ne,function(O){return V(O,ne.sourceFile,ne.span.start)});return[ue.createCodeFixAction(ee,_e,e.Diagnostics.Call_decorator_expression,ee,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e,O){return V(_e,O.file,O.start)})}});function V(ne,_e,O){var w=e.getTokenAtPosition(_e,O),b=e.findAncestor(w,e.isDecorator);e.Debug.assert(!!b,"Expected position to be owned by a decorator.");var de=e.factory.createCallExpression(b.expression,void 0,void 0);ne.replaceNode(_e,b.expression,de)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addNameToNamelessParameter",Y=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=e.textChanges.ChangeTracker.with(ne,function(O){return V(O,ne.sourceFile,ne.span.start)});return[ue.createCodeFixAction(ee,_e,e.Diagnostics.Add_parameter_name,ee,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e,O){return V(_e,O.file,O.start)})}});function V(ne,_e,O){var w=e.getTokenAtPosition(_e,O);if(!e.isIdentifier(w))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(w.kind));var b=w.parent;if(!e.isParameter(b))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(w.kind));var de=b.parent.parameters.indexOf(b);e.Debug.assert(!b.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(de>-1,"Parameter not found in parent parameter list.");var fe=e.factory.createParameterDeclaration(void 0,b.modifiers,b.dotDotDotToken,"arg"+de,b.questionToken,e.factory.createTypeReferenceNode(w,void 0),b.initializer);ne.replaceNode(_e,w,fe)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="annotateWithTypeFromJSDoc",Y=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(x){var $=V(x.sourceFile,x.span.start);if(!$)return;var L=e.textChanges.ChangeTracker.with(x,function(E){return O(E,x.sourceFile,$)});return[ue.createCodeFixAction(ee,L,e.Diagnostics.Annotate_with_type_from_JSDoc,ee,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]},fixIds:[ee],getAllCodeActions:function(x){return ue.codeFixAll(x,Y,function($,L){var E=V(L.file,L.start);E&&O($,L.file,E)})}});function V(x,$){var L=e.getTokenAtPosition(x,$);return e.tryCast(e.isParameter(L.parent)?L.parent.parent:L.parent,ne)}function ne(x){return w(x)&&_e(x)}ue.parameterShouldGetTypeFromJSDoc=ne;function _e(x){return e.isFunctionLikeDeclaration(x)?x.parameters.some(_e)||!x.type&&!!e.getJSDocReturnType(x):!x.type&&!!e.getJSDocType(x)}function O(x,$,L){if(e.isFunctionLikeDeclaration(L)&&(e.getJSDocReturnType(L)||L.parameters.some(function(B){return!!e.getJSDocType(B)}))){if(!L.typeParameters){var E=e.getJSDocTypeParameterDeclarations(L);E.length&&x.insertTypeParameters($,L,E)}var ae=e.isArrowFunction(L)&&!e.findChildOfKind(L,20,$);ae&&x.insertNodeBefore($,e.first(L.parameters),e.factory.createToken(20));for(var X=0,ie=L.parameters;X<ie.length;X++){var le=ie[X];if(!le.type){var P=e.getJSDocType(le);P&&x.tryInsertTypeAnnotation($,le,b(P))}}if(ae&&x.insertNodeAfter($,e.last(L.parameters),e.factory.createToken(21)),!L.type){var I=e.getJSDocReturnType(L);I&&x.tryInsertTypeAnnotation($,L,b(I))}}else{var re=e.Debug.checkDefined(e.getJSDocType(L),"A JSDocType for this declaration should exist");e.Debug.assert(!L.type,"The JSDocType decl should have a type"),x.tryInsertTypeAnnotation($,L,b(re))}}function w(x){return e.isFunctionLikeDeclaration(x)||x.kind===252||x.kind===164||x.kind===165}function b(x){switch(x.kind){case 307:case 308:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 311:return de(x);case 310:return b(x.type);case 309:return fe(x);case 313:return _(x);case 312:return U(x);case 176:return v(x);default:var $=e.visitEachChild(x,b,e.nullTransformationContext);return e.setEmitFlags($,1),$}}function de(x){return e.factory.createUnionTypeNode([e.visitNode(x.type,b),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function fe(x){return e.factory.createUnionTypeNode([e.visitNode(x.type,b),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function _(x){return e.factory.createArrayTypeNode(e.visitNode(x.type,b))}function U(x){var $;return e.factory.createFunctionTypeNode(e.emptyArray,x.parameters.map(Z),($=x.type)!==null&&$!==void 0?$:e.factory.createKeywordTypeNode(129))}function Z(x){var $=x.parent.parameters.indexOf(x),L=x.type.kind===313&&$===x.parent.parameters.length-1,E=x.name||(L?"rest":"arg"+$),ae=L?e.factory.createToken(25):x.dotDotDotToken;return e.factory.createParameterDeclaration(x.decorators,x.modifiers,ae,E,x.questionToken,e.visitNode(x.type,b),x.initializer)}function v(x){var $=x.typeName,L=x.typeArguments;if(e.isIdentifier(x.typeName)){if(e.isJSDocIndexSignature(x))return W(x);var E=x.typeName.text;switch(x.typeName.text){case"String":case"Boolean":case"Object":case"Number":E=E.toLowerCase();break;case"array":case"date":case"promise":E=E[0].toUpperCase()+E.slice(1);break}$=e.factory.createIdentifier(E),(E==="Array"||E==="Promise")&&!x.typeArguments?L=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):L=e.visitNodes(x.typeArguments,b)}return e.factory.createTypeReferenceNode($,L)}function W(x){var $=e.factory.createParameterDeclaration(void 0,void 0,void 0,x.typeArguments[0].kind===145?"n":"s",void 0,e.factory.createTypeReferenceNode(x.typeArguments[0].kind===145?"number":"string",[]),void 0),L=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[$],x.typeArguments[1])]);return e.setEmitFlags(L,1),L}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="convertFunctionToEs6Class",Y=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(w){var b=e.textChanges.ChangeTracker.with(w,function(de){return V(de,w.sourceFile,w.span.start,w.program.getTypeChecker(),w.preferences,w.program.getCompilerOptions())});return[ue.createCodeFixAction(ee,b,e.Diagnostics.Convert_function_to_an_ES2015_class,ee,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[ee],getAllCodeActions:function(w){return ue.codeFixAll(w,Y,function(b,de){return V(b,de.file,de.start,w.program.getTypeChecker(),w.preferences,w.program.getCompilerOptions())})}});function V(w,b,de,fe,_,U){var Z=fe.getSymbolAtLocation(e.getTokenAtPosition(b,de));if(!Z||!Z.valueDeclaration||!(Z.flags&(16|3)))return;var v=Z.valueDeclaration;if(e.isFunctionDeclaration(v))w.replaceNode(b,v,E(v));else if(e.isVariableDeclaration(v)){var W=L(v);if(!W)return;var x=v.parent.parent;e.isVariableDeclarationList(v.parent)&&v.parent.declarations.length>1?(w.delete(b,v),w.insertNodeAfter(b,x,W)):w.replaceNode(b,x,W)}function $(ae){var X=[];return ae.members&&ae.members.forEach(function(P,I){if(I==="constructor"&&P.valueDeclaration){w.delete(b,P.valueDeclaration.parent);return}var re=le(P,void 0);re&&X.push.apply(X,re)}),ae.exports&&ae.exports.forEach(function(P){if(P.name==="prototype"&&P.declarations){var I=P.declarations[0];if(P.declarations.length===1&&e.isPropertyAccessExpression(I)&&e.isBinaryExpression(I.parent)&&I.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(I.parent.right)){var re=I.parent.right,B=le(re.symbol,void 0);B&&X.push.apply(X,B)}}else{var B=le(P,[e.factory.createToken(124)]);B&&X.push.apply(X,B)}}),X;function ie(P,I){return e.isAccessExpression(P)?e.isPropertyAccessExpression(P)&&_e(P)?!0:e.isFunctionLike(I):e.every(P.properties,function(re){return e.isMethodDeclaration(re)||e.isGetOrSetAccessorDeclaration(re)||e.isPropertyAssignment(re)&&e.isFunctionExpression(re.initializer)&&!!re.name?!0:!!_e(re)})}function le(P,I){var re=[];if(!(P.flags&8192)&&!(P.flags&4096))return re;var B=P.valueDeclaration,A=B.parent,f=A.right;if(!ie(B,f))return re;var F=A.parent&&A.parent.kind===236?A.parent:A;if(w.delete(b,F),!f)return re.push(e.factory.createPropertyDeclaration([],I,P.name,void 0,void 0,void 0)),re;if(e.isAccessExpression(B)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var g=e.getQuotePreference(b,_),p=O(B,U,g);return p?T(re,f,p):re}else{if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,function(N){return e.isMethodDeclaration(N)||e.isGetOrSetAccessorDeclaration(N)?re.concat(N):e.isPropertyAssignment(N)&&e.isFunctionExpression(N.initializer)?T(re,N.initializer,N.name):_e(N)?re:[]});if(e.isSourceFileJS(b))return re;if(!e.isPropertyAccessExpression(B))return re;var d=e.factory.createPropertyDeclaration(void 0,I,B.name,void 0,void 0,f);return e.copyLeadingComments(A.parent,d,b),re.push(d),re}function T(N,D,R){return e.isFunctionExpression(D)?m(N,D,R):k(N,D,R)}function m(N,D,R){var me=e.concatenate(I,ne(D,130)),q=e.factory.createMethodDeclaration(void 0,me,void 0,R,void 0,void 0,D.parameters,void 0,D.body);return e.copyLeadingComments(A,q,b),N.concat(q)}function k(N,D,R){var me=D.body,q;me.kind===233?q=me:q=e.factory.createBlock([e.factory.createReturnStatement(me)]);var J=e.concatenate(I,ne(D,130)),C=e.factory.createMethodDeclaration(void 0,J,void 0,R,void 0,void 0,D.parameters,void 0,q);return e.copyLeadingComments(A,C,b),N.concat(C)}}}function L(ae){var X=ae.initializer;if(!X||!e.isFunctionExpression(X)||!e.isIdentifier(ae.name))return;var ie=$(ae.symbol);X.body&&ie.unshift(e.factory.createConstructorDeclaration(void 0,void 0,X.parameters,X.body));var le=ne(ae.parent.parent,93),P=e.factory.createClassDeclaration(void 0,le,ae.name,void 0,void 0,ie);return P}function E(ae){var X=$(Z);ae.body&&X.unshift(e.factory.createConstructorDeclaration(void 0,void 0,ae.parameters,ae.body));var ie=ne(ae,93),le=e.factory.createClassDeclaration(void 0,ie,ae.name,void 0,void 0,X);return le}}function ne(w,b){return e.filter(w.modifiers,function(de){return de.kind===b})}function _e(w){return w.name?!!(e.isIdentifier(w.name)&&w.name.text==="constructor"):!1}function O(w,b,de){if(e.isPropertyAccessExpression(w))return w.name;var fe=w.argumentExpression;return e.isNumericLiteral(fe)?fe:e.isStringLiteralLike(fe)?e.isIdentifierText(fe.text,b.target)?e.factory.createIdentifier(fe.text):e.isNoSubstitutionTemplateLiteral(fe)?e.factory.createStringLiteral(fe.text,de===0):fe:void 0}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="convertToAsyncFunction",Y=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],V=!0;ue.registerCodeFix({errorCodes:Y,getCodeActions:function(d){V=!0;var T=e.textChanges.ChangeTracker.with(d,function(m){return _e(m,d.sourceFile,d.span.start,d.program.getTypeChecker())});return V?[ue.createCodeFixAction(ee,T,e.Diagnostics.Convert_to_async_function,ee,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[ee],getAllCodeActions:function(d){return ue.codeFixAll(d,Y,function(T,m){return _e(T,m.file,m.start,d.program.getTypeChecker())})}});var ne;(function(d){d[d.Identifier=0]="Identifier",d[d.BindingPattern=1]="BindingPattern"})(ne||(ne={}));function _e(d,T,m,k){var N=e.getTokenAtPosition(T,m),D;if(e.isIdentifier(N)&&e.isVariableDeclaration(N.parent)&&N.parent.initializer&&e.isFunctionLikeDeclaration(N.parent.initializer)?D=N.parent.initializer:D=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(T,m)),e.canBeConvertedToAsync),!D)return;var R=new e.Map,me=e.isInJSFile(D),q=w(D,k),J=fe(D,k,R);if(!e.returnsPromise(J,k))return;var C=J.body&&e.isBlock(J.body)?O(J.body,k):e.emptyArray,we={checker:k,synthNamesMap:R,setOfExpressionsToReturn:q,isInJSFile:me};if(!C.length)return;var Oe=D.modifiers?D.modifiers.end:D.decorators?e.skipTrivia(T.text,D.decorators.end):D.getStart(T),te=D.modifiers?{prefix:" "}:{suffix:" "};d.insertModifierAt(T,Oe,130,te);for(var Te=function(Se){e.forEachChild(Se,function $e(ce){if(e.isCallExpression(ce)){var Le=Z(ce,we);d.replaceNodeWithNodes(T,Se,Le)}else e.isFunctionLike(ce)||e.forEachChild(ce,$e)})},be=0,Ce=C;be<Ce.length;be++){var Ue=Ce[be];Te(Ue)}}function O(d,T){var m=[];return e.forEachReturnStatement(d,function(k){e.isReturnStatementWithFixablePromiseHandler(k,T)&&m.push(k)}),m}function w(d,T){if(!d.body)return new e.Set;var m=new e.Set;return e.forEachChild(d.body,function k(N){b(N,T,"then")?(m.add(e.getNodeId(N)),e.forEach(N.arguments,k)):b(N,T,"catch")?(m.add(e.getNodeId(N)),e.forEachChild(N,k)):de(N,T)?m.add(e.getNodeId(N)):e.forEachChild(N,k)}),m}function b(d,T,m){if(!e.isCallExpression(d))return!1;var k=e.hasPropertyAccessExpressionWithName(d,m),N=k&&T.getTypeAtLocation(d);return!!(N&&T.getPromisedTypeOfPromise(N))}function de(d,T){return e.isExpression(d)?!!T.getPromisedTypeOfPromise(T.getTypeAtLocation(d)):!1}function fe(d,T,m){var k=new e.Map,N=e.createMultiMap();return e.forEachChild(d,function D(R){if(!e.isIdentifier(R)){e.forEachChild(R,D);return}var me=T.getSymbolAtLocation(R);if(me){var q=T.getTypeAtLocation(R),J=ie(q,T),C=e.getSymbolId(me).toString();if(J&&!e.isParameter(R.parent)&&!e.isFunctionLikeDeclaration(R.parent)&&!m.has(C)){var we=e.firstOrUndefined(J.parameters),Oe=(we==null?void 0:we.valueDeclaration)&&e.isParameter(we.valueDeclaration)&&e.tryCast(we.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),te=_(Oe,N);m.set(C,te),N.add(Oe.text,me)}else if(R.parent&&(e.isParameter(R.parent)||e.isVariableDeclaration(R.parent)||e.isBindingElement(R.parent))){var Te=R.text,be=N.get(Te);if(be&&be.some(function(Se){return Se!==me})){var Ce=_(R,N);k.set(C,Ce.identifier),m.set(C,Ce),N.add(Te,me)}else{var Ue=e.getSynthesizedDeepClone(R);m.set(C,A(Ue)),N.add(Te,me)}}}}),e.getSynthesizedDeepCloneWithReplacements(d,!0,function(D){if(e.isBindingElement(D)&&e.isIdentifier(D.name)&&e.isObjectBindingPattern(D.parent)){var R=T.getSymbolAtLocation(D.name),me=R&&k.get(String(e.getSymbolId(R)));if(me&&me.text!==(D.name||D.propertyName).getText())return e.factory.createBindingElement(D.dotDotDotToken,D.propertyName||D.name,me,D.initializer)}else if(e.isIdentifier(D)){var R=T.getSymbolAtLocation(D),me=R&&k.get(String(e.getSymbolId(R)));if(me)return e.factory.createIdentifier(me.text)}})}function _(d,T){var m=(T.get(d.text)||e.emptyArray).length,k=m===0?d:e.factory.createIdentifier(d.text+"_"+m);return A(k)}function U(){return V=!1,e.emptyArray}function Z(d,T,m){if(b(d,T.checker,"then"))return d.arguments.length===0?U():x(d,T,m);if(b(d,T.checker,"catch"))return v(d,T,m);if(e.isPropertyAccessExpression(d))return Z(d.expression,T,m);var k=T.checker.getTypeAtLocation(d);return k&&T.checker.getPromisedTypeOfPromise(k)?(e.Debug.assertNode(d.original.parent,e.isPropertyAccessExpression),$(d,T,m)):U()}function v(d,T,m){var k=e.singleOrUndefined(d.arguments),N=k?I(k,T):void 0,D;m&&!p(d,T)&&(F(m)?(D=m,T.synthNamesMap.forEach(function($e,ce){if($e.identifier.text===m.identifier.text){var Le=W(m);T.synthNamesMap.set(ce,Le)}})):D=A(e.factory.createUniqueName("result",16),m.types),D.hasBeenDeclared=!0);var R=e.factory.createBlock(Z(d.expression,T,D)),me=k?ae(k,D,N,d,T):e.emptyArray,q=N?F(N)?N.identifier.text:N.bindingPattern:"e",J=e.factory.createVariableDeclaration(q),C=e.factory.createCatchClause(J,e.factory.createBlock(me)),we,Oe;if(D&&!p(d,T)){Oe=e.getSynthesizedDeepClone(D.identifier);var te=D.types,Te=T.checker.getUnionType(te,2),be=T.isInJSFile?void 0:T.checker.typeToTypeNode(Te,void 0,void 0),Ce=[e.factory.createVariableDeclaration(Oe,void 0,be)];we=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(Ce,1))}var Ue=e.factory.createTryStatement(R,C,void 0),Se=m&&Oe&&g(m)&&e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(m.bindingPattern),void 0,void 0,Oe)],2));return e.compact([we,Ue,Se])}function W(d){var T=e.factory.createUniqueName(d.identifier.text,16);return A(T)}function x(d,T,m){var k=d.arguments,N=k[0],D=k[1],R=I(N,T),me=ae(N,m,R,d,T);if(D){var q=I(D,T),J=e.factory.createBlock(Z(d.expression,T,R).concat(me)),C=ae(D,m,q,d,T),we=q?F(q)?q.identifier.text:q.bindingPattern:"e",Oe=e.factory.createVariableDeclaration(we),te=e.factory.createCatchClause(Oe,e.factory.createBlock(C));return[e.factory.createTryStatement(J,te,void 0)]}return Z(d.expression,T,R).concat(me)}function $(d,T,m){return p(d,T)?[e.factory.createReturnStatement(e.getSynthesizedDeepClone(d))]:L(m,e.factory.createAwaitExpression(d),void 0)}function L(d,T,m){return!d||re(d)?[e.factory.createExpressionStatement(T)]:F(d)&&d.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(d.identifier),T))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(B(d)),void 0,m,T)],2))]}function E(d,T){if(T&&d){var m=e.factory.createUniqueName("result",16);return Mt(Mt([],L(A(m),d,T),!0),[e.factory.createReturnStatement(m)],!1)}return[e.factory.createReturnStatement(d)]}function ae(d,T,m,k,N){var D,R,me,q,J;switch(d.kind){case 104:break;case 204:case 79:if(!m)break;var C=e.factory.createCallExpression(e.getSynthesizedDeepClone(d),void 0,F(m)?[m.identifier]:[]);if(p(k,N))return E(C,(D=k.typeArguments)===null||D===void 0?void 0:D[0]);var we=N.checker.getTypeAtLocation(d),Oe=N.checker.getSignaturesOfType(we,0);if(!Oe.length)return U();var te=Oe[0].getReturnType(),Te=L(T,e.factory.createAwaitExpression(C),(R=k.typeArguments)===null||R===void 0?void 0:R[0]);return T&&T.types.push(te),Te;case 211:case 212:{var be=d.body,Ce=(me=ie(N.checker.getTypeAtLocation(d),N.checker))===null||me===void 0?void 0:me.getReturnType();if(e.isBlock(be)){for(var Ue=[],Se=!1,$e=0,ce=be.statements;$e<ce.length;$e++){var Le=ce[$e];if(e.isReturnStatement(Le))if(Se=!0,e.isReturnStatementWithFixablePromiseHandler(Le,N.checker))Ue=Ue.concat(P(N,[Le],T));else{var qe=Ce&&Le.expression?X(N.checker,Ce,Le.expression):Le.expression;Ue.push.apply(Ue,E(qe,(q=k.typeArguments)===null||q===void 0?void 0:q[0]))}else Ue.push(Le)}return p(k,N)?Ue.map(function(Ye){return e.getSynthesizedDeepClone(Ye)}):le(Ue,T,N,Se)}else{var pe=e.isFixablePromiseHandler(be,N.checker)?[e.factory.createReturnStatement(be)]:e.emptyArray,Me=P(N,pe,T);if(Me.length>0)return Me;if(Ce){var qe=X(N.checker,Ce,be);if(p(k,N))return E(qe,(J=k.typeArguments)===null||J===void 0?void 0:J[0]);var fn=L(T,qe,void 0);return T&&T.types.push(Ce),fn}else return U()}}default:return U()}return e.emptyArray}function X(d,T,m){var k=e.getSynthesizedDeepClone(m);return d.getPromisedTypeOfPromise(T)?e.factory.createAwaitExpression(k):k}function ie(d,T){var m=T.getSignaturesOfType(d,0);return e.lastOrUndefined(m)}function le(d,T,m,k){for(var N=[],D=0,R=d;D<R.length;D++){var me=R[D];if(e.isReturnStatement(me)){if(me.expression){var q=de(me.expression,m.checker)?e.factory.createAwaitExpression(me.expression):me.expression;T===void 0?N.push(e.factory.createExpressionStatement(q)):N.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(B(T),void 0,void 0,q)],2)))}}else N.push(e.getSynthesizedDeepClone(me))}return!k&&T!==void 0&&N.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(B(T),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),N}function P(d,T,m){for(var k=[],N=0,D=T;N<D.length;N++){var R=D[N];e.forEachChild(R,function me(q){if(e.isCallExpression(q)){var J=Z(q,d,m);if(k=k.concat(J),k.length>0)return}else e.isFunctionLike(q)||e.forEachChild(q,me)})}return k}function I(d,T){var m=[],k;if(e.isFunctionLikeDeclaration(d)){if(d.parameters.length>0){var N=d.parameters[0].name;k=D(N)}}else e.isIdentifier(d)?k=R(d):e.isPropertyAccessExpression(d)&&e.isIdentifier(d.name)&&(k=R(d.name));if(!k||"identifier"in k&&k.identifier.text==="undefined")return;return k;function D(J){if(e.isIdentifier(J))return R(J);var C=e.flatMap(J.elements,function(we){return e.isOmittedExpression(we)?[]:[D(we.name)]});return f(J,C)}function R(J){var C=q(J),we=me(C);if(!we)return A(J,m);var Oe=T.synthNamesMap.get(e.getSymbolId(we).toString());return Oe||A(J,m)}function me(J){return J.symbol?J.symbol:T.checker.getSymbolAtLocation(J)}function q(J){return J.original?J.original:J}}function re(d){return d?F(d)?!d.identifier.text:e.every(d.elements,re):!0}function B(d){return F(d)?d.identifier:d.bindingPattern}function A(d,T){return T===void 0&&(T=[]),{kind:0,identifier:d,types:T,hasBeenDeclared:!1}}function f(d,T,m){return T===void 0&&(T=e.emptyArray),m===void 0&&(m=[]),{kind:1,bindingPattern:d,elements:T,types:m}}function F(d){return d.kind===0}function g(d){return d.kind===1}function p(d,T){return!!d.original&&T.setOfExpressionsToReturn.has(e.getNodeId(d.original))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){ue.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(g){var p=g.sourceFile,d=g.program,T=g.preferences,m=e.textChanges.ChangeTracker.with(g,function(k){var N=Y(p,d.getTypeChecker(),k,d.getCompilerOptions().target,e.getQuotePreference(p,T));if(N)for(var D=0,R=d.getSourceFiles();D<R.length;D++){var me=R[D];ee(me,p,k,e.getQuotePreference(me,T))}});return[ue.createCodeFixActionWithoutFixAll("convertToEs6Module",m,e.Diagnostics.Convert_to_ES6_module)]}});function ee(g,p,d,T){for(var m=0,k=g.imports;m<k.length;m++){var N=k[m],D=e.getResolvedModule(g,N.text);if(!D||D.resolvedFileName!==p.fileName)continue;var R=e.importFromModuleSpecifier(N);switch(R.kind){case 263:d.replaceNode(g,R,e.makeImport(R.name,void 0,N,T));break;case 206:e.isRequireCall(R,!1)&&d.replaceNode(g,R,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(R),"default"));break}}}function Y(g,p,d,T,m){var k={original:X(g),additional:new e.Set},N=V(g,p,k);ne(g,N,d);for(var D=!1,R,me=0,q=e.filter(g.statements,e.isVariableStatement);me<q.length;me++){var J=q[me],C=w(g,J,d,p,k,T,m);C&&e.copyEntries(C,R!=null?R:R=new e.Map)}for(var we=0,Oe=e.filter(g.statements,function(Te){return!e.isVariableStatement(Te)});we<Oe.length;we++){var J=Oe[we],te=O(g,J,p,d,k,T,N,R,m);D=D||te}return R==null||R.forEach(function(Te,be){d.replaceNode(g,be,Te)}),D}function V(g,p,d){var T=new e.Map;return _e(g,function(m){var k=m.name,N=k.text,D=k.originalKeywordKind;!T.has(N)&&(D!==void 0&&e.isNonContextualKeyword(D)||p.resolveName(N,m,111551,!0))&&T.set(N,ae("_"+N,d))}),T}function ne(g,p,d){_e(g,function(T,m){if(m)return;var k=T.name.text;d.replaceNode(g,T,e.factory.createIdentifier(p.get(k)||k))})}function _e(g,p){g.forEachChild(function d(T){if(e.isPropertyAccessExpression(T)&&e.isExportsOrModuleExportsOrAlias(g,T.expression)&&e.isIdentifier(T.name)){var m=T.parent;p(T,e.isBinaryExpression(m)&&m.left===T&&m.operatorToken.kind===63)}T.forEachChild(d)})}function O(g,p,d,T,m,k,N,D,R){switch(p.kind){case 235:return w(g,p,T,d,m,k,R),!1;case 236:{var me=p.expression;switch(me.kind){case 206:return e.isRequireCall(me,!0)&&T.replaceNode(g,p,e.makeImport(void 0,void 0,me.arguments[0],R)),!1;case 219:{var q=me.operatorToken;return q.kind===63&&de(g,d,me,T,N,D)}}}default:return!1}}function w(g,p,d,T,m,k,N){var D=p.declarationList,R=!1,me=e.map(D.declarations,function(J){var C=J.name,we=J.initializer;if(we){if(e.isExportsOrModuleExportsOrAlias(g,we))return R=!0,F([]);if(e.isRequireCall(we,!0))return R=!0,L(C,we.arguments[0],T,m,k,N);if(e.isPropertyAccessExpression(we)&&e.isRequireCall(we.expression,!0))return R=!0,b(C,we.name.text,we.expression.arguments[0],m,N)}return F([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([J],D.flags))])});if(R){d.replaceNodeWithNodes(g,p,e.flatMap(me,function(J){return J.newImports}));var q;return e.forEach(me,function(J){J.useSitesToUnqualify&&e.copyEntries(J.useSitesToUnqualify,q!=null?q:q=new e.Map)}),q}}function b(g,p,d,T,m){switch(g.kind){case 199:case 200:{var k=ae(p,T);return F([re(k,p,d,m),A(void 0,g,e.factory.createIdentifier(k))])}case 79:return F([re(g.text,p,d,m)]);default:return e.Debug.assertNever(g,"Convert to ES6 module got invalid syntax form "+g.kind)}}function de(g,p,d,T,m,k){var N=d.left,D=d.right;if(!e.isPropertyAccessExpression(N))return!1;if(e.isExportsOrModuleExportsOrAlias(g,N))if(e.isExportsOrModuleExportsOrAlias(g,D))T.delete(g,d.parent);else{var R=e.isObjectLiteralExpression(D)?fe(D,k):e.isRequireCall(D,!0)?U(D.arguments[0],p):void 0;return R?(T.replaceNodeWithNodes(g,d.parent,R[0]),R[1]):(T.replaceRangeWithText(g,e.createRange(N.getStart(g),D.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(g,N.expression)&&_(g,d,T,m);return!1}function fe(g,p){var d=e.mapAllOrFail(g.properties,function(T){switch(T.kind){case 170:case 171:case 292:case 293:return;case 291:return e.isIdentifier(T.name)?x(T.name.text,T.initializer,p):void 0;case 167:return e.isIdentifier(T.name)?P(T.name.text,[e.factory.createToken(93)],T,p):void 0;default:e.Debug.assertNever(T,"Convert to ES6 got invalid prop kind "+T.kind)}});return d&&[d,!1]}function _(g,p,d,T){var m=p.left.name.text,k=T.get(m);if(k!==void 0){var N=[A(void 0,k,p.right),f([e.factory.createExportSpecifier(k,m)])];d.replaceNodeWithNodes(g,p.parent,N)}else W(p,g,d)}function U(g,p){var d=g.text,T=p.getSymbolAtLocation(g),m=T?T.exports:e.emptyMap;return m.has("export=")?[[v(d)],!0]:m.has("default")?m.size>1?[[Z(d),v(d)],!0]:[[v(d)],!0]:[[Z(d)],!1]}function Z(g){return f(void 0,g)}function v(g){return f([e.factory.createExportSpecifier(void 0,"default")],g)}function W(g,p,d){var T=g.left,m=g.right,k=g.parent,N=T.name.text;if((e.isFunctionExpression(m)||e.isArrowFunction(m)||e.isClassExpression(m))&&(!m.name||m.name.text===N)){d.replaceRange(p,{pos:T.getStart(p),end:m.getStart(p)},e.factory.createToken(93),{suffix:" "}),m.name||d.insertName(p,m,N);var D=e.findChildOfKind(k,26,p);D&&d.delete(p,D)}else d.replaceNodeRangeWithNodes(p,T.expression,e.findChildOfKind(T,24,p),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function x(g,p,d){var T=[e.factory.createToken(93)];switch(p.kind){case 211:{var m=p.name;if(m&&m.text!==g)return k()}case 212:return P(g,T,p,d);case 224:return I(g,T,p,d);default:return k()}function k(){return A(T,e.factory.createIdentifier(g),$(p,d))}}function $(g,p){if(!p||!e.some(e.arrayFrom(p.keys()),function(T){return e.rangeContainsRange(g,T)}))return g;return e.isArray(g)?e.getSynthesizedDeepClonesWithReplacements(g,!0,d):e.getSynthesizedDeepCloneWithReplacements(g,!0,d);function d(T){if(T.kind===204){var m=p.get(T);return p.delete(T),m}}}function L(g,p,d,T,m,k){switch(g.kind){case 199:{var N=e.mapAllOrFail(g.elements,function(R){return R.dotDotDotToken||R.initializer||R.propertyName&&!e.isIdentifier(R.propertyName)||!e.isIdentifier(R.name)?void 0:B(R.propertyName&&R.propertyName.text,R.name.text)});if(N)return F([e.makeImport(void 0,N,p,k)])}case 200:{var D=ae(ue.moduleSpecifierToValidIdentifier(p.text,m),T);return F([e.makeImport(e.factory.createIdentifier(D),void 0,p,k),A(void 0,e.getSynthesizedDeepClone(g),e.factory.createIdentifier(D))])}case 79:return E(g,p,d,T,k);default:return e.Debug.assertNever(g,"Convert to ES6 module got invalid name kind "+g.kind)}}function E(g,p,d,T,m){for(var k=d.getSymbolAtLocation(g),N=new e.Map,D=!1,R,me=0,q=T.original.get(g.text);me<q.length;me++){var J=q[me];if(d.getSymbolAtLocation(J)!==k||J===g)continue;var C=J.parent;if(e.isPropertyAccessExpression(C)){var we=C.name.text;if(we==="default"){D=!0;var Oe=J.getText();(R!=null?R:R=new e.Map).set(C,e.factory.createIdentifier(Oe))}else{e.Debug.assert(C.expression===J,"Didn't expect expression === use");var te=N.get(we);te===void 0&&(te=ae(we,T),N.set(we,te)),(R!=null?R:R=new e.Map).set(C,e.factory.createIdentifier(te))}}else D=!0}var Te=N.size===0?void 0:e.arrayFrom(e.mapIterator(N.entries(),function(be){var Ce=be[0],Ue=be[1];return e.factory.createImportSpecifier(Ce===Ue?void 0:e.factory.createIdentifier(Ce),e.factory.createIdentifier(Ue))}));return Te||(D=!0),F([e.makeImport(D?e.getSynthesizedDeepClone(g):void 0,Te,p,m)],R)}function ae(g,p){for(;p.original.has(g)||p.additional.has(g);)g="_"+g;return p.additional.add(g),g}function X(g){var p=e.createMultiMap();return ie(g,function(d){return p.add(d.text,d)}),p}function ie(g,p){e.isIdentifier(g)&&le(g)&&p(g),g.forEachChild(function(d){return ie(d,p)})}function le(g){var p=g.parent;switch(p.kind){case 204:return p.name!==g;case 201:return p.propertyName!==g;case 268:return p.propertyName!==g;default:return!0}}function P(g,p,d,T){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(d.decorators),e.concatenate(p,e.getSynthesizedDeepClones(d.modifiers)),e.getSynthesizedDeepClone(d.asteriskToken),g,e.getSynthesizedDeepClones(d.typeParameters),e.getSynthesizedDeepClones(d.parameters),e.getSynthesizedDeepClone(d.type),e.factory.converters.convertToFunctionBlock($(d.body,T)))}function I(g,p,d,T){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(d.decorators),e.concatenate(p,e.getSynthesizedDeepClones(d.modifiers)),g,e.getSynthesizedDeepClones(d.typeParameters),e.getSynthesizedDeepClones(d.heritageClauses),$(d.members,T))}function re(g,p,d,T){return p==="default"?e.makeImport(e.factory.createIdentifier(g),void 0,d,T):e.makeImport(void 0,[B(p,g)],d,T)}function B(g,p){return e.factory.createImportSpecifier(g!==void 0&&g!==p?e.factory.createIdentifier(g):void 0,e.factory.createIdentifier(p))}function A(g,p,d){return e.factory.createVariableStatement(g,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(p,void 0,void 0,d)],2))}function f(g,p){return e.factory.createExportDeclaration(void 0,void 0,!1,g&&e.factory.createNamedExports(g),p===void 0?void 0:e.factory.createStringLiteral(p))}function F(g,p){return{newImports:g,useSitesToUnqualify:p}}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="correctQualifiedNameToIndexedAccessType",Y=[e.Diagnostics.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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=V(_e.sourceFile,_e.span.start);if(!O)return;var w=e.textChanges.ChangeTracker.with(_e,function(de){return ne(de,_e.sourceFile,O)}),b=O.left.text+'["'+O.right.text+'"]';return[ue.createCodeFixAction(ee,w,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,b],ee,e.Diagnostics.Rewrite_all_as_indexed_access_types)]},fixIds:[ee],getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){var b=V(w.file,w.start);b&&ne(O,w.file,b)})}});function V(_e,O){var w=e.findAncestor(e.getTokenAtPosition(_e,O),e.isQualifiedName);return e.Debug.assert(!!w,"Expected position to be owned by a qualified name."),e.isIdentifier(w.left)?w:void 0}function ne(_e,O,w){var b=w.right.text,de=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(w.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(b)));_e.replaceNode(O,w,de)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],Y="convertToTypeOnlyExport";ue.registerCodeFix({errorCodes:ee,getCodeActions:function(O){var w=e.textChanges.ChangeTracker.with(O,function(b){return ne(b,V(O.span,O.sourceFile),O)});if(w.length)return[ue.createCodeFixAction(Y,w,e.Diagnostics.Convert_to_type_only_export,Y,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Y],getAllCodeActions:function(O){var w=new e.Map;return ue.codeFixAll(O,ee,function(b,de){var fe=V(de,O.sourceFile);fe&&e.addToSeen(w,e.getNodeId(fe.parent.parent))&&ne(b,fe,O)})}});function V(O,w){return e.tryCast(e.getTokenAtPosition(w,O.start).parent,e.isExportSpecifier)}function ne(O,w,b){if(!w)return;var de=w.parent,fe=de.parent,_=_e(w,b);if(_.length===de.elements.length)O.insertModifierBefore(b.sourceFile,150,de);else{var U=e.factory.updateExportDeclaration(fe,fe.decorators,fe.modifiers,!1,e.factory.updateNamedExports(de,e.filter(de.elements,function(v){return!e.contains(_,v)})),fe.moduleSpecifier),Z=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(_),fe.moduleSpecifier);O.replaceNode(b.sourceFile,fe,U,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),O.insertNodeAfter(b.sourceFile,fe,Z)}}function _e(O,w){var b=O.parent;if(b.elements.length===1)return b.elements;var de=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(b),w.program.getSemanticDiagnostics(w.sourceFile,w.cancellationToken));return e.filter(b.elements,function(fe){var _;return fe===O||((_=e.findDiagnosticForNode(fe,de))===null||_===void 0?void 0:_.code)===ee[0]})}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],Y="convertToTypeOnlyImport";ue.registerCodeFix({errorCodes:ee,getCodeActions:function(_e){var O=e.textChanges.ChangeTracker.with(_e,function(w){var b=V(_e.span,_e.sourceFile);ne(w,b,_e)});if(O.length)return[ue.createCodeFixAction(Y,O,e.Diagnostics.Convert_to_type_only_import,Y,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[Y],getAllCodeActions:function(_e){return ue.codeFixAll(_e,ee,function(O,w){var b=V(w,_e.sourceFile);ne(O,b,_e)})}});function V(_e,O){return e.tryCast(e.getTokenAtPosition(O,_e.start).parent,e.isImportDeclaration)}function ne(_e,O,w){if(!(O==null?void 0:O.importClause))return;var b=O.importClause;_e.insertText(w.sourceFile,O.getStart()+"import".length," type"),b.name&&b.namedBindings&&(_e.deleteNodeRangeExcludingEnd(w.sourceFile,b.name,O.importClause.namedBindings),_e.insertNodeBefore(w.sourceFile,O,e.factory.updateImportDeclaration(O,void 0,void 0,e.factory.createImportClause(!0,b.name,void 0),O.moduleSpecifier)))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="convertLiteralTypeToMappedType",Y=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=V(O,w.start);if(!b)return;var de=b.name,fe=b.constraint,_=e.textChanges.ChangeTracker.with(_e,function(U){return ne(U,O,b)});return[ue.createCodeFixAction(ee,_,[e.Diagnostics.Convert_0_to_1_in_0,fe,de],ee,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]},fixIds:[ee],getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){var b=V(w.file,w.start);b&&ne(O,w.file,b)})}});function V(_e,O){var w=e.getTokenAtPosition(_e,O);if(e.isIdentifier(w)){var b=e.cast(w.parent.parent,e.isPropertySignature),de=w.getText(_e);return{container:e.cast(b.parent,e.isTypeLiteralNode),typeNode:b.type,constraint:de,name:de==="K"?"P":"K"}}return}function ne(_e,O,w){var b=w.container,de=w.typeNode,fe=w.constraint,_=w.name;_e.replaceNode(O,b,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(_,e.factory.createTypeReferenceNode(fe)),void 0,void 0,de))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Y="fixClassIncorrectlyImplementsInterface";ue.registerCodeFix({errorCodes:ee,getCodeActions:function(w){var b=w.sourceFile,de=w.span,fe=V(b,de.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(fe),function(_){var U=e.textChanges.ChangeTracker.with(w,function(Z){return _e(w,_,b,fe,Z,w.preferences)});return U.length===0?void 0:ue.createCodeFixAction(Y,U,[e.Diagnostics.Implement_interface_0,_.getText(b)],Y,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[Y],getAllCodeActions:function(w){var b=new e.Map;return ue.codeFixAll(w,ee,function(de,fe){var _=V(fe.file,fe.start);if(e.addToSeen(b,e.getNodeId(_)))for(var U=0,Z=e.getEffectiveImplementsTypeNodes(_);U<Z.length;U++){var v=Z[U];_e(w,v,fe.file,_,de,w.preferences)}})}});function V(w,b){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(w,b)),"There should be a containing class")}function ne(w){return!w.valueDeclaration||!(e.getEffectiveModifierFlags(w.valueDeclaration)&8)}function _e(w,b,de,fe,_,U){var Z=w.program.getTypeChecker(),v=O(fe,Z),W=Z.getTypeAtLocation(b),x=Z.getPropertiesOfType(W),$=x.filter(e.and(ne,function(le){return!v.has(le.escapedName)})),L=Z.getTypeAtLocation(fe),E=e.find(fe.members,function(le){return e.isConstructorDeclaration(le)});L.getNumberIndexType()||X(W,1),L.getStringIndexType()||X(W,0);var ae=ue.createImportAdder(de,w.program,U,w.host);ue.createMissingMemberNodes(fe,$,de,w,U,ae,function(le){return ie(de,fe,le)}),ae.writeFixes(_);function X(le,P){var I=Z.getIndexInfoOfType(le,P);I&&ie(de,fe,Z.indexInfoToIndexSignatureDeclaration(I,fe,void 0,ue.getNoopSymbolTrackerWithResolver(w)))}function ie(le,P,I){E?_.insertNodeAfter(le,E,I):_.insertNodeAtClassStart(le,P,I)}}function O(w,b){var de=e.getEffectiveBaseTypeNode(w);if(!de)return e.createSymbolTable();var fe=b.getTypeAtLocation(de),_=b.getPropertiesOfType(fe);return e.createSymbolTable(_.filter(ne))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){ue.importFixName="import";var ee="fixMissingImport",Y=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(be){var Ce=be.errorCode,Ue=be.preferences,Se=be.sourceFile,$e=be.span,ce=le(be,Ce,$e.start,!0);if(!ce)return;var Le=ce.fixes,qe=ce.symbolName,pe=e.getQuotePreference(Se,Ue);return Le.map(function(Me){return k(be,Se,qe,Me,pe)})},fixIds:[ee],getAllCodeActions:function(be){var Ce=be.sourceFile,Ue=be.program,Se=be.preferences,$e=be.host,ce=ne(Ce,Ue,!0,Se,$e);return ue.eachDiagnostic(be,Y,function(Le){return ce.addImportFromDiagnostic(Le,be)}),ue.createCombinedCodeActions(e.textChanges.ChangeTracker.with(be,ce.writeFixes))}});function V(be,Ce,Ue,Se){return ne(be,Ce,!1,Ue,Se)}ue.createImportAdder=V;function ne(be,Ce,Ue,Se,$e){var ce=Ce.getCompilerOptions(),Le=[],qe=[],pe=new e.Map,Me=new e.Map;return{addImportFromDiagnostic:fn,addImportFromExportedSymbol:Ye,writeFixes:je};function fn(xn,Wn){var dn=le(Wn,xn.code,xn.start,Ue);if(!dn||!dn.fixes.length)return;Ne(dn)}function Ye(xn,Wn){var dn=e.Debug.checkDefined(xn.parent),vn=e.getNameForExportedSymbol(xn,e.getEmitScriptTarget(ce)),o=Ce.getTypeChecker(),Cn=o.getMergedSymbol(e.skipAlias(xn,o)),z=fe(be,Cn,dn,vn,$e,Ce,Se,Ue),tn=!!Wn&&ce.importsNotUsedAsValues===2,$n=E(be,Ce),Un=w(be,z,dn,vn,Ce,void 0,tn,$n,$e,Se);Un&&Ne({fixes:[Un],symbolName:vn})}function Ne(xn){var Wn=xn.fixes,dn=xn.symbolName,vn=e.first(Wn);switch(vn.kind){case 0:Le.push(vn);break;case 1:qe.push(vn);break;case 2:{var o=vn.importClauseOrBindingPattern,Cn=vn.importKind,z=vn.canUseTypeOnlyImport,tn=String(e.getNodeId(o)),$n=pe.get(tn);$n||pe.set(tn,$n={importClauseOrBindingPattern:o,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:z}),Cn===0?e.pushIfUnique($n.namedImports,dn):(e.Debug.assert($n.defaultImport===void 0||$n.defaultImport===dn,"(Add to Existing) Default import should be missing or match symbolName"),$n.defaultImport=dn);break}case 3:{var Un=vn.moduleSpecifier,Cn=vn.importKind,oe=vn.useRequire,Pe=vn.typeOnly,$n=Me.get(Un);$n?$n.typeOnly=$n.typeOnly&&Pe:Me.set(Un,$n={namedImports:[],namespaceLikeImport:void 0,typeOnly:Pe,useRequire:oe});switch(Cn){case 1:e.Debug.assert($n.defaultImport===void 0||$n.defaultImport===dn,"(Add new) Default import should be missing or match symbolName"),$n.defaultImport=dn;break;case 0:e.pushIfUnique($n.namedImports||($n.namedImports=[]),dn);break;case 3:case 2:e.Debug.assert($n.namespaceLikeImport===void 0||$n.namespaceLikeImport.name===dn,"Namespacelike import shoudl be missing or match symbolName"),$n.namespaceLikeImport={importKind:Cn,name:dn};break}break}default:e.Debug.assertNever(vn,"fix wasn't never - got kind "+vn.kind)}}function je(xn){for(var Wn=e.getQuotePreference(be,Se),dn=0,vn=Le;dn<vn.length;dn++){var o=vn[dn];R(xn,be,o)}for(var Cn=0,z=qe;Cn<z.length;Cn++){var o=z[Cn];me(xn,be,o,Wn)}pe.forEach(function($n){var Un=$n.importClauseOrBindingPattern,oe=$n.defaultImport,Pe=$n.namedImports,ke=$n.canUseTypeOnlyImport;D(xn,be,Un,oe,Pe,ke)});var tn;Me.forEach(function($n,Un){var oe=$n.useRequire,Pe=Yo($n,["useRequire"]),ke=oe?C:J;tn=e.combine(tn,ke(Un,Wn,Pe))}),tn&&e.insertImports(xn,be,tn,!0)}}var _e;(function(be){be[be.UseNamespace=0]="UseNamespace",be[be.ImportType=1]="ImportType",be[be.AddToExisting=2]="AddToExisting",be[be.AddNew=3]="AddNew"})(_e||(_e={}));function O(be,Ce,Ue,Se,$e,ce,Le,qe,pe){var Me=ce.getCompilerOptions(),fn=e.pathIsBareSpecifier(e.stripQuotes(Ce.name))?[de(be,Ce,ce,$e)]:fe(Ue,be,Ce,Se,$e,ce,pe,!0),Ye=E(Ue,ce),Ne=Me.importsNotUsedAsValues===2&&!e.isSourceFileJS(Ue)&&e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(Ue,qe)),je=e.Debug.checkDefined(w(Ue,fn,Ce,Se,ce,qe,Ne,Ye,$e,pe));return{moduleSpecifier:je.moduleSpecifier,codeAction:b(k({host:$e,formatContext:Le,preferences:pe},Ue,Se,je,e.getQuotePreference(Ue,pe)))}}ue.getImportCompletionAction=O;function w(be,Ce,Ue,Se,$e,ce,Le,qe,pe,Me){return e.Debug.assert(Ce.some(function(fn){return fn.moduleSymbol===Ue||fn.symbol.parent===Ue}),"Some exportInfo should match the specified moduleSymbol"),I(Z(Ce,Se,ce,Le,qe,$e,be,pe,Me),be,$e,pe,Me)}function b(be){var Ce=be.description,Ue=be.changes,Se=be.commands;return{description:Ce,changes:Ue,commands:Se}}function de(be,Ce,Ue,Se){var $e,ce,Le=Ue.getCompilerOptions(),qe=Me(Ue.getTypeChecker(),!1);if(qe)return qe;var pe=(ce=($e=Se.getPackageJsonAutoImportProvider)===null||$e===void 0?void 0:$e.call(Se))===null||ce===void 0?void 0:ce.getTypeChecker();return e.Debug.checkDefined(pe&&Me(pe,!0),"Could not find symbol in specified module for code actions");function Me(fn,Ye){var Ne=e.getDefaultLikeExportInfo(Ce,fn,Le);if(Ne&&e.skipAlias(Ne.symbol,fn)===be)return{symbol:Ne.symbol,moduleSymbol:Ce,moduleFileName:void 0,exportKind:Ne.exportKind,targetFlags:e.skipAlias(be,fn).flags,isFromPackageJson:Ye};var je=fn.tryGetMemberInModuleExportsAndProperties(be.name,Ce);if(je&&e.skipAlias(je,fn)===be)return{symbol:je,moduleSymbol:Ce,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(be,fn).flags,isFromPackageJson:Ye}}}function fe(be,Ce,Ue,Se,$e,ce,Le,qe){var pe=[],Me=ce.getCompilerOptions(),fn=e.memoizeOne(function(Ne){return e.createModuleSpecifierResolutionHost(Ne?$e.getPackageJsonAutoImportProvider():ce,$e)});return e.forEachExternalModuleToImportFrom(ce,$e,qe,function(Ne,je,xn,Wn){var dn=xn.getTypeChecker();if(je&&Ne!==Ue&&e.startsWith(be.fileName,e.getDirectoryPath(je.fileName)))return;var vn=e.getDefaultLikeExportInfo(Ne,dn,Me);vn&&(vn.name===Se||te(Ne,Me.target)===Se)&&e.skipAlias(vn.symbol,dn)===Ce&&Ye(xn,je,Wn)&&pe.push({symbol:vn.symbol,moduleSymbol:Ne,moduleFileName:je==null?void 0:je.fileName,exportKind:vn.exportKind,targetFlags:e.skipAlias(vn.symbol,dn).flags,isFromPackageJson:Wn});for(var o=0,Cn=dn.getExportsAndPropertiesOfModule(Ne);o<Cn.length;o++){var z=Cn[o];z.name===Se&&e.skipAlias(z,dn)===Ce&&Ye(xn,je,Wn)&&pe.push({symbol:z,moduleSymbol:Ne,moduleFileName:je==null?void 0:je.fileName,exportKind:0,targetFlags:e.skipAlias(z,dn).flags,isFromPackageJson:Wn})}}),pe;function Ye(Ne,je,xn){var Wn;return!je||e.isImportableFile(Ne,be,je,Le,void 0,fn(xn),(Wn=$e.getModuleSpecifierCache)===null||Wn===void 0?void 0:Wn.call($e))}}function _(be,Ce,Ue,Se,$e,ce){var Le=ae(Ue,Ce,void 0,!1,!1,be,Se,$e,ce),qe=Le.fixes,pe=Le.computedWithoutCacheCount,Me=I(qe,Ce,Ue,Se,$e);return Me&&pr(pr({},Me),{computedWithoutCacheCount:pe})}ue.getModuleSpecifierForBestExportInfo=_;function U(be,Ce){return e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(be,Ce))}function Z(be,Ce,Ue,Se,$e,ce,Le,qe,pe){var Me=ce.getTypeChecker(),fn=e.flatMap(be,function(xn){return L(xn,Me,Le,ce.getCompilerOptions())}),Ye=Ue===void 0?void 0:v(fn,Ce,Ue,Me),Ne=$(fn,Ue!==void 0&&U(Le,Ue)),je=Ne?[Ne]:X(be,fn,ce,Le,Ue,Se,$e,qe,pe);return Mt(Mt([],Ye?[Ye]:e.emptyArray,!0),je,!0)}function v(be,Ce,Ue,Se){return e.firstDefined(be,function($e){var ce=$e.declaration,Le=x(ce),qe=e.tryGetModuleSpecifierFromDeclaration(ce);if(Le&&qe){var pe=W(ce,Se);if(pe&&pe.exports.has(e.escapeLeadingUnderscores(Ce)))return{kind:0,namespacePrefix:Le,position:Ue,moduleSpecifier:qe}}})}function W(be,Ce){var Ue;switch(be.kind){case 252:return Ce.resolveExternalModuleName(be.initializer.arguments[0]);case 263:return Ce.getAliasedSymbol(be.symbol);case 264:var Se=e.tryCast((Ue=be.importClause)===null||Ue===void 0?void 0:Ue.namedBindings,e.isNamespaceImport);return Se&&Ce.getAliasedSymbol(Se.symbol);default:return e.Debug.assertNever(be)}}function x(be){var Ce,Ue,Se;switch(be.kind){case 252:return(Ce=e.tryCast(be.name,e.isIdentifier))===null||Ce===void 0?void 0:Ce.text;case 263:return be.name.text;case 264:return(Se=e.tryCast((Ue=be.importClause)===null||Ue===void 0?void 0:Ue.namedBindings,e.isNamespaceImport))===null||Se===void 0?void 0:Se.name.text;default:return e.Debug.assertNever(be)}}function $(be,Ce){return e.firstDefined(be,function(Ue){var Se=Ue.declaration,$e=Ue.importKind;if(Se.kind===263)return;if(Se.kind===252)return($e===0||$e===1)&&Se.name.kind===199?{kind:2,importClauseOrBindingPattern:Se.name,importKind:$e,moduleSpecifier:Se.initializer.arguments[0].text,canUseTypeOnlyImport:!1}:void 0;var ce=Se.importClause;if(!ce||!e.isStringLiteralLike(Se.moduleSpecifier))return;var Le=ce.name,qe=ce.namedBindings;return ce.isTypeOnly&&!($e===0&&qe)?void 0:$e===1&&!Le||$e===0&&(!qe||qe.kind===267)?{kind:2,importClauseOrBindingPattern:ce,importKind:$e,moduleSpecifier:Se.moduleSpecifier.text,canUseTypeOnlyImport:Ce}:void 0})}function L(be,Ce,Ue,Se){var $e=be.moduleSymbol,ce=be.exportKind,Le=be.targetFlags;if(!(Le&111551)&&e.isSourceFileJS(Ue))return e.emptyArray;var qe=F(Ue,ce,Se);return e.mapDefined(Ue.imports,function(pe){var Me=e.importFromModuleSpecifier(pe);if(e.isRequireVariableDeclaration(Me.parent))return Ce.resolveExternalModuleName(pe)===$e?{declaration:Me.parent,importKind:qe}:void 0;if(Me.kind===264||Me.kind===263)return Ce.getSymbolAtLocation(pe)===$e?{declaration:Me,importKind:qe}:void 0})}function E(be,Ce){if(!e.isSourceFileJS(be))return!1;if(be.commonJsModuleIndicator&&!be.externalModuleIndicator)return!0;if(be.externalModuleIndicator&&!be.commonJsModuleIndicator)return!1;var Ue=Ce.getCompilerOptions();if(Ue.configFile)return e.getEmitModuleKind(Ue)<e.ModuleKind.ES2015;for(var Se=0,$e=Ce.getSourceFiles();Se<$e.length;Se++){var ce=$e[Se];if(ce===be||!e.isSourceFileJS(ce)||Ce.isSourceFileFromExternalLibrary(ce))continue;if(ce.commonJsModuleIndicator&&!ce.externalModuleIndicator)return!0;if(ce.externalModuleIndicator&&!ce.commonJsModuleIndicator)return!1}return!0}function ae(be,Ce,Ue,Se,$e,ce,Le,qe,pe){var Me=e.isSourceFileJS(Ce),fn=be.getCompilerOptions(),Ye=e.createModuleSpecifierResolutionHost(be,Le),Ne=be.getTypeChecker(),je=pe?function(dn){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(dn,Ce,Ye,qe),computedWithoutCache:!1}}:function(dn){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(dn,Ne,fn,Ce,Ye,qe)},xn=0,Wn=e.flatMap(ce,function(dn){var vn=je(dn.moduleSymbol),o=vn.computedWithoutCache,Cn=vn.moduleSpecifiers;return xn+=o?1:0,Cn==null?void 0:Cn.map(function(z){return!(dn.targetFlags&111551)&&Me&&Ue!==void 0?{kind:1,moduleSpecifier:z,position:Ue,exportInfo:dn}:{kind:3,moduleSpecifier:z,importKind:F(Ce,dn.exportKind,fn),useRequire:$e,typeOnly:Se,exportInfo:dn}})});return{computedWithoutCacheCount:xn,fixes:Wn}}function X(be,Ce,Ue,Se,$e,ce,Le,qe,pe){var Me=e.firstDefined(Ce,function(fn){return ie(fn,ce,Le)});return Me?[Me]:ae(Ue,Se,$e,ce,Le,be,qe,pe).fixes}function ie(be,Ce,Ue){var Se=be.declaration,$e=be.importKind,ce=e.tryGetModuleSpecifierFromDeclaration(Se);return ce?{kind:3,moduleSpecifier:ce,importKind:$e,typeOnly:Ce,useRequire:Ue}:void 0}function le(be,Ce,Ue,Se){var $e=e.getTokenAtPosition(be.sourceFile,Ue),ce=Ce===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?A(be,$e):e.isIdentifier($e)?p(be,$e,Se):void 0;return ce&&pr(pr({},ce),{fixes:P(ce.fixes,be.sourceFile,be.program,be.host,be.preferences)})}function P(be,Ce,Ue,Se,$e){var ce=e.createPackageJsonImportFilter(Ce,$e,Se).allowsImportingSpecifier;return e.sort(be,function(Le,qe){return e.compareValues(Le.kind,qe.kind)||re(Le,qe,Ce,Ue,ce)})}function I(be,Ce,Ue,Se,$e){if(!e.some(be))return;if(be[0].kind===0||be[0].kind===2)return be[0];var ce=e.createPackageJsonImportFilter(Ce,$e,Se).allowsImportingSpecifier;return be.reduce(function(Le,qe){return re(qe,Le,Ce,Ue,ce)===-1?qe:Le})}function re(be,Ce,Ue,Se,$e){return be.kind!==0&&Ce.kind!==0?e.compareBooleans($e(be.moduleSpecifier),$e(Ce.moduleSpecifier))||B(be.moduleSpecifier,Ce.moduleSpecifier,Ue,Se)||e.compareNumberOfDirectorySeparators(be.moduleSpecifier,Ce.moduleSpecifier):0}function B(be,Ce,Ue,Se){return e.startsWith(be,"node:")&&!e.startsWith(Ce,"node:")?e.shouldUseUriStyleNodeCoreModules(Ue,Se)?-1:1:e.startsWith(Ce,"node:")&&!e.startsWith(be,"node:")?e.shouldUseUriStyleNodeCoreModules(Ue,Se)?1:-1:0}function A(be,Ce){var Ue=be.sourceFile,Se=be.program,$e=be.host,ce=be.preferences,Le=Se.getTypeChecker(),qe=f(Ce,Le);if(!qe)return;var pe=Le.getAliasedSymbol(qe),Me=qe.name,fn=[{symbol:qe,moduleSymbol:pe,moduleFileName:void 0,exportKind:3,targetFlags:pe.flags,isFromPackageJson:!1}],Ye=E(Ue,Se),Ne=Z(fn,Me,e.isIdentifier(Ce)?Ce.getStart(Ue):void 0,!1,Ye,Se,Ue,$e,ce);return{fixes:Ne,symbolName:Me}}function f(be,Ce){var Ue=e.isIdentifier(be)?Ce.getSymbolAtLocation(be):void 0;if(e.isUMDExportSymbol(Ue))return Ue;var Se=be.parent;return e.isJsxOpeningLikeElement(Se)&&Se.tagName===be||e.isJsxOpeningFragment(Se)?e.tryCast(Ce.resolveName(Ce.getJsxNamespace(Se),e.isJsxOpeningLikeElement(Se)?be:Se,111551,!1),e.isUMDExportSymbol):void 0}function F(be,Ce,Ue,Se){switch(Ce){case 0:return 0;case 1:return 1;case 2:return m(be,Ue,!!Se);case 3:return g(be,Ue,!!Se);default:return e.Debug.assertNever(Ce)}}ue.getImportKind=F;function g(be,Ce,Ue){if(e.getAllowSyntheticDefaultImports(Ce))return 1;var Se=e.getEmitModuleKind(Ce);switch(Se){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(be)&&(e.isExternalModule(be)||Ue)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(Se,"Unexpected moduleKind "+Se)}}function p(be,Ce,Ue){var Se=be.sourceFile,$e=be.program,ce=be.cancellationToken,Le=be.host,qe=be.preferences,pe=$e.getTypeChecker(),Me=$e.getCompilerOptions(),fn=d(Se,pe,Ce,Me);e.Debug.assert(fn!=="default","'default' isn't a legal identifier and couldn't occur here");var Ye=Me.importsNotUsedAsValues===2&&e.isValidTypeOnlyAliasUseSite(Ce),Ne=E(Se,$e),je=T(fn,e.getMeaningFromLocation(Ce),ce,Se,$e,Ue,Le,qe),xn=e.arrayFrom(e.flatMapIterator(je.entries(),function(Wn){var dn=Wn[0],vn=Wn[1];return Z(vn,fn,Ce.getStart(Se),Ye,Ne,$e,Se,Le,qe)}));return{fixes:xn,symbolName:fn}}function d(be,Ce,Ue,Se){var $e=Ue.parent;if((e.isJsxOpeningLikeElement($e)||e.isJsxClosingElement($e))&&$e.tagName===Ue&&Se.jsx!==4&&Se.jsx!==5){var ce=Ce.getJsxNamespace(be);if(e.isIntrinsicJsxName(Ue.text)||!Ce.resolveName(ce,$e,111551,!0))return ce}return Ue.text}function T(be,Ce,Ue,Se,$e,ce,Le,qe){var pe,Me=e.createMultiMap(),fn=e.createPackageJsonImportFilter(Se,qe,Le),Ye=(pe=Le.getModuleSpecifierCache)===null||pe===void 0?void 0:pe.call(Le),Ne=e.memoizeOne(function(xn){return e.createModuleSpecifierResolutionHost(xn?Le.getPackageJsonAutoImportProvider():$e,Le)});function je(xn,Wn,dn,vn,o,Cn){var z=Ne(Cn);if(Wn&&e.isImportableFile(o,Se,Wn,qe,fn,z,Ye)||!Wn&&fn.allowsImportingAmbientModule(xn,z)){var tn=o.getTypeChecker();Me.add(e.getUniqueSymbolId(dn,tn).toString(),{symbol:dn,moduleSymbol:xn,moduleFileName:Wn==null?void 0:Wn.fileName,exportKind:vn,targetFlags:e.skipAlias(dn,tn).flags,isFromPackageJson:Cn})}}return e.forEachExternalModuleToImportFrom($e,Le,ce,function(xn,Wn,dn,vn){var o=dn.getTypeChecker();Ue.throwIfCancellationRequested();var Cn=dn.getCompilerOptions(),z=e.getDefaultLikeExportInfo(xn,o,Cn);z&&(z.name===be||te(xn,Cn.target)===be)&&Oe(z.symbolForMeaning,Ce)&&je(xn,Wn,z.symbol,z.exportKind,dn,vn);var tn=o.tryGetMemberInModuleExportsAndProperties(be,xn);tn&&Oe(tn,Ce)&&je(xn,Wn,tn,0,dn,vn)}),Me}function m(be,Ce,Ue){var Se=e.getAllowSyntheticDefaultImports(Ce),$e=e.isInJSFile(be);if(!$e&&e.getEmitModuleKind(Ce)>=e.ModuleKind.ES2015)return Se?1:2;if($e)return e.isExternalModule(be)||Ue?Se?1:2:3;for(var ce=0,Le=be.statements;ce<Le.length;ce++){var qe=Le[ce];if(e.isImportEqualsDeclaration(qe)&&!e.nodeIsMissing(qe.moduleReference))return 3}return Se?1:3}function k(be,Ce,Ue,Se,$e){var ce,Le=e.textChanges.ChangeTracker.with(be,function(qe){ce=N(qe,Ce,Ue,Se,$e)});return ue.createCodeFixAction(ue.importFixName,Le,ce,ee,e.Diagnostics.Add_all_missing_imports)}function N(be,Ce,Ue,Se,$e){switch(Se.kind){case 0:return R(be,Ce,Se),[e.Diagnostics.Change_0_to_1,Ue,Se.namespacePrefix+"."+Ue];case 1:return me(be,Ce,Se,$e),[e.Diagnostics.Change_0_to_1,Ue,q(Se.moduleSpecifier,$e)+Ue];case 2:{var ce=Se.importClauseOrBindingPattern,Le=Se.importKind,qe=Se.canUseTypeOnlyImport,pe=Se.moduleSpecifier;D(be,Ce,ce,Le===1?Ue:void 0,Le===0?[Ue]:e.emptyArray,qe);var Me=e.stripQuotes(pe);return[Le===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,Ue,Me]}case 3:{var Le=Se.importKind,pe=Se.moduleSpecifier,fn=Se.typeOnly,Ye=Se.useRequire,Ne=Ye?C:J,je=Le===1?{defaultImport:Ue,typeOnly:fn}:Le===0?{namedImports:[Ue],typeOnly:fn}:{namespaceLikeImport:{importKind:Le,name:Ue},typeOnly:fn};return e.insertImports(be,Ce,Ne(pe,$e,je),!0),[Le===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,Ue,pe]}default:return e.Debug.assertNever(Se,"Unexpected fix kind "+Se.kind)}}function D(be,Ce,Ue,Se,$e,ce){if(Ue.kind===199){Se&&z(Ue,Se,"default");for(var Le=0,qe=$e;Le<qe.length;Le++){var pe=qe[Le];z(Ue,pe,void 0)}return}var Me=!ce&&Ue.isTypeOnly;if(Se&&(e.Debug.assert(!Ue.name,"Cannot add a default import to an import clause that already has one"),be.insertNodeAt(Ce,Ue.getStart(Ce),e.factory.createIdentifier(Se),{suffix:", "})),$e.length){var fn=Ue.namedBindings&&e.cast(Ue.namedBindings,e.isNamedImports).elements,Ye=e.stableSort($e.map(function(tn){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(tn))}),e.OrganizeImports.compareImportOrExportSpecifiers);if((fn==null?void 0:fn.length)&&e.OrganizeImports.importSpecifiersAreSorted(fn))for(var Ne=0,je=Ye;Ne<je.length;Ne++){var xn=je[Ne],Wn=e.OrganizeImports.getImportSpecifierInsertionIndex(fn,xn),dn=Ue.namedBindings.elements[Wn-1];dn?be.insertNodeInListAfter(Ce,dn,xn):be.insertNodeBefore(Ce,fn[0],xn,!e.positionsAreOnSameLine(fn[0].getStart(),Ue.parent.getStart(),Ce))}else if(fn==null?void 0:fn.length)for(var vn=0,o=Ye;vn<o.length;vn++){var xn=o[vn];be.insertNodeInListAfter(Ce,e.last(fn),xn,fn)}else if(Ye.length){var Cn=e.factory.createNamedImports(Ye);Ue.namedBindings?be.replaceNode(Ce,Ue.namedBindings,Cn):be.insertNodeAfter(Ce,e.Debug.checkDefined(Ue.name,"Import clause must have either named imports or a default import"),Cn)}}Me&&be.delete(Ce,e.getTypeKeywordOfTypeOnlyImport(Ue,Ce));function z(tn,$n,Un){var oe=e.factory.createBindingElement(void 0,Un,$n);tn.elements.length?be.insertNodeInListAfter(Ce,e.last(tn.elements),oe):be.replaceNode(Ce,tn,e.factory.createObjectBindingPattern([oe]))}}function R(be,Ce,Ue){var Se=Ue.namespacePrefix,$e=Ue.position;be.insertText(Ce,$e,Se+".")}function me(be,Ce,Ue,Se){var $e=Ue.moduleSpecifier,ce=Ue.position;be.insertText(Ce,ce,q($e,Se))}function q(be,Ce){var Ue=e.getQuoteFromPreference(Ce);return"import("+Ue+be+Ue+")."}function J(be,Ce,Ue){var Se,$e,ce=e.makeStringLiteral(be,Ce),Le;(Ue.defaultImport!==void 0||((Se=Ue.namedImports)===null||Se===void 0?void 0:Se.length))&&(Le=e.combine(Le,e.makeImport(Ue.defaultImport===void 0?void 0:e.factory.createIdentifier(Ue.defaultImport),($e=Ue.namedImports)===null||$e===void 0?void 0:$e.map(function(fn){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(fn))}),be,Ce,Ue.typeOnly)));var qe=Ue.namespaceLikeImport,pe=Ue.typeOnly;if(qe){var Me=qe.importKind===3?e.factory.createImportEqualsDeclaration(void 0,void 0,pe,e.factory.createIdentifier(qe.name),e.factory.createExternalModuleReference(ce)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(pe,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(qe.name))),ce);Le=e.combine(Le,Me)}return e.Debug.checkDefined(Le)}function C(be,Ce,Ue){var Se,$e,ce=e.makeStringLiteral(be,Ce),Le;if(Ue.defaultImport||((Se=Ue.namedImports)===null||Se===void 0?void 0:Se.length)){var qe=(($e=Ue.namedImports)===null||$e===void 0?void 0:$e.map(function(Me){return e.factory.createBindingElement(void 0,void 0,Me)}))||[];Ue.defaultImport&&qe.unshift(e.factory.createBindingElement(void 0,"default",Ue.defaultImport));var pe=we(e.factory.createObjectBindingPattern(qe),ce);Le=e.combine(Le,pe)}if(Ue.namespaceLikeImport){var pe=we(Ue.namespaceLikeImport.name,ce);Le=e.combine(Le,pe)}return e.Debug.checkDefined(Le)}function we(be,Ce){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof be=="string"?e.factory.createIdentifier(be):be,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Ce]))],2))}function Oe(be,Ce){var Ue=be.declarations;return e.some(Ue,function(Se){return!!(e.getMeaningFromDeclaration(Se)&Ce)})}function te(be,Ce){return Te(e.removeFileExtension(e.stripQuotes(be.name)),Ce)}ue.moduleSymbolToValidIdentifier=te;function Te(be,Ce){var Ue=e.getBaseFileName(e.removeSuffix(be,"/index")),Se="",$e=!0,ce=Ue.charCodeAt(0);e.isIdentifierStart(ce,Ce)?Se+=String.fromCharCode(ce):$e=!1;for(var Le=1;Le<Ue.length;Le++){var qe=Ue.charCodeAt(Le),pe=e.isIdentifierPart(qe,Ce);if(pe){var Me=String.fromCharCode(qe);$e||(Me=Me.toUpperCase()),Se+=Me}$e=pe}return e.isStringANonContextualKeyword(Se)?"_"+Se:Se||"_"}ue.moduleSpecifierToValidIdentifier=Te})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee,Y="fixOverrideModifier",V="fixAddOverrideModifier",ne="fixRemoveOverrideModifier",_e=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code],O=(ee={},ee[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,V,e.Diagnostics.Add_all_missing_override_modifiers],ee[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]=[e.Diagnostics.Remove_override_modifier,ne,e.Diagnostics.Remove_all_unnecessary_override_modifiers],ee[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]=[e.Diagnostics.Add_override_modifier,V,e.Diagnostics.Add_all_missing_override_modifiers],ee[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,V,e.Diagnostics.Remove_all_unnecessary_override_modifiers],ee[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]=[e.Diagnostics.Remove_override_modifier,ne,e.Diagnostics.Remove_all_unnecessary_override_modifiers],ee);ue.registerCodeFix({errorCodes:_e,getCodeActions:function(U){var Z=U.errorCode,v=U.span,W=U.sourceFile,x=O[Z];if(!x)return e.emptyArray;var $=x[0],L=x[1],E=x[2];if(e.isSourceFileJS(W))return e.emptyArray;var ae=e.textChanges.ChangeTracker.with(U,function(X){return w(X,U,Z,v.start)});return[ue.createCodeFixActionMaybeFixAll(Y,ae,$,L,E)]},fixIds:[Y,V,ne],getAllCodeActions:function(U){return ue.codeFixAll(U,_e,function(Z,v){var W=v.code,x=v.start,$=v.file,L=O[W];if(!L||L[1]!==U.fixId||e.isSourceFileJS($))return;w(Z,U,W,x)})}});function w(U,Z,v,W){switch(v){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:return b(U,Z.sourceFile,W);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:return de(U,Z.sourceFile,W);default:e.Debug.fail("Unexpected error code: "+v)}}function b(U,Z,v){var W=_(Z,v),x=W.modifiers||e.emptyArray,$=e.find(x,e.isStaticModifier),L=e.find(x,e.isAbstractModifier),E=e.find(x,function(ie){return e.isAccessibilityModifier(ie.kind)}),ae=L?L.end:$?$.end:E?E.end:W.decorators?e.skipTrivia(Z.text,W.decorators.end):W.getStart(Z),X=E||$||L?{prefix:" "}:{suffix:" "};U.insertModifierAt(Z,ae,157,X)}function de(U,Z,v){var W=_(Z,v),x=W.modifiers&&e.find(W.modifiers,function($){return $.kind===157});e.Debug.assertIsDefined(x),U.deleteModifier(Z,x)}function fe(U){switch(U.kind){case 169:case 165:case 167:case 170:case 171:return!0;case 162:return e.isParameterPropertyDeclaration(U,U.parent);default:return!1}}function _(U,Z){var v=e.getTokenAtPosition(U,Z),W=e.findAncestor(v,function(x){return e.isClassLike(x)?"quit":fe(x)});return e.Debug.assert(W&&fe(W)),W}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixNoPropertyAccessFromIndexSignature",Y=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];ue.registerCodeFix({errorCodes:Y,fixIds:[ee],getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=_e.preferences,de=ne(O,w.start),fe=e.textChanges.ChangeTracker.with(_e,function(_){return V(_,_e.sourceFile,de,b)});return[ue.createCodeFixAction(ee,fe,[e.Diagnostics.Use_element_access_for_0,de.name.text],ee,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){return V(O,w.file,ne(w.file,w.start),_e.preferences)})}});function V(_e,O,w,b){var de=e.getQuotePreference(O,b),fe=e.factory.createStringLiteral(w.name.text,de===0);_e.replaceNode(O,w,e.isPropertyAccessChain(w)?e.factory.createElementAccessChain(w.expression,w.questionDotToken,fe):e.factory.createElementAccessExpression(w.expression,fe))}function ne(_e,O){return e.cast(e.getTokenAtPosition(_e,O).parent,e.isPropertyAccessExpression)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixImplicitThis",Y=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=ne.sourceFile,O=ne.program,w=ne.span,b,de=e.textChanges.ChangeTracker.with(ne,function(fe){b=V(fe,_e,w.start,O.getTypeChecker())});return b?[ue.createCodeFixAction(ee,de,b,ee,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e,O){V(_e,O.file,O.start,ne.program.getTypeChecker())})}});function V(ne,_e,O,w){var b=e.getTokenAtPosition(_e,O);e.Debug.assert(b.kind===108);var de=e.getThisContainer(b,!1);if(!e.isFunctionDeclaration(de)&&!e.isFunctionExpression(de))return;if(!e.isSourceFile(e.getThisContainer(de,!1))){var fe=e.Debug.assertDefined(e.findChildOfKind(de,98,_e)),_=de.name,U=e.Debug.assertDefined(de.body);return e.isFunctionExpression(de)?_&&e.FindAllReferences.Core.isSymbolReferencedInFile(_,w,_e,U)?void 0:(ne.delete(_e,fe),_&&ne.delete(_e,_),ne.insertText(_e,U.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,_?_.text:e.ANONYMOUS]):(ne.replaceNode(_e,fe,e.factory.createToken(85)),ne.insertText(_e,_.end," = "),ne.insertText(_e,U.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,_.text])}}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixIncorrectNamedTupleSyntax",Y=[e.Diagnostics.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,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=V(O,w.start),de=e.textChanges.ChangeTracker.with(_e,function(fe){return ne(fe,O,b)});return[ue.createCodeFixAction(ee,de,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,ee,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[ee]});function V(_e,O){var w=e.getTokenAtPosition(_e,O);return e.findAncestor(w,function(b){return b.kind===195})}function ne(_e,O,w){if(!w)return;for(var b=w.type,de=!1,fe=!1;b.kind===183||b.kind===184||b.kind===189;)b.kind===183?de=!0:b.kind===184&&(fe=!0),b=b.type;var _=e.factory.updateNamedTupleMember(w,w.dotDotDotToken||(fe?e.factory.createToken(25):void 0),w.name,w.questionToken||(de?e.factory.createToken(57):void 0),b);if(_===w)return;_e.replaceNode(O,w,_)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixSpelling",Y=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(w){var b=w.sourceFile,de=w.errorCode,fe=V(b,w.span.start,w,de);if(!fe)return;var _=fe.node,U=fe.suggestedSymbol,Z=w.host.getCompilationSettings().target,v=e.textChanges.ChangeTracker.with(w,function(W){return ne(W,b,_,U,Z)});return[ue.createCodeFixAction("spelling",v,[e.Diagnostics.Change_spelling_to_0,e.symbolName(U)],ee,e.Diagnostics.Fix_all_detected_spelling_errors)]},fixIds:[ee],getAllCodeActions:function(w){return ue.codeFixAll(w,Y,function(b,de){var fe=V(de.file,de.start,w,de.code),_=w.host.getCompilationSettings().target;fe&&ne(b,w.sourceFile,fe.node,fe.suggestedSymbol,_)})}});function V(w,b,de,fe){var _=e.getTokenAtPosition(w,b),U=_.parent;if((fe===e.Diagnostics.No_overload_matches_this_call.code||fe===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(U))return;var Z=de.program.getTypeChecker(),v;if(e.isPropertyAccessExpression(U)&&U.name===_){e.Debug.assert(e.isMemberName(_),"Expected an identifier for spelling (property access)");var W=Z.getTypeAtLocation(U.expression);U.flags&32&&(W=Z.getNonNullableType(W)),v=Z.getSuggestedSymbolForNonexistentProperty(_,W)}else if(e.isQualifiedName(U)&&U.right===_){var x=Z.getSymbolAtLocation(U.left);x&&x.flags&1536&&(v=Z.getSuggestedSymbolForNonexistentModule(U.right,x))}else if(e.isImportSpecifier(U)&&U.name===_){e.Debug.assertNode(_,e.isIdentifier,"Expected an identifier for spelling (import)");var $=e.findAncestor(_,e.isImportDeclaration),L=O(w,de,$);L&&L.symbol&&(v=Z.getSuggestedSymbolForNonexistentModule(_,L.symbol))}else if(e.isJsxAttribute(U)&&U.name===_){e.Debug.assertNode(_,e.isIdentifier,"Expected an identifier for JSX attribute");var E=e.findAncestor(_,e.isJsxOpeningLikeElement),ae=Z.getContextualTypeForArgumentAtIndex(E,0);v=Z.getSuggestedSymbolForNonexistentJSXAttribute(_,ae)}else if(e.hasSyntacticModifier(U,16384)&&e.isClassElement(U)&&U.name===_){var X=e.findAncestor(_,e.isClassLike),ie=X?e.getEffectiveBaseTypeNode(X):void 0,le=ie?Z.getTypeAtLocation(ie):void 0;le&&(v=Z.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(_),le))}else{var P=e.getMeaningFromLocation(_),I=e.getTextOfNode(_);e.Debug.assert(I!==void 0,"name should be defined"),v=Z.getSuggestedSymbolForNonexistentSymbol(_,I,_e(P))}return v===void 0?void 0:{node:_,suggestedSymbol:v}}function ne(w,b,de,fe,_){var U=e.symbolName(fe);if(!e.isIdentifierText(U,_)&&e.isPropertyAccessExpression(de.parent)){var Z=fe.valueDeclaration;Z&&e.isNamedDeclaration(Z)&&e.isPrivateIdentifier(Z.name)?w.replaceNode(b,de,e.factory.createIdentifier(U)):w.replaceNode(b,de.parent,e.factory.createElementAccessExpression(de.parent.expression,e.factory.createStringLiteral(U)))}else w.replaceNode(b,de,e.factory.createIdentifier(U))}function _e(w){var b=0;return w&4&&(b|=1920),w&2&&(b|=788968),w&1&&(b|=111551),b}function O(w,b,de){if(!de||!e.isStringLiteralLike(de.moduleSpecifier))return;var fe=e.getResolvedModule(w,de.moduleSpecifier.text);return fe?b.program.getSourceFile(fe.resolvedFileName):void 0}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="returnValueCorrect",Y="fixAddReturnStatement",V="fixRemoveBracesFromArrowFunctionBody",ne="fixWrapTheBlockWithParen",_e=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],O;(function(L){L[L.MissingReturnStatement=0]="MissingReturnStatement",L[L.MissingParentheses=1]="MissingParentheses"})(O||(O={})),ue.registerCodeFix({errorCodes:_e,fixIds:[Y,V,ne],getCodeActions:function(L){var E=L.program,ae=L.sourceFile,X=L.span.start,ie=L.errorCode,le=fe(E.getTypeChecker(),ae,X,ie);return le?le.kind===O.MissingReturnStatement?e.append([W(L,le.expression,le.statement)],e.isArrowFunction(le.declaration)?x(L,le.declaration,le.expression,le.commentSource):void 0):[$(L,le.declaration,le.expression)]:void 0},getAllCodeActions:function(L){return ue.codeFixAll(L,_e,function(E,ae){var X=fe(L.program.getTypeChecker(),ae.file,ae.start,ae.code);if(!X)return;switch(L.fixId){case Y:U(E,ae.file,X.expression,X.statement);break;case V:if(!e.isArrowFunction(X.declaration))return;Z(E,ae.file,X.declaration,X.expression,X.commentSource,!1);break;case ne:if(!e.isArrowFunction(X.declaration))return;v(E,ae.file,X.declaration,X.expression);break;default:e.Debug.fail(JSON.stringify(L.fixId))}})}});function w(L,E,ae){var X=L.createSymbol(4,E.escapedText);X.type=L.getTypeAtLocation(ae);var ie=e.createSymbolTable([X]);return L.createAnonymousType(void 0,ie,[],[],[])}function b(L,E,ae,X){if(!E.body||!e.isBlock(E.body)||e.length(E.body.statements)!==1)return;var ie=e.first(E.body.statements);if(e.isExpressionStatement(ie)&&de(L,E,L.getTypeAtLocation(ie.expression),ae,X))return{declaration:E,kind:O.MissingReturnStatement,expression:ie.expression,statement:ie,commentSource:ie.expression};if(e.isLabeledStatement(ie)&&e.isExpressionStatement(ie.statement)){var le=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(ie.label,ie.statement.expression)]),P=w(L,ie.label,ie.statement.expression);if(de(L,E,P,ae,X))return e.isArrowFunction(E)?{declaration:E,kind:O.MissingParentheses,expression:le,statement:ie,commentSource:ie.statement.expression}:{declaration:E,kind:O.MissingReturnStatement,expression:le,statement:ie,commentSource:ie.statement.expression}}else if(e.isBlock(ie)&&e.length(ie.statements)===1){var I=e.first(ie.statements);if(e.isLabeledStatement(I)&&e.isExpressionStatement(I.statement)){var le=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(I.label,I.statement.expression)]),P=w(L,I.label,I.statement.expression);if(de(L,E,P,ae,X))return{declaration:E,kind:O.MissingReturnStatement,expression:le,statement:ie,commentSource:I}}}return}function de(L,E,ae,X,ie){if(ie){var le=L.getSignatureFromDeclaration(E);if(le){e.hasSyntacticModifier(E,256)&&(ae=L.createPromiseType(ae));var P=L.createSignature(E,le.typeParameters,le.thisParameter,le.parameters,ae,void 0,le.minArgumentCount,le.flags);ae=L.createAnonymousType(void 0,e.createSymbolTable(),[P],[],[])}else ae=L.getAnyType()}return L.isTypeAssignableTo(ae,X)}function fe(L,E,ae,X){var ie=e.getTokenAtPosition(E,ae);if(!ie.parent)return;var le=e.findAncestor(ie.parent,e.isFunctionLikeDeclaration);switch(X){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!le||!le.body||!le.type||!e.rangeContainsRange(le.type,ie)?void 0:b(L,le,L.getTypeFromTypeNode(le.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!le||!e.isCallExpression(le.parent)||!le.body)return;var P=le.parent.arguments.indexOf(le),I=L.getContextualTypeForArgumentAtIndex(le.parent,P);return I?b(L,le,I,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(ie)||!e.isVariableLike(ie.parent)&&!e.isJsxAttribute(ie.parent))return;var re=_(ie.parent);return!re||!e.isFunctionLikeDeclaration(re)||!re.body?void 0:b(L,re,L.getTypeAtLocation(ie.parent),!0)}return}function _(L){switch(L.kind){case 252:case 162:case 201:case 165:case 291:return L.initializer;case 283:return L.initializer&&(e.isJsxExpression(L.initializer)?L.initializer.expression:void 0);case 292:case 164:case 294:case 342:case 335:return}}function U(L,E,ae,X){e.suppressLeadingAndTrailingTrivia(ae);var ie=e.probablyUsesSemicolons(E);L.replaceNode(E,X,e.factory.createReturnStatement(ae),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:ie?";":void 0})}function Z(L,E,ae,X,ie,le){var P=le||e.needsParentheses(X)?e.factory.createParenthesizedExpression(X):X;e.suppressLeadingAndTrailingTrivia(ie),e.copyComments(ie,P),L.replaceNode(E,ae.body,P)}function v(L,E,ae,X){L.replaceNode(E,ae.body,e.factory.createParenthesizedExpression(X))}function W(L,E,ae){var X=e.textChanges.ChangeTracker.with(L,function(ie){return U(ie,L.sourceFile,E,ae)});return ue.createCodeFixAction(ee,X,e.Diagnostics.Add_a_return_statement,Y,e.Diagnostics.Add_all_missing_return_statement)}function x(L,E,ae,X){var ie=e.textChanges.ChangeTracker.with(L,function(le){return Z(le,L.sourceFile,E,ae,X,!1)});return ue.createCodeFixAction(ee,ie,e.Diagnostics.Remove_braces_from_arrow_function_body,V,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function $(L,E,ae){var X=e.textChanges.ChangeTracker.with(L,function(ie){return v(ie,L.sourceFile,E,ae)});return ue.createCodeFixAction(ee,X,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,ne,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixMissingMember",Y="fixMissingProperties",V="fixMissingAttributes",ne="fixMissingFunctionDeclaration",_e=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Cannot_find_name_0.code];ue.registerCodeFix({errorCodes:_e,getCodeActions:function(A){var f=A.program.getTypeChecker(),F=w(A.sourceFile,A.span.start,f,A.program);if(!F)return;if(F.kind===3){var g=e.textChanges.ChangeTracker.with(A,function(p){return le(p,A,F)});return[ue.createCodeFixAction(Y,g,e.Diagnostics.Add_missing_properties,Y,e.Diagnostics.Add_all_missing_properties)]}if(F.kind===4){var g=e.textChanges.ChangeTracker.with(A,function(d){return ie(d,A,F)});return[ue.createCodeFixAction(V,g,e.Diagnostics.Add_missing_attributes,V,e.Diagnostics.Add_all_missing_attributes)]}if(F.kind===2){var g=e.textChanges.ChangeTracker.with(A,function(d){return X(d,A,F)});return[ue.createCodeFixAction(ne,g,[e.Diagnostics.Add_missing_function_declaration_0,F.token.text],ne,e.Diagnostics.Add_all_missing_function_declarations)]}if(F.kind===0){var g=e.textChanges.ChangeTracker.with(A,function(d){return ae(d,A.program.getTypeChecker(),F)});return[ue.createCodeFixAction(ee,g,[e.Diagnostics.Add_missing_enum_member_0,F.token.text],ee,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(L(A,F),de(A,F))},fixIds:[ee,ne,Y,V],getAllCodeActions:function(A){var f=A.program,F=A.fixId,g=f.getTypeChecker(),p=new e.Map,d=new e.Map;return ue.createCombinedCodeActions(e.textChanges.ChangeTracker.with(A,function(T){ue.eachDiagnostic(A,_e,function(m){var k=w(m.file,m.start,g,A.program);if(!k||!e.addToSeen(p,e.getNodeId(k.parentDeclaration)+"#"+k.token.text))return;if(F===ne&&k.kind===2)X(T,A,k);else if(F===Y&&k.kind===3)le(T,A,k);else if(F===V&&k.kind===4)ie(T,A,k);else if(k.kind===0&&ae(T,g,k),k.kind===1){var N=k.parentDeclaration,D=k.token,R=e.getOrUpdate(d,N,function(){return[]});R.some(function(me){return me.token.text===D.text})||R.push(k)}}),d.forEach(function(m,k){for(var N=ue.getAllSupers(k,g),D=function(J){if(N.some(function(Ue){var Se=d.get(Ue);return!!Se&&Se.some(function($e){var ce=$e.token;return ce.text===J.token.text})}))return"continue";var C=J.parentDeclaration,we=J.declSourceFile,Oe=J.modifierFlags,te=J.token,Te=J.call,be=J.isJSFile;if(Te&&!e.isPrivateIdentifier(te))E(A,T,Te,te,Oe&32,C,we);else if(be&&!e.isInterfaceDeclaration(C))_(T,we,C,te,!!(Oe&32));else{var Ce=v(f.getTypeChecker(),C,te);W(T,we,C,te.text,Ce,Oe&32)}},R=0,me=m;R<me.length;R++){var q=me[R];D(q)}})}))}});var O;(function(A){A[A.Enum=0]="Enum",A[A.ClassOrInterface=1]="ClassOrInterface",A[A.Function=2]="Function",A[A.ObjectLiteral=3]="ObjectLiteral",A[A.JsxAttributes=4]="JsxAttributes"})(O||(O={}));function w(A,f,F,g){var p=e.getTokenAtPosition(A,f);if(!e.isIdentifier(p)&&!e.isPrivateIdentifier(p))return;var d=p.parent;if(e.isIdentifier(p)&&e.hasInitializer(d)&&d.initializer&&e.isObjectLiteralExpression(d.initializer)){var T=e.arrayFrom(F.getUnmatchedProperties(F.getTypeAtLocation(d.initializer),F.getTypeAtLocation(p),!1,!1));if(e.length(T))return{kind:3,token:p,properties:T,parentDeclaration:d.initializer}}if(e.isIdentifier(p)&&e.isJsxOpeningLikeElement(p.parent)){var m=B(F,p.parent);if(e.length(m))return{kind:4,token:p,attributes:m,parentDeclaration:p.parent}}if(e.isIdentifier(p)&&e.isCallExpression(d))return{kind:2,token:p,call:d,sourceFile:A,modifierFlags:0,parentDeclaration:A};if(!e.isPropertyAccessExpression(d))return;var k=e.skipConstraint(F.getTypeAtLocation(d.expression)),N=k.symbol;if(!N||!N.declarations)return;if(e.isIdentifier(p)&&e.isCallExpression(d.parent)){var D=e.find(N.declarations,e.isModuleDeclaration),R=D==null?void 0:D.getSourceFile();if(D&&R&&!b(g,R))return{kind:2,token:p,call:d.parent,sourceFile:A,modifierFlags:1,parentDeclaration:D};var me=e.find(N.declarations,e.isSourceFile);if(A.commonJsModuleIndicator)return;if(me&&!b(g,me))return{kind:2,token:p,call:d.parent,sourceFile:me,modifierFlags:1,parentDeclaration:me}}var q=e.find(N.declarations,e.isClassLike);if(!q&&e.isPrivateIdentifier(p))return;var J=q||e.find(N.declarations,e.isInterfaceDeclaration);if(J&&!b(g,J.getSourceFile())){var C=(k.target||k)!==F.getDeclaredTypeOfSymbol(N);if(C&&(e.isPrivateIdentifier(p)||e.isInterfaceDeclaration(J)))return;var we=J.getSourceFile(),Oe=(C?32:0)|(e.startsWithUnderscore(p.text)?8:0),te=e.isSourceFileJS(we),Te=e.tryCast(d.parent,e.isCallExpression);return{kind:1,token:p,call:Te,modifierFlags:Oe,parentDeclaration:J,declSourceFile:we,isJSFile:te}}var be=e.find(N.declarations,e.isEnumDeclaration);return be&&!e.isPrivateIdentifier(p)&&!b(g,be.getSourceFile())?{kind:0,token:p,parentDeclaration:be}:void 0}function b(A,f){return A.isSourceFileFromExternalLibrary(f)||A.isSourceFileDefaultLibrary(f)}function de(A,f){return f.isJSFile?e.singleElementArray(fe(A,f)):Z(A,f)}function fe(A,f){var F=f.parentDeclaration,g=f.declSourceFile,p=f.modifierFlags,d=f.token;if(e.isInterfaceDeclaration(F))return;var T=e.textChanges.ChangeTracker.with(A,function(k){return _(k,g,F,d,!!(p&32))});if(T.length===0)return;var m=p&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(d)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return ue.createCodeFixAction(ee,T,[m,d.text],ee,e.Diagnostics.Add_all_missing_members)}function _(A,f,F,g,p){var d=g.text;if(p){if(F.kind===224)return;var T=F.name.getText(),m=U(e.factory.createIdentifier(T),d);A.insertNodeAfter(f,F,m)}else if(e.isPrivateIdentifier(g)){var k=e.factory.createPropertyDeclaration(void 0,void 0,d,void 0,void 0,void 0),N=x(F);N?A.insertNodeAfter(f,N,k):A.insertNodeAtClassStart(f,F,k)}else{var D=e.getFirstConstructorWithBody(F);if(!D)return;var R=U(e.factory.createThis(),d);A.insertNodeAtConstructorEnd(f,D,R)}}function U(A,f){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(A,f),I()))}function Z(A,f){var F=f.parentDeclaration,g=f.declSourceFile,p=f.modifierFlags,d=f.token,T=d.text,m=p&32,k=v(A.program.getTypeChecker(),F,d),N=function(R){return e.textChanges.ChangeTracker.with(A,function(me){return W(me,g,F,T,k,R)})},D=[ue.createCodeFixAction(ee,N(p&32),[m?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,T],ee,e.Diagnostics.Add_all_missing_members)];return m||e.isPrivateIdentifier(d)||(p&8&&D.unshift(ue.createCodeFixActionWithoutFixAll(ee,N(8),[e.Diagnostics.Declare_private_property_0,T])),D.push($(A,g,F,d.text,k))),D}function v(A,f,F){var g;if(F.parent.parent.kind===219){var p=F.parent.parent,d=F.parent===p.left?p.right:p.left,T=A.getWidenedType(A.getBaseTypeOfLiteralType(A.getTypeAtLocation(d)));g=A.typeToTypeNode(T,f,1)}else{var m=A.getContextualType(F.parent);g=m?A.typeToTypeNode(m,void 0,1):void 0}return g||e.factory.createKeywordTypeNode(129)}function W(A,f,F,g,p,d){var T=e.factory.createPropertyDeclaration(void 0,d?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(d)):void 0,g,void 0,p,void 0),m=x(F);m?A.insertNodeAfter(f,m,T):A.insertNodeAtClassStart(f,F,T)}function x(A){for(var f,F=0,g=A.members;F<g.length;F++){var p=g[F];if(!e.isPropertyDeclaration(p))break;f=p}return f}function $(A,f,F,g,p){var d=e.factory.createKeywordTypeNode(148),T=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,d,void 0),m=e.factory.createIndexSignature(void 0,void 0,[T],p),k=e.textChanges.ChangeTracker.with(A,function(N){return N.insertNodeAtClassStart(f,F,m)});return ue.createCodeFixActionWithoutFixAll(ee,k,[e.Diagnostics.Add_index_signature_for_property_0,g])}function L(A,f){var F=f.parentDeclaration,g=f.declSourceFile,p=f.modifierFlags,d=f.token,T=f.call;if(T===void 0)return;if(e.isPrivateIdentifier(d))return;var m=d.text,k=function(D){return e.textChanges.ChangeTracker.with(A,function(R){return E(A,R,T,d,D,F,g)})},N=[ue.createCodeFixAction(ee,k(p&32),[p&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,m],ee,e.Diagnostics.Add_all_missing_members)];return p&8&&N.unshift(ue.createCodeFixActionWithoutFixAll(ee,k(8),[e.Diagnostics.Declare_private_method_0,m])),N}function E(A,f,F,g,p,d,T){var m=ue.createImportAdder(T,A.program,A.preferences,A.host),k=ue.createSignatureDeclarationFromCallExpression(167,A,m,F,g,p,d),N=e.findAncestor(F,function(D){return e.isMethodDeclaration(D)||e.isConstructorDeclaration(D)});N&&N.parent===d?f.insertNodeAfter(T,N,k):f.insertNodeAtClassStart(T,d,k),m.writeFixes(f)}function ae(A,f,F){var g=F.token,p=F.parentDeclaration,d=e.some(p.members,function(m){var k=f.getTypeAtLocation(m);return!!(k&&k.flags&402653316)}),T=e.factory.createEnumMember(g,d?e.factory.createStringLiteral(g.text):void 0);A.replaceNode(p.getSourceFile(),p,e.factory.updateEnumDeclaration(p,p.decorators,p.modifiers,p.name,e.concatenate(p.members,e.singleElementArray(T))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function X(A,f,F){var g=ue.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),p=ue.createSignatureDeclarationFromCallExpression(254,f,g,F.call,e.idText(F.token),F.modifierFlags,F.parentDeclaration);A.insertNodeAtEndOfScope(F.sourceFile,F.parentDeclaration,p)}function ie(A,f,F){var g=ue.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),p=e.getQuotePreference(f.sourceFile,f.preferences),d=f.program.getTypeChecker(),T=F.parentDeclaration.attributes,m=e.some(T.properties,e.isJsxSpreadAttribute),k=e.map(F.attributes,function(R){var me=R.valueDeclaration?P(f,d,g,p,d.getTypeAtLocation(R.valueDeclaration)):I();return e.factory.createJsxAttribute(e.factory.createIdentifier(R.name),e.factory.createJsxExpression(void 0,me))}),N=e.factory.createJsxAttributes(m?Mt(Mt([],k,!0),T.properties,!0):Mt(Mt([],T.properties,!0),k,!0)),D={prefix:T.pos===T.end?" ":void 0};A.replaceNode(f.sourceFile,T,N,D)}function le(A,f,F){var g=ue.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),p=e.getQuotePreference(f.sourceFile,f.preferences),d=f.program.getTypeChecker(),T=e.map(F.properties,function(m){var k=m.valueDeclaration?P(f,d,g,p,d.getTypeAtLocation(m.valueDeclaration)):I();return e.factory.createPropertyAssignment(m.name,k)});A.replaceNode(f.sourceFile,F.parentDeclaration,e.factory.createObjectLiteralExpression(Mt(Mt([],F.parentDeclaration.properties,!0),T,!0),!0))}function P(A,f,F,g,p){if(p.flags&3)return I();if(p.flags&(4|134217728))return e.factory.createStringLiteral("",g===0);if(p.flags&8)return e.factory.createNumericLiteral(0);if(p.flags&64)return e.factory.createBigIntLiteral("0n");if(p.flags&16)return e.factory.createFalse();if(p.flags&1056){var d=p.symbol.exports?e.firstOrUndefined(e.arrayFrom(p.symbol.exports.values())):p.symbol,T=f.symbolToExpression(p.symbol.parent?p.symbol.parent:p.symbol,111551,void 0,void 0);return d===void 0||T===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(T,f.symbolToString(d))}if(p.flags&256)return e.factory.createNumericLiteral(p.value);if(p.flags&2048)return e.factory.createBigIntLiteral(p.value);if(p.flags&128)return e.factory.createStringLiteral(p.value,g===0);if(p.flags&512)return p===f.getFalseType()||p===f.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(p.flags&65536)return e.factory.createNull();if(p.flags&1048576){var m=e.firstDefined(p.types,function(J){return P(A,f,F,g,J)});return m!=null?m:I()}if(f.isArrayLikeType(p))return e.factory.createArrayLiteralExpression();if(re(p)){var k=e.map(f.getPropertiesOfType(p),function(J){var C=J.valueDeclaration?P(A,f,F,g,f.getTypeAtLocation(J.valueDeclaration)):I();return e.factory.createPropertyAssignment(J.name,C)});return e.factory.createObjectLiteralExpression(k,!0)}if(e.getObjectFlags(p)&16){var N=e.find(p.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(N===void 0)return I();var D=f.getSignaturesOfType(p,0);if(D===void 0)return I();var R=ue.createSignatureDeclarationFromSignature(211,A,g,D[0],ue.createStubbedBody(e.Diagnostics.Function_not_implemented.message,g),void 0,void 0,void 0,void 0,F);return R!=null?R:I()}if(e.getObjectFlags(p)&1){var me=e.getClassLikeDeclarationOfSymbol(p.symbol);if(me===void 0||e.hasAbstractModifier(me))return I();var q=e.getFirstConstructorWithBody(me);return q&&e.length(q.parameters)?I():e.factory.createNewExpression(e.factory.createIdentifier(p.symbol.name),void 0,void 0)}return I()}function I(){return e.factory.createIdentifier("undefined")}function re(A){return A.flags&524288&&(e.getObjectFlags(A)&128||A.symbol&&e.tryCast(e.singleOrUndefined(A.symbol.declarations),e.isTypeLiteralNode))}function B(A,f){var F=A.getContextualType(f.attributes);if(F===void 0)return e.emptyArray;var g=F.getProperties();if(!e.length(g))return e.emptyArray;for(var p=new e.Set,d=0,T=f.attributes.properties;d<T.length;d++){var m=T[d];if(e.isJsxAttribute(m)&&p.add(m.name.escapedText),e.isJsxSpreadAttribute(m))for(var k=A.getTypeAtLocation(m.expression),N=0,D=k.getProperties();N<D.length;N++){var R=D[N];p.add(R.escapedName)}}return e.filter(g,function(me){return!(me.flags&16777216||e.getCheckFlags(me)&48||p.has(me.escapedName))})}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addMissingNewOperator",Y=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=e.textChanges.ChangeTracker.with(_e,function(de){return V(de,O,w)});return[ue.createCodeFixAction(ee,b,e.Diagnostics.Add_missing_new_operator_to_call,ee,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[ee],getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){return V(O,_e.sourceFile,w)})}});function V(_e,O,w){var b=e.cast(ne(O,w),e.isCallExpression),de=e.factory.createNewExpression(b.expression,b.typeArguments,b.arguments);_e.replaceNode(O,b,de)}function ne(_e,O){for(var w=e.getTokenAtPosition(_e,O.start),b=e.textSpanEnd(O);w.end<b;)w=w.parent;return w}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixCannotFindModule",Y="installTypesPackage",V=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,ne=[V,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];ue.registerCodeFix({errorCodes:ne,getCodeActions:function(b){var de=b.host,fe=b.sourceFile,_=b.span.start,U=O(fe,_);if(U===void 0)return;var Z=w(U,de,b.errorCode);return Z===void 0?[]:[ue.createCodeFixAction(ee,[],[e.Diagnostics.Install_0,Z],Y,e.Diagnostics.Install_all_missing_types_packages,_e(fe.fileName,Z))]},fixIds:[Y],getAllCodeActions:function(b){return ue.codeFixAll(b,ne,function(de,fe,_){var U=O(fe.file,fe.start);if(U===void 0)return;switch(b.fixId){case Y:{var Z=w(U,b.host,fe.code);Z&&_.push(_e(fe.file.fileName,Z));break}default:e.Debug.fail("Bad fixId: "+b.fixId)}})}});function _e(b,de){return{type:"install package",file:b,packageName:de}}function O(b,de){var fe=e.tryCast(e.getTokenAtPosition(b,de),e.isStringLiteral);if(!fe)return;var _=fe.text,U=e.parsePackageName(_).packageName;return e.isExternalModuleNameRelative(U)?void 0:U}function w(b,de,fe){var _;return fe===V?e.JsTyping.nodeCoreModules.has(b)?"@types/node":void 0:((_=de.isKnownTypesPackageName)===null||_===void 0?void 0:_.call(de,b))?e.getTypesPackageName(b):void 0}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],Y="fixClassDoesntImplementInheritedAbstractMember";ue.registerCodeFix({errorCodes:ee,getCodeActions:function(O){var w=O.sourceFile,b=O.span,de=e.textChanges.ChangeTracker.with(O,function(fe){return ne(V(w,b.start),w,O,fe,O.preferences)});return de.length===0?void 0:[ue.createCodeFixAction(Y,de,e.Diagnostics.Implement_inherited_abstract_class,Y,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[Y],getAllCodeActions:function(O){var w=new e.Map;return ue.codeFixAll(O,ee,function(b,de){var fe=V(de.file,de.start);e.addToSeen(w,e.getNodeId(fe))&&ne(fe,O.sourceFile,O,b,O.preferences)})}});function V(O,w){var b=e.getTokenAtPosition(O,w);return e.cast(b.parent,e.isClassLike)}function ne(O,w,b,de,fe){var _=e.getEffectiveBaseTypeNode(O),U=b.program.getTypeChecker(),Z=U.getTypeAtLocation(_),v=U.getPropertiesOfType(Z).filter(_e),W=ue.createImportAdder(w,b.program,fe,b.host);ue.createMissingMemberNodes(O,v,w,b,fe,W,function(x){return de.insertNodeAtClassStart(w,O,x)}),W.writeFixes(de)}function _e(O){var w=e.getSyntacticModifierFlags(e.first(O.getDeclarations()));return!(w&8)&&!!(w&128)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="classSuperMustPrecedeThisAccess",Y=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var w=O.sourceFile,b=O.span,de=ne(w,b.start);if(!de)return;var fe=de.constructor,_=de.superCall,U=e.textChanges.ChangeTracker.with(O,function(Z){return V(Z,w,fe,_)});return[ue.createCodeFixAction(ee,U,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,ee,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[ee],getAllCodeActions:function(O){var w=O.sourceFile,b=new e.Map;return ue.codeFixAll(O,Y,function(de,fe){var _=ne(fe.file,fe.start);if(!_)return;var U=_.constructor,Z=_.superCall;e.addToSeen(b,e.getNodeId(U.parent))&&V(de,w,U,Z)})}});function V(O,w,b,de){O.insertNodeAtConstructorStart(w,b,de),O.delete(w,de)}function ne(O,w){var b=e.getTokenAtPosition(O,w);if(b.kind!==108)return;var de=e.getContainingFunction(b),fe=_e(de.body);return fe&&!fe.expression.arguments.some(function(_){return e.isPropertyAccessExpression(_)&&_.expression===b})?{constructor:de,superCall:fe}:void 0}function _e(O){return e.isExpressionStatement(O)&&e.isSuperCall(O.expression)?O:e.isFunctionLike(O)?void 0:e.forEachChild(O,_e)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="constructorForDerivedNeedSuperCall",Y=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=V(O,w.start),de=e.textChanges.ChangeTracker.with(_e,function(fe){return ne(fe,O,b)});return[ue.createCodeFixAction(ee,de,e.Diagnostics.Add_missing_super_call,ee,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[ee],getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){return ne(O,_e.sourceFile,V(w.file,w.start))})}});function V(_e,O){var w=e.getTokenAtPosition(_e,O);return e.Debug.assert(e.isConstructorDeclaration(w.parent),"token should be at the constructor declaration"),w.parent}function ne(_e,O,w){var b=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));_e.insertNodeAtConstructorStart(O,w,b)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="enableExperimentalDecorators",Y=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=ne.program.getCompilerOptions().configFile;if(_e===void 0)return;var O=e.textChanges.ChangeTracker.with(ne,function(w){return V(w,_e)});return[ue.createCodeFixActionWithoutFixAll(ee,O,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e){var O=ne.program.getCompilerOptions().configFile;if(O===void 0)return;V(_e,O)})}});function V(ne,_e){ue.setJsonCompilerOptionValue(ne,_e,"experimentalDecorators",e.factory.createTrue())}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixEnableJsxFlag",Y=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=ne.program.getCompilerOptions().configFile;if(_e===void 0)return;var O=e.textChanges.ChangeTracker.with(ne,function(w){return V(w,_e)});return[ue.createCodeFixActionWithoutFixAll(ee,O,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e){var O=ne.program.getCompilerOptions().configFile;if(O===void 0)return;V(_e,O)})}});function V(ne,_e){ue.setJsonCompilerOptionValue(ne,_e,"jsx",e.factory.createStringLiteral("react"))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){ue.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(ee){var Y=ee.program.getCompilerOptions(),V=Y.configFile;if(V===void 0)return;var ne=[],_e=e.getEmitModuleKind(Y),O=_e>=e.ModuleKind.ES2015&&_e<e.ModuleKind.ESNext;if(O){var w=e.textChanges.ChangeTracker.with(ee,function(fe){ue.setJsonCompilerOptionValue(fe,V,"module",e.factory.createStringLiteral("esnext"))});ne.push(ue.createCodeFixActionWithoutFixAll("fixModuleOption",w,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var b=e.getEmitScriptTarget(Y),de=b<4||b>99;if(de){var w=e.textChanges.ChangeTracker.with(ee,function(_){var U=e.getTsConfigObjectLiteralExpression(V);if(!U)return;var Z=[["target",e.factory.createStringLiteral("es2017")]];_e===e.ModuleKind.CommonJS&&Z.push(["module",e.factory.createStringLiteral("commonjs")]),ue.setJsonCompilerOptionValues(_,V,Z)});ne.push(ue.createCodeFixActionWithoutFixAll("fixTargetOption",w,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return ne.length?ne:void 0}})})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixPropertyAssignment",Y=[e.Diagnostics.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];ue.registerCodeFix({errorCodes:Y,fixIds:[ee],getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=ne(O,w.start),de=e.textChanges.ChangeTracker.with(_e,function(fe){return V(fe,_e.sourceFile,b)});return[ue.createCodeFixAction(ee,de,[e.Diagnostics.Change_0_to_1,"=",":"],ee,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){return V(O,w.file,ne(w.file,w.start))})}});function V(_e,O,w){_e.replaceNode(O,w,e.factory.createPropertyAssignment(w.name,w.objectAssignmentInitializer))}function ne(_e,O){return e.cast(e.getTokenAtPosition(_e,O).parent,e.isShorthandPropertyAssignment)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="extendsInterfaceBecomesImplements",Y=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=_e.sourceFile,w=V(O,_e.span.start);if(!w)return;var b=w.extendsToken,de=w.heritageClauses,fe=e.textChanges.ChangeTracker.with(_e,function(_){return ne(_,O,b,de)});return[ue.createCodeFixAction(ee,fe,e.Diagnostics.Change_extends_to_implements,ee,e.Diagnostics.Change_all_extended_interfaces_to_implements)]},fixIds:[ee],getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){var b=V(w.file,w.start);b&&ne(O,w.file,b.extendsToken,b.heritageClauses)})}});function V(_e,O){var w=e.getTokenAtPosition(_e,O),b=e.getContainingClass(w).heritageClauses,de=b[0].getFirstToken();return de.kind===94?{extendsToken:de,heritageClauses:b}:void 0}function ne(_e,O,w,b){if(_e.replaceNode(O,w,e.factory.createToken(117)),b.length===2&&b[0].token===94&&b[1].token===117){var de=b[1].getFirstToken(),fe=de.getFullStart();_e.replaceRange(O,{pos:fe,end:fe},e.factory.createToken(27));for(var _=O.text,U=de.end;U<_.length&&e.isWhiteSpaceSingleLine(_.charCodeAt(U));)U++;_e.deleteRange(O,{pos:de.getStart(),end:U})}}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="forgottenThisPropertyAccess",Y=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,V=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,Y];ue.registerCodeFix({errorCodes:V,getCodeActions:function(O){var w=O.sourceFile,b=ne(w,O.span.start,O.errorCode);if(!b)return;var de=e.textChanges.ChangeTracker.with(O,function(fe){return _e(fe,w,b)});return[ue.createCodeFixAction(ee,de,[e.Diagnostics.Add_0_to_unresolved_variable,b.className||"this"],ee,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[ee],getAllCodeActions:function(O){return ue.codeFixAll(O,V,function(w,b){var de=ne(b.file,b.start,b.code);de&&_e(w,O.sourceFile,de)})}});function ne(O,w,b){var de=e.getTokenAtPosition(O,w);if(e.isIdentifier(de))return{node:de,className:b===Y?e.getContainingClass(de).name.text:void 0}}function _e(O,w,b){var de=b.node,fe=b.className;e.suppressLeadingAndTrailingTrivia(de),O.replaceNode(w,de,e.factory.createPropertyAccessExpression(fe?e.factory.createIdentifier(fe):e.factory.createThis(),de))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixInvalidJsxCharacters_expression",Y="fixInvalidJsxCharacters_htmlEntity",V=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];ue.registerCodeFix({errorCodes:V,fixIds:[ee,Y],getCodeActions:function(w){var b=w.sourceFile,de=w.preferences,fe=w.span,_=e.textChanges.ChangeTracker.with(w,function(Z){return O(Z,de,b,fe.start,!1)}),U=e.textChanges.ChangeTracker.with(w,function(Z){return O(Z,de,b,fe.start,!0)});return[ue.createCodeFixAction(ee,_,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,ee,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),ue.createCodeFixAction(Y,U,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,Y,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(w){return ue.codeFixAll(w,V,function(b,de){return O(b,w.preferences,de.file,de.start,w.fixId===Y)})}});var ne={">":">","}":"}"};function _e(w){return e.hasProperty(ne,w)}function O(w,b,de,fe,_){var U=de.getText()[fe];if(!_e(U))return;var Z=_?ne[U]:"{"+e.quote(de,b,U)+"}";w.replaceRangeWithText(de,{pos:fe,end:fe+1},Z)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="unusedIdentifier",Y="unusedIdentifier_prefix",V="unusedIdentifier_delete",ne="unusedIdentifier_deleteImports",_e="unusedIdentifier_infer",O=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];ue.registerCodeFix({errorCodes:O,getCodeActions:function(I){var re=I.errorCode,B=I.sourceFile,A=I.program,f=I.cancellationToken,F=A.getTypeChecker(),g=A.getSourceFiles(),p=e.getTokenAtPosition(B,I.span.start);if(e.isJSDocTemplateTag(p))return[b(e.textChanges.ChangeTracker.with(I,function(q){return q.delete(B,p)}),e.Diagnostics.Remove_template_tag)];if(p.kind===29){var d=e.textChanges.ChangeTracker.with(I,function(q){return de(q,B,p)});return[b(d,e.Diagnostics.Remove_type_parameters)]}var T=_(p);if(T){var d=e.textChanges.ChangeTracker.with(I,function(J){return J.delete(B,T)});return[ue.createCodeFixAction(ee,d,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(T)],ne,e.Diagnostics.Delete_all_unused_imports)]}else if(fe(p)){var m=e.textChanges.ChangeTracker.with(I,function(q){return $(B,p,q,F,g,A,f,!1)});if(m.length)return[ue.createCodeFixAction(ee,m,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,p.getText(B)],ne,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(p.parent)||e.isArrayBindingPattern(p.parent)){if(e.isParameter(p.parent.parent)){var k=p.parent.elements,N=[k.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(k,function(q){return q.getText(B)}).join(", ")];return[b(e.textChanges.ChangeTracker.with(I,function(q){return v(q,B,p.parent)}),N)]}return[b(e.textChanges.ChangeTracker.with(I,function(q){return q.delete(B,p.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(U(B,p))return[b(e.textChanges.ChangeTracker.with(I,function(q){return Z(q,B,p.parent)}),e.Diagnostics.Remove_variable_statement)];var D=[];if(p.kind===136){var d=e.textChanges.ChangeTracker.with(I,function(J){return w(J,B,p)}),R=e.cast(p.parent,e.isInferTypeNode).typeParameter.name.text;D.push(ue.createCodeFixAction(ee,d,[e.Diagnostics.Replace_infer_0_with_unknown,R],_e,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var m=e.textChanges.ChangeTracker.with(I,function(J){return $(B,p,J,F,g,A,f,!1)});if(m.length){var R=e.isComputedPropertyName(p.parent)?p.parent:p;D.push(b(m,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,R.getText(B)]))}}var me=e.textChanges.ChangeTracker.with(I,function(q){return W(q,re,B,p)});return me.length&&D.push(ue.createCodeFixAction(ee,me,[e.Diagnostics.Prefix_0_with_an_underscore,p.getText(B)],Y,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),D},fixIds:[Y,V,ne,_e],getAllCodeActions:function(I){var re=I.sourceFile,B=I.program,A=I.cancellationToken,f=B.getTypeChecker(),F=B.getSourceFiles();return ue.codeFixAll(I,O,function(g,p){var d=e.getTokenAtPosition(re,p.start);switch(I.fixId){case Y:W(g,p.code,re,d);break;case ne:{var T=_(d);T?g.delete(re,T):fe(d)&&$(re,d,g,f,F,B,A,!0);break}case V:{if(d.kind===136||fe(d))break;if(e.isJSDocTemplateTag(d))g.delete(re,d);else if(d.kind===29)de(g,re,d);else if(e.isObjectBindingPattern(d.parent)){if(d.parent.parent.initializer)break;(!e.isParameter(d.parent.parent)||ae(d.parent.parent,f,F))&&g.delete(re,d.parent.parent)}else{if(e.isArrayBindingPattern(d.parent.parent)&&d.parent.parent.parent.initializer)break;U(re,d)?Z(g,re,d.parent):$(re,d,g,f,F,B,A,!0)}break}case _e:d.kind===136&&w(g,re,d);break;default:e.Debug.fail(JSON.stringify(I.fixId))}})}});function w(I,re,B){I.replaceNode(re,B.parent,e.factory.createKeywordTypeNode(153))}function b(I,re){return ue.createCodeFixAction(ee,I,re,V,e.Diagnostics.Delete_all_unused_declarations)}function de(I,re,B){I.delete(re,e.Debug.checkDefined(e.cast(B.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function fe(I){return I.kind===100||I.kind===79&&(I.parent.kind===268||I.parent.kind===265)}function _(I){return I.kind===100?e.tryCast(I.parent,e.isImportDeclaration):void 0}function U(I,re){return e.isVariableDeclarationList(re.parent)&&e.first(re.parent.getChildren(I))===re}function Z(I,re,B){I.delete(re,B.parent.kind===235?B.parent:B)}function v(I,re,B){e.forEach(B.elements,function(A){return I.delete(re,A)})}function W(I,re,B,A){if(re===e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)return;A.kind===136&&(A=e.cast(A.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(A)&&x(A)&&(I.replaceNode(B,A,e.factory.createIdentifier("_"+A.text)),e.isParameter(A.parent)&&e.getJSDocParameterTags(A.parent).forEach(function(f){e.isIdentifier(f.name)&&I.replaceNode(B,f.name,e.factory.createIdentifier("_"+f.name.text))}))}function x(I){switch(I.parent.kind){case 162:case 161:return!0;case 252:{var re=I.parent;switch(re.parent.parent.kind){case 242:case 241:return!0}}}return!1}function $(I,re,B,A,f,F,g,p){L(re,B,I,A,f,F,g,p),e.isIdentifier(re)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(re,A,I,function(d){e.isPropertyAccessExpression(d.parent)&&d.parent.name===d&&(d=d.parent),!p&&P(d)&&B.delete(I,d.parent.parent)})}function L(I,re,B,A,f,F,g,p){var d=I.parent;if(e.isParameter(d))E(re,B,d,A,f,F,g,p);else if(!(p&&e.isIdentifier(I)&&e.FindAllReferences.Core.isSymbolReferencedInFile(I,A,B))){var T=e.isImportClause(d)?I:e.isComputedPropertyName(d)?d.parent:d;e.Debug.assert(T!==B,"should not delete whole source file"),re.delete(B,T)}}function E(I,re,B,A,f,F,g,p){p===void 0&&(p=!1),X(A,re,B,f,F,g,p)&&(B.modifiers&&B.modifiers.length>0&&(!e.isIdentifier(B.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(B.name,A,re))?B.modifiers.forEach(function(d){return I.deleteModifier(re,d)}):!B.initializer&&ae(B,A,f)&&I.delete(re,B))}function ae(I,re,B){var A=I.parent.parameters.indexOf(I);return!e.FindAllReferences.Core.someSignatureUsage(I.parent,B,re,function(f,F){return!F||F.arguments.length>A})}function X(I,re,B,A,f,F,g){var p=B.parent;switch(p.kind){case 167:case 169:var d=p.parameters.indexOf(B),T=e.isMethodDeclaration(p)?p.name:p,m=e.FindAllReferences.Core.getReferencedSymbolsForNode(p.pos,T,f,A,F);if(m)for(var k=0,N=m;k<N.length;k++)for(var D=N[k],R=0,me=D.references;R<me.length;R++){var q=me[R];if(q.kind===1){var J=e.isSuperKeyword(q.node)&&e.isCallExpression(q.node.parent)&&q.node.parent.arguments.length>d,C=e.isPropertyAccessExpression(q.node.parent)&&e.isSuperKeyword(q.node.parent.expression)&&e.isCallExpression(q.node.parent.parent)&&q.node.parent.parent.arguments.length>d,we=(e.isMethodDeclaration(q.node.parent)||e.isMethodSignature(q.node.parent))&&q.node.parent!==B.parent&&q.node.parent.parameters.length>d;if(J||C||we)return!1}}return!0;case 254:return p.name&&ie(I,re,p.name)?le(p,B,g):!0;case 211:case 212:return le(p,B,g);case 171:return!1;default:return e.Debug.failBadSyntaxKind(p)}}function ie(I,re,B){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(B,I,re,function(A){return e.isIdentifier(A)&&e.isCallExpression(A.parent)&&A.parent.arguments.indexOf(A)>=0})}function le(I,re,B){var A=I.parameters,f=A.indexOf(re);return e.Debug.assert(f!==-1,"The parameter should already be in the list"),B?A.slice(f+1).every(function(F){return e.isIdentifier(F.name)&&!F.symbol.isReferenced}):f===A.length-1}function P(I){return(e.isBinaryExpression(I.parent)&&I.parent.left===I||(e.isPostfixUnaryExpression(I.parent)||e.isPrefixUnaryExpression(I.parent))&&I.parent.operand===I)&&e.isExpressionStatement(I.parent.parent)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixUnreachableCode",Y=[e.Diagnostics.Unreachable_code_detected.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=e.textChanges.ChangeTracker.with(_e,function(w){return V(w,_e.sourceFile,_e.span.start,_e.span.length,_e.errorCode)});return[ue.createCodeFixAction(ee,O,e.Diagnostics.Remove_unreachable_code,ee,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[ee],getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){return V(O,w.file,w.start,w.length,w.code)})}});function V(_e,O,w,b,de){var fe=e.getTokenAtPosition(O,w),_=e.findAncestor(fe,e.isStatement);if(_.getStart(O)!==fe.getStart(O)){var U=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(_.kind),tokenKind:e.Debug.formatSyntaxKind(fe.kind),errorCode:de,start:w,length:b});e.Debug.fail("Token and statement should start at the same point. "+U)}var Z=(e.isBlock(_.parent)?_.parent:_).parent;if(!e.isBlock(_.parent)||_===e.first(_.parent.statements))switch(Z.kind){case 237:if(Z.elseStatement){if(e.isBlock(_.parent))break;_e.replaceNode(O,_,e.factory.createBlock(e.emptyArray));return}case 239:case 240:_e.delete(O,Z);return}if(e.isBlock(_.parent)){var v=w+b,W=e.Debug.checkDefined(ne(e.sliceAfter(_.parent.statements,_),function(x){return x.pos<v}),"Some statement should be last");_e.deleteNodeRange(O,_,W)}else _e.delete(O,_)}function ne(_e,O){for(var w,b=0,de=_e;b<de.length;b++){var fe=de[b];if(!O(fe))break;w=fe}return w}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixUnusedLabel",Y=[e.Diagnostics.Unused_label.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=e.textChanges.ChangeTracker.with(ne,function(O){return V(O,ne.sourceFile,ne.span.start)});return[ue.createCodeFixAction(ee,_e,e.Diagnostics.Remove_unused_label,ee,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e,O){return V(_e,O.file,O.start)})}});function V(ne,_e,O){var w=e.getTokenAtPosition(_e,O),b=e.cast(w.parent,e.isLabeledStatement),de=w.getStart(_e),fe=b.statement.getStart(_e),_=e.positionsAreOnSameLine(de,fe,_e)?fe:e.skipTrivia(_e.text,e.findChildOfKind(b,58,_e).end,!0);ne.deleteRange(_e,{pos:de,end:_})}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixJSDocTypes_plain",Y="fixJSDocTypes_nullable",V=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];ue.registerCodeFix({errorCodes:V,getCodeActions:function(w){var b=w.sourceFile,de=w.program.getTypeChecker(),fe=_e(b,w.span.start,de);if(!fe)return;var _=fe.typeNode,U=fe.type,Z=_.getText(b),v=[W(U,ee,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return _.kind===309&&v.push(W(de.getNullableType(U,32768),Y,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),v;function W(x,$,L){var E=e.textChanges.ChangeTracker.with(w,function(ae){return ne(ae,b,_,x,de)});return ue.createCodeFixAction("jdocTypes",E,[e.Diagnostics.Change_0_to_1,Z,de.typeToString(x)],$,L)}},fixIds:[ee,Y],getAllCodeActions:function(w){var b=w.fixId,de=w.program,fe=w.sourceFile,_=de.getTypeChecker();return ue.codeFixAll(w,V,function(U,Z){var v=_e(Z.file,Z.start,_);if(!v)return;var W=v.typeNode,x=v.type,$=W.kind===309&&b===Y?_.getNullableType(x,32768):x;ne(U,fe,W,$,_)})}});function ne(w,b,de,fe,_){w.replaceNode(b,de,_.typeToTypeNode(fe,de,void 0))}function _e(w,b,de){var fe=e.findAncestor(e.getTokenAtPosition(w,b),O),_=fe&&fe.type;return _&&{typeNode:_,type:de.getTypeFromTypeNode(_)}}function O(w){switch(w.kind){case 227:case 172:case 173:case 254:case 170:case 174:case 193:case 167:case 166:case 162:case 165:case 164:case 171:case 257:case 209:case 252:return!0;default:return!1}}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixMissingCallParentheses",Y=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];ue.registerCodeFix({errorCodes:Y,fixIds:[ee],getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=ne(O,w.start);if(!b)return;var de=e.textChanges.ChangeTracker.with(_e,function(fe){return V(fe,_e.sourceFile,b)});return[ue.createCodeFixAction(ee,de,e.Diagnostics.Add_missing_call_parentheses,ee,e.Diagnostics.Add_all_missing_call_parentheses)]},getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){var b=ne(w.file,w.start);b&&V(O,w.file,b)})}});function V(_e,O,w){_e.replaceNodeWithText(O,w,w.text+"()")}function ne(_e,O){var w=e.getTokenAtPosition(_e,O);if(e.isPropertyAccessExpression(w.parent)){for(var b=w.parent;e.isPropertyAccessExpression(b.parent);)b=b.parent;return b.name}return e.isIdentifier(w)?w:void 0}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixAwaitInSyncFunction",Y=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var w=O.sourceFile,b=O.span,de=ne(w,b.start);if(!de)return;var fe=e.textChanges.ChangeTracker.with(O,function(_){return _e(_,w,de)});return[ue.createCodeFixAction(ee,fe,e.Diagnostics.Add_async_modifier_to_containing_function,ee,e.Diagnostics.Add_all_missing_async_modifiers)]},fixIds:[ee],getAllCodeActions:function(O){var w=new e.Map;return ue.codeFixAll(O,Y,function(b,de){var fe=ne(de.file,de.start);if(!fe||!e.addToSeen(w,e.getNodeId(fe.insertBefore)))return;_e(b,O.sourceFile,fe)})}});function V(O){if(O.type)return O.type;if(e.isVariableDeclaration(O.parent)&&O.parent.type&&e.isFunctionTypeNode(O.parent.type))return O.parent.type.type}function ne(O,w){var b=e.getTokenAtPosition(O,w),de=e.getContainingFunction(b);if(!de)return;var fe;switch(de.kind){case 167:fe=de.name;break;case 254:case 211:fe=e.findChildOfKind(de,98,O);break;case 212:fe=e.findChildOfKind(de,20,O)||e.first(de.parameters);break;default:return}return fe&&{insertBefore:fe,returnType:V(de)}}function _e(O,w,b){var de=b.insertBefore,fe=b.returnType;if(fe){var _=e.getEntityNameFromTypeNode(fe);(!_||_.kind!==79||_.text!=="Promise")&&O.replaceNode(w,fe,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([fe])))}O.insertModifierBefore(w,130,de)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Y="fixPropertyOverrideAccessor";ue.registerCodeFix({errorCodes:ee,getCodeActions:function(ne){var _e=V(ne.sourceFile,ne.span.start,ne.span.length,ne.errorCode,ne);if(_e)return[ue.createCodeFixAction(Y,_e,e.Diagnostics.Generate_get_and_set_accessors,Y,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Y],getAllCodeActions:function(ne){return ue.codeFixAll(ne,ee,function(_e,O){var w=V(O.file,O.start,O.length,O.code,ne);if(w)for(var b=0,de=w;b<de.length;b++){var fe=de[b];_e.pushRaw(ne.sourceFile,fe)}})}});function V(ne,_e,O,w,b){var de,fe;if(w===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)de=_e,fe=_e+O;else if(w===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var _=b.program.getTypeChecker(),U=e.getTokenAtPosition(ne,_e).parent;e.Debug.assert(e.isAccessor(U),"error span of fixPropertyOverrideAccessor should only be on an accessor");var Z=U.parent;e.Debug.assert(e.isClassLike(Z),"erroneous accessors should only be inside classes");var v=e.singleOrUndefined(ue.getAllSupers(Z,_));if(!v)return[];var W=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(U.name)),x=_.getPropertyOfType(_.getTypeAtLocation(v),W);if(!x||!x.valueDeclaration)return[];de=x.valueDeclaration.pos,fe=x.valueDeclaration.end,ne=e.getSourceFileOfNode(x.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+w);return ue.generateAccessorFromProperty(ne,b.program,de,fe,b,e.Diagnostics.Generate_get_and_set_accessors.message)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="inferFromUsage",Y=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ie){var le=ie.sourceFile,P=ie.program,I=ie.span.start,re=ie.errorCode,B=ie.cancellationToken,A=ie.host,f=ie.preferences,F=e.getTokenAtPosition(le,I),g,p=e.textChanges.ChangeTracker.with(ie,function(T){g=_e(T,le,F,re,P,B,e.returnTrue,A,f)}),d=g&&e.getNameOfDeclaration(g);return!d||p.length===0?void 0:[ue.createCodeFixAction(ee,p,[V(re,F),d.getText(le)],ee,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[ee],getAllCodeActions:function(ie){var le=ie.sourceFile,P=ie.program,I=ie.cancellationToken,re=ie.host,B=ie.preferences,A=e.nodeSeenTracker();return ue.codeFixAll(ie,Y,function(f,F){_e(f,le,e.getTokenAtPosition(F.file,F.start),F.code,P,I,A,re,B)})}});function V(ie,le){switch(ie){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(le))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function ne(ie){switch(ie){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return ie}function _e(ie,le,P,I,re,B,A,f,F){if(!e.isParameterPropertyModifier(P.kind)&&P.kind!==79&&P.kind!==25&&P.kind!==108)return;var g=P.parent,p=ue.createImportAdder(le,re,F,f);I=ne(I);switch(I){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(g)&&A(g)||e.isPropertyDeclaration(g)||e.isPropertySignature(g))return O(ie,p,le,g,re,f,B),p.writeFixes(ie),g;if(e.isPropertyAccessExpression(g)){var d=L(g.name,re,B),T=e.getTypeNodeIfAccessible(d,g,re,f);if(T){var m=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(T),void 0);v(ie,le,e.cast(g.parent.parent,e.isExpressionStatement),[m])}return p.writeFixes(ie),g}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var k=re.getTypeChecker().getSymbolAtLocation(P);return k&&k.valueDeclaration&&e.isVariableDeclaration(k.valueDeclaration)&&A(k.valueDeclaration)?(O(ie,p,le,k.valueDeclaration,re,f,B),p.writeFixes(ie),k.valueDeclaration):void 0}}var N=e.getContainingFunction(P);if(N===void 0)return;var D;switch(I){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(N)){fe(ie,p,le,N,re,f,B),D=N;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(A(N)){var R=e.cast(g,e.isParameter);w(ie,p,le,R,N,re,f,B),D=R}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(N)&&e.isIdentifier(N.name)&&(_(ie,p,le,N,L(N.name,re,B),re,f),D=N);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(N)&&(fe(ie,p,le,N,re,f,B),D=N);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(N)&&A(N)&&(b(ie,le,N,re,f,B),D=N);break;default:return e.Debug.fail(String(I))}return p.writeFixes(ie),D}function O(ie,le,P,I,re,B,A){e.isIdentifier(I.name)&&_(ie,le,P,I,L(I.name,re,A),re,B)}function w(ie,le,P,I,re,B,A,f){if(!e.isIdentifier(I.name))return;var F=E(re,P,B,f);if(e.Debug.assert(re.parameters.length===F.length,"Parameter count and inference count should match"),e.isInJSFile(re))Z(ie,P,F,B,A);else{var g=e.isArrowFunction(re)&&!e.findChildOfKind(re,20,P);g&&ie.insertNodeBefore(P,e.first(re.parameters),e.factory.createToken(20));for(var p=0,d=F;p<d.length;p++){var T=d[p],m=T.declaration,k=T.type;m&&!m.type&&!m.initializer&&_(ie,le,P,m,k,B,A)}g&&ie.insertNodeAfter(P,e.last(re.parameters),e.factory.createToken(21))}}function b(ie,le,P,I,re,B){var A=ae(P,le,I,B);if(!A||!A.length)return;var f=X(I,A,B).thisParameter(),F=e.getTypeNodeIfAccessible(f,P,I,re);if(!F)return;e.isInJSFile(P)?de(ie,le,P,F):ie.tryInsertThisTypeAnnotation(le,P,F)}function de(ie,le,P,I){v(ie,le,P,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(I))])}function fe(ie,le,P,I,re,B,A){var f=e.firstOrUndefined(I.parameters);if(f&&e.isIdentifier(I.name)&&e.isIdentifier(f.name)){var F=L(I.name,re,A);F===re.getTypeChecker().getAnyType()&&(F=L(f.name,re,A)),e.isInJSFile(I)?Z(ie,P,[{declaration:f,type:F}],re,B):_(ie,le,P,f,F,re,B)}}function _(ie,le,P,I,re,B,A){var f=e.getTypeNodeIfAccessible(re,I,B,A);if(f)if(e.isInJSFile(P)&&I.kind!==164){var F=e.isVariableDeclaration(I)?e.tryCast(I.parent.parent,e.isVariableStatement):I;if(!F)return;var g=e.factory.createJSDocTypeExpression(f),p=e.isGetAccessorDeclaration(I)?e.factory.createJSDocReturnTag(void 0,g,void 0):e.factory.createJSDocTypeTag(void 0,g,void 0);v(ie,P,F,[p])}else U(f,I,P,ie,le,e.getEmitScriptTarget(B.getCompilerOptions()))||ie.tryInsertTypeAnnotation(P,I,f)}function U(ie,le,P,I,re,B){var A=ue.tryGetAutoImportableReferenceFromTypeNode(ie,B);return A&&I.tryInsertTypeAnnotation(P,le,A.typeNode)?(e.forEach(A.symbols,function(f){return re.addImportFromExportedSymbol(f,!0)}),!0):!1}function Z(ie,le,P,I,re){var B=P.length&&P[0].declaration.parent;if(!B)return;var A=e.mapDefined(P,function(g){var p=g.declaration;if(p.initializer||e.getJSDocType(p)||!e.isIdentifier(p.name))return;var d=g.type&&e.getTypeNodeIfAccessible(g.type,p,I,re);if(d){var T=e.factory.cloneNode(p.name);return e.setEmitFlags(T,1536|2048),{name:e.factory.cloneNode(p.name),param:p,isOptional:!!g.isOptional,typeNode:d}}});if(!A.length)return;if(e.isArrowFunction(B)||e.isFunctionExpression(B)){var f=e.isArrowFunction(B)&&!e.findChildOfKind(B,20,le);f&&ie.insertNodeBefore(le,e.first(B.parameters),e.factory.createToken(20)),e.forEach(A,function(g){var p=g.typeNode,d=g.param,T=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(p)),m=e.factory.createJSDocComment(void 0,[T]);ie.insertNodeAt(le,d.getStart(le),m,{suffix:" "})}),f&&ie.insertNodeAfter(le,e.last(B.parameters),e.factory.createToken(21))}else{var F=e.map(A,function(g){var p=g.name,d=g.typeNode,T=g.isOptional;return e.factory.createJSDocParameterTag(void 0,p,!!T,e.factory.createJSDocTypeExpression(d),!1,void 0)});v(ie,le,B,F)}}function v(ie,le,P,I){var re=e.flatMap(P.jsDoc,function(g){return typeof g.comment=="string"?e.factory.createJSDocText(g.comment):g.comment}),B=e.flatMapToMutable(P.jsDoc,function(g){return g.tags}),A=I.filter(function(g){return!B||!B.some(function(p,d){var T=x(p,g);return T&&(B[d]=T),!!T})}),f=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(re,e.factory.createJSDocText(`
|
|
|
`))),e.factory.createNodeArray(Mt(Mt([],B||e.emptyArray,!0),A,!0))),F=P.kind===212?W(P):P;F.jsDoc=P.jsDoc,F.jsDocCache=P.jsDocCache,ie.insertJsdocCommentBefore(le,F,f)}ue.addJSDocTags=v;function W(ie){return ie.parent.kind===165?ie.parent:ie.parent.parent}function x(ie,le){if(ie.kind!==le.kind)return;switch(ie.kind){case 335:{var P=ie,I=le;return e.isIdentifier(P.name)&&e.isIdentifier(I.name)&&P.name.escapedText===I.name.escapedText?e.factory.createJSDocParameterTag(void 0,I.name,!1,I.typeExpression,I.isNameFirst,P.comment):void 0}case 336:return e.factory.createJSDocReturnTag(void 0,le.typeExpression,ie.comment)}}function $(ie,le,P){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,ie,le,le.getSourceFiles(),P),function(I){return I.kind!==0?e.tryCast(I.node,e.isIdentifier):void 0})}function L(ie,le,P){var I=$(ie,le,P);return X(le,I,P).single()}function E(ie,le,P,I){var re=ae(ie,le,P,I);return re&&X(P,re,I).parameters(ie)||ie.parameters.map(function(B){return{declaration:B,type:e.isIdentifier(B.name)?L(B.name,P,I):P.getTypeChecker().getAnyType()}})}function ae(ie,le,P,I){var re;switch(ie.kind){case 169:re=e.findChildOfKind(ie,133,le);break;case 212:case 211:var B=ie.parent;re=(e.isVariableDeclaration(B)||e.isPropertyDeclaration(B))&&e.isIdentifier(B.name)?B.name:ie.name;break;case 254:case 167:case 166:re=ie.name;break}return re?$(re,P,I):void 0}function X(ie,le,P){var I=ie.getTypeChecker(),re={string:function(){return I.getStringType()},number:function(){return I.getNumberType()},Array:function(Ne){return I.createArrayType(Ne)},Promise:function(Ne){return I.createPromiseType(Ne)}},B=[I.getStringType(),I.getNumberType(),I.createArrayType(I.getAnyType()),I.createPromiseType(I.getAnyType())];return{single:F,parameters:g,thisParameter:p};function A(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function f(Ne){for(var je=new e.Map,xn=0,Wn=Ne;xn<Wn.length;xn++){var dn=Wn[xn];dn.properties&&dn.properties.forEach(function(o,Cn){je.has(Cn)||je.set(Cn,[]),je.get(Cn).push(o)})}var vn=new e.Map;return je.forEach(function(o,Cn){vn.set(Cn,f(o))}),{isNumber:Ne.some(function(o){return o.isNumber}),isString:Ne.some(function(o){return o.isString}),isNumberOrString:Ne.some(function(o){return o.isNumberOrString}),candidateTypes:e.flatMap(Ne,function(o){return o.candidateTypes}),properties:vn,calls:e.flatMap(Ne,function(o){return o.calls}),constructs:e.flatMap(Ne,function(o){return o.constructs}),numberIndex:e.forEach(Ne,function(o){return o.numberIndex}),stringIndex:e.forEach(Ne,function(o){return o.stringIndex}),candidateThisTypes:e.flatMap(Ne,function(o){return o.candidateThisTypes}),inferredTypes:void 0}}function F(){return Te(d(le))}function g(Ne){if(le.length===0||!Ne.parameters)return;for(var je=A(),xn=0,Wn=le;xn<Wn.length;xn++){var dn=Wn[xn];P.throwIfCancellationRequested(),T(dn,je)}var vn=Mt(Mt([],je.constructs||[],!0),je.calls||[],!0);return Ne.parameters.map(function(o,Cn){for(var z=[],tn=e.isRestParameter(o),$n=!1,Un=0,oe=vn;Un<oe.length;Un++){var Pe=oe[Un];if(Pe.argumentTypes.length<=Cn)$n=e.isInJSFile(Ne),z.push(I.getUndefinedType());else if(tn)for(var ke=Cn;ke<Pe.argumentTypes.length;ke++)z.push(I.getBaseTypeOfLiteralType(Pe.argumentTypes[ke]));else z.push(I.getBaseTypeOfLiteralType(Pe.argumentTypes[Cn]))}if(e.isIdentifier(o.name)){var Qe=d($(o.name,ie,P));z.push.apply(z,tn?e.mapDefined(Qe,I.getElementTypeOfArrayType):Qe)}var gn=Te(z);return{type:tn?I.createArrayType(gn):gn,isOptional:$n&&!tn,declaration:o}})}function p(){for(var Ne=A(),je=0,xn=le;je<xn.length;je++){var Wn=xn[je];P.throwIfCancellationRequested(),T(Wn,Ne)}return Te(Ne.candidateThisTypes||e.emptyArray)}function d(Ne){for(var je=A(),xn=0,Wn=Ne;xn<Wn.length;xn++){var dn=Wn[xn];P.throwIfCancellationRequested(),T(dn,je)}return Ce(je)}function T(Ne,je){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(Ne);)Ne=Ne.parent;switch(Ne.parent.kind){case 236:k(Ne,je);break;case 218:je.isNumber=!0;break;case 217:N(Ne.parent,je);break;case 219:D(Ne,Ne.parent,je);break;case 287:case 288:R(Ne.parent,je);break;case 206:case 207:Ne.parent.expression===Ne?me(Ne.parent,je):m(Ne,je);break;case 204:q(Ne.parent,je);break;case 205:J(Ne.parent,Ne,je);break;case 291:case 292:C(Ne.parent,je);break;case 165:we(Ne.parent,je);break;case 252:{var xn=Ne.parent,Wn=xn.name,dn=xn.initializer;if(Ne===Wn){dn&&fn(je,I.getTypeAtLocation(dn));break}}default:return m(Ne,je)}}function m(Ne,je){e.isExpressionNode(Ne)&&fn(je,I.getContextualType(Ne))}function k(Ne,je){fn(je,e.isCallExpression(Ne)?I.getVoidType():I.getAnyType())}function N(Ne,je){switch(Ne.operator){case 45:case 46:case 40:case 54:je.isNumber=!0;break;case 39:je.isNumberOrString=!0;break}}function D(Ne,je,xn){switch(je.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var Wn=I.getTypeAtLocation(je.left===Ne?je.right:je.left);Wn.flags&1056?fn(xn,Wn):xn.isNumber=!0;break;case 64:case 39:var dn=I.getTypeAtLocation(je.left===Ne?je.right:je.left);dn.flags&1056?fn(xn,dn):dn.flags&296?xn.isNumber=!0:dn.flags&402653316?xn.isString=!0:dn.flags&1||(xn.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:fn(xn,I.getTypeAtLocation(je.left===Ne?je.right:je.left));break;case 101:Ne===je.left&&(xn.isString=!0);break;case 56:case 60:Ne===je.left&&(Ne.parent.parent.kind===252||e.isAssignmentExpression(Ne.parent.parent,!0))&&fn(xn,I.getTypeAtLocation(je.right));break;case 55:case 27:case 102:break}}function R(Ne,je){fn(je,I.getTypeAtLocation(Ne.parent.parent.expression))}function me(Ne,je){var xn={argumentTypes:[],return_:A()};if(Ne.arguments)for(var Wn=0,dn=Ne.arguments;Wn<dn.length;Wn++){var vn=dn[Wn];xn.argumentTypes.push(I.getTypeAtLocation(vn))}T(Ne,xn.return_),Ne.kind===206?(je.calls||(je.calls=[])).push(xn):(je.constructs||(je.constructs=[])).push(xn)}function q(Ne,je){var xn=e.escapeLeadingUnderscores(Ne.name.text);je.properties||(je.properties=new e.Map);var Wn=je.properties.get(xn)||A();T(Ne,Wn),je.properties.set(xn,Wn)}function J(Ne,je,xn){if(je===Ne.argumentExpression){xn.isNumberOrString=!0;return}else{var Wn=I.getTypeAtLocation(Ne.argumentExpression),dn=A();T(Ne,dn),Wn.flags&296?xn.numberIndex=dn:xn.stringIndex=dn}}function C(Ne,je){var xn=e.isVariableDeclaration(Ne.parent.parent)?Ne.parent.parent:Ne.parent;Ye(je,I.getTypeAtLocation(xn))}function we(Ne,je){Ye(je,I.getTypeAtLocation(Ne.parent))}function Oe(Ne,je){for(var xn=[],Wn=0,dn=Ne;Wn<dn.length;Wn++)for(var vn=dn[Wn],o=0,Cn=je;o<Cn.length;o++){var z=Cn[o],tn=z.high,$n=z.low;tn(vn)&&(e.Debug.assert(!$n(vn),"Priority can't have both low and high"),xn.push($n))}return Ne.filter(function(Un){return xn.every(function(oe){return!oe(Un)})})}function te(Ne){return Te(Ce(Ne))}function Te(Ne){if(!Ne.length)return I.getAnyType();var je=I.getUnionType([I.getStringType(),I.getNumberType()]),xn=[{high:function(vn){return vn===I.getStringType()||vn===I.getNumberType()},low:function(vn){return vn===je}},{high:function(vn){return!(vn.flags&(1|16384))},low:function(vn){return!!(vn.flags&(1|16384))}},{high:function(vn){return!(vn.flags&(98304|1|16384))&&!(e.getObjectFlags(vn)&16)},low:function(vn){return!!(e.getObjectFlags(vn)&16)}}],Wn=Oe(Ne,xn),dn=Wn.filter(function(vn){return e.getObjectFlags(vn)&16});return dn.length&&(Wn=Wn.filter(function(vn){return!(e.getObjectFlags(vn)&16)}),Wn.push(be(dn))),I.getWidenedType(I.getUnionType(Wn.map(I.getBaseTypeOfLiteralType),2))}function be(Ne){if(Ne.length===1)return Ne[0];for(var je=[],xn=[],Wn=[],dn=[],vn=!1,o=!1,Cn=e.createMultiMap(),z=0,tn=Ne;z<tn.length;z++){for(var $n=tn[z],Un=0,oe=I.getPropertiesOfType($n);Un<oe.length;Un++){var Pe=oe[Un];Cn.add(Pe.name,Pe.valueDeclaration?I.getTypeOfSymbolAtLocation(Pe,Pe.valueDeclaration):I.getAnyType())}je.push.apply(je,I.getSignaturesOfType($n,0)),xn.push.apply(xn,I.getSignaturesOfType($n,1));var ke=I.getIndexInfoOfType($n,0);ke&&(Wn.push(ke.type),vn=vn||ke.isReadonly);var Qe=I.getIndexInfoOfType($n,1);Qe&&(dn.push(Qe.type),o=o||Qe.isReadonly)}var gn=e.mapEntries(Cn,function(Ze,wn){var Be=wn.length<Ne.length?16777216:0,hn=I.createSymbol(4|Be,Ze);return hn.type=I.getUnionType(wn),[Ze,hn]}),xe=[];return Wn.length&&xe.push(I.createIndexInfo(I.getStringType(),I.getUnionType(Wn),vn)),dn.length&&xe.push(I.createIndexInfo(I.getNumberType(),I.getUnionType(dn),o)),I.createAnonymousType(Ne[0].symbol,gn,je,xn,xe)}function Ce(Ne){var je,xn,Wn,dn=[];return Ne.isNumber&&dn.push(I.getNumberType()),Ne.isString&&dn.push(I.getStringType()),Ne.isNumberOrString&&dn.push(I.getUnionType([I.getStringType(),I.getNumberType()])),Ne.numberIndex&&dn.push(I.createArrayType(te(Ne.numberIndex))),(((je=Ne.properties)===null||je===void 0?void 0:je.size)||((xn=Ne.calls)===null||xn===void 0?void 0:xn.length)||((Wn=Ne.constructs)===null||Wn===void 0?void 0:Wn.length)||Ne.stringIndex)&&dn.push(Ue(Ne)),dn.push.apply(dn,(Ne.candidateTypes||[]).map(function(vn){return I.getBaseTypeOfLiteralType(vn)})),dn.push.apply(dn,Se(Ne)),dn}function Ue(Ne){var je=new e.Map;Ne.properties&&Ne.properties.forEach(function(vn,o){var Cn=I.createSymbol(4,o);Cn.type=te(vn),je.set(o,Cn)});var xn=Ne.calls?[Me(Ne.calls)]:[],Wn=Ne.constructs?[Me(Ne.constructs)]:[],dn=Ne.stringIndex?[I.createIndexInfo(I.getStringType(),te(Ne.stringIndex),!1)]:[];return I.createAnonymousType(void 0,je,xn,Wn,dn)}function Se(Ne){if(!Ne.properties||!Ne.properties.size)return[];var je=B.filter(function(xn){return $e(xn,Ne)});return 0<je.length&&je.length<3?je.map(function(xn){return ce(xn,Ne)}):[]}function $e(Ne,je){return je.properties?!e.forEachEntry(je.properties,function(xn,Wn){var dn=I.getTypeOfPropertyOfType(Ne,Wn);if(!dn)return!0;if(xn.calls){var vn=I.getSignaturesOfType(dn,0);return!vn.length||!I.isTypeAssignableTo(dn,pe(xn.calls))}else return!I.isTypeAssignableTo(dn,te(xn))}):!1}function ce(Ne,je){if(!(e.getObjectFlags(Ne)&4)||!je.properties)return Ne;var xn=Ne.target,Wn=e.singleOrUndefined(xn.typeParameters);if(!Wn)return Ne;var dn=[];return je.properties.forEach(function(vn,o){var Cn=I.getTypeOfPropertyOfType(xn,o);e.Debug.assert(!!Cn,"generic should have all the properties of its reference."),dn.push.apply(dn,Le(Cn,te(vn),Wn))}),re[Ne.symbol.escapedName](Te(dn))}function Le(Ne,je,xn){if(Ne===xn)return[je];if(Ne.flags&3145728)return e.flatMap(Ne.types,function(tn){return Le(tn,je,xn)});if(e.getObjectFlags(Ne)&4&&e.getObjectFlags(je)&4){var Wn=I.getTypeArguments(Ne),dn=I.getTypeArguments(je),vn=[];if(Wn&&dn)for(var o=0;o<Wn.length;o++)dn[o]&&vn.push.apply(vn,Le(Wn[o],dn[o],xn));return vn}var Cn=I.getSignaturesOfType(Ne,0),z=I.getSignaturesOfType(je,0);return Cn.length===1&&z.length===1?qe(Cn[0],z[0],xn):[]}function qe(Ne,je,xn){for(var Wn=[],dn=0;dn<Ne.parameters.length;dn++){var vn=Ne.parameters[dn],o=je.parameters[dn],Cn=Ne.declaration&&e.isRestParameter(Ne.declaration.parameters[dn]);if(!o)break;var z=vn.valueDeclaration?I.getTypeOfSymbolAtLocation(vn,vn.valueDeclaration):I.getAnyType(),tn=Cn&&I.getElementTypeOfArrayType(z);tn&&(z=tn);var $n=o.type||(o.valueDeclaration?I.getTypeOfSymbolAtLocation(o,o.valueDeclaration):I.getAnyType());Wn.push.apply(Wn,Le(z,$n,xn))}var Un=I.getReturnTypeOfSignature(Ne),oe=I.getReturnTypeOfSignature(je);return Wn.push.apply(Wn,Le(Un,oe,xn)),Wn}function pe(Ne){return I.createAnonymousType(void 0,e.createSymbolTable(),[Me(Ne)],e.emptyArray,e.emptyArray)}function Me(Ne){for(var je=[],xn=Math.max.apply(Math,Ne.map(function(o){return o.argumentTypes.length})),Wn=function(o){var Cn=I.createSymbol(1,e.escapeLeadingUnderscores("arg"+o));Cn.type=Te(Ne.map(function(z){return z.argumentTypes[o]||I.getUndefinedType()})),Ne.some(function(z){return z.argumentTypes[o]===void 0})&&(Cn.flags|=16777216),je.push(Cn)},dn=0;dn<xn;dn++)Wn(dn);var vn=te(f(Ne.map(function(o){return o.return_})));return I.createSignature(void 0,void 0,void 0,je,vn,void 0,xn,0)}function fn(Ne,je){je&&!(je.flags&1)&&!(je.flags&131072)&&(Ne.candidateTypes||(Ne.candidateTypes=[])).push(je)}function Ye(Ne,je){je&&!(je.flags&1)&&!(je.flags&131072)&&(Ne.candidateThisTypes||(Ne.candidateThisTypes=[])).push(je)}}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixReturnTypeInAsyncFunction",Y=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];ue.registerCodeFix({errorCodes:Y,fixIds:[ee],getCodeActions:function(_e){var O=_e.sourceFile,w=_e.program,b=_e.span,de=w.getTypeChecker(),fe=V(O,w.getTypeChecker(),b.start);if(!fe)return;var _=fe.returnTypeNode,U=fe.returnType,Z=fe.promisedTypeNode,v=fe.promisedType,W=e.textChanges.ChangeTracker.with(_e,function(x){return ne(x,O,_,Z)});return[ue.createCodeFixAction(ee,W,[e.Diagnostics.Replace_0_with_Promise_1,de.typeToString(U),de.typeToString(v)],ee,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){var b=V(w.file,_e.program.getTypeChecker(),w.start);b&&ne(O,w.file,b.returnTypeNode,b.promisedTypeNode)})}});function V(_e,O,w){if(e.isInJSFile(_e))return;var b=e.getTokenAtPosition(_e,w),de=e.findAncestor(b,e.isFunctionLikeDeclaration),fe=de==null?void 0:de.type;if(!fe)return;var _=O.getTypeFromTypeNode(fe),U=O.getAwaitedType(_)||O.getVoidType(),Z=O.typeToTypeNode(U,fe,void 0);if(Z)return{returnTypeNode:fe,returnType:_,promisedTypeNode:Z,promisedType:U}}function ne(_e,O,w,b){_e.replaceNode(O,w,e.factory.createTypeReferenceNode("Promise",[b]))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="disableJsDiagnostics",Y="disableJsDiagnostics",V=e.mapDefined(Object.keys(e.Diagnostics),function(_e){var O=e.Diagnostics[_e];return O.category===e.DiagnosticCategory.Error?O.code:void 0});ue.registerCodeFix({errorCodes:V,getCodeActions:function(_e){var O=_e.sourceFile,w=_e.program,b=_e.span,de=_e.host,fe=_e.formatContext;if(!e.isInJSFile(O)||!e.isCheckJsEnabledForFile(O,w.getCompilerOptions()))return;var _=O.checkJsDirective?"":e.getNewLineOrDefaultFromHost(de,fe.options),U=[ue.createCodeFixActionWithoutFixAll(ee,[ue.createFileTextChanges(O.fileName,[e.createTextChange(O.checkJsDirective?e.createTextSpanFromBounds(O.checkJsDirective.pos,O.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+_)])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(O,b.start)&&U.unshift(ue.createCodeFixAction(ee,e.textChanges.ChangeTracker.with(_e,function(Z){return ne(Z,O,b.start)}),e.Diagnostics.Ignore_this_error_message,Y,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),U},fixIds:[Y],getAllCodeActions:function(_e){var O=new e.Set;return ue.codeFixAll(_e,V,function(w,b){e.textChanges.isValidLocationToAddComment(b.file,b.start)&&ne(w,b.file,b.start,O)})}});function ne(_e,O,w,b){var de=e.getLineAndCharacterOfPosition(O,w).line;(!b||e.tryAddToSet(b,de))&&_e.insertCommentBeforeLine(O,de,w," @ts-ignore")}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(X,ie,le,P,I,re,B){for(var A=X.symbol.members,f=0,F=ie;f<F.length;f++){var g=F[f];A.has(g.escapedName)||V(g,X,le,P,I,re,B)}}ue.createMissingMemberNodes=ee;function Y(X){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(X.program,X.host)}}ue.getNoopSymbolTrackerWithResolver=Y;function V(X,ie,le,P,I,re,B){var A=X.getDeclarations();if(!(A&&A.length))return;var f=P.program.getTypeChecker(),F=e.getEmitScriptTarget(P.program.getCompilerOptions()),g=A[0],p=e.getSynthesizedDeepClone(e.getNameOfDeclaration(g),!1),d=Z(e.getEffectiveModifierFlags(g)),T=d?e.factory.createNodeArray([d]):void 0,m=f.getWidenedType(f.getTypeOfSymbolAtLocation(X,ie)),k=!!(X.flags&16777216),N=!!(ie.flags&8388608),D=e.getQuotePreference(le,I);switch(g.kind){case 164:case 165:var R=D===0?268435456:void 0,me=f.typeToTypeNode(m,ie,R,Y(P));if(re){var q=L(me,F);q&&(me=q.typeNode,ae(re,q.symbols))}B(e.factory.createPropertyDeclaration(void 0,T,p,k?e.factory.createToken(57):void 0,me,void 0));break;case 170:case 171:{var J=f.typeToTypeNode(m,ie,void 0,Y(P)),C=e.getAllAccessorDeclarations(A,g),we=C.secondAccessor?[C.firstAccessor,C.secondAccessor]:[C.firstAccessor];if(re){var q=L(J,F);q&&(J=q.typeNode,ae(re,q.symbols))}for(var Oe=0,te=we;Oe<te.length;Oe++){var Te=te[Oe];if(e.isGetAccessorDeclaration(Te))B(e.factory.createGetAccessorDeclaration(void 0,T,p,e.emptyArray,J,N?void 0:_(D)));else{e.Debug.assertNode(Te,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var be=e.getSetAccessorValueParameter(Te),Ce=be&&e.isIdentifier(be.name)?e.idText(be.name):void 0;B(e.factory.createSetAccessorDeclaration(void 0,T,p,w(1,[Ce],[J],1,!1),N?void 0:_(D)))}}break}case 166:case 167:var Ue=f.getSignaturesOfType(m,0);if(!e.some(Ue))break;if(A.length===1){e.Debug.assert(Ue.length===1,"One declaration implies one signature");var Se=Ue[0];Le(D,Se,T,p,N?void 0:_(D));break}for(var $e=0,ce=Ue;$e<ce.length;$e++){var Se=ce[$e];Le(D,Se,e.getSynthesizedDeepClones(T,!1),e.getSynthesizedDeepClone(p,!1))}if(!N)if(A.length>Ue.length){var Se=f.getSignatureFromDeclaration(A[A.length-1]);Le(D,Se,T,p,_(D))}else e.Debug.assert(A.length===Ue.length,"Declarations and signatures should match count"),B(b(f,P,ie,Ue,p,k,T,D));break}function Le(qe,pe,Me,fn,Ye){var Ne=ne(167,P,qe,pe,Ye,fn,Me,k,ie,re);Ne&&B(Ne)}}function ne(X,ie,le,P,I,re,B,A,f,F){var g=ie.program,p=g.getTypeChecker(),d=e.getEmitScriptTarget(g.getCompilerOptions()),T=1|1073741824|256|(le===0?268435456:0),m=p.signatureToSignatureDeclaration(P,X,f,T,Y(ie));if(!m)return;var k=m.typeParameters,N=m.parameters,D=m.type;if(F){if(k){var R=e.sameMap(k,function(we){var Oe=we.constraint,te=we.default;if(Oe){var Te=L(Oe,d);Te&&(Oe=Te.typeNode,ae(F,Te.symbols))}if(te){var Te=L(te,d);Te&&(te=Te.typeNode,ae(F,Te.symbols))}return e.factory.updateTypeParameterDeclaration(we,we.name,Oe,te)});k!==R&&(k=e.setTextRange(e.factory.createNodeArray(R,k.hasTrailingComma),k))}var me=e.sameMap(N,function(we){var Oe=L(we.type,d),te=we.type;return Oe&&(te=Oe.typeNode,ae(F,Oe.symbols)),e.factory.updateParameterDeclaration(we,we.decorators,we.modifiers,we.dotDotDotToken,we.name,we.questionToken,te,we.initializer)});if(N!==me&&(N=e.setTextRange(e.factory.createNodeArray(me,N.hasTrailingComma),N)),D){var q=L(D,d);q&&(D=q.typeNode,ae(F,q.symbols))}}var J=A?e.factory.createToken(57):void 0,C=m.asteriskToken;return e.isFunctionExpression(m)?e.factory.updateFunctionExpression(m,B,m.asteriskToken,e.tryCast(re,e.isIdentifier),k,N,D,I!=null?I:m.body):e.isArrowFunction(m)?e.factory.updateArrowFunction(m,B,k,N,D,m.equalsGreaterThanToken,I!=null?I:m.body):e.isMethodDeclaration(m)?e.factory.updateMethodDeclaration(m,void 0,B,C,re!=null?re:e.factory.createIdentifier(""),J,k,N,D,I):void 0}ue.createSignatureDeclarationFromSignature=ne;function _e(X,ie,le,P,I,re,B){var A=e.getQuotePreference(ie.sourceFile,ie.preferences),f=e.getEmitScriptTarget(ie.program.getCompilerOptions()),F=Y(ie),g=ie.program.getTypeChecker(),p=e.isInJSFile(B),d=P.typeArguments,T=P.arguments,m=P.parent,k=p?void 0:g.getContextualType(P),N=e.map(T,function(we){return e.isIdentifier(we)?we.text:e.isPropertyAccessExpression(we)&&e.isIdentifier(we.name)?we.name.text:void 0}),D=p?[]:e.map(T,function(we){return O(g,le,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(we)),B,f,void 0,F)}),R=re?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(re)):void 0,me=e.isYieldExpression(m)?e.factory.createToken(41):void 0,q=p||d===void 0?void 0:e.map(d,function(we,Oe){return e.factory.createTypeParameterDeclaration(84+d.length-1<=90?String.fromCharCode(84+Oe):"T"+Oe)}),J=w(T.length,N,D,void 0,p),C=p||k===void 0?void 0:g.typeToTypeNode(k,B,void 0,F);return X===167?e.factory.createMethodDeclaration(void 0,R,me,I,void 0,q,J,C,e.isInterfaceDeclaration(B)?void 0:_(A)):e.factory.createFunctionDeclaration(void 0,R,me,I,q,J,C,U(e.Diagnostics.Function_not_implemented.message,A))}ue.createSignatureDeclarationFromCallExpression=_e;function O(X,ie,le,P,I,re,B){var A=X.typeToTypeNode(le,P,re,B);if(A&&e.isImportTypeNode(A)){var f=L(A,I);f&&(ae(ie,f.symbols),A=f.typeNode)}return e.getSynthesizedDeepClone(A)}ue.typeToAutoImportableTypeNode=O;function w(X,ie,le,P,I){for(var re=[],B=0;B<X;B++){var A=e.factory.createParameterDeclaration(void 0,void 0,void 0,ie&&ie[B]||"arg"+B,P!==void 0&&B>=P?e.factory.createToken(57):void 0,I?void 0:le&&le[B]||e.factory.createKeywordTypeNode(129),void 0);re.push(A)}return re}function b(X,ie,le,P,I,re,B,A){for(var f=P[0],F=P[0].minArgumentCount,g=!1,p=0,d=P;p<d.length;p++){var T=d[p];F=Math.min(T.minArgumentCount,F),e.signatureHasRestParameter(T)&&(g=!0),T.parameters.length>=f.parameters.length&&(!e.signatureHasRestParameter(T)||e.signatureHasRestParameter(f))&&(f=T)}var m=f.parameters.length-(e.signatureHasRestParameter(f)?1:0),k=f.parameters.map(function(me){return me.name}),N=w(m,k,void 0,F,!1);if(g){var D=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129)),R=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),k[m]||"rest",m>=F?e.factory.createToken(57):void 0,D,void 0);N.push(R)}return fe(B,I,re,void 0,N,de(P,X,ie,le),A)}function de(X,ie,le,P){if(e.length(X)){var I=ie.getUnionType(e.map(X,ie.getReturnTypeOfSignature));return ie.typeToTypeNode(I,P,void 0,Y(le))}}function fe(X,ie,le,P,I,re,B){return e.factory.createMethodDeclaration(void 0,X,void 0,ie,le?e.factory.createToken(57):void 0,P,I,re,_(B))}function _(X){return U(e.Diagnostics.Method_not_implemented.message,X)}function U(X,ie){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(X,ie===0)]))],!0)}ue.createStubbedBody=U;function Z(X){return X&4?e.factory.createToken(123):X&16?e.factory.createToken(122):void 0}function v(X,ie,le){var P=e.getTsConfigObjectLiteralExpression(ie);if(!P)return;var I=$(P,"compilerOptions");if(I===void 0){X.insertNodeAtObjectStart(ie,P,x("compilerOptions",e.factory.createObjectLiteralExpression(le.map(function(d){var T=d[0],m=d[1];return x(T,m)}),!0)));return}var re=I.initializer;if(!e.isObjectLiteralExpression(re))return;for(var B=0,A=le;B<A.length;B++){var f=A[B],F=f[0],g=f[1],p=$(re,F);p===void 0?X.insertNodeAtObjectStart(ie,re,x(F,g)):X.replaceNode(ie,p.initializer,g)}}ue.setJsonCompilerOptionValues=v;function W(X,ie,le,P){v(X,ie,[[le,P]])}ue.setJsonCompilerOptionValue=W;function x(X,ie){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(X),ie)}ue.createJsonPropertyAssignment=x;function $(X,ie){return e.find(X.properties,function(le){return e.isPropertyAssignment(le)&&!!le.name&&e.isStringLiteral(le.name)&&le.name.text===ie})}ue.findJsonProperty=$;function L(X,ie){var le,P=e.visitNode(X,I);if(le&&P)return{typeNode:P,symbols:le};function I(re){var B;if(e.isLiteralImportTypeNode(re)&&re.qualifier){var A=e.getFirstIdentifier(re.qualifier),f=e.getNameForExportedSymbol(A.symbol,ie),F=f!==A.text?E(re.qualifier,e.factory.createIdentifier(f)):re.qualifier;le=e.append(le,A.symbol);var g=(B=re.typeArguments)===null||B===void 0?void 0:B.map(I);return e.factory.createTypeReferenceNode(F,g)}return e.visitEachChild(re,I,e.nullTransformationContext)}}ue.tryGetAutoImportableReferenceFromTypeNode=L;function E(X,ie){return X.kind===79?ie:e.factory.createQualifiedName(E(X.left,ie),X.right)}function ae(X,ie){ie.forEach(function(le){return X.addImportFromExportedSymbol(le,!0)})}ue.importSymbols=ae})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(L,E,ae,X,ie,le){var P=b(L,E,ae,X);if(!P||e.refactor.isRefactorErrorInfo(P))return;var I=e.textChanges.ChangeTracker.fromContext(ie),re=P.isStatic,B=P.isReadonly,A=P.fieldName,f=P.accessorName,F=P.originalName,g=P.type,p=P.container,d=P.declaration;e.suppressLeadingAndTrailingTrivia(A),e.suppressLeadingAndTrailingTrivia(f),e.suppressLeadingAndTrailingTrivia(d),e.suppressLeadingAndTrailingTrivia(p);var T,m;if(e.isClassLike(p)){var k=e.getEffectiveModifierFlags(d);if(e.isSourceFileJS(L)){var N=e.createModifiers(k);T=N,m=N}else T=e.createModifiers(O(k)),m=e.createModifiers(w(k))}Z(I,L,d,g,A,m);var D=de(A,f,g,T,re,p);if(e.suppressLeadingAndTrailingTrivia(D),v(I,L,D,d,p),B){var R=e.getFirstConstructorWithBody(p);R&&W(I,L,R,A.text,F)}else{var me=fe(A,f,g,T,re,p);e.suppressLeadingAndTrailingTrivia(me),v(I,L,me,d,p)}return I.getChanges()}ue.generateAccessorFromProperty=ee;function Y(L){return e.isIdentifier(L)||e.isStringLiteral(L)}function V(L){return e.isParameterPropertyDeclaration(L,L.parent)||e.isPropertyDeclaration(L)||e.isPropertyAssignment(L)}function ne(L,E){return e.isIdentifier(E)?e.factory.createIdentifier(L):e.factory.createStringLiteral(L)}function _e(L,E,ae){var X=E?ae.name:e.factory.createThis();return e.isIdentifier(L)?e.factory.createPropertyAccessExpression(X,L):e.factory.createElementAccessExpression(X,e.factory.createStringLiteralFromNode(L))}function O(L){return L&=~64,L&=~8,L&16||(L|=4),L}function w(L){return L&=~4,L&=~16,L|=8,L}function b(L,E,ae,X,ie){ie===void 0&&(ie=!0);var le=e.getTokenAtPosition(L,ae),P=ae===X&&ie,I=e.findAncestor(le.parent,V),re=28|32|64;if(!I||!(e.nodeOverlapsWithStartEnd(I.name,L,ae,X)||P))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!Y(I.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(I)|re)!==re)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var B=I.name.text,A=e.startsWithUnderscore(B),f=ne(A?B:e.getUniqueName("_"+B,L),I.name),F=ne(A?e.getUniqueName(B.substring(1),L):B,I.name);return{isStatic:e.hasStaticModifier(I),isReadonly:e.hasEffectiveReadonlyModifier(I),type:x(I,E),container:I.kind===162?I.parent.parent:I.parent,originalName:I.name.text,declaration:I,fieldName:f,accessorName:F,renameAccessor:A}}ue.getAccessorConvertiblePropertyAtPosition=b;function de(L,E,ae,X,ie,le){return e.factory.createGetAccessorDeclaration(void 0,X,E,void 0,ae,e.factory.createBlock([e.factory.createReturnStatement(_e(L,ie,le))],!0))}function fe(L,E,ae,X,ie,le){return e.factory.createSetAccessorDeclaration(void 0,X,E,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,ae)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(_e(L,ie,le),e.factory.createIdentifier("value")))],!0))}function _(L,E,ae,X,ie,le){var P=e.factory.updatePropertyDeclaration(ae,ae.decorators,le,ie,ae.questionToken||ae.exclamationToken,X,ae.initializer);L.replaceNode(E,ae,P)}function U(L,E,ae,X){var ie=e.factory.updatePropertyAssignment(ae,X,ae.initializer);L.replacePropertyAssignment(E,ae,ie)}function Z(L,E,ae,X,ie,le){e.isPropertyDeclaration(ae)?_(L,E,ae,X,ie,le):e.isPropertyAssignment(ae)?U(L,E,ae,ie):L.replaceNode(E,ae,e.factory.updateParameterDeclaration(ae,ae.decorators,le,ae.dotDotDotToken,e.cast(ie,e.isIdentifier),ae.questionToken,ae.type,ae.initializer))}function v(L,E,ae,X,ie){e.isParameterPropertyDeclaration(X,X.parent)?L.insertNodeAtClassStart(E,ie,ae):e.isPropertyAssignment(X)?L.insertNodeAfterComma(E,X,ae):L.insertNodeAfter(E,X,ae)}function W(L,E,ae,X,ie){if(!ae.body)return;ae.body.forEachChild(function le(P){e.isElementAccessExpression(P)&&P.expression.kind===108&&e.isStringLiteral(P.argumentExpression)&&P.argumentExpression.text===ie&&e.isWriteAccess(P)&&L.replaceNode(E,P.argumentExpression,e.factory.createStringLiteral(X)),e.isPropertyAccessExpression(P)&&P.expression.kind===108&&P.name.text===ie&&e.isWriteAccess(P)&&L.replaceNode(E,P.name,e.factory.createIdentifier(X)),!e.isFunctionLike(P)&&!e.isClassLike(P)&&P.forEachChild(le)})}function x(L,E){var ae=e.getTypeAnnotationNode(L);if(e.isPropertyDeclaration(L)&&ae&&L.questionToken){var X=E.getTypeChecker(),ie=X.getTypeFromTypeNode(ae);if(!X.isTypeAssignableTo(X.getUndefinedType(),ie)){var le=e.isUnionTypeNode(ae)?ae.types:[ae];return e.factory.createUnionTypeNode(Mt(Mt([],le,!0),[e.factory.createKeywordTypeNode(151)],!1))}}return ae}function $(L,E){for(var ae=[];L;){var X=e.getClassExtendsHeritageElement(L),ie=X&&E.getSymbolAtLocation(X.expression);if(!ie)break;var le=ie.flags&2097152?E.getAliasedSymbol(ie):ie,P=le.declarations&&e.find(le.declarations,e.isClassLike);if(!P)break;ae.push(P),L=P}return ae}ue.getAllSupers=$})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="invalidImportSyntax";function Y(w,b){var de=e.getSourceFileOfNode(b),fe=e.getNamespaceDeclarationNode(b),_=w.program.getCompilerOptions(),U=[];return U.push(V(w,de,b,e.makeImport(fe.name,void 0,b.moduleSpecifier,e.getQuotePreference(de,w.preferences)))),e.getEmitModuleKind(_)===e.ModuleKind.CommonJS&&U.push(V(w,de,b,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,fe.name,e.factory.createExternalModuleReference(b.moduleSpecifier)))),U}function V(w,b,de,fe){var _=e.textChanges.ChangeTracker.with(w,function(U){return U.replaceNode(b,de,fe)});return ue.createCodeFixActionWithoutFixAll(ee,_,[e.Diagnostics.Replace_import_with_0,_[0].textChanges[0].newText])}ue.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:ne});function ne(w){var b=w.sourceFile,de=e.Diagnostics.This_expression_is_not_callable.code===w.errorCode?206:207,fe=e.findAncestor(e.getTokenAtPosition(b,w.span.start),function(U){return U.kind===de});if(!fe)return[];var _=fe.expression;return O(w,_)}ue.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:_e});function _e(w){var b=w.sourceFile,de=e.findAncestor(e.getTokenAtPosition(b,w.span.start),function(fe){return fe.getStart()===w.span.start&&fe.getEnd()===w.span.start+w.span.length});return de?O(w,de):[]}function O(w,b){var de=w.program.getTypeChecker().getTypeAtLocation(b);if(!(de.symbol&&de.symbol.originatingImport))return[];var fe=[],_=de.symbol.originatingImport;if(e.isImportCall(_)||e.addRange(fe,Y(w,_)),e.isExpression(b)&&!(e.isNamedDeclaration(b.parent)&&b.parent.name===b)){var U=w.sourceFile,Z=e.textChanges.ChangeTracker.with(w,function(v){return v.replaceNode(U,b,e.factory.createPropertyAccessExpression(b,"default"),{})});fe.push(ue.createCodeFixActionWithoutFixAll(ee,Z,e.Diagnostics.Use_synthetic_default_member))}return fe}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="strictClassInitialization",Y="addMissingPropertyDefiniteAssignmentAssertions",V="addMissingPropertyUndefinedType",ne="addMissingPropertyInitializer",_e=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];ue.registerCodeFix({errorCodes:_e,getCodeActions:function(W){var x=O(W.sourceFile,W.span.start);if(!x)return;var $=[de(W,x),w(W,x)];return e.append($,_(W,x)),$},fixIds:[Y,V,ne],getAllCodeActions:function(W){return ue.codeFixAll(W,_e,function(x,$){var L=O($.file,$.start);if(!L)return;switch(W.fixId){case Y:b(x,$.file,L);break;case V:fe(x,$.file,L);break;case ne:var E=W.program.getTypeChecker(),ae=Z(E,L);if(!ae)return;U(x,$.file,L,ae);break;default:e.Debug.fail(JSON.stringify(W.fixId))}})}});function O(W,x){var $=e.getTokenAtPosition(W,x);return e.isIdentifier($)?e.cast($.parent,e.isPropertyDeclaration):void 0}function w(W,x){var $=e.textChanges.ChangeTracker.with(W,function(L){return b(L,W.sourceFile,x)});return ue.createCodeFixAction(ee,$,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,x.getText()],Y,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function b(W,x,$){var L=e.factory.updatePropertyDeclaration($,$.decorators,$.modifiers,$.name,e.factory.createToken(53),$.type,$.initializer);W.replaceNode(x,$,L)}function de(W,x){var $=e.textChanges.ChangeTracker.with(W,function(L){return fe(L,W.sourceFile,x)});return ue.createCodeFixAction(ee,$,[e.Diagnostics.Add_undefined_type_to_property_0,x.name.getText()],V,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function fe(W,x,$){var L=e.factory.createKeywordTypeNode(151),E=$.type,ae=e.isUnionTypeNode(E)?E.types.concat(L):[E,L];W.replaceNode(x,E,e.factory.createUnionTypeNode(ae))}function _(W,x){var $=W.program.getTypeChecker(),L=Z($,x);if(!L)return;var E=e.textChanges.ChangeTracker.with(W,function(ae){return U(ae,W.sourceFile,x,L)});return ue.createCodeFixAction(ee,E,[e.Diagnostics.Add_initializer_to_property_0,x.name.getText()],ne,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}function U(W,x,$,L){var E=e.factory.updatePropertyDeclaration($,$.decorators,$.modifiers,$.name,$.questionToken,$.type,L);W.replaceNode(x,$,E)}function Z(W,x){return v(W,W.getTypeFromTypeNode(x.type))}function v(W,x){if(x.flags&512)return x===W.getFalseType()||x===W.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(x.isStringLiteral())return e.factory.createStringLiteral(x.value);if(x.isNumberLiteral())return e.factory.createNumericLiteral(x.value);if(x.flags&2048)return e.factory.createBigIntLiteral(x.value);if(x.isUnion())return e.firstDefined(x.types,function(E){return v(W,E)});if(x.isClass()){var $=e.getClassLikeDeclarationOfSymbol(x.symbol);if(!$||e.hasSyntacticModifier($,128))return;var L=e.getFirstConstructorWithBody($);return L&&L.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(x.symbol.name),void 0,void 0)}else if(W.isArrayLikeType(x))return e.factory.createArrayLiteralExpression();return}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="requireInTs",Y=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var w=ne(O.sourceFile,O.program,O.span.start);if(!w)return;var b=e.textChanges.ChangeTracker.with(O,function(de){return V(de,O.sourceFile,w)});return[ue.createCodeFixAction(ee,b,e.Diagnostics.Convert_require_to_import,ee,e.Diagnostics.Convert_all_require_to_import)]},fixIds:[ee],getAllCodeActions:function(O){return ue.codeFixAll(O,Y,function(w,b){var de=ne(b.file,O.program,b.start);de&&V(w,O.sourceFile,de)})}});function V(O,w,b){var de=b.allowSyntheticDefaults,fe=b.defaultImportName,_=b.namedImports,U=b.statement,Z=b.required;O.replaceNode(w,U,fe&&!de?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,fe,e.factory.createExternalModuleReference(Z)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,fe,_),Z))}function ne(O,w,b){var de=e.getTokenAtPosition(O,b).parent;if(!e.isRequireCall(de,!0))throw e.Debug.failBadSyntaxKind(de);var fe=e.cast(de.parent,e.isVariableDeclaration),_=e.tryCast(fe.name,e.isIdentifier),U=e.isObjectBindingPattern(fe.name)?_e(fe.name):void 0;if(_||U)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(w.getCompilerOptions()),defaultImportName:_,namedImports:U,statement:e.cast(fe.parent.parent,e.isVariableStatement),required:e.first(de.arguments)}}function _e(O){for(var w=[],b=0,de=O.elements;b<de.length;b++){var fe=de[b];if(!e.isIdentifier(fe.name)||fe.initializer)return;w.push(e.factory.createImportSpecifier(e.tryCast(fe.propertyName,e.isIdentifier),fe.name))}if(w.length)return e.factory.createNamedImports(w)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="useDefaultImport",Y=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span.start,b=V(O,w);if(!b)return;var de=e.textChanges.ChangeTracker.with(_e,function(fe){return ne(fe,O,b,_e.preferences)});return[ue.createCodeFixAction(ee,de,e.Diagnostics.Convert_to_default_import,ee,e.Diagnostics.Convert_all_to_default_imports)]},fixIds:[ee],getAllCodeActions:function(_e){return ue.codeFixAll(_e,Y,function(O,w){var b=V(w.file,w.start);b&&ne(O,w.file,b,_e.preferences)})}});function V(_e,O){var w=e.getTokenAtPosition(_e,O);if(!e.isIdentifier(w))return;var b=w.parent;if(e.isImportEqualsDeclaration(b)&&e.isExternalModuleReference(b.moduleReference))return{importNode:b,name:w,moduleSpecifier:b.moduleReference.expression};if(e.isNamespaceImport(b)){var de=b.parent.parent;return{importNode:de,name:w,moduleSpecifier:de.moduleSpecifier}}}function ne(_e,O,w,b){_e.replaceNode(O,w.importNode,e.makeImport(w.name,void 0,w.moduleSpecifier,e.getQuotePreference(O,b)))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="useBigintLiteral",Y=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=e.textChanges.ChangeTracker.with(ne,function(O){return V(O,ne.sourceFile,ne.span)});if(_e.length>0)return[ue.createCodeFixAction(ee,_e,e.Diagnostics.Convert_to_a_bigint_numeric_literal,ee,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e,O){return V(_e,O.file,O)})}});function V(ne,_e,O){var w=e.tryCast(e.getTokenAtPosition(_e,O.start),e.isNumericLiteral);if(!w)return;var b=w.getText(_e)+"n";ne.replaceNode(_e,w,e.factory.createBigIntLiteral(b))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixAddModuleReferTypeMissingTypeof",Y=ee,V=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];ue.registerCodeFix({errorCodes:V,getCodeActions:function(O){var w=O.sourceFile,b=O.span,de=ne(w,b.start),fe=e.textChanges.ChangeTracker.with(O,function(_){return _e(_,w,de)});return[ue.createCodeFixAction(Y,fe,e.Diagnostics.Add_missing_typeof,Y,e.Diagnostics.Add_missing_typeof)]},fixIds:[Y],getAllCodeActions:function(O){return ue.codeFixAll(O,V,function(w,b){return _e(w,O.sourceFile,ne(b.file,b.start))})}});function ne(O,w){var b=e.getTokenAtPosition(O,w);return e.Debug.assert(b.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(b.parent.kind===198,"Token parent should be an ImportType"),b.parent}function _e(O,w,b){var de=e.factory.updateImportTypeNode(b,b.argument,b.qualifier,b.typeArguments,!0);O.replaceNode(w,b,de)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="wrapJsxInFragment",Y=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var w=O.sourceFile,b=O.span,de=V(w,b.start);if(!de)return;var fe=e.textChanges.ChangeTracker.with(O,function(_){return ne(_,w,de)});return[ue.createCodeFixAction(ee,fe,e.Diagnostics.Wrap_in_JSX_fragment,ee,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[ee],getAllCodeActions:function(O){return ue.codeFixAll(O,Y,function(w,b){var de=V(O.sourceFile,b.start);if(!de)return;ne(w,O.sourceFile,de)})}});function V(O,w){var b=e.getTokenAtPosition(O,w),de=b.parent,fe=de.parent;return!e.isBinaryExpression(fe)&&(fe=fe.parent,!e.isBinaryExpression(fe))?void 0:e.nodeIsMissing(fe.operatorToken)?fe:void 0}function ne(O,w,b){var de=_e(b);de&&O.replaceNode(w,b,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),de,e.factory.createJsxJsxClosingFragment()))}function _e(O){for(var w=[],b=O;;)if(e.isBinaryExpression(b)&&e.nodeIsMissing(b.operatorToken)&&b.operatorToken.kind===27){if(w.push(b.left),e.isJsxChild(b.right))return w.push(b.right),w;if(e.isBinaryExpression(b.right)){b=b.right;continue}else return}else return}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixConvertToMappedObjectType",Y=ee,V=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];ue.registerCodeFix({errorCodes:V,getCodeActions:function(w){var b=w.sourceFile,de=w.span,fe=ne(b,de.start);if(!fe)return;var _=e.textChanges.ChangeTracker.with(w,function(Z){return O(Z,b,fe)}),U=e.idText(fe.container.name);return[ue.createCodeFixAction(Y,_,[e.Diagnostics.Convert_0_to_mapped_object_type,U],Y,[e.Diagnostics.Convert_0_to_mapped_object_type,U])]},fixIds:[Y],getAllCodeActions:function(w){return ue.codeFixAll(w,V,function(b,de){var fe=ne(de.file,de.start);fe&&O(b,de.file,fe)})}});function ne(w,b){var de=e.getTokenAtPosition(w,b),fe=e.cast(de.parent.parent,e.isIndexSignatureDeclaration);if(e.isClassDeclaration(fe.parent))return;var _=e.isInterfaceDeclaration(fe.parent)?fe.parent:e.cast(fe.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:fe,container:_}}function _e(w,b){return e.factory.createTypeAliasDeclaration(w.decorators,w.modifiers,w.name,w.typeParameters,b)}function O(w,b,de){var fe=de.indexSignature,_=de.container,U=e.isInterfaceDeclaration(_)?_.members:_.type.members,Z=U.filter(function(L){return!e.isIndexSignatureDeclaration(L)}),v=e.first(fe.parameters),W=e.factory.createTypeParameterDeclaration(e.cast(v.name,e.isIdentifier),v.type),x=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(fe)?e.factory.createModifier(143):void 0,W,void 0,fe.questionToken,fe.type),$=e.factory.createIntersectionTypeNode(Mt(Mt(Mt([],e.getAllSuperTypeNodes(_),!0),[x],!1),Z.length?[e.factory.createTypeLiteralNode(Z)]:e.emptyArray,!0));w.replaceNode(b,_,_e(_,$))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="removeAccidentalCallParentheses",Y=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(V){var ne=e.findAncestor(e.getTokenAtPosition(V.sourceFile,V.span.start),e.isCallExpression);if(!ne)return;var _e=e.textChanges.ChangeTracker.with(V,function(O){O.deleteRange(V.sourceFile,{pos:ne.expression.end,end:ne.end})});return[ue.createCodeFixActionWithoutFixAll(ee,_e,e.Diagnostics.Remove_parentheses)]},fixIds:[ee]})})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="removeUnnecessaryAwait",Y=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ne){var _e=e.textChanges.ChangeTracker.with(ne,function(O){return V(O,ne.sourceFile,ne.span)});if(_e.length>0)return[ue.createCodeFixAction(ee,_e,e.Diagnostics.Remove_unnecessary_await,ee,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[ee],getAllCodeActions:function(ne){return ue.codeFixAll(ne,Y,function(_e,O){return V(_e,O.file,O)})}});function V(ne,_e,O){var w=e.tryCast(e.getTokenAtPosition(_e,O.start),function(Z){return Z.kind===131}),b=w&&e.tryCast(w.parent,e.isAwaitExpression);if(!b)return;var de=b,fe=e.isParenthesizedExpression(b.parent);if(fe){var _=e.getLeftmostExpression(b.expression,!1);if(e.isIdentifier(_)){var U=e.findPrecedingToken(b.parent.pos,_e);U&&U.kind!==103&&(de=b.parent)}}ne.replaceNode(_e,de,b.expression)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Y="splitTypeOnlyImport";ue.registerCodeFix({errorCodes:ee,fixIds:[Y],getCodeActions:function(_e){var O=e.textChanges.ChangeTracker.with(_e,function(w){return ne(w,V(_e.sourceFile,_e.span),_e)});if(O.length)return[ue.createCodeFixAction(Y,O,e.Diagnostics.Split_into_two_separate_import_declarations,Y,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(_e){return ue.codeFixAll(_e,ee,function(O,w){ne(O,V(_e.sourceFile,w),_e)})}});function V(_e,O){return e.findAncestor(e.getTokenAtPosition(_e,O.start),e.isImportDeclaration)}function ne(_e,O,w){if(!O)return;var b=e.Debug.checkDefined(O.importClause);_e.replaceNode(w.sourceFile,O,e.factory.updateImportDeclaration(O,O.decorators,O.modifiers,e.factory.updateImportClause(b,b.isTypeOnly,b.name,void 0),O.moduleSpecifier)),_e.insertNodeAfter(w.sourceFile,O,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(b,b.isTypeOnly,void 0,b.namedBindings),O.moduleSpecifier))}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixConvertConstToLet",Y=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(_e){var O=_e.sourceFile,w=_e.span,b=_e.program,de=V(O,w.start,b);if(de===void 0)return;var fe=e.textChanges.ChangeTracker.with(_e,function(_){return ne(_,O,de)});return[ue.createCodeFixAction(ee,fe,e.Diagnostics.Convert_const_to_let,ee,e.Diagnostics.Convert_const_to_let)]},fixIds:[ee]});function V(_e,O,w){var b,de=w.getTypeChecker(),fe=de.getSymbolAtLocation(e.getTokenAtPosition(_e,O)),_=e.tryCast((b=fe==null?void 0:fe.valueDeclaration)===null||b===void 0?void 0:b.parent,e.isVariableDeclarationList);if(_===void 0)return;var U=e.findChildOfKind(_,85,_e);return U===void 0?void 0:e.createRange(U.pos,U.end)}function ne(_e,O,w){_e.replaceRangeWithText(O,w,"let")}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="fixExpectedComma",Y=e.Diagnostics._0_expected.code,V=[Y];ue.registerCodeFix({errorCodes:V,getCodeActions:function(O){var w=O.sourceFile,b=ne(w,O.span.start,O.errorCode);if(!b)return;var de=e.textChanges.ChangeTracker.with(O,function(fe){return _e(fe,w,b)});return[ue.createCodeFixAction(ee,de,[e.Diagnostics.Change_0_to_1,";",","],ee,[e.Diagnostics.Change_0_to_1,";",","])]},fixIds:[ee],getAllCodeActions:function(O){return ue.codeFixAll(O,V,function(w,b){var de=ne(b.file,b.start,b.code);de&&_e(w,O.sourceFile,de)})}});function ne(O,w,b){var de=e.getTokenAtPosition(O,w);return de.kind===26&&de.parent&&(e.isObjectLiteralExpression(de.parent)||e.isArrayLiteralExpression(de.parent))?{node:de}:void 0}function _e(O,w,b){var de=b.node,fe=e.factory.createToken(27);O.replaceNode(w,de,fe)}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="addVoidToPromise",Y="addVoidToPromise",V=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];ue.registerCodeFix({errorCodes:V,fixIds:[Y],getCodeActions:function(O){var w=e.textChanges.ChangeTracker.with(O,function(b){return ne(b,O.sourceFile,O.span,O.program)});if(w.length>0)return[ue.createCodeFixAction(ee,w,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,Y,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(O){return ue.codeFixAll(O,V,function(w,b){return ne(w,b.file,b,O.program,new e.Set)})}});function ne(O,w,b,de,fe){var _=e.getTokenAtPosition(w,b.start);if(!e.isIdentifier(_)||!e.isCallExpression(_.parent)||_.parent.expression!==_||_.parent.arguments.length!==0)return;var U=de.getTypeChecker(),Z=U.getSymbolAtLocation(_),v=Z==null?void 0:Z.valueDeclaration;if(!v||!e.isParameter(v)||!e.isNewExpression(v.parent.parent))return;if(fe==null?void 0:fe.has(v))return;fe==null||fe.add(v);var W=_e(v.parent.parent);if(e.some(W)){var x=W[0],$=!e.isUnionTypeNode(x)&&!e.isParenthesizedTypeNode(x)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([x,e.factory.createKeywordTypeNode(114)]).types[0]);$&&O.insertText(w,x.pos,"("),O.insertText(w,x.end,$?") | void":" | void")}else{var L=U.getResolvedSignature(_.parent),E=L==null?void 0:L.parameters[0],ae=E&&U.getTypeOfSymbolAtLocation(E,v.parent.parent);e.isInJSFile(v)?(!ae||ae.flags&3)&&(O.insertText(w,v.parent.parent.end,")"),O.insertText(w,e.skipTrivia(w.text,v.parent.parent.pos),"/** @type {Promise<void>} */(")):(!ae||ae.flags&2)&&O.insertText(w,v.parent.parent.expression.end,"<void>")}}function _e(O){var w;if(e.isInJSFile(O)){if(e.isParenthesizedExpression(O.parent)){var b=(w=e.getJSDocTypeTag(O.parent))===null||w===void 0?void 0:w.typeExpression.type;if(b&&e.isTypeReferenceNode(b)&&e.isIdentifier(b.typeName)&&e.idText(b.typeName)==="Promise")return b.typeArguments}}else return O.typeArguments}})(s=e.codefix||(e.codefix={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="Convert export",Y={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},V={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};ue.registerRefactor(ee,{kinds:[Y.kind,V.kind],getAvailableActions:function(U){var Z=ne(U,U.triggerReason==="invoked");if(!Z)return e.emptyArray;if(!ue.isRefactorErrorInfo(Z)){var v=Z.wasDefault?Y:V;return[{name:ee,description:v.description,actions:[v]}]}return U.preferences.provideRefactorNotApplicableReason?[{name:ee,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[pr(pr({},Y),{notApplicableReason:Z.error}),pr(pr({},V),{notApplicableReason:Z.error})]}]:e.emptyArray},getEditsForAction:function(U,Z){e.Debug.assert(Z===Y.name||Z===V.name,"Unexpected action name");var v=ne(U);e.Debug.assert(v&&!ue.isRefactorErrorInfo(v),"Expected applicable refactor info");var W=e.textChanges.ChangeTracker.with(U,function(x){return _e(U.file,U.program,v,x,U.cancellationToken)});return{edits:W,renameFilename:void 0,renameLocation:void 0}}});function ne(U,Z){Z===void 0&&(Z=!0);var v=U.file,W=U.program,x=e.getRefactorContextSpan(U),$=e.getTokenAtPosition(v,x.start),L=!!($.parent&&e.getSyntacticModifierFlags($.parent)&1)&&Z?$.parent:e.getParentNodeInSpan($,v,x);if(!L||!e.isSourceFile(L.parent)&&!(e.isModuleBlock(L.parent)&&e.isAmbientModule(L.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var E=e.isSourceFile(L.parent)?L.parent.symbol:L.parent.parent.symbol,ae=e.getSyntacticModifierFlags(L)||(e.isExportAssignment(L)&&!L.isExportEquals?513:0),X=!!(ae&512);if(!(ae&1)||!X&&E.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var ie=W.getTypeChecker(),le=function(B){return e.isIdentifier(B)&&ie.getSymbolAtLocation(B)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(L.kind){case 254:case 255:case 256:case 258:case 257:case 259:{var P=L;return P.name?le(P.name)||{exportNode:P,exportName:P.name,wasDefault:X,exportingModuleSymbol:E}:void 0}case 235:{var I=L;if(!(I.declarationList.flags&2)||I.declarationList.declarations.length!==1)return;var re=e.first(I.declarationList.declarations);return re.initializer?(e.Debug.assert(!X,"Can't have a default flag here"),le(re.name)||{exportNode:I,exportName:re.name,wasDefault:X,exportingModuleSymbol:E}):void 0}case 269:{var P=L;return P.isExportEquals?void 0:le(P.expression)||{exportNode:P,exportName:P.expression,wasDefault:X,exportingModuleSymbol:E}}default:return}}function _e(U,Z,v,W,x){O(U,v,W,Z.getTypeChecker()),w(Z,v,W,x)}function O(U,Z,v,W){var x=Z.wasDefault,$=Z.exportNode,L=Z.exportName;if(x)if(e.isExportAssignment($)&&!$.isExportEquals){var E=$.expression,ae=_(E.text,E.text);v.replaceNode(U,$,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([ae])))}else v.delete(U,e.Debug.checkDefined(e.findModifier($,88),"Should find a default keyword in modifier list"));else{var X=e.Debug.checkDefined(e.findModifier($,93),"Should find an export keyword in modifier list");switch($.kind){case 254:case 255:case 256:v.insertNodeAfter(U,X,e.factory.createToken(88));break;case 235:var ie=e.first($.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(L,W,U)&&!ie.type){v.replaceNode(U,$,e.factory.createExportDefault(e.Debug.checkDefined(ie.initializer,"Initializer was previously known to be present")));break}case 258:case 257:case 259:v.deleteModifier(U,X),v.insertNodeAfter(U,$,e.factory.createExportDefault(e.factory.createIdentifier(L.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+$.kind)}}}function w(U,Z,v,W){var x=Z.wasDefault,$=Z.exportName,L=Z.exportingModuleSymbol,E=U.getTypeChecker(),ae=e.Debug.checkDefined(E.getSymbolAtLocation($),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(U.getSourceFiles(),E,W,ae,L,$.text,x,function(X){var ie=X.getSourceFile();x?b(ie,X,v,$.text):de(ie,X,v)})}function b(U,Z,v,W){var x=Z.parent;switch(x.kind){case 204:v.replaceNode(U,Z,e.factory.createIdentifier(W));break;case 268:case 273:{var $=x;v.replaceNode(U,$,fe(W,$.name.text));break}case 265:{var L=x;e.Debug.assert(L.name===Z,"Import clause name should match provided ref");var $=fe(W,Z.text),E=L.namedBindings;if(!E)v.replaceNode(U,Z,e.factory.createNamedImports([$]));else if(E.kind===266){v.deleteRange(U,{pos:Z.getStart(U),end:E.getStart(U)});var ae=e.isStringLiteral(L.parent.moduleSpecifier)?e.quotePreferenceFromString(L.parent.moduleSpecifier,U):1,X=e.makeImport(void 0,[fe(W,Z.text)],L.parent.moduleSpecifier,ae);v.insertNodeAfter(U,L.parent,X)}else v.delete(U,Z),v.insertNodeAtEndOfList(U,E.elements,$);break}default:e.Debug.failBadSyntaxKind(x)}}function de(U,Z,v){var W=Z.parent;switch(W.kind){case 204:v.replaceNode(U,Z,e.factory.createIdentifier("default"));break;case 268:{var x=e.factory.createIdentifier(W.name.text);W.parent.elements.length===1?v.replaceNode(U,W.parent,x):(v.delete(U,W),v.insertNodeBefore(U,W.parent,x));break}case 273:{v.replaceNode(U,W,_("default",W.name.text));break}default:e.Debug.assertNever(W,"Unexpected parent kind "+W.kind)}}function fe(U,Z){return e.factory.createImportSpecifier(U===Z?void 0:e.factory.createIdentifier(U),e.factory.createIdentifier(Z))}function _(U,Z){return e.factory.createExportSpecifier(U===Z?void 0:e.factory.createIdentifier(U),e.factory.createIdentifier(Z))}})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="Convert import",Y={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},V={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};ue.registerRefactor(ee,{kinds:[Y.kind,V.kind],getAvailableActions:function(_){var U=ne(_,_.triggerReason==="invoked");if(!U)return e.emptyArray;if(!ue.isRefactorErrorInfo(U)){var Z=U.kind===266,v=Z?Y:V;return[{name:ee,description:v.description,actions:[v]}]}return _.preferences.provideRefactorNotApplicableReason?[{name:ee,description:Y.description,actions:[pr(pr({},Y),{notApplicableReason:U.error})]},{name:ee,description:V.description,actions:[pr(pr({},V),{notApplicableReason:U.error})]}]:e.emptyArray},getEditsForAction:function(_,U){e.Debug.assert(U===Y.name||U===V.name,"Unexpected action name");var Z=ne(_);e.Debug.assert(Z&&!ue.isRefactorErrorInfo(Z),"Expected applicable refactor info");var v=e.textChanges.ChangeTracker.with(_,function(W){return _e(_.file,_.program,W,Z)});return{edits:v,renameFilename:void 0,renameLocation:void 0}}});function ne(_,U){U===void 0&&(U=!0);var Z=_.file,v=e.getRefactorContextSpan(_),W=e.getTokenAtPosition(Z,v.start),x=U?e.findAncestor(W,e.isImportDeclaration):e.getParentNodeInSpan(W,Z,v);if(!x||!e.isImportDeclaration(x))return{error:"Selection is not an import declaration."};if(x.getEnd()<v.start+v.length)return;var $=x.importClause;return $?$.namedBindings?$.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}function _e(_,U,Z,v){var W=U.getTypeChecker();v.kind===266?O(_,W,Z,v,e.getAllowSyntheticDefaultImports(U.getCompilerOptions())):de(_,W,Z,v)}function O(_,U,Z,v,W){var x=!1,$=[],L=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(v.name,U,_,function(B){if(!e.isPropertyAccessOrQualifiedName(B.parent))x=!0;else{var A=w(B.parent).text;U.resolveName(A,B,67108863,!0)&&L.set(A,!0),e.Debug.assert(b(B.parent)===B,"Parent expression should match id"),$.push(B.parent)}});for(var E=new e.Map,ae=0,X=$;ae<X.length;ae++){var ie=X[ae],le=w(ie).text,P=E.get(le);P===void 0&&E.set(le,P=L.has(le)?e.getUniqueName(le,_):le),Z.replaceNode(_,ie,e.factory.createIdentifier(P))}var I=[];E.forEach(function(B,A){I.push(e.factory.createImportSpecifier(B===A?void 0:e.factory.createIdentifier(A),e.factory.createIdentifier(B)))});var re=v.parent.parent;x&&!W?Z.insertNodeAfter(_,re,fe(re,void 0,I)):Z.replaceNode(_,re,fe(re,x?e.factory.createIdentifier(v.name.text):void 0,I))}function w(_){return e.isPropertyAccessExpression(_)?_.name:_.right}function b(_){return e.isPropertyAccessExpression(_)?_.expression:_.left}function de(_,U,Z,v){var W=v.parent.parent,x=W.moduleSpecifier,$=new e.Set;v.elements.forEach(function(A){var f=U.getSymbolAtLocation(A.name);f&&$.add(f)});var L=x&&e.isStringLiteral(x)?e.codefix.moduleSpecifierToValidIdentifier(x.text,99):"module";function E(A){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(A.name,U,_,function(f){var F=U.resolveName(L,f,67108863,!0);return F?$.has(F)?e.isExportSpecifier(f.parent):!0:!1})}for(var ae=v.elements.some(E),X=ae?e.getUniqueName(L,_):L,ie=new e.Set,le=function(A){var f=(A.propertyName||A.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(A.name,U,_,function(F){var g=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(X),f);e.isShorthandPropertyAssignment(F.parent)?Z.replaceNode(_,F.parent,e.factory.createPropertyAssignment(F.text,g)):e.isExportSpecifier(F.parent)?ie.add(A):Z.replaceNode(_,F,g)})},P=0,I=v.elements;P<I.length;P++){var re=I[P];le(re)}if(Z.replaceNode(_,v,e.factory.createNamespaceImport(e.factory.createIdentifier(X))),ie.size){var B=e.arrayFrom(ie.values()).map(function(A){return e.factory.createImportSpecifier(A.propertyName&&e.factory.createIdentifier(A.propertyName.text),e.factory.createIdentifier(A.name.text))});Z.insertNodeAfter(_,v.parent.parent,fe(W,void 0,B))}}function fe(_,U,Z){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,U,Z&&Z.length?e.factory.createNamedImports(Z):void 0),_.moduleSpecifier)}})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Convert to optional chain expression",ne=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),_e={name:V,description:ne,kind:"refactor.rewrite.expression.optionalChain"};ue.registerRefactor(V,{kinds:[_e.kind],getAvailableActions:O,getEditsForAction:w});function O(P){var I=_(P,P.triggerReason==="invoked");return I?ue.isRefactorErrorInfo(I)?P.preferences.provideRefactorNotApplicableReason?[{name:V,description:ne,actions:[pr(pr({},_e),{notApplicableReason:I.error})]}]:e.emptyArray:[{name:V,description:ne,actions:[_e]}]:e.emptyArray}function w(P,I){var re=_(P);e.Debug.assert(re&&!ue.isRefactorErrorInfo(re),"Expected applicable refactor info");var B=e.textChanges.ChangeTracker.with(P,function(A){return le(P.file,P.program.getTypeChecker(),A,re,I)});return{edits:B,renameFilename:void 0,renameLocation:void 0}}function b(P){return e.isBinaryExpression(P)||e.isConditionalExpression(P)}function de(P){return e.isExpressionStatement(P)||e.isReturnStatement(P)||e.isVariableStatement(P)}function fe(P){return b(P)||de(P)}function _(P,I){I===void 0&&(I=!0);var re=P.file,B=P.program,A=e.getRefactorContextSpan(P),f=A.length===0;if(f&&!I)return;var F=e.getTokenAtPosition(re,A.start),g=e.findTokenOnLeftOfPosition(re,A.start+A.length),p=e.createTextSpanFromBounds(F.pos,g&&g.end>=F.pos?g.getEnd():F.getEnd()),d=f?E(F):L(F,p),T=d&&fe(d)?ae(d):void 0;if(!T)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var m=B.getTypeChecker();return e.isConditionalExpression(T)?U(T,m):Z(T)}function U(P,I){var re=P.condition,B=X(P.whenTrue);if(!B||I.isNullableType(I.getTypeAtLocation(B)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(re)||e.isIdentifier(re))&&W(re,B.expression))return{finalExpression:B,occurrences:[re],expression:P};if(e.isBinaryExpression(re)){var A=v(B.expression,re);return A?{finalExpression:B,occurrences:A,expression:P}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function Z(P){if(P.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var I=X(P.right);if(!I)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var re=v(I.expression,P.left);return re?{finalExpression:I,occurrences:re,expression:P}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function v(P,I){for(var re=[];e.isBinaryExpression(I)&&I.operatorToken.kind===55;){var B=W(e.skipParentheses(P),e.skipParentheses(I.right));if(!B)break;re.push(B),P=B,I=I.left}var A=W(P,I);return A&&re.push(A),re.length>0?re:void 0}function W(P,I){return!e.isIdentifier(I)&&!e.isPropertyAccessExpression(I)&&!e.isElementAccessExpression(I)?void 0:x(P,I)?I:void 0}function x(P,I){for(;(e.isCallExpression(P)||e.isPropertyAccessExpression(P)||e.isElementAccessExpression(P))&&!($(P)===$(I));)P=P.expression;for(;e.isPropertyAccessExpression(P)&&e.isPropertyAccessExpression(I)||e.isElementAccessExpression(P)&&e.isElementAccessExpression(I);){if($(P)!==$(I))return!1;P=P.expression,I=I.expression}return e.isIdentifier(P)&&e.isIdentifier(I)&&P.getText()===I.getText()}function $(P){return e.isIdentifier(P)||e.isStringOrNumericLiteralLike(P)?P.getText():e.isPropertyAccessExpression(P)?$(P.name):e.isElementAccessExpression(P)?$(P.argumentExpression):void 0}function L(P,I){for(;P.parent;){if(fe(P)&&I.length!==0&&P.end>=I.start+I.length)return P;P=P.parent}return}function E(P){for(;P.parent;){if(fe(P)&&!fe(P.parent))return P;P=P.parent}return}function ae(P){if(b(P))return P;if(e.isVariableStatement(P)){var I=e.getSingleVariableOfVariableStatement(P),re=I==null?void 0:I.initializer;return re&&b(re)?re:void 0}return P.expression&&b(P.expression)?P.expression:void 0}function X(P){return P=e.skipParentheses(P),e.isBinaryExpression(P)?X(P.left):(e.isPropertyAccessExpression(P)||e.isElementAccessExpression(P)||e.isCallExpression(P))&&!e.isOptionalChain(P)?P:void 0}function ie(P,I,re){if(e.isPropertyAccessExpression(I)||e.isElementAccessExpression(I)||e.isCallExpression(I)){var B=ie(P,I.expression,re),A=re.length>0?re[re.length-1]:void 0,f=(A==null?void 0:A.getText())===I.expression.getText();if(f&&re.pop(),e.isCallExpression(I))return f?e.factory.createCallChain(B,e.factory.createToken(28),I.typeArguments,I.arguments):e.factory.createCallChain(B,I.questionDotToken,I.typeArguments,I.arguments);if(e.isPropertyAccessExpression(I))return f?e.factory.createPropertyAccessChain(B,e.factory.createToken(28),I.name):e.factory.createPropertyAccessChain(B,I.questionDotToken,I.name);if(e.isElementAccessExpression(I))return f?e.factory.createElementAccessChain(B,e.factory.createToken(28),I.argumentExpression):e.factory.createElementAccessChain(B,I.questionDotToken,I.argumentExpression)}return I}function le(P,I,re,B,A){var f=B.finalExpression,F=B.occurrences,g=B.expression,p=F[F.length-1],d=ie(I,f,F);d&&(e.isPropertyAccessExpression(d)||e.isElementAccessExpression(d)||e.isCallExpression(d))&&(e.isBinaryExpression(g)?re.replaceNodeRange(P,p,f,d):e.isConditionalExpression(g)&&re.replaceNode(P,g,e.factory.createBinaryExpression(d,e.factory.createToken(60),g.whenFalse)))}})(ee=ue.convertToOptionalChainExpression||(ue.convertToOptionalChainExpression={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Convert overload list to single signature",ne=e.Diagnostics.Convert_overload_list_to_single_signature.message,_e={name:V,description:ne,kind:"refactor.rewrite.function.overloadList"};ue.registerRefactor(V,{kinds:[_e.kind],getEditsForAction:w,getAvailableActions:O});function O(fe){var _=fe.file,U=fe.startPosition,Z=fe.program,v=de(_,U,Z);return v?[{name:V,description:ne,actions:[_e]}]:e.emptyArray}function w(fe){var _=fe.file,U=fe.startPosition,Z=fe.program,v=de(_,U,Z);if(!v)return;var W=Z.getTypeChecker(),x=v[v.length-1],$=x;switch(x.kind){case 166:{$=e.factory.updateMethodSignature(x,x.modifiers,x.name,x.questionToken,x.typeParameters,E(v),x.type);break}case 167:{$=e.factory.updateMethodDeclaration(x,x.decorators,x.modifiers,x.asteriskToken,x.name,x.questionToken,x.typeParameters,E(v),x.type,x.body);break}case 172:{$=e.factory.updateCallSignature(x,x.typeParameters,E(v),x.type);break}case 169:{$=e.factory.updateConstructorDeclaration(x,x.decorators,x.modifiers,E(v),x.body);break}case 173:{$=e.factory.updateConstructSignature(x,x.typeParameters,E(v),x.type);break}case 254:{$=e.factory.updateFunctionDeclaration(x,x.decorators,x.modifiers,x.asteriskToken,x.name,x.typeParameters,E(v),x.type,x.body);break}default:return e.Debug.failBadSyntaxKind(x,"Unhandled signature kind in overload list conversion refactoring")}if($===x)return;var L=e.textChanges.ChangeTracker.with(fe,function(ie){ie.replaceNodeRange(_,v[0],v[v.length-1],$)});return{renameFilename:void 0,renameLocation:void 0,edits:L};function E(ie){var le=ie[ie.length-1];return e.isFunctionLikeDeclaration(le)&&le.body&&(ie=ie.slice(0,ie.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(ie,ae)))])}function ae(ie){var le=e.map(ie.parameters,X);return e.setEmitFlags(e.factory.createTupleTypeNode(le),e.some(le,function(P){return!!e.length(e.getSyntheticLeadingComments(P))})?0:1)}function X(ie){e.Debug.assert(e.isIdentifier(ie.name));var le=e.setTextRange(e.factory.createNamedTupleMember(ie.dotDotDotToken,ie.name,ie.questionToken,ie.type||e.factory.createKeywordTypeNode(129)),ie),P=ie.symbol&&ie.symbol.getDocumentationComment(W);if(P){var I=e.displayPartsToString(P);I.length&&e.setSyntheticLeadingComments(le,[{text:`*
|
|
|
`+I.split(`
|
|
|
`).map(function(re){return" * "+re}).join(`
|
|
|
`)+`
|
|
|
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return le}}function b(fe){switch(fe.kind){case 166:case 167:case 172:case 169:case 173:case 254:return!0}return!1}function de(fe,_,U){var Z=e.getTokenAtPosition(fe,_),v=e.findAncestor(Z,b);if(!v)return;var W=U.getTypeChecker(),x=v.symbol;if(!x)return;var $=x.declarations;if(e.length($)<=1)return;if(!e.every($,function(ie){return e.getSourceFileOfNode(ie)===fe}))return;if(!b($[0]))return;var L=$[0].kind;if(!e.every($,function(ie){return ie.kind===L}))return;var E=$;if(e.some(E,function(ie){return!!ie.typeParameters||e.some(ie.parameters,function(le){return!!le.decorators||!!le.modifiers||!e.isIdentifier(le.name)})}))return;var ae=e.mapDefined(E,function(ie){return W.getSignatureFromDeclaration(ie)});if(e.length(ae)!==e.length($))return;var X=W.getReturnTypeOfSignature(ae[0]);return e.every(ae,function(ie){return W.getReturnTypeOfSignature(ie)===X})?E:void 0}})(ee=ue.addOrRemoveBracesToArrowFunction||(ue.addOrRemoveBracesToArrowFunction={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Extract Symbol",ne={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},_e={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};ue.registerRefactor(V,{kinds:[ne.kind,_e.kind],getAvailableActions:O,getEditsForAction:w});function O(te){var Te=te.kind,be=fe(te.file,e.getRefactorContextSpan(te),te.triggerReason==="invoked"),Ce=be.targetRange;if(Ce===void 0){if(!be.errors||be.errors.length===0||!te.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var Ue=[];return ue.refactorKindBeginsWith(_e.kind,Te)&&Ue.push({name:V,description:_e.description,actions:[pr(pr({},_e),{notApplicableReason:Cn(be.errors)})]}),ue.refactorKindBeginsWith(ne.kind,Te)&&Ue.push({name:V,description:ne.description,actions:[pr(pr({},ne),{notApplicableReason:Cn(be.errors)})]}),Ue}var Se=$(Ce,te);if(Se===void 0)return e.emptyArray;for(var $e=[],ce=new e.Map,Le,qe=[],pe=new e.Map,Me,fn=0,Ye=0,Ne=Se;Ye<Ne.length;Ye++){var je=Ne[Ye],xn=je.functionExtraction,Wn=je.constantExtraction,dn=xn.description;if(ue.refactorKindBeginsWith(_e.kind,Te)&&(xn.errors.length===0?ce.has(dn)||(ce.set(dn,!0),$e.push({description:dn,name:"function_scope_"+fn,kind:_e.kind})):Le||(Le={description:dn,name:"function_scope_"+fn,notApplicableReason:Cn(xn.errors),kind:_e.kind})),ue.refactorKindBeginsWith(ne.kind,Te))if(Wn.errors.length===0){var vn=Wn.description;pe.has(vn)||(pe.set(vn,!0),qe.push({description:vn,name:"constant_scope_"+fn,kind:ne.kind}))}else Me||(Me={description:dn,name:"constant_scope_"+fn,notApplicableReason:Cn(Wn.errors),kind:ne.kind});fn++}var o=[];return $e.length?o.push({name:V,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:$e}):te.preferences.provideRefactorNotApplicableReason&&Le&&o.push({name:V,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[Le]}),qe.length?o.push({name:V,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:qe}):te.preferences.provideRefactorNotApplicableReason&&Me&&o.push({name:V,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[Me]}),o.length?o:e.emptyArray;function Cn(z){var tn=z[0].messageText;return typeof tn!="string"&&(tn=tn.messageText),tn}}Y.getAvailableActions=O;function w(te,Te){var be=fe(te.file,e.getRefactorContextSpan(te)),Ce=be.targetRange,Ue=/^function_scope_(\d+)$/.exec(Te);if(Ue){var Se=+Ue[1];return e.Debug.assert(isFinite(Se),"Expected to parse a finite number from the function scope index"),W(Ce,te,Se)}var $e=/^constant_scope_(\d+)$/.exec(Te);if($e){var Se=+$e[1];return e.Debug.assert(isFinite(Se),"Expected to parse a finite number from the constant scope index"),x(Ce,te,Se)}e.Debug.fail("Unrecognized action name")}Y.getEditsForAction=w;var b;(function(te){function Te(be){return{message:be,code:0,category:e.DiagnosticCategory.Message,key:be}}te.cannotExtractRange=Te("Cannot extract range."),te.cannotExtractImport=Te("Cannot extract import statement."),te.cannotExtractSuper=Te("Cannot extract super call."),te.cannotExtractJSDoc=Te("Cannot extract JSDoc."),te.cannotExtractEmpty=Te("Cannot extract empty range."),te.expressionExpected=Te("expression expected."),te.uselessConstantType=Te("No reason to extract constant of type."),te.statementOrExpressionExpected=Te("Statement or expression expected."),te.cannotExtractRangeContainingConditionalBreakOrContinueStatements=Te("Cannot extract range containing conditional break or continue statements."),te.cannotExtractRangeContainingConditionalReturnStatement=Te("Cannot extract range containing conditional return statement."),te.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=Te("Cannot extract range containing labeled break or continue with target outside of the range."),te.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=Te("Cannot extract range containing writes to references located outside of the target range in generators."),te.typeWillNotBeVisibleInTheNewScope=Te("Type will not visible in the new scope."),te.functionWillNotBeVisibleInTheNewScope=Te("Function will not visible in the new scope."),te.cannotExtractIdentifier=Te("Select more than a single identifier."),te.cannotExtractExportedEntity=Te("Cannot extract exported declaration"),te.cannotWriteInExpression=Te("Cannot write back side-effects when extracting an expression"),te.cannotExtractReadonlyPropertyInitializerOutsideConstructor=Te("Cannot move initialization of read-only class property outside of the constructor"),te.cannotExtractAmbientBlock=Te("Cannot extract code from ambient contexts"),te.cannotAccessVariablesFromNestedScopes=Te("Cannot access variables from nested scopes"),te.cannotExtractToJSClass=Te("Cannot extract constant to a class scope in JS"),te.cannotExtractToExpressionArrowFunction=Te("Cannot extract constant to an arrow function without a block")})(b=Y.Messages||(Y.Messages={}));var de;(function(te){te[te.None=0]="None",te[te.HasReturn=1]="HasReturn",te[te.IsGenerator=2]="IsGenerator",te[te.IsAsyncFunction=4]="IsAsyncFunction",te[te.UsesThis=8]="UsesThis",te[te.InStaticRegion=16]="InStaticRegion"})(de||(de={}));function fe(te,Te,be){be===void 0&&(be=!0);var Ce=Te.length;if(Ce===0&&!be)return{errors:[e.createFileDiagnostic(te,Te.start,Ce,b.cannotExtractEmpty)]};var Ue=Ce===0&&be,Se=e.findFirstNonJsxWhitespaceToken(te,Te.start),$e=e.findTokenOnLeftOfPosition(te,e.textSpanEnd(Te)),ce=Se&&$e&&be?_(Se,$e,te):Te,Le=Ue?J(Se):e.getParentNodeInSpan(Se,te,ce),qe=Ue?Le:e.getParentNodeInSpan($e,te,ce),pe=[],Me=de.None;if(!Le||!qe)return{errors:[e.createFileDiagnostic(te,Te.start,Ce,b.cannotExtractRange)]};if(e.isJSDoc(Le))return{errors:[e.createFileDiagnostic(te,Te.start,Ce,b.cannotExtractJSDoc)]};if(Le.parent!==qe.parent)return{errors:[e.createFileDiagnostic(te,Te.start,Ce,b.cannotExtractRange)]};if(Le!==qe){if(!we(Le.parent))return{errors:[e.createFileDiagnostic(te,Te.start,Ce,b.cannotExtractRange)]};for(var fn=[],Ye=Le,Ne=0,je=Ye.parent.statements;Ne<je.length;Ne++){var xn=je[Ne];if(xn===Le||fn.length){var Wn=tn(xn);if(Wn)return{errors:Wn};fn.push(xn)}if(xn===qe)break}return fn.length?{targetRange:{range:fn,facts:Me,declarations:pe}}:{errors:[e.createFileDiagnostic(te,Te.start,Ce,b.cannotExtractRange)]}}if(e.isReturnStatement(Le)&&!Le.expression)return{errors:[e.createFileDiagnostic(te,Te.start,Ce,b.cannotExtractRange)]};var dn=o(Le),vn=Cn(dn)||tn(dn);if(vn)return{errors:vn};return{targetRange:{range:U(dn),facts:Me,declarations:pe}};function o($n){if(e.isReturnStatement($n)){if($n.expression)return $n.expression}else if(e.isVariableStatement($n)){for(var Un=0,oe=void 0,Pe=0,ke=$n.declarationList.declarations;Pe<ke.length;Pe++){var Qe=ke[Pe];Qe.initializer&&(Un++,oe=Qe.initializer)}if(Un===1)return oe}else if(e.isVariableDeclaration($n)&&$n.initializer)return $n.initializer;return $n}function Cn($n){return e.isIdentifier(e.isExpressionStatement($n)?$n.expression:$n)?[e.createDiagnosticForNode($n,b.cannotExtractIdentifier)]:void 0}function z($n,Un){for(var oe=$n;oe!==Un;){if(oe.kind===165){e.isStatic(oe)&&(Me|=de.InStaticRegion);break}else if(oe.kind===162){var Pe=e.getContainingFunction(oe);Pe.kind===169&&(Me|=de.InStaticRegion);break}else oe.kind===167&&(e.isStatic(oe)&&(Me|=de.InStaticRegion));oe=oe.parent}}function tn($n){var Un;if(function(xe){xe[xe.None=0]="None",xe[xe.Break=1]="Break",xe[xe.Continue=2]="Continue",xe[xe.Return=4]="Return"}(Un||(Un={})),e.Debug.assert($n.pos<=$n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized($n.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement($n)&&!(e.isExpressionNode($n)&&C($n)))return[e.createDiagnosticForNode($n,b.statementOrExpressionExpected)];if($n.flags&8388608)return[e.createDiagnosticForNode($n,b.cannotExtractAmbientBlock)];var oe=e.getContainingClass($n);oe&&z($n,oe);var Pe,ke=4,Qe;return gn($n),Pe;function gn(xe){if(Pe)return!0;if(e.isDeclaration(xe)){var Ze=xe.kind===252?xe.parent.parent:xe;if(e.hasSyntacticModifier(Ze,1))return(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.cannotExtractExportedEntity)),!0;pe.push(xe.symbol)}switch(xe.kind){case 264:return(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.cannotExtractImport)),!0;case 269:return(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.cannotExtractExportedEntity)),!0;case 106:if(xe.parent.kind===206){var wn=e.getContainingClass(xe);if(wn.pos<Te.start||wn.end>=Te.start+Te.length)return(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.cannotExtractSuper)),!0}else Me|=de.UsesThis;break;case 212:e.forEachChild(xe,function Kn(Je){if(e.isThis(Je))Me|=de.UsesThis;else{if(e.isClassLike(Je)||e.isFunctionLike(Je)&&!e.isArrowFunction(Je))return!1;e.forEachChild(Je,Kn)}});case 255:case 254:e.isSourceFile(xe.parent)&&xe.parent.externalModuleIndicator===void 0&&(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.functionWillNotBeVisibleInTheNewScope));case 224:case 211:case 167:case 169:case 170:case 171:return!1}var Be=ke;switch(xe.kind){case 237:ke=0;break;case 250:ke=0;break;case 233:xe.parent&&xe.parent.kind===250&&xe.parent.finallyBlock===xe&&(ke=4);break;case 288:case 287:ke|=1;break;default:e.isIterationStatement(xe,!1)&&(ke|=1|2);break}switch(xe.kind){case 190:case 108:Me|=de.UsesThis;break;case 248:{var hn=xe.label;(Qe||(Qe=[])).push(hn.escapedText),e.forEachChild(xe,gn),Qe.pop();break}case 244:case 243:{var hn=xe.label;hn?e.contains(Qe,hn.escapedText)||(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ke&(xe.kind===244?1:2)||(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 216:Me|=de.IsAsyncFunction;break;case 222:Me|=de.IsGenerator;break;case 245:ke&4?Me|=de.HasReturn:(Pe||(Pe=[])).push(e.createDiagnosticForNode(xe,b.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(xe,gn);break}ke=Be}}}Y.getRangeToExtract=fe;function _(te,Te,be){var Ce=te.getStart(be),Ue=Te.getEnd();return be.text.charCodeAt(Ue)===59&&Ue++,{start:Ce,length:Ue-Ce}}function U(te){return e.isStatement(te)?[te]:e.isExpressionNode(te)?e.isExpressionStatement(te.parent)?[te.parent]:te:void 0}function Z(te){return e.isFunctionLikeDeclaration(te)||e.isSourceFile(te)||e.isModuleBlock(te)||e.isClassLike(te)}function v(te){var Te=D(te.range)?e.first(te.range):te.range;if(te.facts&de.UsesThis){var be=e.getContainingClass(Te);if(be){var Ce=e.findAncestor(Te,e.isFunctionLikeDeclaration);return Ce?[Ce,be]:[be]}}for(var Ue=[];;)if(Te=Te.parent,Te.kind===162&&(Te=e.findAncestor(Te,function(Se){return e.isFunctionLikeDeclaration(Se)}).parent),Z(Te)&&(Ue.push(Te),Te.kind===300))return Ue}function W(te,Te,be){var Ce=L(te,Te),Ue=Ce.scopes,Se=Ce.readsAndWrites,$e=Se.target,ce=Se.usagesPerScope,Le=Se.functionErrorsPerScope,qe=Se.exposedVariableDeclarations;return e.Debug.assert(!Le[be].length,"The extraction went missing? How?"),Te.cancellationToken.throwIfCancellationRequested(),I($e,Ue[be],ce[be],qe,te,Te)}function x(te,Te,be){var Ce=L(te,Te),Ue=Ce.scopes,Se=Ce.readsAndWrites,$e=Se.target,ce=Se.usagesPerScope,Le=Se.constantErrorsPerScope,qe=Se.exposedVariableDeclarations;e.Debug.assert(!Le[be].length,"The extraction went missing? How?"),e.Debug.assert(qe.length===0,"Extract constant accepted a range containing a variable declaration?"),Te.cancellationToken.throwIfCancellationRequested();var pe=e.isExpression($e)?$e:$e.statements[0].expression;return re(pe,Ue[be],ce[be],te.facts,Te)}function $(te,Te){var be=L(te,Te),Ce=be.scopes,Ue=be.readsAndWrites,Se=Ue.functionErrorsPerScope,$e=Ue.constantErrorsPerScope,ce=Ce.map(function(Le,qe){var pe=E(Le),Me=ae(Le),fn=e.isFunctionLikeDeclaration(Le)?X(Le):e.isClassLike(Le)?ie(Le):le(Le),Ye,Ne;return fn===1?(Ye=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[pe,"global"]),Ne=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Me,"global"])):fn===0?(Ye=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[pe,"module"]),Ne=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Me,"module"])):(Ye=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[pe,fn]),Ne=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[Me,fn])),qe===0&&!e.isClassLike(Le)&&(Ne=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[Me])),{functionExtraction:{description:Ye,errors:Se[qe]},constantExtraction:{description:Ne,errors:$e[qe]}}});return ce}function L(te,Te){var be=Te.file,Ce=v(te),Ue=R(te,be),Se=q(te,Ce,Ue,be,Te.program.getTypeChecker(),Te.cancellationToken);return{scopes:Ce,readsAndWrites:Se}}function E(te){return e.isFunctionLikeDeclaration(te)?"inner function":e.isClassLike(te)?"method":"function"}function ae(te){return e.isClassLike(te)?"readonly field":"constant"}function X(te){switch(te.kind){case 169:return"constructor";case 211:case 254:return te.name?"function '"+te.name.text+"'":e.ANONYMOUS;case 212:return"arrow function";case 167:return"method '"+te.name.getText()+"'";case 170:return"'get "+te.name.getText()+"'";case 171:return"'set "+te.name.getText()+"'";default:throw e.Debug.assertNever(te,"Unexpected scope kind "+te.kind)}}function ie(te){return te.kind===255?te.name?"class '"+te.name.text+"'":"anonymous class declaration":te.name?"class expression '"+te.name.text+"'":"anonymous class expression"}function le(te){return te.kind===260?"namespace '"+te.parent.name.getText()+"'":te.externalModuleIndicator?0:1}var P;(function(te){te[te.Module=0]="Module",te[te.Global=1]="Global"})(P||(P={}));function I(te,Te,be,Ce,Ue,Se){var $e=be.usages,ce=be.typeParameterUsages,Le=be.substitutions,qe=Se.program.getTypeChecker(),pe=e.getEmitScriptTarget(Se.program.getCompilerOptions()),Me=e.codefix.createImportAdder(Se.file,Se.program,Se.preferences,Se.host),fn=Te.getSourceFile(),Ye=e.getUniqueName(e.isClassLike(Te)?"newMethod":"newFunction",fn),Ne=e.isInJSFile(Te),je=e.factory.createIdentifier(Ye),xn,Wn=[],dn=[],vn;$e.forEach(function(Bn,K){var An;if(!Ne){var Fn=qe.getTypeOfSymbolAtLocation(Bn.symbol,Bn.node);Fn=qe.getBaseTypeOfLiteralType(Fn),An=e.codefix.typeToAutoImportableTypeNode(qe,Me,Fn,Te,pe,1)}var ln=e.factory.createParameterDeclaration(void 0,void 0,void 0,K,void 0,An);Wn.push(ln),Bn.usage===2&&(vn||(vn=[])).push(Bn),dn.push(e.factory.createIdentifier(K))});var o=e.arrayFrom(ce.values()).map(function(Bn){return{type:Bn,declaration:A(Bn)}}),Cn=o.sort(f),z=Cn.length===0?void 0:Cn.map(function(Bn){return Bn.declaration}),tn=z!==void 0?z.map(function(Bn){return e.factory.createTypeReferenceNode(Bn.name,void 0)}):void 0;if(e.isExpression(te)&&!Ne){var $n=qe.getContextualType(te);xn=qe.typeToTypeNode($n,Te,1)}var Un=g(te,Ce,vn,Le,!!(Ue.facts&de.HasReturn)),oe=Un.body,Pe=Un.returnValueProperty;e.suppressLeadingAndTrailingTrivia(oe);var ke;if(e.isClassLike(Te)){var Qe=Ne?[]:[e.factory.createModifier(121)];Ue.facts&de.InStaticRegion&&Qe.push(e.factory.createModifier(124)),Ue.facts&de.IsAsyncFunction&&Qe.push(e.factory.createModifier(130)),ke=e.factory.createMethodDeclaration(void 0,Qe.length?Qe:void 0,Ue.facts&de.IsGenerator?e.factory.createToken(41):void 0,je,void 0,z,Wn,xn,oe)}else ke=e.factory.createFunctionDeclaration(void 0,Ue.facts&de.IsAsyncFunction?[e.factory.createToken(130)]:void 0,Ue.facts&de.IsGenerator?e.factory.createToken(41):void 0,je,z,Wn,xn,oe);var gn=e.textChanges.ChangeTracker.fromContext(Se),xe=(D(Ue.range)?e.last(Ue.range):Ue.range).end,Ze=T(xe,Te);Ze?gn.insertNodeBefore(Se.file,Ze,ke,!0):gn.insertNodeAtEndOfScope(Se.file,Te,ke),Me.writeFixes(gn);var wn=[],Be=F(Te,Ue,Ye),hn=e.factory.createCallExpression(Be,tn,dn);if(Ue.facts&de.IsGenerator&&(hn=e.factory.createYieldExpression(e.factory.createToken(41),hn)),Ue.facts&de.IsAsyncFunction&&(hn=e.factory.createAwaitExpression(hn)),Oe(te)&&(hn=e.factory.createJsxExpression(void 0,hn)),Ce.length&&!vn)if(e.Debug.assert(!Pe,"Expected no returnValueProperty"),e.Debug.assert(!(Ue.facts&de.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),Ce.length===1){var Kn=Ce[0];wn.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Kn.name),void 0,e.getSynthesizedDeepClone(Kn.type),hn)],Kn.parent.flags)))}else{for(var Je=[],En=[],Nn=Ce[0].parent.flags,ct=!1,yt=0,Gt=Ce;yt<Gt.length;yt++){var Kn=Gt[yt];Je.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Kn.name)));var $t=qe.typeToTypeNode(qe.getBaseTypeOfLiteralType(qe.getTypeAtLocation(Kn)),Te,1);En.push(e.factory.createPropertySignature(void 0,Kn.symbol.name,void 0,$t)),ct=ct||Kn.type!==void 0,Nn=Nn&Kn.parent.flags}var Ke=ct?e.factory.createTypeLiteralNode(En):void 0;Ke&&e.setEmitFlags(Ke,1),wn.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(Je),void 0,Ke,hn)],Nn)))}else if(Ce.length||vn){if(Ce.length)for(var Vn=0,Zn=Ce;Vn<Zn.length;Vn++){var Kn=Zn[Vn],Re=Kn.parent.flags;Re&2&&(Re=Re&~2|1),wn.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Kn.symbol.name,void 0,Fe(Kn.type))],Re)))}Pe&&wn.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Pe,void 0,Fe(xn))],1)));var Pn=N(Ce,vn);Pe&&Pn.unshift(e.factory.createShorthandPropertyAssignment(Pe)),Pn.length===1?(e.Debug.assert(!Pe,"Shouldn't have returnValueProperty here"),wn.push(e.factory.createExpressionStatement(e.factory.createAssignment(Pn[0].name,hn))),Ue.facts&de.HasReturn&&wn.push(e.factory.createReturnStatement())):(wn.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Pn),hn))),Pe&&wn.push(e.factory.createReturnStatement(e.factory.createIdentifier(Pe))))}else Ue.facts&de.HasReturn?wn.push(e.factory.createReturnStatement(hn)):D(Ue.range)?wn.push(e.factory.createExpressionStatement(hn)):wn.push(hn);D(Ue.range)?gn.replaceNodeRangeWithNodes(Se.file,e.first(Ue.range),e.last(Ue.range),wn):gn.replaceNodeWithNodes(Se.file,Ue.range,wn);var rt=gn.getChanges(),Yn=D(Ue.range)?e.first(Ue.range):Ue.range,gt=Yn.getSourceFile().fileName,lt=e.getRenameLocation(rt,gt,Ye,!1);return{renameFilename:gt,renameLocation:lt,edits:rt};function Fe(Bn){if(Bn===void 0)return;for(var K=e.getSynthesizedDeepClone(Bn),An=K;e.isParenthesizedTypeNode(An);)An=An.type;return e.isUnionTypeNode(An)&&e.find(An.types,function(Fn){return Fn.kind===151})?K:e.factory.createUnionTypeNode([K,e.factory.createKeywordTypeNode(151)])}}function re(te,Te,be,Ce,Ue){var Se,$e=be.substitutions,ce=Ue.program.getTypeChecker(),Le=Te.getSourceFile(),qe=e.getUniqueName(e.isClassLike(Te)?"newProperty":"newLocal",Le),pe=e.isInJSFile(Te),Me=pe||!ce.isContextSensitive(te)?void 0:ce.typeToTypeNode(ce.getContextualType(te),Te,1),fn=p(te,$e);Se=Un(Me,fn),Me=Se.variableType,fn=Se.initializer,e.suppressLeadingAndTrailingTrivia(fn);var Ye=e.textChanges.ChangeTracker.fromContext(Ue);if(e.isClassLike(Te)){e.Debug.assert(!pe,"Cannot extract to a JS class");var Ne=[];Ne.push(e.factory.createModifier(121)),Ce&de.InStaticRegion&&Ne.push(e.factory.createModifier(124)),Ne.push(e.factory.createModifier(143));var je=e.factory.createPropertyDeclaration(void 0,Ne,qe,void 0,Me,fn),xn=e.factory.createPropertyAccessExpression(Ce&de.InStaticRegion?e.factory.createIdentifier(Te.name.getText()):e.factory.createThis(),e.factory.createIdentifier(qe));Oe(te)&&(xn=e.factory.createJsxExpression(void 0,xn));var Wn=te.pos,dn=m(Wn,Te);Ye.insertNodeBefore(Ue.file,dn,je,!0),Ye.replaceNode(Ue.file,te,xn)}else{var vn=e.factory.createVariableDeclaration(qe,void 0,Me,fn),o=B(te,Te);if(o){Ye.insertNodeBefore(Ue.file,o,vn);var xn=e.factory.createIdentifier(qe);Ye.replaceNode(Ue.file,te,xn)}else if(te.parent.kind===236&&Te===e.findAncestor(te,Z)){var Cn=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([vn],2));Ye.replaceNode(Ue.file,te.parent,Cn)}else{var Cn=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([vn],2)),dn=k(te,Te);if(dn.pos===0?Ye.insertNodeAtTopOfFile(Ue.file,Cn,!1):Ye.insertNodeBefore(Ue.file,dn,Cn,!1),te.parent.kind===236)Ye.delete(Ue.file,te.parent);else{var xn=e.factory.createIdentifier(qe);Oe(te)&&(xn=e.factory.createJsxExpression(void 0,xn)),Ye.replaceNode(Ue.file,te,xn)}}}var z=Ye.getChanges(),tn=te.getSourceFile().fileName,$n=e.getRenameLocation(z,tn,qe,!0);return{renameFilename:tn,renameLocation:$n,edits:z};function Un(oe,Pe){if(oe===void 0)return{variableType:oe,initializer:Pe};if(!e.isFunctionExpression(Pe)&&!e.isArrowFunction(Pe)||!!Pe.typeParameters)return{variableType:oe,initializer:Pe};var ke=ce.getTypeAtLocation(te),Qe=e.singleOrUndefined(ce.getSignaturesOfType(ke,0));if(!Qe)return{variableType:oe,initializer:Pe};if(Qe.getTypeParameters())return{variableType:oe,initializer:Pe};for(var gn=[],xe=!1,Ze=0,wn=Pe.parameters;Ze<wn.length;Ze++){var Be=wn[Ze];if(Be.type)gn.push(Be);else{var hn=ce.getTypeAtLocation(Be);hn===ce.getAnyType()&&(xe=!0),gn.push(e.factory.updateParameterDeclaration(Be,Be.decorators,Be.modifiers,Be.dotDotDotToken,Be.name,Be.questionToken,Be.type||ce.typeToTypeNode(hn,Te,1),Be.initializer))}}if(xe)return{variableType:oe,initializer:Pe};if(oe=void 0,e.isArrowFunction(Pe))Pe=e.factory.updateArrowFunction(Pe,te.modifiers,Pe.typeParameters,gn,Pe.type||ce.typeToTypeNode(Qe.getReturnType(),Te,1),Pe.equalsGreaterThanToken,Pe.body);else{if(Qe&&!!Qe.thisParameter){var Kn=e.firstOrUndefined(gn);if(!Kn||e.isIdentifier(Kn.name)&&Kn.name.escapedText!=="this"){var Je=ce.getTypeOfSymbolAtLocation(Qe.thisParameter,te);gn.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,ce.typeToTypeNode(Je,Te,1)))}}Pe=e.factory.updateFunctionExpression(Pe,te.modifiers,Pe.asteriskToken,Pe.name,Pe.typeParameters,gn,Pe.type||ce.typeToTypeNode(Qe.getReturnType(),Te,1),Pe.body)}return{variableType:oe,initializer:Pe}}}function B(te,Te){for(var be;te!==void 0&&te!==Te;){if(e.isVariableDeclaration(te)&&te.initializer===be&&e.isVariableDeclarationList(te.parent)&&te.parent.declarations.length>1)return te;be=te,te=te.parent}}function A(te){var Te,be=te.symbol;if(be&&be.declarations)for(var Ce=0,Ue=be.declarations;Ce<Ue.length;Ce++){var Se=Ue[Ce];(Te===void 0||Se.pos<Te.pos)&&(Te=Se)}return Te}function f(te,Te){var be=te.type,Ce=te.declaration,Ue=Te.type,Se=Te.declaration;return e.compareProperties(Ce,Se,"pos",e.compareValues)||e.compareStringsCaseSensitive(be.symbol?be.symbol.getName():"",Ue.symbol?Ue.symbol.getName():"")||e.compareValues(be.id,Ue.id)}function F(te,Te,be){var Ce=e.factory.createIdentifier(be);if(e.isClassLike(te)){var Ue=Te.facts&de.InStaticRegion?e.factory.createIdentifier(te.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(Ue,Ce)}else return Ce}function g(te,Te,be,Ce,Ue){var Se=be!==void 0||Te.length>0;if(e.isBlock(te)&&!Se&&Ce.size===0)return{body:e.factory.createBlock(te.statements,!0),returnValueProperty:void 0};var $e,ce=!1,Le=e.factory.createNodeArray(e.isBlock(te)?te.statements.slice(0):[e.isStatement(te)?te:e.factory.createReturnStatement(te)]);if(Se||Ce.size){var qe=e.visitNodes(Le,Me).slice();if(Se&&!Ue&&e.isStatement(te)){var pe=N(Te,be);pe.length===1?qe.push(e.factory.createReturnStatement(pe[0].name)):qe.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(pe)))}return{body:e.factory.createBlock(qe,!0),returnValueProperty:$e}}else return{body:e.factory.createBlock(Le,!0),returnValueProperty:void 0};function Me(fn){if(!ce&&e.isReturnStatement(fn)&&Se){var Ye=N(Te,be);return fn.expression&&($e||($e="__return"),Ye.unshift(e.factory.createPropertyAssignment($e,e.visitNode(fn.expression,Me)))),Ye.length===1?e.factory.createReturnStatement(Ye[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Ye))}else{var Ne=ce;ce=ce||e.isFunctionLikeDeclaration(fn)||e.isClassLike(fn);var je=Ce.get(e.getNodeId(fn).toString()),xn=je?e.getSynthesizedDeepClone(je):e.visitEachChild(fn,Me,e.nullTransformationContext);return ce=Ne,xn}}}function p(te,Te){return Te.size?be(te):te;function be(Ce){var Ue=Te.get(e.getNodeId(Ce).toString());return Ue?e.getSynthesizedDeepClone(Ue):e.visitEachChild(Ce,be,e.nullTransformationContext)}}function d(te){if(e.isFunctionLikeDeclaration(te)){var Te=te.body;if(e.isBlock(Te))return Te.statements}else{if(e.isModuleBlock(te)||e.isSourceFile(te))return te.statements;if(e.isClassLike(te))return te.members;e.assertType(te)}return e.emptyArray}function T(te,Te){return e.find(d(Te),function(be){return be.pos>=te&&e.isFunctionLikeDeclaration(be)&&!e.isConstructorDeclaration(be)})}function m(te,Te){var be=Te.members;e.Debug.assert(be.length>0,"Found no members");for(var Ce,Ue=!0,Se=0,$e=be;Se<$e.length;Se++){var ce=$e[Se];if(ce.pos>te)return Ce||be[0];if(Ue&&!e.isPropertyDeclaration(ce)){if(Ce!==void 0)return ce;Ue=!1}Ce=ce}return Ce===void 0?e.Debug.fail():Ce}function k(te,Te){e.Debug.assert(!e.isClassLike(Te));for(var be,Ce=te;Ce!==Te;Ce=Ce.parent)Z(Ce)&&(be=Ce);for(var Ce=(be||te).parent;;Ce=Ce.parent){if(we(Ce)){for(var Ue=void 0,Se=0,$e=Ce.statements;Se<$e.length;Se++){var ce=$e[Se];if(ce.pos>te.pos)break;Ue=ce}return!Ue&&e.isCaseClause(Ce)?(e.Debug.assert(e.isSwitchStatement(Ce.parent.parent),"Grandparent isn't a switch statement"),Ce.parent.parent):e.Debug.checkDefined(Ue,"prevStatement failed to get set")}e.Debug.assert(Ce!==Te,"Didn't encounter a block-like before encountering scope")}}function N(te,Te){var be=e.map(te,function(Ue){return e.factory.createShorthandPropertyAssignment(Ue.symbol.name)}),Ce=e.map(Te,function(Ue){return e.factory.createShorthandPropertyAssignment(Ue.symbol.name)});return be===void 0?Ce:Ce===void 0?be:be.concat(Ce)}function D(te){return e.isArray(te)}function R(te,Te){return D(te.range)?{pos:e.first(te.range).getStart(Te),end:e.last(te.range).getEnd()}:te.range}var me;(function(te){te[te.Read=1]="Read",te[te.Write=2]="Write"})(me||(me={}));function q(te,Te,be,Ce,Ue,Se){var $e=new e.Map,ce=[],Le=[],qe=[],pe=[],Me=[],fn=new e.Map,Ye=[],Ne,je=D(te.range)?te.range.length===1&&e.isExpressionStatement(te.range[0])?te.range[0].expression:void 0:te.range,xn;if(je===void 0){var Wn=te.range,dn=e.first(Wn).getStart(),vn=e.last(Wn).end;xn=e.createFileDiagnostic(Ce,dn,vn-dn,b.expressionExpected)}else Ue.getTypeAtLocation(je).flags&(16384|131072)&&(xn=e.createDiagnosticForNode(je,b.uselessConstantType));for(var o=0,Cn=Te;o<Cn.length;o++){var z=Cn[o];ce.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),Le.push(new e.Map),qe.push([]);var tn=[];xn&&tn.push(xn),e.isClassLike(z)&&e.isInJSFile(z)&&tn.push(e.createDiagnosticForNode(z,b.cannotExtractToJSClass)),e.isArrowFunction(z)&&!e.isBlock(z.body)&&tn.push(e.createDiagnosticForNode(z,b.cannotExtractToExpressionArrowFunction)),pe.push(tn)}var $n=new e.Map,Un=D(te.range)?e.factory.createBlock(te.range):te.range,oe=D(te.range)?e.first(te.range):te.range,Pe=Nn(oe);if(yt(Un),Pe&&!D(te.range)){var ke=Ue.getContextualType(te.range);ct(ke)}if($e.size>0){for(var Qe=new e.Map,gn=0,xe=oe;xe!==void 0&&gn<Te.length;xe=xe.parent)if(xe===Te[gn]&&(Qe.forEach(function(Re,Pn){ce[gn].typeParameterUsages.set(Pn,Re)}),gn++),e.isDeclarationWithTypeParameters(xe))for(var Ze=0,wn=e.getEffectiveTypeParameterDeclarations(xe);Ze<wn.length;Ze++){var Be=wn[Ze],hn=Ue.getTypeAtLocation(Be);$e.has(hn.id.toString())&&Qe.set(hn.id.toString(),hn)}e.Debug.assert(gn===Te.length,"Should have iterated all scopes")}if(Me.length){var Kn=e.isBlockScope(Te[0],Te[0].parent)?Te[0]:e.getEnclosingBlockScopeContainer(Te[0]);e.forEachChild(Kn,Ke)}for(var Je=function(Re){var Pn=ce[Re];if(Re>0&&(Pn.usages.size>0||Pn.typeParameterUsages.size>0)){var rt=D(te.range)?te.range[0]:te.range;pe[Re].push(e.createDiagnosticForNode(rt,b.cannotAccessVariablesFromNestedScopes))}var Yn=!1,gt;if(ce[Re].usages.forEach(function(Fe){Fe.usage===2&&(Yn=!0,Fe.symbol.flags&106500&&Fe.symbol.valueDeclaration&&e.hasEffectiveModifier(Fe.symbol.valueDeclaration,64)&&(gt=Fe.symbol.valueDeclaration))}),e.Debug.assert(D(te.range)||Ye.length===0,"No variable declarations expected if something was extracted"),Yn&&!D(te.range)){var lt=e.createDiagnosticForNode(te.range,b.cannotWriteInExpression);qe[Re].push(lt),pe[Re].push(lt)}else if(gt&&Re>0){var lt=e.createDiagnosticForNode(gt,b.cannotExtractReadonlyPropertyInitializerOutsideConstructor);qe[Re].push(lt),pe[Re].push(lt)}else if(Ne){var lt=e.createDiagnosticForNode(Ne,b.cannotExtractExportedEntity);qe[Re].push(lt),pe[Re].push(lt)}},En=0;En<Te.length;En++)Je(En);return{target:Un,usagesPerScope:ce,functionErrorsPerScope:qe,constantErrorsPerScope:pe,exposedVariableDeclarations:Ye};function Nn(Re){return!!e.findAncestor(Re,function(Pn){return e.isDeclarationWithTypeParameters(Pn)&&e.getEffectiveTypeParameterDeclarations(Pn).length!==0})}function ct(Re){for(var Pn=Ue.getSymbolWalker(function(){return Se.throwIfCancellationRequested(),!0}),rt=Pn.walkType(Re).visitedTypes,Yn=0,gt=rt;Yn<gt.length;Yn++){var lt=gt[Yn];lt.isTypeParameter()&&$e.set(lt.id.toString(),lt)}}function yt(Re,Pn){if(Pn===void 0&&(Pn=1),Pe){var rt=Ue.getTypeAtLocation(Re);ct(rt)}if(e.isDeclaration(Re)&&Re.symbol&&Me.push(Re),e.isAssignmentExpression(Re))yt(Re.left,2),yt(Re.right);else if(e.isUnaryExpressionWithWrite(Re))yt(Re.operand,2);else if(e.isPropertyAccessExpression(Re)||e.isElementAccessExpression(Re))e.forEachChild(Re,yt);else if(e.isIdentifier(Re)){if(!Re.parent)return;if(e.isQualifiedName(Re.parent)&&Re!==Re.parent.left)return;if(e.isPropertyAccessExpression(Re.parent)&&Re!==Re.parent.expression)return;Gt(Re,Pn,e.isPartOfTypeNode(Re))}else e.forEachChild(Re,yt)}function Gt(Re,Pn,rt){var Yn=$t(Re,Pn,rt);if(Yn)for(var gt=0;gt<Te.length;gt++){var lt=Le[gt].get(Yn);lt&&ce[gt].substitutions.set(e.getNodeId(Re).toString(),lt)}}function $t(Re,Pn,rt){var Yn=Vn(Re);if(!Yn)return;var gt=e.getSymbolId(Yn).toString(),lt=$n.get(gt);if(lt&<>=Pn)return gt;if($n.set(gt,Pn),lt){for(var Fe=0,Bn=ce;Fe<Bn.length;Fe++){var K=Bn[Fe],An=K.usages.get(Re.text);An&&K.usages.set(Re.text,{usage:Pn,symbol:Yn,node:Re})}return gt}var Fn=Yn.getDeclarations(),ln=Fn&&e.find(Fn,function(br){return br.getSourceFile()===Ce});if(!ln)return;if(e.rangeContainsStartEnd(be,ln.getStart(),ln.end))return;if(te.facts&de.IsGenerator&&Pn===2){for(var Ln=e.createDiagnosticForNode(Re,b.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),Xe=0,Dn=qe;Xe<Dn.length;Xe++){var rn=Dn[Xe];rn.push(Ln)}for(var qn=0,it=pe;qn<it.length;qn++){var rn=it[qn];rn.push(Ln)}}for(var ht=0;ht<Te.length;ht++){var Et=Te[ht],zt=Ue.resolveName(Yn.name,Et,Yn.flags,!1);if(zt===Yn)continue;if(!Le[ht].has(gt)){var fr=Zn(Yn.exportSymbol||Yn,Et,rt);if(fr)Le[ht].set(gt,fr);else if(rt){if(!(Yn.flags&262144)){var Ln=e.createDiagnosticForNode(Re,b.typeWillNotBeVisibleInTheNewScope);qe[ht].push(Ln),pe[ht].push(Ln)}}else ce[ht].usages.set(Re.text,{usage:Pn,symbol:Yn,node:Re})}}return gt}function Ke(Re){if(Re===te.range||D(te.range)&&te.range.indexOf(Re)>=0)return;var Pn=e.isIdentifier(Re)?Vn(Re):Ue.getSymbolAtLocation(Re);if(Pn){var rt=e.find(Me,function(gt){return gt.symbol===Pn});if(rt)if(e.isVariableDeclaration(rt)){var Yn=rt.symbol.id.toString();fn.has(Yn)||(Ye.push(rt),fn.set(Yn,!0))}else Ne=Ne||rt}e.forEachChild(Re,Ke)}function Vn(Re){return Re.parent&&e.isShorthandPropertyAssignment(Re.parent)&&Re.parent.name===Re?Ue.getShorthandAssignmentValueSymbol(Re.parent):Ue.getSymbolAtLocation(Re)}function Zn(Re,Pn,rt){if(!Re)return;var Yn=Re.getDeclarations();if(Yn&&Yn.some(function(lt){return lt.parent===Pn}))return e.factory.createIdentifier(Re.name);var gt=Zn(Re.parent,Pn,rt);return gt===void 0?void 0:rt?e.factory.createQualifiedName(gt,e.factory.createIdentifier(Re.name)):e.factory.createPropertyAccessExpression(gt,Re.name)}}function J(te){return e.findAncestor(te,function(Te){return Te.parent&&C(Te)&&!e.isBinaryExpression(Te.parent)})}function C(te){var Te=te.parent;switch(Te.kind){case 294:return!1}switch(te.kind){case 10:return Te.kind!==264&&Te.kind!==268;case 223:case 199:case 201:return!1;case 79:return Te.kind!==201&&Te.kind!==268&&Te.kind!==273}return!0}function we(te){switch(te.kind){case 233:case 300:case 260:case 287:return!0;default:return!1}}function Oe(te){return(e.isJsxElement(te)||e.isJsxSelfClosingElement(te)||e.isJsxFragment(te))&&(e.isJsxElement(te.parent)||e.isJsxFragment(te.parent))}})(ee=ue.extractSymbol||(ue.extractSymbol={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="Extract type",Y={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},V={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},ne={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};ue.registerRefactor(ee,{kinds:[Y.kind,V.kind,ne.kind],getAvailableActions:function(U){var Z=_e(U,U.triggerReason==="invoked");return Z?ue.isRefactorErrorInfo(Z)?U.preferences.provideRefactorNotApplicableReason?[{name:ee,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[pr(pr({},ne),{notApplicableReason:Z.error}),pr(pr({},Y),{notApplicableReason:Z.error}),pr(pr({},V),{notApplicableReason:Z.error})]}]:e.emptyArray:[{name:ee,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:Z.isJS?[ne]:e.append([Y],Z.typeElements&&V)}]:e.emptyArray},getEditsForAction:function(U,Z){var v=U.file,W=_e(U);e.Debug.assert(W&&!ue.isRefactorErrorInfo(W),"Expected to find a range to extract");var x=e.getUniqueName("NewType",v),$=e.textChanges.ChangeTracker.with(U,function(ae){switch(Z){case Y.name:return e.Debug.assert(!W.isJS,"Invalid actionName/JS combo"),de(ae,v,x,W);case ne.name:return e.Debug.assert(W.isJS,"Invalid actionName/JS combo"),_(ae,v,x,W);case V.name:return e.Debug.assert(!W.isJS&&!!W.typeElements,"Invalid actionName/JS combo"),fe(ae,v,x,W);default:e.Debug.fail("Unexpected action name")}}),L=v.fileName,E=e.getRenameLocation($,L,x,!1);return{edits:$,renameFilename:L,renameLocation:E}}});function _e(U,Z){Z===void 0&&(Z=!0);var v=U.file,W=U.startPosition,x=e.isSourceFileJS(v),$=e.getTokenAtPosition(v,W),L=e.createTextRangeFromSpan(e.getRefactorContextSpan(U)),E=L.pos===L.end&&Z,ae=e.findAncestor($,function(I){return I.parent&&e.isTypeNode(I)&&!w(L,I.parent,v)&&(E||e.nodeOverlapsWithStartEnd($,v,L.pos,L.end))});if(!ae||!e.isTypeNode(ae))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var X=U.program.getTypeChecker(),ie=e.Debug.checkDefined(e.findAncestor(ae,e.isStatement),"Should find a statement"),le=b(X,ae,ie,v);if(!le)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var P=O(X,ae);return{isJS:x,selection:ae,firstStatement:ie,typeParameters:le,typeElements:P}}function O(U,Z){if(!Z)return;if(e.isIntersectionTypeNode(Z)){for(var v=[],W=new e.Map,x=0,$=Z.types;x<$.length;x++){var L=$[x],E=O(U,L);if(!E||!E.every(function(ae){return ae.name&&e.addToSeen(W,e.getNameFromPropertyName(ae.name))}))return;e.addRange(v,E)}return v}else{if(e.isParenthesizedTypeNode(Z))return O(U,Z.type);if(e.isTypeLiteralNode(Z))return Z.members}return}function w(U,Z,v){return e.rangeContainsStartEnd(U,e.skipTrivia(v.text,Z.pos),Z.end)}function b(U,Z,v,W){var x=[];return $(Z)?void 0:x;function $(L){if(e.isTypeReferenceNode(L)){if(e.isIdentifier(L.typeName)){var E=U.resolveName(L.typeName.text,L.typeName,262144,!0);if(E==null?void 0:E.declarations){var ae=e.cast(e.first(E.declarations),e.isTypeParameterDeclaration);w(v,ae,W)&&!w(Z,ae,W)&&e.pushIfUnique(x,ae)}}}else if(e.isInferTypeNode(L)){var X=e.findAncestor(L,function(le){return e.isConditionalTypeNode(le)&&w(le.extendsType,L,W)});if(!X||!w(Z,X,W))return!0}else if(e.isTypePredicateNode(L)||e.isThisTypeNode(L)){var ie=e.findAncestor(L.parent,e.isFunctionLike);if(ie&&ie.type&&w(ie.type,L,W)&&!w(Z,ie,W))return!0}else if(e.isTypeQueryNode(L)){if(e.isIdentifier(L.exprName)){var E=U.resolveName(L.exprName.text,L.exprName,111551,!1);if((E==null?void 0:E.valueDeclaration)&&w(v,E.valueDeclaration,W)&&!w(Z,E.valueDeclaration,W))return!0}else if(e.isThisIdentifier(L.exprName.left)&&!w(Z,L.parent,W))return!0}return W&&e.isTupleTypeNode(L)&&e.getLineAndCharacterOfPosition(W,L.pos).line===e.getLineAndCharacterOfPosition(W,L.end).line&&e.setEmitFlags(L,1),e.forEachChild(L,$)}}function de(U,Z,v,W){var x=W.firstStatement,$=W.selection,L=W.typeParameters,E=e.factory.createTypeAliasDeclaration(void 0,void 0,v,L.map(function(ae){return e.factory.updateTypeParameterDeclaration(ae,ae.name,ae.constraint,void 0)}),$);U.insertNodeBefore(Z,x,e.ignoreSourceNewlines(E),!0),U.replaceNode(Z,$,e.factory.createTypeReferenceNode(v,L.map(function(ae){return e.factory.createTypeReferenceNode(ae.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function fe(U,Z,v,W){var x,$=W.firstStatement,L=W.selection,E=W.typeParameters,ae=W.typeElements,X=e.factory.createInterfaceDeclaration(void 0,void 0,v,E,void 0,ae);e.setTextRange(X,(x=ae[0])===null||x===void 0?void 0:x.parent),U.insertNodeBefore(Z,$,e.ignoreSourceNewlines(X),!0),U.replaceNode(Z,L,e.factory.createTypeReferenceNode(v,E.map(function(ie){return e.factory.createTypeReferenceNode(ie.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function _(U,Z,v,W){var x=W.firstStatement,$=W.selection,L=W.typeParameters,E=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression($),e.factory.createIdentifier(v)),ae=[];e.forEach(L,function(X){var ie=e.getEffectiveConstraintOfTypeParameter(X),le=e.factory.createTypeParameterDeclaration(X.name),P=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),ie&&e.cast(ie,e.isJSDocTypeExpression),[le]);ae.push(P)}),U.insertNodeBefore(Z,x,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(ae,[E]))),!0),U.replaceNode(Z,$,e.factory.createTypeReferenceNode(v,L.map(function(X){return e.factory.createTypeReferenceNode(X.name,void 0)})))}})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Generate 'get' and 'set' accessors",ne=e.Diagnostics.Generate_get_and_set_accessors.message,_e={name:V,description:ne,kind:"refactor.rewrite.property.generateAccessors"};ue.registerRefactor(V,{kinds:[_e.kind],getEditsForAction:function(O,w){if(!O.endPosition)return;var b=e.codefix.getAccessorConvertiblePropertyAtPosition(O.file,O.program,O.startPosition,O.endPosition);e.Debug.assert(b&&!ue.isRefactorErrorInfo(b),"Expected applicable refactor info");var de=e.codefix.generateAccessorFromProperty(O.file,O.program,O.startPosition,O.endPosition,O,w);if(!de)return;var fe=O.file.fileName,_=b.renameAccessor?b.accessorName:b.fieldName,U=e.isIdentifier(_)?0:-1,Z=U+e.getRenameLocation(de,fe,_.text,e.isParameter(b.declaration));return{renameFilename:fe,renameLocation:Z,edits:de}},getAvailableActions:function(O){if(!O.endPosition)return e.emptyArray;var w=e.codefix.getAccessorConvertiblePropertyAtPosition(O.file,O.program,O.startPosition,O.endPosition,O.triggerReason==="invoked");return w?ue.isRefactorErrorInfo(w)?O.preferences.provideRefactorNotApplicableReason?[{name:V,description:ne,actions:[pr(pr({},_e),{notApplicableReason:w.error})]}]:e.emptyArray:[{name:V,description:ne,actions:[_e]}]:e.emptyArray}})})(ee=ue.generateGetAccessorAndSetAccessor||(ue.generateGetAccessorAndSetAccessor={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(V){return V.error!==void 0}ue.isRefactorErrorInfo=ee;function Y(V,ne){return ne?V.substr(0,ne.length)===ne:!0}ue.refactorKindBeginsWith=Y})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee="Move to a new file",Y=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),V={name:ee,description:Y,kind:"refactor.move.newFile"};ue.registerRefactor(ee,{kinds:[V.kind],getAvailableActions:function(ce){var Le=O(ce);return ce.preferences.allowTextChangesInNewFiles&&Le?[{name:ee,description:Y,actions:[V]}]:ce.preferences.provideRefactorNotApplicableReason?[{name:ee,description:Y,actions:[pr(pr({},V),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(ce,Le){e.Debug.assert(Le===ee,"Wrong refactor invoked");var qe=e.Debug.checkDefined(O(ce)),pe=e.textChanges.ChangeTracker.with(ce,function(Me){return _e(ce.file,ce.program,qe,Me,ce.host,ce.preferences)});return{edits:pe,renameFilename:void 0,renameLocation:void 0}}});function ne(ce){var Le=ce.file,qe=e.createTextRangeFromSpan(e.getRefactorContextSpan(ce)),pe=Le.statements,Me=e.findIndex(pe,function(Ne){return Ne.end>qe.pos});if(Me===-1)return;var fn=pe[Me];if(e.isNamedDeclaration(fn)&&fn.name&&e.rangeContainsRange(fn.name,qe))return{toMove:[pe[Me]],afterLast:pe[Me+1]};if(qe.pos>fn.getStart(Le))return;var Ye=e.findIndex(pe,function(Ne){return Ne.end>qe.end},Me);return Ye!==-1&&(Ye===0||pe[Ye].getStart(Le)<qe.end)?void 0:{toMove:pe.slice(Me,Ye===-1?pe.length:Ye),afterLast:Ye===-1?void 0:pe[Ye]}}function _e(ce,Le,qe,pe,Me,fn){var Ye=Le.getTypeChecker(),Ne=F(ce,qe.all,Ye),je=e.getDirectoryPath(ce.fileName),xn=e.extensionFromPath(ce.fileName),Wn=A(f(Ne.movedSymbols),xn,je,Me),dn=Wn+xn;pe.createNewFile(ce,e.combinePaths(je,dn),fe(ce,Ne,pe,qe,Le,Wn,fn)),de(Le,pe,ce.fileName,dn,e.hostGetCanonicalFileName(Me))}function O(ce){var Le=ne(ce);if(Le===void 0)return;var qe=[],pe=[],Me=Le.toMove,fn=Le.afterLast;return e.getRangesWhere(Me,w,function(Ye,Ne){for(var je=Ye;je<Ne;je++)qe.push(Me[je]);pe.push({first:Me[Ye],afterLast:fn})}),qe.length===0?void 0:{all:qe,ranges:pe}}function w(ce){return!b(ce)&&!e.isPrologueDirective(ce)}function b(ce){switch(ce.kind){case 264:return!0;case 263:return!e.hasSyntacticModifier(ce,1);case 235:return ce.declarationList.declarations.every(function(Le){return!!Le.initializer&&e.isRequireCall(Le.initializer,!0)});default:return!1}}function de(ce,Le,qe,pe,Me){var fn=ce.getCompilerOptions().configFile;if(!fn)return;var Ye=e.normalizePath(e.combinePaths(qe,"..",pe)),Ne=e.getRelativePathFromFile(fn.fileName,Ye,Me),je=fn.statements[0]&&e.tryCast(fn.statements[0].expression,e.isObjectLiteralExpression),xn=je&&e.find(je.properties,function(Wn){return e.isPropertyAssignment(Wn)&&e.isStringLiteral(Wn.name)&&Wn.name.text==="files"});xn&&e.isArrayLiteralExpression(xn.initializer)&&Le.insertNodeInListAfter(fn,e.last(xn.initializer.elements),e.factory.createStringLiteral(Ne),xn.initializer.elements)}function fe(ce,Le,qe,pe,Me,fn,Ye){var Ne=Me.getTypeChecker(),je=e.takeWhile(ce.statements,e.isPrologueDirective);if(!ce.externalModuleIndicator&&!ce.commonJsModuleIndicator)return _(ce,pe.ranges,qe),Mt(Mt([],je,!0),pe.all,!0);var xn=!!ce.externalModuleIndicator,Wn=e.getQuotePreference(ce,Ye),dn=E(Le.oldFileImportsFromNewFile,fn,xn,Wn);dn&&e.insertImports(qe,ce,dn,!0),U(ce,pe.all,qe,Le.unusedImportsFromOldFile,Ne),_(ce,pe.ranges,qe),Z(qe,Me,ce,Le.movedSymbols,fn);var vn=B(ce,Le.oldImportsNeededByNewFile,Le.newFileImportsFromOldFile,qe,Ne,xn,Wn),o=le(ce,pe.all,Le.oldFileImportsFromNewFile,xn);return vn.length&&o.length?Mt(Mt(Mt(Mt([],je,!0),vn,!0),[4],!1),o,!0):Mt(Mt(Mt([],je,!0),vn,!0),o,!0)}function _(ce,Le,qe){for(var pe=0,Me=Le;pe<Me.length;pe++){var fn=Me[pe],Ye=fn.first,Ne=fn.afterLast;qe.deleteNodeRangeExcludingEnd(ce,Ye,Ne)}}function U(ce,Le,qe,pe,Me){for(var fn=0,Ye=ce.statements;fn<Ye.length;fn++){var Ne=Ye[fn];if(e.contains(Le,Ne))continue;L(Ne,function(je){return P(ce,je,qe,function(xn){return pe.has(Me.getSymbolAtLocation(xn))})})}}function Z(ce,Le,qe,pe,Me){for(var fn=Le.getTypeChecker(),Ye=function(Wn){if(Wn===qe)return"continue";for(var dn=function(z){L(z,function(tn){if(fn.getSymbolAtLocation($(tn))!==qe.symbol)return;var $n=function(ke){var Qe=e.isBindingElement(ke.parent)?e.getPropertySymbolFromBindingElement(fn,ke.parent):e.skipAlias(fn.getSymbolAtLocation(ke),fn);return!!Qe&&pe.has(Qe)};P(Wn,tn,ce,$n);var Un=e.combinePaths(e.getDirectoryPath($(tn).text),Me),oe=d(tn,e.factory.createStringLiteral(Un),$n);oe&&ce.insertNodeAfter(Wn,z,oe);var Pe=v(tn);Pe&&W(ce,Wn,fn,pe,Me,Un,Pe,tn)})},vn=0,o=Wn.statements;vn<o.length;vn++){var Cn=o[vn];dn(Cn)}},Ne=0,je=Le.getSourceFiles();Ne<je.length;Ne++){var xn=je[Ne];Ye(xn)}}function v(ce){switch(ce.kind){case 264:return ce.importClause&&ce.importClause.namedBindings&&ce.importClause.namedBindings.kind===266?ce.importClause.namedBindings.name:void 0;case 263:return ce.name;case 252:return e.tryCast(ce.name,e.isIdentifier);default:return e.Debug.assertNever(ce,"Unexpected node kind "+ce.kind)}}function W(ce,Le,qe,pe,Me,fn,Ye,Ne){var je=e.codefix.moduleSpecifierToValidIdentifier(Me,99),xn=!1,Wn=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Ye,qe,Le,function(z){if(!e.isPropertyAccessExpression(z.parent))return;xn=xn||!!qe.resolveName(je,z,67108863,!0),pe.has(qe.getSymbolAtLocation(z.parent.name))&&Wn.push(z)}),Wn.length){for(var dn=xn?e.getUniqueName(je,Le):je,vn=0,o=Wn;vn<o.length;vn++){var Cn=o[vn];ce.replaceNode(Le,Cn,e.factory.createIdentifier(dn))}ce.insertNodeAfter(Le,Ne,x(Ne,Me,fn))}}function x(ce,Le,qe){var pe=e.factory.createIdentifier(Le),Me=e.factory.createStringLiteral(qe);switch(ce.kind){case 264:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(pe)),Me);case 263:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,pe,e.factory.createExternalModuleReference(Me));case 252:return e.factory.createVariableDeclaration(pe,void 0,void 0,ie(Me));default:return e.Debug.assertNever(ce,"Unexpected node kind "+ce.kind)}}function $(ce){return ce.kind===264?ce.moduleSpecifier:ce.kind===263?ce.moduleReference.expression:ce.initializer.arguments[0]}function L(ce,Le){if(e.isImportDeclaration(ce))e.isStringLiteral(ce.moduleSpecifier)&&Le(ce);else if(e.isImportEqualsDeclaration(ce))e.isExternalModuleReference(ce.moduleReference)&&e.isStringLiteralLike(ce.moduleReference.expression)&&Le(ce);else if(e.isVariableStatement(ce))for(var qe=0,pe=ce.declarationList.declarations;qe<pe.length;qe++){var Me=pe[qe];Me.initializer&&e.isRequireCall(Me.initializer,!0)&&Le(Me)}}function E(ce,Le,qe,pe){var Me,fn=[];return ce.forEach(function(Ye){Ye.escapedName==="default"?Me=e.factory.createIdentifier(e.symbolNameNoDefault(Ye)):fn.push(Ye.name)}),ae(Me,fn,Le,qe,pe)}function ae(ce,Le,qe,pe,Me){if(qe=e.ensurePathIsNonModuleName(qe),pe){var fn=Le.map(function(Ne){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(Ne))});return e.makeImportIfNecessary(ce,fn,qe,Me)}else{e.Debug.assert(!ce,"No default import should exist");var Ye=Le.map(function(Ne){return e.factory.createBindingElement(void 0,void 0,Ne)});return Ye.length?X(e.factory.createObjectBindingPattern(Ye),void 0,ie(e.factory.createStringLiteral(qe))):void 0}}function X(ce,Le,qe,pe){return pe===void 0&&(pe=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ce,void 0,Le,qe)],pe))}function ie(ce){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[ce])}function le(ce,Le,qe,pe){return e.flatMap(Le,function(Me){if(me(Me)&&!Te(ce,Me,pe)&&J(Me,function(Ye){return qe.has(e.Debug.checkDefined(Ye.symbol))})){var fn=be(Me,pe);if(fn)return fn}return Me})}function P(ce,Le,qe,pe){switch(Le.kind){case 264:I(ce,Le,qe,pe);break;case 263:pe(Le.name)&&qe.delete(ce,Le);break;case 252:re(ce,Le,qe,pe);break;default:e.Debug.assertNever(Le,"Unexpected import decl kind "+Le.kind)}}function I(ce,Le,qe,pe){if(!Le.importClause)return;var Me=Le.importClause,fn=Me.name,Ye=Me.namedBindings,Ne=!fn||pe(fn),je=!Ye||(Ye.kind===266?pe(Ye.name):Ye.elements.length!==0&&Ye.elements.every(function(vn){return pe(vn.name)}));if(Ne&&je)qe.delete(ce,Le);else if(fn&&Ne&&qe.delete(ce,fn),Ye){if(je)qe.replaceNode(ce,Le.importClause,e.factory.updateImportClause(Le.importClause,Le.importClause.isTypeOnly,fn,void 0));else if(Ye.kind===267)for(var xn=0,Wn=Ye.elements;xn<Wn.length;xn++){var dn=Wn[xn];pe(dn.name)&&qe.delete(ce,dn)}}}function re(ce,Le,qe,pe){var Me=Le.name;switch(Me.kind){case 79:pe(Me)&&qe.delete(ce,Me);break;case 200:break;case 199:if(Me.elements.every(function(je){return e.isIdentifier(je.name)&&pe(je.name)}))qe.delete(ce,e.isVariableDeclarationList(Le.parent)&&Le.parent.declarations.length===1?Le.parent.parent:Le);else for(var fn=0,Ye=Me.elements;fn<Ye.length;fn++){var Ne=Ye[fn];e.isIdentifier(Ne.name)&&pe(Ne.name)&&qe.delete(ce,Ne.name)}break}}function B(ce,Le,qe,pe,Me,fn,Ye){for(var Ne=[],je=0,xn=ce.statements;je<xn.length;je++){var Wn=xn[je];L(Wn,function(Cn){e.append(Ne,d(Cn,$(Cn),function(z){return Le.has(Me.getSymbolAtLocation(z))}))})}var dn,vn=[],o=e.nodeSeenTracker();return qe.forEach(function(Cn){if(!Cn.declarations)return;for(var z=0,tn=Cn.declarations;z<tn.length;z++){var $n=tn[z];if(!D($n))continue;var Un=we($n);if(!Un)continue;var oe=Oe($n);o(oe)&&te(ce,oe,Un,pe,fn),e.hasSyntacticModifier($n,512)?dn=Un:vn.push(Un.text)}}),e.append(Ne,ae(dn,vn,e.removeFileExtension(e.getBaseFileName(ce.fileName)),fn,Ye)),Ne}function A(ce,Le,qe,pe){for(var Me=ce,fn=1;;fn++){var Ye=e.combinePaths(qe,Me+Le);if(!pe.fileExists(Ye))return Me;Me=ce+"."+fn}}function f(ce){return ce.forEachEntry(e.symbolNameNoDefault)||"newFile"}function F(ce,Le,qe){var pe=new N,Me=new N,fn=new N,Ye=e.find(Le,function(Un){return!!(Un.transformFlags&2)}),Ne=$n(Ye);Ne&&Me.add(Ne);for(var je=0,xn=Le;je<xn.length;je++){var Wn=xn[je];J(Wn,function(Un){pe.add(e.Debug.checkDefined(e.isExpressionStatement(Un)?qe.getSymbolAtLocation(Un.expression.left):Un.symbol,"Need a symbol here"))})}for(var dn=0,vn=Le;dn<vn.length;dn++){var Wn=vn[dn];k(Wn,qe,function(oe){if(!oe.declarations)return;for(var Pe=0,ke=oe.declarations;Pe<ke.length;Pe++){var Qe=ke[Pe];g(Qe)?Me.add(oe):D(Qe)&&R(Qe)===ce&&!pe.has(oe)&&fn.add(oe)}})}for(var o=Me.clone(),Cn=new N,z=0,tn=ce.statements;z<tn.length;z++){var Wn=tn[z];if(e.contains(Le,Wn))continue;Ne&&!!(Wn.transformFlags&2)&&o.delete(Ne),k(Wn,qe,function(oe){pe.has(oe)&&Cn.add(oe),o.delete(oe)})}return{movedSymbols:pe,newFileImportsFromOldFile:fn,oldFileImportsFromNewFile:Cn,oldImportsNeededByNewFile:Me,unusedImportsFromOldFile:o};function $n(Un){if(Un===void 0)return;var oe=qe.getJsxNamespace(Un),Pe=qe.resolveName(oe,Un,1920,!0);return!!Pe&&e.some(Pe.declarations,g)?Pe:void 0}}function g(ce){switch(ce.kind){case 263:case 268:case 265:case 266:return!0;case 252:return p(ce);case 201:return e.isVariableDeclaration(ce.parent.parent)&&p(ce.parent.parent);default:return!1}}function p(ce){return e.isSourceFile(ce.parent.parent.parent)&&!!ce.initializer&&e.isRequireCall(ce.initializer,!0)}function d(ce,Le,qe){switch(ce.kind){case 264:{var pe=ce.importClause;if(!pe)return;var Me=pe.name&&qe(pe.name)?pe.name:void 0,fn=pe.namedBindings&&T(pe.namedBindings,qe);return Me||fn?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,Me,fn),Le):void 0}case 263:return qe(ce.name)?ce:void 0;case 252:{var Ye=m(ce.name,qe);return Ye?X(Ye,ce.type,ie(Le),ce.parent.flags):void 0}default:return e.Debug.assertNever(ce,"Unexpected import kind "+ce.kind)}}function T(ce,Le){if(ce.kind===266)return Le(ce.name)?ce:void 0;var qe=ce.elements.filter(function(pe){return Le(pe.name)});return qe.length?e.factory.createNamedImports(qe):void 0}function m(ce,Le){switch(ce.kind){case 79:return Le(ce)?ce:void 0;case 200:return ce;case 199:{var qe=ce.elements.filter(function(pe){return pe.propertyName||!e.isIdentifier(pe.name)||Le(pe.name)});return qe.length?e.factory.createObjectBindingPattern(qe):void 0}}}function k(ce,Le,qe){ce.forEachChild(function pe(Me){if(e.isIdentifier(Me)&&!e.isDeclarationName(Me)){var fn=Le.getSymbolAtLocation(Me);fn&&qe(fn)}else Me.forEachChild(pe)})}var N=function(){function ce(){this.map=new e.Map}return ce.prototype.add=function(Le){this.map.set(String(e.getSymbolId(Le)),Le)},ce.prototype.has=function(Le){return this.map.has(String(e.getSymbolId(Le)))},ce.prototype.delete=function(Le){this.map.delete(String(e.getSymbolId(Le)))},ce.prototype.forEach=function(Le){this.map.forEach(Le)},ce.prototype.forEachEntry=function(Le){return e.forEachEntry(this.map,Le)},ce.prototype.clone=function(){var Le=new ce;return e.copyEntries(this.map,Le.map),Le},ce}();function D(ce){return q(ce)&&e.isSourceFile(ce.parent)||e.isVariableDeclaration(ce)&&e.isSourceFile(ce.parent.parent.parent)}function R(ce){return e.isVariableDeclaration(ce)?ce.parent.parent.parent:ce.parent}function me(ce){return e.Debug.assert(e.isSourceFile(ce.parent),"Node parent should be a SourceFile"),q(ce)||e.isVariableStatement(ce)}function q(ce){switch(ce.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return!0;default:return!1}}function J(ce,Le){switch(ce.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return Le(ce);case 235:return e.firstDefined(ce.declarationList.declarations,function(pe){return C(pe.name,Le)});case 236:{var qe=ce.expression;return e.isBinaryExpression(qe)&&e.getAssignmentDeclarationKind(qe)===1?Le(ce):void 0}}}function C(ce,Le){switch(ce.kind){case 79:return Le(e.cast(ce.parent,function(qe){return e.isVariableDeclaration(qe)||e.isBindingElement(qe)}));case 200:case 199:return e.firstDefined(ce.elements,function(qe){return e.isOmittedExpression(qe)?void 0:C(qe.name,Le)});default:return e.Debug.assertNever(ce,"Unexpected name kind "+ce.kind)}}function we(ce){return e.isExpressionStatement(ce)?e.tryCast(ce.expression.left.name,e.isIdentifier):e.tryCast(ce.name,e.isIdentifier)}function Oe(ce){switch(ce.kind){case 252:return ce.parent.parent;case 201:return Oe(e.cast(ce.parent.parent,function(Le){return e.isVariableDeclaration(Le)||e.isBindingElement(Le)}));default:return ce}}function te(ce,Le,qe,pe,Me){if(Te(ce,Le,Me,qe))return;if(Me)e.isExpressionStatement(Le)||pe.insertExportModifier(ce,Le);else{var fn=Se(Le);fn.length!==0&&pe.insertNodesAfter(ce,Le,fn.map($e))}}function Te(ce,Le,qe,pe){var Me;return qe?!e.isExpressionStatement(Le)&&e.hasSyntacticModifier(Le,1)||!!(pe&&((Me=ce.symbol.exports)===null||Me===void 0?void 0:Me.has(pe.escapedText))):Se(Le).some(function(fn){return ce.symbol.exports.has(e.escapeLeadingUnderscores(fn))})}function be(ce,Le){return Le?[Ce(ce)]:Ue(ce)}function Ce(ce){var Le=e.concatenate([e.factory.createModifier(93)],ce.modifiers);switch(ce.kind){case 254:return e.factory.updateFunctionDeclaration(ce,ce.decorators,Le,ce.asteriskToken,ce.name,ce.typeParameters,ce.parameters,ce.type,ce.body);case 255:return e.factory.updateClassDeclaration(ce,ce.decorators,Le,ce.name,ce.typeParameters,ce.heritageClauses,ce.members);case 235:return e.factory.updateVariableStatement(ce,Le,ce.declarationList);case 259:return e.factory.updateModuleDeclaration(ce,ce.decorators,Le,ce.name,ce.body);case 258:return e.factory.updateEnumDeclaration(ce,ce.decorators,Le,ce.name,ce.members);case 257:return e.factory.updateTypeAliasDeclaration(ce,ce.decorators,Le,ce.name,ce.typeParameters,ce.type);case 256:return e.factory.updateInterfaceDeclaration(ce,ce.decorators,Le,ce.name,ce.typeParameters,ce.heritageClauses,ce.members);case 263:return e.factory.updateImportEqualsDeclaration(ce,ce.decorators,Le,ce.isTypeOnly,ce.name,ce.moduleReference);case 236:return e.Debug.fail();default:return e.Debug.assertNever(ce,"Unexpected declaration kind "+ce.kind)}}function Ue(ce){return Mt([ce],Se(ce).map($e),!0)}function Se(ce){switch(ce.kind){case 254:case 255:return[ce.name.text];case 235:return e.mapDefined(ce.declarationList.declarations,function(Le){return e.isIdentifier(Le.name)?Le.name.text:void 0});case 259:case 258:case 257:case 256:case 263:return e.emptyArray;case 236:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(ce,"Unexpected decl kind "+ce.kind)}}function $e(ce){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(ce)),63,e.factory.createIdentifier(ce)))}})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Add or remove braces in an arrow function",ne=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,_e={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},O={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};ue.registerRefactor(V,{kinds:[O.kind],getEditsForAction:b,getAvailableActions:w});function w(fe){var _=fe.file,U=fe.startPosition,Z=fe.triggerReason,v=de(_,U,Z==="invoked");return v?ue.isRefactorErrorInfo(v)?fe.preferences.provideRefactorNotApplicableReason?[{name:V,description:ne,actions:[pr(pr({},_e),{notApplicableReason:v.error}),pr(pr({},O),{notApplicableReason:v.error})]}]:e.emptyArray:[{name:V,description:ne,actions:[v.addBraces?_e:O]}]:e.emptyArray}function b(fe,_){var U=fe.file,Z=fe.startPosition,v=de(U,Z);e.Debug.assert(v&&!ue.isRefactorErrorInfo(v),"Expected applicable refactor info");var W=v.expression,x=v.returnStatement,$=v.func,L;if(_===_e.name){var E=e.factory.createReturnStatement(W);L=e.factory.createBlock([E],!0),e.suppressLeadingAndTrailingTrivia(L),e.copyLeadingComments(W,E,U,3,!0)}else if(_===O.name&&x){var ae=W||e.factory.createVoidZero();L=e.needsParentheses(ae)?e.factory.createParenthesizedExpression(ae):ae,e.suppressLeadingAndTrailingTrivia(L),e.copyTrailingAsLeadingComments(x,L,U,3,!1),e.copyLeadingComments(x,L,U,3,!1),e.copyTrailingComments(x,L,U,3,!1)}else e.Debug.fail("invalid action");var X=e.textChanges.ChangeTracker.with(fe,function(ie){ie.replaceNode(U,$.body,L)});return{renameFilename:void 0,renameLocation:void 0,edits:X}}function de(fe,_,U,Z){U===void 0&&(U=!0);var v=e.getTokenAtPosition(fe,_),W=e.getContainingFunction(v);if(!W)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(W))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!e.rangeContainsRange(W,v)||e.rangeContainsRange(W.body,v)&&!U)return;if(ue.refactorKindBeginsWith(_e.kind,Z)&&e.isExpression(W.body))return{func:W,addBraces:!0,expression:W.body};if(ue.refactorKindBeginsWith(O.kind,Z)&&e.isBlock(W.body)&&W.body.statements.length===1){var x=e.first(W.body.statements);if(e.isReturnStatement(x))return{func:W,addBraces:!1,expression:x.expression,returnStatement:x}}return}})(ee=ue.addOrRemoveBracesToArrowFunction||(ue.addOrRemoveBracesToArrowFunction={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Convert parameters to destructured object",ne=2,_e=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),O={name:V,description:_e,kind:"refactor.rewrite.parameters.toDestructured"};ue.registerRefactor(V,{kinds:[O.kind],getEditsForAction:b,getAvailableActions:w});function w(m){var k=m.file,N=m.startPosition,D=e.isSourceFileJS(k);if(D)return e.emptyArray;var R=$(k,N,m.program.getTypeChecker());return R?[{name:V,description:_e,actions:[O]}]:e.emptyArray}function b(m,k){e.Debug.assert(k===V,"Unexpected action name");var N=m.file,D=m.startPosition,R=m.program,me=m.cancellationToken,q=m.host,J=$(N,D,R.getTypeChecker());if(!J||!me)return;var C=fe(J,R,me);if(C.valid){var we=e.textChanges.ChangeTracker.with(m,function(Oe){return de(N,R,q,Oe,J,C)});return{renameFilename:void 0,renameLocation:void 0,edits:we}}return{edits:[]}}function de(m,k,N,D,R,me){var q=me.signature,J=e.map(g(R,k,N),function(Ue){return e.getSynthesizedDeepClone(Ue)});if(q){var C=e.map(g(q,k,N),function(Ue){return e.getSynthesizedDeepClone(Ue)});Ce(q,C)}Ce(R,J);for(var we=e.sortAndDeduplicate(me.functionCalls,function(Ue,Se){return e.compareValues(Ue.pos,Se.pos)}),Oe=0,te=we;Oe<te.length;Oe++){var Te=te[Oe];if(Te.arguments&&Te.arguments.length){var be=e.getSynthesizedDeepClone(F(R,Te.arguments),!0);D.replaceNodeRange(e.getSourceFileOfNode(Te),e.first(Te.arguments),e.last(Te.arguments),be,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function Ce(Ue,Se){D.replaceNodeRangeWithNodes(m,e.first(Ue.parameters),e.last(Ue.parameters),Se,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function fe(m,k,N){var D=T(m),R=e.isConstructorDeclaration(m)?d(m):[],me=e.deduplicate(Mt(Mt([],D,!0),R,!0),e.equateValues),q=k.getTypeChecker(),J=e.flatMap(me,function(te){return e.FindAllReferences.getReferenceEntriesForNode(-1,te,k,k.getSourceFiles(),N)}),C=we(J);return e.every(C.declarations,function(te){return e.contains(me,te)})||(C.valid=!1),C;function we(te){for(var Te={accessExpressions:[],typeUsages:[]},be={functionCalls:[],declarations:[],classReferences:Te,valid:!0},Ce=e.map(D,Oe),Ue=e.map(R,Oe),Se=e.isConstructorDeclaration(m),$e=e.map(D,function(xn){return _(xn,q)}),ce=0,Le=te;ce<Le.length;ce++){var qe=Le[ce];if(qe.kind===0){be.valid=!1;continue}if(e.contains($e,Oe(qe.node))){if(E(qe.node.parent)){be.signature=qe.node.parent;continue}var pe=v(qe);if(pe){be.functionCalls.push(pe);continue}}var Me=_(qe.node,q);if(Me&&e.contains($e,Me)){var fn=Z(qe);if(fn){be.declarations.push(fn);continue}}if(e.contains(Ce,Oe(qe.node))||e.isNewExpressionTarget(qe.node)){var Ye=U(qe);if(Ye)continue;var fn=Z(qe);if(fn){be.declarations.push(fn);continue}var pe=v(qe);if(pe){be.functionCalls.push(pe);continue}}if(Se&&e.contains(Ue,Oe(qe.node))){var Ye=U(qe);if(Ye)continue;var fn=Z(qe);if(fn){be.declarations.push(fn);continue}var Ne=W(qe);if(Ne){Te.accessExpressions.push(Ne);continue}if(e.isClassDeclaration(m.parent)){var je=x(qe);if(je){Te.typeUsages.push(je);continue}}}be.valid=!1}return be}function Oe(te){var Te=q.getSymbolAtLocation(te);return Te&&e.getSymbolTarget(Te,q)}}function _(m,k){var N=e.getContainingObjectLiteralElement(m);if(N){var D=k.getContextualTypeForObjectLiteralElement(N),R=D==null?void 0:D.getSymbol();if(R&&!(e.getCheckFlags(R)&6))return R}}function U(m){var k=m.node;return e.isImportSpecifier(k.parent)||e.isImportClause(k.parent)||e.isImportEqualsDeclaration(k.parent)||e.isNamespaceImport(k.parent)||(e.isExportSpecifier(k.parent)||e.isExportAssignment(k.parent))?k:void 0}function Z(m){return e.isDeclaration(m.node.parent)?m.node:void 0}function v(m){if(m.node.parent){var k=m.node,N=k.parent;switch(N.kind){case 206:case 207:var D=e.tryCast(N,e.isCallOrNewExpression);if(D&&D.expression===k)return D;break;case 204:var R=e.tryCast(N,e.isPropertyAccessExpression);if(R&&R.parent&&R.name===k){var me=e.tryCast(R.parent,e.isCallOrNewExpression);if(me&&me.expression===R)return me}break;case 205:var q=e.tryCast(N,e.isElementAccessExpression);if(q&&q.parent&&q.argumentExpression===k){var J=e.tryCast(q.parent,e.isCallOrNewExpression);if(J&&J.expression===q)return J}break}}return}function W(m){if(m.node.parent){var k=m.node,N=k.parent;switch(N.kind){case 204:var D=e.tryCast(N,e.isPropertyAccessExpression);if(D&&D.expression===k)return D;break;case 205:var R=e.tryCast(N,e.isElementAccessExpression);if(R&&R.expression===k)return R;break}}return}function x(m){var k=m.node;return e.getMeaningFromLocation(k)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(k.parent)?k:void 0}function $(m,k,N){var D=e.getTouchingToken(m,k),R=e.getContainingFunctionDeclaration(D);return L(D)?void 0:R&&ae(R,N)&&e.rangeContainsRange(R,D)&&!(R.body&&e.rangeContainsRange(R.body,D))?R:void 0}function L(m){var k=e.findAncestor(m,e.isJSDocNode);if(k){var N=e.findAncestor(k,function(D){return!e.isJSDocNode(D)});return!!N&&e.isFunctionLikeDeclaration(N)}return!1}function E(m){return e.isMethodSignature(m)&&(e.isInterfaceDeclaration(m.parent)||e.isTypeLiteralNode(m.parent))}function ae(m,k){var N;if(!le(m.parameters,k))return!1;switch(m.kind){case 254:return ie(m)&&X(m,k);case 167:if(e.isObjectLiteralExpression(m.parent)){var D=_(m.name,k);return((N=D==null?void 0:D.declarations)===null||N===void 0?void 0:N.length)===1&&X(m,k)}return X(m,k);case 169:return e.isClassDeclaration(m.parent)?ie(m.parent)&&X(m,k):I(m.parent.parent)&&X(m,k);case 211:case 212:return I(m.parent)}return!1}function X(m,k){return!!m.body&&!k.isImplementationOfOverload(m)}function ie(m){if(!m.name){var k=e.findModifier(m,88);return!!k}return!0}function le(m,k){return B(m)>=ne&&e.every(m,function(N){return P(N,k)})}function P(m,k){if(e.isRestParameter(m)){var N=k.getTypeAtLocation(m);if(!k.isArrayType(N)&&!k.isTupleType(N))return!1}return!m.modifiers&&!m.decorators&&e.isIdentifier(m.name)}function I(m){return e.isVariableDeclaration(m)&&e.isVarConst(m)&&e.isIdentifier(m.name)&&!m.type}function re(m){return m.length>0&&e.isThis(m[0].name)}function B(m){return re(m)?m.length-1:m.length}function A(m){return re(m)&&(m=e.factory.createNodeArray(m.slice(1),m.hasTrailingComma)),m}function f(m,k){return e.isIdentifier(k)&&e.getTextOfIdentifierOrLiteral(k)===m?e.factory.createShorthandPropertyAssignment(m):e.factory.createPropertyAssignment(m,k)}function F(m,k){var N=A(m.parameters),D=e.isRestParameter(e.last(N)),R=D?k.slice(0,N.length-1):k,me=e.map(R,function(we,Oe){var te=p(N[Oe]),Te=f(te,we);return e.suppressLeadingAndTrailingTrivia(Te.name),e.isPropertyAssignment(Te)&&e.suppressLeadingAndTrailingTrivia(Te.initializer),e.copyComments(we,Te),Te});if(D&&k.length>=N.length){var q=k.slice(N.length-1),J=e.factory.createPropertyAssignment(p(e.last(N)),e.factory.createArrayLiteralExpression(q));me.push(J)}var C=e.factory.createObjectLiteralExpression(me,!1);return C}function g(m,k,N){var D=k.getTypeChecker(),R=A(m.parameters),me=e.map(R,Te),q=e.factory.createObjectBindingPattern(me),J=be(R),C;e.every(R,Se)&&(C=e.factory.createObjectLiteralExpression());var we=e.factory.createParameterDeclaration(void 0,void 0,void 0,q,void 0,J,C);if(re(m.parameters)){var Oe=m.parameters[0],te=e.factory.createParameterDeclaration(void 0,void 0,void 0,Oe.name,void 0,Oe.type);return e.suppressLeadingAndTrailingTrivia(te.name),e.copyComments(Oe.name,te.name),Oe.type&&(e.suppressLeadingAndTrailingTrivia(te.type),e.copyComments(Oe.type,te.type)),e.factory.createNodeArray([te,we])}return e.factory.createNodeArray([we]);function Te($e){var ce=e.factory.createBindingElement(void 0,void 0,p($e),e.isRestParameter($e)&&Se($e)?e.factory.createArrayLiteralExpression():$e.initializer);return e.suppressLeadingAndTrailingTrivia(ce),$e.initializer&&ce.initializer&&e.copyComments($e.initializer,ce.initializer),ce}function be($e){var ce=e.map($e,Ce),Le=e.addEmitFlags(e.factory.createTypeLiteralNode(ce),1);return Le}function Ce($e){var ce=$e.type;!ce&&($e.initializer||e.isRestParameter($e))&&(ce=Ue($e));var Le=e.factory.createPropertySignature(void 0,p($e),Se($e)?e.factory.createToken(57):$e.questionToken,ce);return e.suppressLeadingAndTrailingTrivia(Le),e.copyComments($e.name,Le.name),$e.type&&Le.type&&e.copyComments($e.type,Le.type),Le}function Ue($e){var ce=D.getTypeAtLocation($e);return e.getTypeNodeIfAccessible(ce,$e,k,N)}function Se($e){if(e.isRestParameter($e)){var ce=D.getTypeAtLocation($e);return!D.isTupleType(ce)}return D.isOptionalParameter($e)}}function p(m){return e.getTextOfIdentifierOrLiteral(m.name)}function d(m){switch(m.parent.kind){case 255:var k=m.parent;if(k.name)return[k.name];var N=e.Debug.checkDefined(e.findModifier(k,88),"Nameless class declaration should be a default export");return[N];case 224:var D=m.parent,R=m.parent.parent,me=D.name;return me?[me,R.name]:[R.name]}}function T(m){switch(m.kind){case 254:if(m.name)return[m.name];var k=e.Debug.checkDefined(e.findModifier(m,88),"Nameless function declaration should be a default export");return[k];case 167:return[m.name];case 169:var N=e.Debug.checkDefined(e.findChildOfKind(m,133,m.getSourceFile()),"Constructor declaration should have constructor keyword");if(m.parent.kind===224){var D=m.parent.parent;return[D.name,N]}return[N];case 212:return[m.parent.name];case 211:return m.name?[m.name,m.parent.name]:[m.parent.name];default:return e.Debug.assertNever(m,"Unexpected function declaration kind "+m.kind)}}})(ee=ue.convertParamsToDestructuredObject||(ue.convertParamsToDestructuredObject={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Convert to template string",ne=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),_e={name:V,description:ne,kind:"refactor.rewrite.string"};ue.registerRefactor(V,{kinds:[_e.kind],getEditsForAction:b,getAvailableActions:O});function O(X){var ie=X.file,le=X.startPosition,P=w(ie,le),I=_(P),re={name:V,description:ne,actions:[]};return e.isBinaryExpression(I)&&U(I).isValidConcatenation?(re.actions.push(_e),[re]):X.preferences.provideRefactorNotApplicableReason?(re.actions.push(pr(pr({},_e),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[re]):e.emptyArray}function w(X,ie){var le=e.getTokenAtPosition(X,ie),P=_(le),I=!U(P).isValidConcatenation;return I&&e.isParenthesizedExpression(P.parent)&&e.isBinaryExpression(P.parent.parent)?P.parent.parent:le}function b(X,ie){var le=X.file,P=X.startPosition,I=w(le,P);switch(ie){case ne:return{edits:de(X,I)};default:return e.Debug.fail("invalid action")}}function de(X,ie){var le=_(ie),P=X.file,I=L(U(le),P),re=e.getTrailingCommentRanges(P.text,le.end);if(re){var B=re[re.length-1],A={pos:re[0].pos,end:B.end};return e.textChanges.ChangeTracker.with(X,function(f){f.deleteRange(P,A),f.replaceNode(P,le,I)})}else return e.textChanges.ChangeTracker.with(X,function(f){return f.replaceNode(P,le,I)})}function fe(X){return X.operatorToken.kind!==63}function _(X){var ie=e.findAncestor(X.parent,function(le){switch(le.kind){case 204:case 205:return!1;case 221:case 219:return!(e.isBinaryExpression(le.parent)&&fe(le.parent));default:return"quit"}});return ie||X}function U(X){var ie=function(A){if(!e.isBinaryExpression(A))return{nodes:[A],operators:[],validOperators:!0,hasString:e.isStringLiteral(A)||e.isNoSubstitutionTemplateLiteral(A)};var f=ie(A.left),F=f.nodes,g=f.operators,p=f.hasString,d=f.validOperators;if(!(p||e.isStringLiteral(A.right)||e.isTemplateExpression(A.right)))return{nodes:[A],operators:[],hasString:!1,validOperators:!0};var T=A.operatorToken.kind===39,m=d&&T;return F.push(A.right),g.push(A.operatorToken),{nodes:F,operators:g,hasString:!0,validOperators:m}},le=ie(X),P=le.nodes,I=le.operators,re=le.validOperators,B=le.hasString;return{nodes:P,operators:I,isValidConcatenation:re&&B}}var Z=function(X,ie){return function(le,P){le<X.length&&e.copyTrailingComments(X[le],P,ie,3,!1)}},v=function(X,ie,le){return function(P,I){for(;P.length>0;){var re=P.shift();e.copyTrailingComments(X[re],I,ie,3,!1),le(re,I)}}};function W(X){return X.replace(/\\.|[$`]/g,function(ie){return ie[0]==="\\"?ie:"\\"+ie})}function x(X){var ie=e.isTemplateHead(X)||e.isTemplateMiddle(X)?-2:-1;return e.getTextOfNode(X).slice(1,ie)}function $(X,ie){for(var le=[],P="",I="";X<ie.length;){var re=ie[X];if(e.isStringLiteralLike(re))P+=re.text,I+=W(e.getTextOfNode(re).slice(1,-1)),le.push(X),X++;else if(e.isTemplateExpression(re)){P+=re.head.text,I+=x(re.head);break}else break}return[X,P,I,le]}function L(X,ie){var le=X.nodes,P=X.operators,I=Z(P,ie),re=v(le,ie,I),B=$(0,le),A=B[0],f=B[1],F=B[2],g=B[3];if(A===le.length){var p=e.factory.createNoSubstitutionTemplateLiteral(f,F);return re(g,p),p}var d=[],T=e.factory.createTemplateHead(f,F);re(g,T);for(var m=function(D){var R=ae(le[D]);I(D,R);var me=$(D+1,le),q=me[0],J=me[1],C=me[2],we=me[3];D=q-1;var Oe=D===le.length-1;if(e.isTemplateExpression(R)){var te=e.map(R.templateSpans,function(be,Ce){E(be);var Ue=Ce===R.templateSpans.length-1,Se=be.literal.text+(Ue?J:""),$e=x(be.literal)+(Ue?C:"");return e.factory.createTemplateSpan(be.expression,Oe?e.factory.createTemplateTail(Se,$e):e.factory.createTemplateMiddle(Se,$e))});d.push.apply(d,te)}else{var Te=Oe?e.factory.createTemplateTail(J,C):e.factory.createTemplateMiddle(J,C);re(we,Te),d.push(e.factory.createTemplateSpan(R,Te))}k=D},k,N=A;N<le.length;N++)m(N),N=k;return e.factory.createTemplateExpression(T,d)}function E(X){var ie=X.getSourceFile();e.copyTrailingComments(X,X.expression,ie,3,!1),e.copyTrailingAsLeadingComments(X.expression,X.expression,ie,3,!1)}function ae(X){return e.isParenthesizedExpression(X)&&(E(X),X=X.expression),X}})(ee=ue.convertStringOrTemplateLiteral||(ue.convertStringOrTemplateLiteral={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Convert arrow function or function expression",ne=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),_e={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},O={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},w={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};ue.registerRefactor(V,{kinds:[_e.kind,O.kind,w.kind],getEditsForAction:de,getAvailableActions:b});function b(X){var ie=X.file,le=X.startPosition,P=X.program,I=X.kind,re=_(ie,le,P);if(!re)return e.emptyArray;var B=re.selectedVariableDeclaration,A=re.func,f=[],F=[];if(ue.refactorKindBeginsWith(O.kind,I)){var g=B||e.isArrowFunction(A)&&e.isVariableDeclaration(A.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);g?F.push(pr(pr({},O),{notApplicableReason:g})):f.push(O)}if(ue.refactorKindBeginsWith(_e.kind,I)){var g=!B&&e.isArrowFunction(A)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);g?F.push(pr(pr({},_e),{notApplicableReason:g})):f.push(_e)}if(ue.refactorKindBeginsWith(w.kind,I)){var g=e.isFunctionExpression(A)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);g?F.push(pr(pr({},w),{notApplicableReason:g})):f.push(w)}return[{name:V,description:ne,actions:f.length===0&&X.preferences.provideRefactorNotApplicableReason?F:f}]}function de(X,ie){var le=X.file,P=X.startPosition,I=X.program,re=_(le,P,I);if(!re)return;var B=re.func,A=[];switch(ie){case _e.name:A.push.apply(A,x(X,B));break;case O.name:var f=W(B);if(!f)return;A.push.apply(A,$(X,B,f));break;case w.name:if(!e.isFunctionExpression(B))return;A.push.apply(A,L(X,B));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:A}}function fe(X){var ie=!1;return X.forEachChild(function le(P){if(e.isThis(P)){ie=!0;return}!e.isClassLike(P)&&!e.isFunctionDeclaration(P)&&!e.isFunctionExpression(P)&&e.forEachChild(P,le)}),ie}function _(X,ie,le){var P=e.getTokenAtPosition(X,ie),I=le.getTypeChecker(),re=Z(X,I,P.parent);if(re&&!fe(re.body)&&!I.containsArgumentsReference(re))return{selectedVariableDeclaration:!0,func:re};var B=e.getContainingFunction(P);return B&&(e.isFunctionExpression(B)||e.isArrowFunction(B))&&!e.rangeContainsRange(B.body,P)&&!fe(B.body)&&!I.containsArgumentsReference(B)?e.isFunctionExpression(B)&&ae(X,I,B)?void 0:{selectedVariableDeclaration:!1,func:B}:void 0}function U(X){return e.isVariableDeclaration(X)||e.isVariableDeclarationList(X)&&X.declarations.length===1}function Z(X,ie,le){if(!U(le))return;var P=e.isVariableDeclaration(le)?le:e.first(le.declarations),I=P.initializer;return I&&(e.isArrowFunction(I)||e.isFunctionExpression(I)&&!ae(X,ie,I))?I:void 0}function v(X){if(e.isExpression(X)){var ie=e.factory.createReturnStatement(X),le=X.getSourceFile();return e.suppressLeadingAndTrailingTrivia(ie),e.copyTrailingAsLeadingComments(X,ie,le,void 0,!0),e.factory.createBlock([ie],!0)}else return X}function W(X){var ie=X.parent;if(!e.isVariableDeclaration(ie)||!e.isVariableDeclarationInVariableStatement(ie))return;var le=ie.parent,P=le.parent;return!e.isVariableDeclarationList(le)||!e.isVariableStatement(P)||!e.isIdentifier(ie.name)?void 0:{variableDeclaration:ie,variableDeclarationList:le,statement:P,name:ie.name}}function x(X,ie){var le=X.file,P=v(ie.body),I=e.factory.createFunctionExpression(ie.modifiers,ie.asteriskToken,void 0,ie.typeParameters,ie.parameters,ie.type,P);return e.textChanges.ChangeTracker.with(X,function(re){return re.replaceNode(le,ie,I)})}function $(X,ie,le){var P=X.file,I=v(ie.body),re=le.variableDeclaration,B=le.variableDeclarationList,A=le.statement,f=le.name;e.suppressLeadingTrivia(A);var F=e.getCombinedModifierFlags(re)&1|e.getEffectiveModifierFlags(ie),g=e.factory.createModifiersFromModifierFlags(F),p=e.factory.createFunctionDeclaration(ie.decorators,e.length(g)?g:void 0,ie.asteriskToken,f,ie.typeParameters,ie.parameters,ie.type,I);return B.declarations.length===1?e.textChanges.ChangeTracker.with(X,function(d){return d.replaceNode(P,A,p)}):e.textChanges.ChangeTracker.with(X,function(d){d.delete(P,re),d.insertNodeAfter(P,A,p)})}function L(X,ie){var le=X.file,P=ie.body.statements,I=P[0],re;E(ie.body,I)?(re=I.expression,e.suppressLeadingAndTrailingTrivia(re),e.copyComments(I,re)):re=ie.body;var B=e.factory.createArrowFunction(ie.modifiers,ie.typeParameters,ie.parameters,ie.type,e.factory.createToken(38),re);return e.textChanges.ChangeTracker.with(X,function(A){return A.replaceNode(le,ie,B)})}function E(X,ie){return X.statements.length===1&&e.isReturnStatement(ie)&&!!ie.expression}function ae(X,ie,le){return!!le.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(le.name,ie,X)}})(ee=ue.convertArrowFunctionOrFunctionExpression||(ue.convertArrowFunctionOrFunctionExpression={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){var s;(function(ue){var ee;(function(Y){var V="Infer function return type",ne=e.Diagnostics.Infer_function_return_type.message,_e={name:V,description:ne,kind:"refactor.rewrite.function.returnType"};ue.registerRefactor(V,{kinds:[_e.kind],getEditsForAction:O,getAvailableActions:w});function O(U){var Z=de(U);if(Z&&!ue.isRefactorErrorInfo(Z)){var v=e.textChanges.ChangeTracker.with(U,function(W){return b(U.file,W,Z.declaration,Z.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:v}}return}function w(U){var Z=de(U);return Z?ue.isRefactorErrorInfo(Z)?U.preferences.provideRefactorNotApplicableReason?[{name:V,description:ne,actions:[pr(pr({},_e),{notApplicableReason:Z.error})]}]:e.emptyArray:[{name:V,description:ne,actions:[_e]}]:e.emptyArray}function b(U,Z,v,W){var x=e.findChildOfKind(v,21,U),$=e.isArrowFunction(v)&&x===void 0,L=$?e.first(v.parameters):x;L&&($&&(Z.insertNodeBefore(U,L,e.factory.createToken(20)),Z.insertNodeAfter(U,L,e.factory.createToken(21))),Z.insertNodeAt(U,L.end,W,{prefix:": "}))}function de(U){if(e.isInJSFile(U.file)||!ue.refactorKindBeginsWith(_e.kind,U.kind))return;var Z=e.getTokenAtPosition(U.file,U.startPosition),v=e.findAncestor(Z,function(L){return e.isBlock(L)||L.parent&&e.isArrowFunction(L.parent)&&(L.kind===38||L.parent.body===L)?"quit":fe(L)});if(!v||!v.body||v.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var W=U.program.getTypeChecker(),x=_(W,v);if(!x)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var $=W.typeToTypeNode(x,v,1);if($)return{declaration:v,returnTypeNode:$}}function fe(U){switch(U.kind){case 254:case 211:case 212:case 167:return!0;default:return!1}}function _(U,Z){if(U.isImplementationOfOverload(Z)){var v=U.getTypeAtLocation(Z).getCallSignatures();if(v.length>1)return U.getUnionType(e.mapDefined(v,function(x){return x.getReturnType()}))}var W=U.getSignatureFromDeclaration(Z);if(W)return U.getReturnTypeOfSignature(W)}})(ee=ue.inferFunctionReturnType||(ue.inferFunctionReturnType={}))})(s=e.refactor||(e.refactor={}))})(mn||(mn={}));var mn;(function(e){e.servicesVersion="0.8";function s(C,we,Oe,te){var Te=e.isNodeKind(C)?new ue(C,we,Oe):C===79?new w(79,we,Oe):C===80?new b(80,we,Oe):new O(C,we,Oe);return Te.parent=te,Te.flags=te.flags&25358336,Te}var ue=function(){function C(we,Oe,te){this.pos=Oe,this.end=te,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=we}return C.prototype.assertHasRealPosition=function(we){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),we||"Node must have a real position for this operation")},C.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},C.prototype.getStart=function(we,Oe){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,we,Oe)},C.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},C.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},C.prototype.getWidth=function(we){return this.assertHasRealPosition(),this.getEnd()-this.getStart(we)},C.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},C.prototype.getLeadingTriviaWidth=function(we){return this.assertHasRealPosition(),this.getStart(we)-this.pos},C.prototype.getFullText=function(we){return this.assertHasRealPosition(),(we||this.getSourceFile()).text.substring(this.pos,this.end)},C.prototype.getText=function(we){return this.assertHasRealPosition(),we||(we=this.getSourceFile()),we.text.substring(this.getStart(we),this.getEnd())},C.prototype.getChildCount=function(we){return this.getChildren(we).length},C.prototype.getChildAt=function(we,Oe){return this.getChildren(Oe)[we]},C.prototype.getChildren=function(we){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=ee(this,we))},C.prototype.getFirstToken=function(we){this.assertHasRealPosition();var Oe=this.getChildren(we);if(!Oe.length)return;var te=e.find(Oe,function(Te){return Te.kind<304||Te.kind>342});return te.kind<159?te:te.getFirstToken(we)},C.prototype.getLastToken=function(we){this.assertHasRealPosition();var Oe=this.getChildren(we),te=e.lastOrUndefined(Oe);return te?te.kind<159?te:te.getLastToken(we):void 0},C.prototype.forEachChild=function(we,Oe){return e.forEachChild(this,we,Oe)},C}();function ee(C,we){if(!e.isNodeKind(C.kind))return e.emptyArray;var Oe=[];if(e.isJSDocCommentContainingNode(C))return C.forEachChild(function(Ce){Oe.push(Ce)}),Oe;e.scanner.setText((we||C.getSourceFile()).text);var te=C.pos,Te=function(Ce){Y(Oe,te,Ce.pos,C),Oe.push(Ce),te=Ce.end},be=function(Ce){Y(Oe,te,Ce.pos,C),Oe.push(V(Ce,C)),te=Ce.end};return e.forEach(C.jsDoc,Te),te=C.pos,C.forEachChild(Te,be),Y(Oe,te,C.end,C),e.scanner.setText(void 0),Oe}function Y(C,we,Oe,te){for(e.scanner.setTextPos(we);we<Oe;){var Te=e.scanner.scan(),be=e.scanner.getTextPos();if(be<=Oe&&(Te===79&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(te.kind)+" to have an Identifier in its trivia"),C.push(s(Te,we,be,te))),we=be,Te===1)break}}function V(C,we){var Oe=s(343,C.pos,C.end,we);Oe._children=[];for(var te=C.pos,Te=0,be=C;Te<be.length;Te++){var Ce=be[Te];Y(Oe._children,te,Ce.pos,we),Oe._children.push(Ce),te=Ce.end}return Y(Oe._children,te,C.end,we),Oe}var ne=function(){function C(we,Oe){this.pos=we,this.end=Oe,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return C.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},C.prototype.getStart=function(we,Oe){return e.getTokenPosOfNode(this,we,Oe)},C.prototype.getFullStart=function(){return this.pos},C.prototype.getEnd=function(){return this.end},C.prototype.getWidth=function(we){return this.getEnd()-this.getStart(we)},C.prototype.getFullWidth=function(){return this.end-this.pos},C.prototype.getLeadingTriviaWidth=function(we){return this.getStart(we)-this.pos},C.prototype.getFullText=function(we){return(we||this.getSourceFile()).text.substring(this.pos,this.end)},C.prototype.getText=function(we){return we||(we=this.getSourceFile()),we.text.substring(this.getStart(we),this.getEnd())},C.prototype.getChildCount=function(){return this.getChildren().length},C.prototype.getChildAt=function(we){return this.getChildren()[we]},C.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},C.prototype.getFirstToken=function(){return},C.prototype.getLastToken=function(){return},C.prototype.forEachChild=function(){return},C}(),_e=function(){function C(we,Oe){this.flags=we,this.escapedName=Oe}return C.prototype.getFlags=function(){return this.flags},Object.defineProperty(C.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),C.prototype.getEscapedName=function(){return this.escapedName},C.prototype.getName=function(){return this.name},C.prototype.getDeclarations=function(){return this.declarations},C.prototype.getDocumentationComment=function(we){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var Oe=this.target.tupleLabelDeclaration;this.documentationComment=Z([Oe],we)}else this.documentationComment=Z(this.declarations,we);return this.documentationComment},C.prototype.getContextualDocumentationComment=function(we,Oe){switch(we==null?void 0:we.kind){case 170:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=Z(e.filter(this.declarations,e.isGetAccessor),Oe)),this.contextualGetAccessorDocumentationComment;case 171:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=Z(e.filter(this.declarations,e.isSetAccessor),Oe)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(Oe)}},C.prototype.getJsDocTags=function(we){return this.tags===void 0&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,we)),this.tags},C}(),O=function(C){Qo(we,C);function we(Oe,te,Te){var be=C.call(this,te,Te)||this;return be.kind=Oe,be}return we}(ne),w=function(C){Qo(we,C);function we(Oe,te,Te){var be=C.call(this,te,Te)||this;return be.kind=79,be}return Object.defineProperty(we.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),we}(ne);w.prototype.kind=79;var b=function(C){Qo(we,C);function we(Oe,te,Te){return C.call(this,te,Te)||this}return Object.defineProperty(we.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),we}(ne);b.prototype.kind=80;var de=function(){function C(we,Oe){this.checker=we,this.flags=Oe}return C.prototype.getFlags=function(){return this.flags},C.prototype.getSymbol=function(){return this.symbol},C.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},C.prototype.getProperty=function(we){return this.checker.getPropertyOfType(this,we)},C.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},C.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},C.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},C.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},C.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},C.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},C.prototype.isNullableType=function(){return this.checker.isNullableType(this)},C.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},C.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},C.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},C.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},C.prototype.isUnion=function(){return!!(this.flags&1048576)},C.prototype.isIntersection=function(){return!!(this.flags&2097152)},C.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},C.prototype.isLiteral=function(){return!!(this.flags&384)},C.prototype.isStringLiteral=function(){return!!(this.flags&128)},C.prototype.isNumberLiteral=function(){return!!(this.flags&256)},C.prototype.isTypeParameter=function(){return!!(this.flags&262144)},C.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},C.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},Object.defineProperty(C.prototype,"typeArguments",{get:function(){return e.getObjectFlags(this)&4?this.checker.getTypeArguments(this):void 0},enumerable:!1,configurable:!0}),C}(),fe=function(){function C(we,Oe){this.checker=we,this.flags=Oe}return C.prototype.getDeclaration=function(){return this.declaration},C.prototype.getTypeParameters=function(){return this.typeParameters},C.prototype.getParameters=function(){return this.parameters},C.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},C.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=Z(e.singleElementArray(this.declaration),this.checker))},C.prototype.getJsDocTags=function(){return this.jsDocTags===void 0&&(this.jsDocTags=this.declaration?U(this.declaration,this.checker):[]),this.jsDocTags},C}();function _(C){return e.getJSDocTags(C).some(function(we){return we.tagName.text==="inheritDoc"})}function U(C,we){var Oe=e.JsDoc.getJsDocTagsFromDeclarations([C],we);if(Oe.length===0||_(C)){var te=v(we,C,function(Te){var be;return((be=Te.declarations)===null||be===void 0?void 0:be.length)===1?Te.getJsDocTags():void 0});te&&(Oe=Mt(Mt([],te,!0),Oe,!0))}return Oe}function Z(C,we){if(!C)return e.emptyArray;var Oe=e.JsDoc.getJsDocCommentsFromDeclarations(C,we);if(we&&(Oe.length===0||C.some(_)))for(var te=new e.Set,Te=0,be=C;Te<be.length;Te++){var Ce=be[Te],Ue=v(we,Ce,function(Se){if(!te.has(Se))return te.add(Se),Se.getDocumentationComment(we)});Ue&&(Oe=Oe.length===0?Ue.slice():Ue.concat(e.lineBreakPart(),Oe))}return Oe}function v(C,we,Oe){var te,Te=((te=we.parent)===null||te===void 0?void 0:te.kind)===169?we.parent.parent:we.parent;return Te?e.firstDefined(e.getAllSuperTypeNodes(Te),function(be){var Ce=C.getPropertyOfType(C.getTypeAtLocation(be),we.symbol.name);return Ce?Oe(Ce):void 0}):void 0}var W=function(C){Qo(we,C);function we(Oe,te,Te){var be=C.call(this,Oe,te,Te)||this;return be.kind=300,be}return we.prototype.update=function(Oe,te){return e.updateSourceFile(this,Oe,te)},we.prototype.getLineAndCharacterOfPosition=function(Oe){return e.getLineAndCharacterOfPosition(this,Oe)},we.prototype.getLineStarts=function(){return e.getLineStarts(this)},we.prototype.getPositionOfLineAndCharacter=function(Oe,te,Te){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),Oe,te,this.text,Te)},we.prototype.getLineEndOfPosition=function(Oe){var te=this.getLineAndCharacterOfPosition(Oe).line,Te=this.getLineStarts(),be;te+1>=Te.length&&(be=this.getEnd()),be||(be=Te[te+1]-1);var Ce=this.getFullText();return Ce[be]===`
|
|
|
`&&Ce[be-1]==="\r"?be-1:be},we.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},we.prototype.computeNamedDeclarations=function(){var Oe=e.createMultiMap();return this.forEachChild(Ce),Oe;function te(Ue){var Se=be(Ue);Se&&Oe.add(Se,Ue)}function Te(Ue){var Se=Oe.get(Ue);return Se||Oe.set(Ue,Se=[]),Se}function be(Ue){var Se=e.getNonAssignedNameOfDeclaration(Ue);return Se&&(e.isComputedPropertyName(Se)&&e.isPropertyAccessExpression(Se.expression)?Se.expression.name.text:e.isPropertyName(Se)?e.getNameFromPropertyName(Se):void 0)}function Ce(Ue){switch(Ue.kind){case 254:case 211:case 167:case 166:var Se=Ue,$e=be(Se);if($e){var ce=Te($e),Le=e.lastOrUndefined(ce);Le&&Se.parent===Le.parent&&Se.symbol===Le.symbol?Se.body&&!Le.body&&(ce[ce.length-1]=Se):ce.push(Se)}e.forEachChild(Ue,Ce);break;case 255:case 224:case 256:case 257:case 258:case 259:case 263:case 273:case 268:case 265:case 266:case 170:case 171:case 180:te(Ue),e.forEachChild(Ue,Ce);break;case 162:if(!e.hasSyntacticModifier(Ue,16476))break;case 252:case 201:{var qe=Ue;if(e.isBindingPattern(qe.name)){e.forEachChild(qe.name,Ce);break}qe.initializer&&Ce(qe.initializer)}case 294:case 165:case 164:te(Ue);break;case 270:var pe=Ue;pe.exportClause&&(e.isNamedExports(pe.exportClause)?e.forEach(pe.exportClause.elements,Ce):Ce(pe.exportClause.name));break;case 264:var Me=Ue.importClause;Me&&(Me.name&&te(Me.name),Me.namedBindings&&(Me.namedBindings.kind===266?te(Me.namedBindings):e.forEach(Me.namedBindings.elements,Ce)));break;case 219:e.getAssignmentDeclarationKind(Ue)!==0&&te(Ue);default:e.forEachChild(Ue,Ce)}}},we}(ue),x=function(){function C(we,Oe,te){this.fileName=we,this.text=Oe,this.skipTrivia=te}return C.prototype.getLineAndCharacterOfPosition=function(we){return e.getLineAndCharacterOfPosition(this,we)},C}();function $(){return{getNodeConstructor:function(){return ue},getTokenConstructor:function(){return O},getIdentifierConstructor:function(){return w},getPrivateIdentifierConstructor:function(){return b},getSourceFileConstructor:function(){return W},getSymbolConstructor:function(){return _e},getTypeConstructor:function(){return de},getSignatureConstructor:function(){return fe},getSourceMapSourceConstructor:function(){return x}}}function L(C){var we=!0;for(var Oe in C)if(e.hasProperty(C,Oe)&&!E(Oe)){we=!1;break}if(we)return C;var te={};for(var Oe in C)if(e.hasProperty(C,Oe)){var Te=E(Oe)?Oe:Oe.charAt(0).toLowerCase()+Oe.substr(1);te[Te]=C[Oe]}return te}e.toEditorSettings=L;function E(C){return!C.length||C.charAt(0)===C.charAt(0).toLowerCase()}function ae(C){return C?e.map(C,function(we){return we.text}).join(""):""}e.displayPartsToString=ae;function X(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=X;function ie(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=ie;var le=function(){function C(we,Oe){this.host=we,this.currentDirectory=we.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var te=we.getScriptFileNames(),Te=0,be=te;Te<be.length;Te++){var Ce=be[Te];this.createEntry(Ce,e.toPath(Ce,this.currentDirectory,Oe))}}return C.prototype.createEntry=function(we,Oe){var te,Te=this.host.getScriptSnapshot(we);return Te?te={hostFileName:we,version:this.host.getScriptVersion(we),scriptSnapshot:Te,scriptKind:e.getScriptKind(we,this.host)}:te=we,this.fileNameToEntry.set(Oe,te),te},C.prototype.getEntryByPath=function(we){return this.fileNameToEntry.get(we)},C.prototype.getHostFileInformation=function(we){var Oe=this.fileNameToEntry.get(we);return e.isString(Oe)?void 0:Oe},C.prototype.getOrCreateEntryByPath=function(we,Oe){var te=this.getEntryByPath(Oe)||this.createEntry(we,Oe);return e.isString(te)?void 0:te},C.prototype.getRootFileNames=function(){var we=[];return this.fileNameToEntry.forEach(function(Oe){e.isString(Oe)?we.push(Oe):we.push(Oe.hostFileName)}),we},C.prototype.getScriptSnapshot=function(we){var Oe=this.getHostFileInformation(we);return Oe&&Oe.scriptSnapshot},C}(),P=function(){function C(we){this.host=we}return C.prototype.getCurrentSourceFile=function(we){var Oe=this.host.getScriptSnapshot(we);if(!Oe)throw new Error("Could not find file: '"+we+"'.");var te=e.getScriptKind(we,this.host),Te=this.host.getScriptVersion(we),be;if(this.currentFileName!==we)be=re(we,Oe,99,Te,!0,te);else if(this.currentFileVersion!==Te){var Ce=Oe.getChangeRange(this.currentFileScriptSnapshot);be=B(this.currentSourceFile,Oe,Te,Ce)}return be&&(this.currentFileVersion=Te,this.currentFileName=we,this.currentFileScriptSnapshot=Oe,this.currentSourceFile=be),this.currentSourceFile},C}();function I(C,we,Oe){C.version=Oe,C.scriptSnapshot=we}function re(C,we,Oe,te,Te,be){var Ce=e.createSourceFile(C,e.getSnapshotText(we),Oe,Te,be);return I(Ce,we,te),Ce}e.createLanguageServiceSourceFile=re;function B(C,we,Oe,te,Te){if(te&&Oe!==C.version){var be=void 0,Ce=te.span.start!==0?C.text.substr(0,te.span.start):"",Ue=e.textSpanEnd(te.span)!==C.text.length?C.text.substr(e.textSpanEnd(te.span)):"";if(te.newLength===0)be=Ce&&Ue?Ce+Ue:Ce||Ue;else{var Se=we.getText(te.span.start,te.span.start+te.newLength);be=Ce&&Ue?Ce+Se+Ue:Ce?Ce+Se:Se+Ue}var $e=e.updateSourceFile(C,be,te,Te);return I($e,we,Oe),$e.nameTable=void 0,C!==$e&&C.scriptSnapshot&&(C.scriptSnapshot.dispose&&C.scriptSnapshot.dispose(),C.scriptSnapshot=void 0),$e}return re(C.fileName,we,C.languageVersion,Oe,!0,C.scriptKind)}e.updateLanguageServiceSourceFile=B;var A={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},f=function(){function C(we){this.cancellationToken=we}return C.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},C.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},C}(),F=function(){function C(we,Oe){Oe===void 0&&(Oe=20),this.hostCancellationToken=we,this.throttleWaitMilliseconds=Oe,this.lastCancellationCheckTime=0}return C.prototype.isCancellationRequested=function(){var we=e.timestamp(),Oe=Math.abs(we-this.lastCancellationCheckTime);return Oe>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=we,this.hostCancellationToken.isCancellationRequested()):!1},C.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},C}();e.ThrottledCancellationToken=F;var g=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],p=Mt(Mt([],g,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function d(C,we,Oe){var te;we===void 0&&(we=e.createDocumentRegistry(C.useCaseSensitiveFileNames&&C.useCaseSensitiveFileNames(),C.getCurrentDirectory()));var Te;Oe===void 0?Te=e.LanguageServiceMode.Semantic:typeof Oe=="boolean"?Te=Oe?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:Te=Oe;var be=new P(C),Ce,Ue,Se=0,$e=C.getCancellationToken?new f(C.getCancellationToken()):A,ce=C.getCurrentDirectory();!e.localizedDiagnosticMessages&&C.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(C.getLocalizedDiagnosticMessages());function Le(Lt){C.log&&C.log(Lt)}var qe=e.hostUsesCaseSensitiveFileNames(C),pe=e.createGetCanonicalFileName(qe),Me=e.getSourceMapper({useCaseSensitiveFileNames:function(){return qe},getCurrentDirectory:function(){return ce},getProgram:Ne,fileExists:e.maybeBind(C,C.fileExists),readFile:e.maybeBind(C,C.readFile),getDocumentPositionMapper:e.maybeBind(C,C.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(C,C.getSourceFileLike),log:Le});function fn(Lt){var xt=Ce.getSourceFile(Lt);if(!xt){var Yt=new Error("Could not find source file: '"+Lt+"'.");throw Yt.ProgramFiles=Ce.getSourceFiles().map(function(Qt){return Qt.fileName}),Yt}return xt}function Ye(){var Lt,xt,Yt;if(e.Debug.assert(Te!==e.LanguageServiceMode.Syntactic),C.getProjectVersion){var Qt=C.getProjectVersion();if(Qt){if(Ue===Qt&&!((Lt=C.hasChangedAutomaticTypeDirectiveNames)===null||Lt===void 0?void 0:Lt.call(C)))return;Ue=Qt}}var sr=C.getTypeRootsVersion?C.getTypeRootsVersion():0;Se!==sr&&(Le("TypeRoots version has changed; provide new program"),Ce=void 0,Se=sr);var at=new le(C,pe),ea=at.getRootFileNames(),Fa=C.getCompilationSettings()||X(),li=C.hasInvalidatedResolution||e.returnFalse,Si=e.maybeBind(C,C.hasChangedAutomaticTypeDirectiveNames),Qr=(xt=C.getProjectReferences)===null||xt===void 0?void 0:xt.call(C),ci,Mi={useCaseSensitiveFileNames:qe,fileExists:os,readFile:Qi,readDirectory:mo,trace:e.maybeBind(C,C.trace),getCurrentDirectory:function(){return ce},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(Ce,ea,Fa,function(ai,Pi){return C.getScriptVersion(Pi)},os,li,Si,lo,Qr))return;var ro={getSourceFile:Ls,getSourceFileByPath:Ca,getCancellationToken:function(){return $e},getCanonicalFileName:pe,useCaseSensitiveFileNames:function(){return qe},getNewLine:function(){return e.getNewLineCharacter(Fa,function(){return e.getNewLineOrDefaultFromHost(C)})},getDefaultLibFileName:function(ai){return C.getDefaultLibFileName(ai)},writeFile:e.noop,getCurrentDirectory:function(){return ce},fileExists:os,readFile:Qi,getSymlinkCache:e.maybeBind(C,C.getSymlinkCache),realpath:e.maybeBind(C,C.realpath),directoryExists:function(ai){return e.directoryProbablyExists(ai,C)},getDirectories:function(ai){return C.getDirectories?C.getDirectories(ai):[]},readDirectory:mo,onReleaseOldSourceFile:Rs,onReleaseParsedCommandLine:Vi,hasInvalidatedResolution:li,hasChangedAutomaticTypeDirectiveNames:Si,trace:Mi.trace,resolveModuleNames:e.maybeBind(C,C.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(C,C.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(C,C.useSourceOfProjectReferenceRedirect),getParsedCommandLine:lo};(Yt=C.setCompilerHost)===null||Yt===void 0||Yt.call(C,ro);var xi=we.getKeyForCompilationSettings(Fa),ui={rootNames:ea,options:Fa,host:ro,oldProgram:Ce,projectReferences:Qr};Ce=e.createProgram(ui),at=void 0,ci=void 0,Me.clearCache(),Ce.getTypeChecker();return;function lo(ai){var Pi=e.toPath(ai,ce,pe),wo=ci==null?void 0:ci.get(Pi);if(wo!==void 0)return wo||void 0;var Lo=C.getParsedCommandLine?C.getParsedCommandLine(ai):xo(ai);return(ci||(ci=new e.Map)).set(Pi,Lo||!1),Lo}function xo(ai){var Pi=Ls(ai,100);return Pi?(Pi.path=e.toPath(ai,ce,pe),Pi.resolvedPath=Pi.path,Pi.originalFileName=Pi.fileName,e.parseJsonSourceFileConfigFileContent(Pi,Mi,e.getNormalizedAbsolutePath(e.getDirectoryPath(ai),ce),void 0,e.getNormalizedAbsolutePath(ai,ce))):void 0}function Vi(ai,Pi,wo){var Lo;C.getParsedCommandLine?(Lo=C.onReleaseParsedCommandLine)===null||Lo===void 0||Lo.call(C,ai,Pi,wo):Pi&&Rs(Pi.sourceFile,wo)}function os(ai){var Pi=e.toPath(ai,ce,pe),wo=at&&at.getEntryByPath(Pi);return wo?!e.isString(wo):!!C.fileExists&&C.fileExists(ai)}function Qi(ai){var Pi=e.toPath(ai,ce,pe),wo=at&&at.getEntryByPath(Pi);return wo?e.isString(wo)?void 0:e.getSnapshotText(wo.scriptSnapshot):C.readFile&&C.readFile(ai)}function mo(ai,Pi,wo,Lo,_s){return e.Debug.checkDefined(C.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),C.readDirectory(ai,Pi,wo,Lo,_s)}function Rs(ai,Pi){var wo=we.getKeyForCompilationSettings(Pi);we.releaseDocumentWithKey(ai.resolvedPath,wo,ai.scriptKind)}function Ls(ai,Pi,wo,Lo){return Ca(ai,e.toPath(ai,ce,pe),Pi,wo,Lo)}function Ca(ai,Pi,wo,Lo,_s){e.Debug.assert(at!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var Oi=at&&at.getOrCreateEntryByPath(ai,Pi);if(!Oi)return;if(!_s){var Io=Ce&&Ce.getSourceFileByPath(Pi);if(Io){if(Oi.scriptKind===Io.scriptKind)return we.updateDocumentWithKey(ai,Pi,Fa,xi,Oi.scriptSnapshot,Oi.version,Oi.scriptKind);we.releaseDocumentWithKey(Io.resolvedPath,we.getKeyForCompilationSettings(Ce.getCompilerOptions()),Io.scriptKind)}}return we.acquireDocumentWithKey(ai,Pi,Fa,xi,Oi.scriptSnapshot,Oi.version,Oi.scriptKind)}}function Ne(){if(Te===e.LanguageServiceMode.Syntactic){e.Debug.assert(Ce===void 0);return}return Ye(),Ce}function je(){var Lt;return(Lt=C.getPackageJsonAutoImportProvider)===null||Lt===void 0?void 0:Lt.call(C)}function xn(){Ce=void 0}function Wn(){if(Ce){var Lt=we.getKeyForCompilationSettings(Ce.getCompilerOptions());e.forEach(Ce.getSourceFiles(),function(xt){return we.releaseDocumentWithKey(xt.resolvedPath,Lt,xt.scriptKind)}),Ce=void 0}C=void 0}function dn(Lt){return Ye(),Ce.getSyntacticDiagnostics(fn(Lt),$e).slice()}function vn(Lt){Ye();var xt=fn(Lt),Yt=Ce.getSemanticDiagnostics(xt,$e);if(!e.getEmitDeclarations(Ce.getCompilerOptions()))return Yt.slice();var Qt=Ce.getDeclarationDiagnostics(xt,$e);return Mt(Mt([],Yt,!0),Qt,!0)}function o(Lt){return Ye(),e.computeSuggestionDiagnostics(fn(Lt),Ce,$e)}function Cn(){return Ye(),Mt(Mt([],Ce.getOptionsDiagnostics($e),!0),Ce.getGlobalDiagnostics($e),!0)}function z(Lt,xt,Yt){Yt===void 0&&(Yt=e.emptyOptions);var Qt=pr(pr({},e.identity(Yt)),{includeCompletionsForModuleExports:Yt.includeCompletionsForModuleExports||Yt.includeExternalModuleExports,includeCompletionsWithInsertText:Yt.includeCompletionsWithInsertText||Yt.includeInsertTextCompletions});return Ye(),e.Completions.getCompletionsAtPosition(C,Ce,Le,fn(Lt),xt,Qt,Yt.triggerCharacter,Yt.triggerKind,$e)}function tn(Lt,xt,Yt,Qt,sr,at,ea){return at===void 0&&(at=e.emptyOptions),Ye(),e.Completions.getCompletionEntryDetails(Ce,Le,fn(Lt),xt,{name:Yt,source:sr,data:ea},C,Qt&&e.formatting.getFormatContext(Qt,C),at,$e)}function $n(Lt,xt,Yt,Qt,sr){return sr===void 0&&(sr=e.emptyOptions),Ye(),e.Completions.getCompletionEntrySymbol(Ce,Le,fn(Lt),xt,{name:Yt,source:Qt},C,sr)}function Un(Lt,xt){Ye();var Yt=fn(Lt),Qt=e.getTouchingPropertyName(Yt,xt);if(Qt===Yt)return;var sr=Ce.getTypeChecker(),at=oe(Qt),ea=R(at,sr);if(!ea||sr.isUnknownSymbol(ea)){var Fa=Pe(Yt,at,xt)?sr.getTypeAtLocation(at):void 0;return Fa&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(at,Yt),displayParts:sr.runWithCancellationToken($e,function(ro){return e.typeToDisplayParts(ro,Fa,e.getContainerNode(at))}),documentation:Fa.symbol?Fa.symbol.getDocumentationComment(sr):void 0,tags:Fa.symbol?Fa.symbol.getJsDocTags(sr):void 0}}var li=sr.runWithCancellationToken($e,function(ro){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(ro,ea,Yt,e.getContainerNode(at),at)}),Si=li.symbolKind,Qr=li.displayParts,ci=li.documentation,Mi=li.tags;return{kind:Si,kindModifiers:e.SymbolDisplay.getSymbolModifiers(sr,ea),textSpan:e.createTextSpanFromNode(at,Yt),displayParts:Qr,documentation:ci,tags:Mi}}function oe(Lt){return e.isNewExpression(Lt.parent)&&Lt.pos===Lt.parent.pos?Lt.parent.expression:e.isNamedTupleMember(Lt.parent)&&Lt.pos===Lt.parent.pos?Lt.parent:Lt}function Pe(Lt,xt,Yt){switch(xt.kind){case 79:return!e.isLabelName(xt)&&!e.isTagName(xt)&&!e.isConstTypeReference(xt.parent);case 204:case 159:return!e.isInComment(Lt,Yt);case 108:case 190:case 106:case 195:return!0;default:return!1}}function ke(Lt,xt){return Ye(),e.GoToDefinition.getDefinitionAtPosition(Ce,fn(Lt),xt)}function Qe(Lt,xt){return Ye(),e.GoToDefinition.getDefinitionAndBoundSpan(Ce,fn(Lt),xt)}function gn(Lt,xt){return Ye(),e.GoToDefinition.getTypeDefinitionAtPosition(Ce.getTypeChecker(),fn(Lt),xt)}function xe(Lt,xt){return Ye(),e.FindAllReferences.getImplementationsAtPosition(Ce,$e,Ce.getSourceFiles(),fn(Lt),xt)}function Ze(Lt,xt){return e.flatMap(wn(Lt,xt,[Lt]),function(Yt){return Yt.highlightSpans.map(function(Qt){return pr(pr({fileName:Yt.fileName,textSpan:Qt.textSpan,isWriteAccess:Qt.kind==="writtenReference",isDefinition:!1},Qt.isInString&&{isInString:!0}),Qt.contextSpan&&{contextSpan:Qt.contextSpan})})})}function wn(Lt,xt,Yt){var Qt=e.normalizePath(Lt);e.Debug.assert(Yt.some(function(ea){return e.normalizePath(ea)===Qt})),Ye();var sr=e.mapDefined(Yt,function(ea){return Ce.getSourceFile(ea)}),at=fn(Lt);return e.DocumentHighlights.getDocumentHighlights(Ce,$e,at,xt,sr)}function Be(Lt,xt,Yt,Qt,sr){Ye();var at=fn(Lt),ea=e.getAdjustedRenameLocation(e.getTouchingPropertyName(at,xt));if(e.isIdentifier(ea)&&(e.isJsxOpeningElement(ea.parent)||e.isJsxClosingElement(ea.parent))&&e.isIntrinsicJsxName(ea.escapedText)){var Fa=ea.parent.parent,li=Fa.openingElement,Si=Fa.closingElement;return[li,Si].map(function(Qr){var ci=e.createTextSpanFromNode(Qr.tagName,at);return pr({fileName:at.fileName,textSpan:ci},e.FindAllReferences.toContextSpan(ci,at,Qr.parent))})}else return Kn(ea,xt,{findInStrings:Yt,findInComments:Qt,providePrefixAndSuffixTextForRename:sr,use:2},function(Qr,ci,Mi){return e.FindAllReferences.toRenameLocation(Qr,ci,Mi,sr||!1)})}function hn(Lt,xt){return Ye(),Kn(e.getTouchingPropertyName(fn(Lt),xt),xt,{use:1},e.FindAllReferences.toReferenceEntry)}function Kn(Lt,xt,Yt,Qt){Ye();var sr=Yt&&Yt.use===2?Ce.getSourceFiles().filter(function(at){return!Ce.isSourceFileDefaultLibrary(at)}):Ce.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(Ce,$e,sr,Lt,xt,Yt,Qt)}function Je(Lt,xt){return Ye(),e.FindAllReferences.findReferencedSymbols(Ce,$e,Ce.getSourceFiles(),fn(Lt),xt)}function En(Lt){return Ye(),e.FindAllReferences.Core.getReferencesForFileName(Lt,Ce,Ce.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)}function Nn(Lt,xt,Yt,Qt){Qt===void 0&&(Qt=!1),Ye();var sr=Yt?[fn(Yt)]:Ce.getSourceFiles();return e.NavigateTo.getNavigateToItems(sr,Ce.getTypeChecker(),$e,Lt,xt,Qt)}function ct(Lt,xt,Yt){Ye();var Qt=fn(Lt),sr=C.getCustomTransformers&&C.getCustomTransformers();return e.getFileEmitOutput(Ce,Qt,!!xt,$e,sr,Yt)}function yt(Lt,xt,Yt){var Qt=Yt===void 0?e.emptyOptions:Yt,sr=Qt.triggerReason;Ye();var at=fn(Lt);return e.SignatureHelp.getSignatureHelpItems(Ce,at,xt,sr,$e)}function Gt(Lt){return be.getCurrentSourceFile(Lt)}function $t(Lt,xt,Yt){var Qt=be.getCurrentSourceFile(Lt),sr=e.getTouchingPropertyName(Qt,xt);if(sr===Qt)return;switch(sr.kind){case 204:case 159:case 10:case 95:case 110:case 104:case 106:case 108:case 190:case 79:break;default:return}for(var at=sr;;)if(e.isRightSideOfPropertyAccess(at)||e.isRightSideOfQualifiedName(at))at=at.parent;else if(e.isNameOfModuleDeclaration(at))if(at.parent.parent.kind===259&&at.parent.parent.body===at.parent)at=at.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(at.getStart(),sr.getEnd())}function Ke(Lt,xt){var Yt=be.getCurrentSourceFile(Lt);return e.BreakpointResolver.spanInSourceFileAtLocation(Yt,xt)}function Vn(Lt){return e.NavigationBar.getNavigationBarItems(be.getCurrentSourceFile(Lt),$e)}function Zn(Lt){return e.NavigationBar.getNavigationTree(be.getCurrentSourceFile(Lt),$e)}function Re(Lt,xt,Yt){Ye();var Qt=Yt||"original";return Qt==="2020"?e.classifier.v2020.getSemanticClassifications(Ce,$e,fn(Lt),xt):e.getSemanticClassifications(Ce.getTypeChecker(),$e,fn(Lt),Ce.getClassifiableNames(),xt)}function Pn(Lt,xt,Yt){Ye();var Qt=Yt||"original";return Qt==="original"?e.getEncodedSemanticClassifications(Ce.getTypeChecker(),$e,fn(Lt),Ce.getClassifiableNames(),xt):e.classifier.v2020.getEncodedSemanticClassifications(Ce,$e,fn(Lt),xt)}function rt(Lt,xt){return e.getSyntacticClassifications($e,be.getCurrentSourceFile(Lt),xt)}function Yn(Lt,xt){return e.getEncodedSyntacticClassifications($e,be.getCurrentSourceFile(Lt),xt)}function gt(Lt){var xt=be.getCurrentSourceFile(Lt);return e.OutliningElementsCollector.collectElements(xt,$e)}var lt=new e.Map(e.getEntries((te={},te[18]=19,te[20]=21,te[22]=23,te[31]=29,te)));lt.forEach(function(Lt,xt){return lt.set(Lt.toString(),Number(xt))});function Fe(Lt,xt){var Yt=be.getCurrentSourceFile(Lt),Qt=e.getTouchingToken(Yt,xt),sr=Qt.getStart(Yt)===xt?lt.get(Qt.kind.toString()):void 0,at=sr&&e.findChildOfKind(Qt.parent,sr,Yt);return at?[e.createTextSpanFromNode(Qt,Yt),e.createTextSpanFromNode(at,Yt)].sort(function(ea,Fa){return ea.start-Fa.start}):e.emptyArray}function Bn(Lt,xt,Yt){var Qt=e.timestamp(),sr=L(Yt),at=be.getCurrentSourceFile(Lt);Le("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-Qt)),Qt=e.timestamp();var ea=e.formatting.SmartIndenter.getIndentation(xt,at,sr);return Le("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-Qt)),ea}function K(Lt,xt,Yt,Qt){var sr=be.getCurrentSourceFile(Lt);return e.formatting.formatSelection(xt,Yt,sr,e.formatting.getFormatContext(L(Qt),C))}function An(Lt,xt){return e.formatting.formatDocument(be.getCurrentSourceFile(Lt),e.formatting.getFormatContext(L(xt),C))}function Fn(Lt,xt,Yt,Qt){var sr=be.getCurrentSourceFile(Lt),at=e.formatting.getFormatContext(L(Qt),C);if(!e.isInComment(sr,xt))switch(Yt){case"{":return e.formatting.formatOnOpeningCurly(xt,sr,at);case"}":return e.formatting.formatOnClosingCurly(xt,sr,at);case";":return e.formatting.formatOnSemicolon(xt,sr,at);case`
|
|
|
`:return e.formatting.formatOnEnter(xt,sr,at)}return[]}function ln(Lt,xt,Yt,Qt,sr,at){at===void 0&&(at=e.emptyOptions),Ye();var ea=fn(Lt),Fa=e.createTextSpanFromBounds(xt,Yt),li=e.formatting.getFormatContext(sr,C);return e.flatMap(e.deduplicate(Qt,e.equateValues,e.compareValues),function(Si){return $e.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:Si,sourceFile:ea,span:Fa,program:Ce,host:C,cancellationToken:$e,formatContext:li,preferences:at})})}function Ln(Lt,xt,Yt,Qt){Qt===void 0&&(Qt=e.emptyOptions),Ye(),e.Debug.assert(Lt.type==="file");var sr=fn(Lt.fileName),at=e.formatting.getFormatContext(Yt,C);return e.codefix.getAllFixes({fixId:xt,sourceFile:sr,program:Ce,host:C,cancellationToken:$e,formatContext:at,preferences:Qt})}function Xe(Lt,xt,Yt){Yt===void 0&&(Yt=e.emptyOptions),Ye(),e.Debug.assert(Lt.type==="file");var Qt=fn(Lt.fileName),sr=e.formatting.getFormatContext(xt,C);return e.OrganizeImports.organizeImports(Qt,sr,C,Ce,Yt,Lt.skipDestructiveCodeActions)}function Dn(Lt,xt,Yt,Qt){return Qt===void 0&&(Qt=e.emptyOptions),e.getEditsForFileRename(Ne(),Lt,xt,C,e.formatting.getFormatContext(Yt,C),Qt,Me)}function rn(Lt,xt){var Yt=typeof Lt=="string"?xt:Lt;return e.isArray(Yt)?Promise.all(Yt.map(function(Qt){return qn(Qt)})):qn(Yt)}function qn(Lt){var xt=function(Yt){return e.toPath(Yt,ce,pe)};return e.Debug.assertEqual(Lt.type,"install package"),C.installPackage?C.installPackage({fileName:xt(Lt.file),packageName:Lt.packageName}):Promise.reject("Host does not implement `installPackage`")}function it(Lt,xt,Yt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(C),be.getCurrentSourceFile(Lt),xt,Yt)}function ht(Lt,xt,Yt){if(Yt===60)return!1;var Qt=be.getCurrentSourceFile(Lt);if(e.isInString(Qt,xt))return!1;if(e.isInsideJsxElementOrAttribute(Qt,xt))return Yt===123;if(e.isInTemplateString(Qt,xt))return!1;switch(Yt){case 39:case 34:case 96:return!e.isInComment(Qt,xt)}return!0}function Et(Lt,xt){var Yt=be.getCurrentSourceFile(Lt),Qt=e.findPrecedingToken(xt,Yt);if(!Qt)return;var sr=Qt.kind===31&&e.isJsxOpeningElement(Qt.parent)?Qt.parent.parent:e.isJsxText(Qt)?Qt.parent:void 0;if(sr&&Ht(sr))return{newText:"</"+sr.openingElement.tagName.getText(Yt)+">"}}function zt(Lt,xt){return{lineStarts:Lt.getLineStarts(),firstLine:Lt.getLineAndCharacterOfPosition(xt.pos).line,lastLine:Lt.getLineAndCharacterOfPosition(xt.end).line}}function fr(Lt,xt,Yt){for(var Qt=be.getCurrentSourceFile(Lt),sr=[],at=zt(Qt,xt),ea=at.lineStarts,Fa=at.firstLine,li=at.lastLine,Si=Yt||!1,Qr=Number.MAX_VALUE,ci=new e.Map,Mi=new RegExp(/\S/),ro=e.isInsideJsxElement(Qt,ea[Fa]),xi=ro?"{/*":"//",ui=Fa;ui<=li;ui++){var lo=Qt.text.substring(ea[ui],Qt.getLineEndOfPosition(ea[ui])),xo=Mi.exec(lo);xo&&(Qr=Math.min(Qr,xo.index),ci.set(ui.toString(),xo.index),lo.substr(xo.index,xi.length)!==xi&&(Si=Yt===void 0||Yt))}for(var ui=Fa;ui<=li;ui++){if(Fa!==li&&ea[ui]===xt.end)continue;var Vi=ci.get(ui.toString());Vi!==void 0&&(ro?sr.push.apply(sr,br(Lt,{pos:ea[ui]+Qr,end:Qt.getLineEndOfPosition(ea[ui])},Si,ro)):Si?sr.push({newText:xi,span:{length:0,start:ea[ui]+Qr}}):Qt.text.substr(ea[ui]+Vi,xi.length)===xi&&sr.push({newText:"",span:{length:xi.length,start:ea[ui]+Vi}}))}return sr}function br(Lt,xt,Yt,Qt){for(var sr,at=be.getCurrentSourceFile(Lt),ea=[],Fa=at.text,li=!1,Si=Yt||!1,Qr=[],ci=xt.pos,Mi=Qt!==void 0?Qt:e.isInsideJsxElement(at,ci),ro=Mi?"{/*":"/*",xi=Mi?"*/}":"*/",ui=Mi?"\\{\\/\\*":"\\/\\*",lo=Mi?"\\*\\/\\}":"\\*\\/";ci<=xt.end;){var xo=Fa.substr(ci,ro.length)===ro?ro.length:0,Vi=e.isInComment(at,ci+xo);if(Vi)Mi&&(Vi.pos--,Vi.end++),Qr.push(Vi.pos),Vi.kind===3&&Qr.push(Vi.end),li=!0,ci=Vi.end+1;else{var os=Fa.substring(ci,xt.end).search("("+ui+")|("+lo+")");Si=Yt!==void 0?Yt:Si||!e.isTextWhiteSpaceLike(Fa,ci,os===-1?xt.end:ci+os),ci=os===-1?xt.end+1:ci+os+xi.length}}if(Si||!li){((sr=e.isInComment(at,xt.pos))===null||sr===void 0?void 0:sr.kind)!==2&&e.insertSorted(Qr,xt.pos,e.compareValues),e.insertSorted(Qr,xt.end,e.compareValues);var Qi=Qr[0];Fa.substr(Qi,ro.length)!==ro&&ea.push({newText:ro,span:{length:0,start:Qi}});for(var mo=1;mo<Qr.length-1;mo++)Fa.substr(Qr[mo]-xi.length,xi.length)!==xi&&ea.push({newText:xi,span:{length:0,start:Qr[mo]}}),Fa.substr(Qr[mo],ro.length)!==ro&&ea.push({newText:ro,span:{length:0,start:Qr[mo]}});ea.length%2!==0&&ea.push({newText:xi,span:{length:0,start:Qr[Qr.length-1]}})}else for(var Rs=0,Ls=Qr;Rs<Ls.length;Rs++){var Ca=Ls[Rs],ai=Ca-xi.length>0?Ca-xi.length:0,xo=Fa.substr(ai,xi.length)===xi?xi.length:0;ea.push({newText:"",span:{length:ro.length,start:Ca-xo}})}return ea}function Jt(Lt,xt){var Yt=be.getCurrentSourceFile(Lt),Qt=zt(Yt,xt),sr=Qt.firstLine,at=Qt.lastLine;return sr===at&&xt.pos!==xt.end?br(Lt,xt,!0):fr(Lt,xt,!0)}function mr(Lt,xt){var Yt=be.getCurrentSourceFile(Lt),Qt=[],sr=xt.pos,at=xt.end;sr===at&&(at+=e.isInsideJsxElement(Yt,sr)?2:1);for(var ea=sr;ea<=at;ea++){var Fa=e.isInComment(Yt,ea);if(Fa){switch(Fa.kind){case 2:Qt.push.apply(Qt,fr(Lt,{end:Fa.end,pos:Fa.pos+1},!1));break;case 3:Qt.push.apply(Qt,br(Lt,{end:Fa.end,pos:Fa.pos+1},!1))}ea=Fa.end+1}}return Qt}function Ht(Lt){var xt=Lt.openingElement,Yt=Lt.closingElement,Qt=Lt.parent;return!e.tagNamesAreEquivalent(xt.tagName,Yt.tagName)||e.isJsxElement(Qt)&&e.tagNamesAreEquivalent(xt.tagName,Qt.openingElement.tagName)&&Ht(Qt)}function Xr(Lt,xt,Yt){var Qt=be.getCurrentSourceFile(Lt),sr=e.formatting.getRangeOfEnclosingComment(Qt,xt);return sr&&(!Yt||sr.kind===3)?e.createTextSpanFromRange(sr):void 0}function At(Lt,xt){Ye();var Yt=fn(Lt);$e.throwIfCancellationRequested();var Qt=Yt.text,sr=[];if(xt.length>0&&!lo(Yt.fileName))for(var at=xi(),ea=void 0;ea=at.exec(Qt);){$e.throwIfCancellationRequested();var Fa=3;e.Debug.assert(ea.length===xt.length+Fa);var li=ea[1],Si=ea.index+li.length;if(!e.isInComment(Yt,Si))continue;for(var Qr=void 0,ci=0;ci<xt.length;ci++)ea[ci+Fa]&&(Qr=xt[ci]);if(Qr===void 0)return e.Debug.fail();if(ui(Qt.charCodeAt(Si+Qr.text.length)))continue;var Mi=ea[2];sr.push({descriptor:Qr,message:Mi,position:Si})}return sr;function ro(xo){return xo.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function xi(){var xo=/(?:\/\/+\s*)/.source,Vi=/(?:\/\*+\s*)/.source,os=/(?:^(?:\s|\*)*)/.source,Qi="("+os+"|"+xo+"|"+Vi+")",mo="(?:"+e.map(xt,function(Pi){return"("+ro(Pi.text)+")"}).join("|")+")",Rs=/(?:$|\*\/)/.source,Ls=/(?:.*?)/.source,Ca="("+mo+Ls+")",ai=Qi+Ca+Rs;return new RegExp(ai,"gim")}function ui(xo){return xo>=97&&xo<=122||xo>=65&&xo<=90||xo>=48&&xo<=57}function lo(xo){return e.stringContains(xo,"/node_modules/")}}function Wr(Lt,xt,Yt){return Ye(),e.Rename.getRenameInfo(Ce,fn(Lt),xt,Yt)}function Or(Lt,xt,Yt,Qt,sr,at){var ea=typeof xt=="number"?[xt,void 0]:[xt.pos,xt.end],Fa=ea[0],li=ea[1];return{file:Lt,startPosition:Fa,endPosition:li,program:Ne(),host:C,formatContext:e.formatting.getFormatContext(Qt,C),cancellationToken:$e,preferences:Yt,triggerReason:sr,kind:at}}function Ja(Lt,xt,Yt){return{file:Lt,program:Ne(),host:C,span:xt,preferences:Yt,cancellationToken:$e}}function qa(Lt,xt){return e.SmartSelectionRange.getSmartSelectionRange(xt,be.getCurrentSourceFile(Lt))}function eo(Lt,xt,Yt,Qt,sr){Yt===void 0&&(Yt=e.emptyOptions),Ye();var at=fn(Lt);return e.refactor.getApplicableRefactors(Or(at,xt,Yt,e.emptyOptions,Qt,sr))}function Va(Lt,xt,Yt,Qt,sr,at){at===void 0&&(at=e.emptyOptions),Ye();var ea=fn(Lt);return e.refactor.getEditsForRefactor(Or(ea,Yt,at,xt),Qt,sr)}function la(Lt,xt){return xt===0?{line:0,character:0}:Me.toLineColumnOffset(Lt,xt)}function wt(Lt,xt){Ye();var Yt=e.CallHierarchy.resolveCallHierarchyDeclaration(Ce,e.getTouchingPropertyName(fn(Lt),xt));return Yt&&e.mapOneOrMany(Yt,function(Qt){return e.CallHierarchy.createCallHierarchyItem(Ce,Qt)})}function rr(Lt,xt){Ye();var Yt=fn(Lt),Qt=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Ce,xt===0?Yt:e.getTouchingPropertyName(Yt,xt)));return Qt?e.CallHierarchy.getIncomingCalls(Ce,Qt,$e):[]}function Wt(Lt,xt){Ye();var Yt=fn(Lt),Qt=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Ce,xt===0?Yt:e.getTouchingPropertyName(Yt,xt)));return Qt?e.CallHierarchy.getOutgoingCalls(Ce,Qt):[]}function Pr(Lt,xt,Yt){Yt===void 0&&(Yt=e.emptyOptions),Ye();var Qt=fn(Lt);return e.InlayHints.provideInlayHints(Ja(Qt,xt,Yt))}var ra={dispose:Wn,cleanupSemanticCache:xn,getSyntacticDiagnostics:dn,getSemanticDiagnostics:vn,getSuggestionDiagnostics:o,getCompilerOptionsDiagnostics:Cn,getSyntacticClassifications:rt,getSemanticClassifications:Re,getEncodedSyntacticClassifications:Yn,getEncodedSemanticClassifications:Pn,getCompletionsAtPosition:z,getCompletionEntryDetails:tn,getCompletionEntrySymbol:$n,getSignatureHelpItems:yt,getQuickInfoAtPosition:Un,getDefinitionAtPosition:ke,getDefinitionAndBoundSpan:Qe,getImplementationAtPosition:xe,getTypeDefinitionAtPosition:gn,getReferencesAtPosition:hn,findReferences:Je,getFileReferences:En,getOccurrencesAtPosition:Ze,getDocumentHighlights:wn,getNameOrDottedNameSpan:$t,getBreakpointStatementAtPosition:Ke,getNavigateToItems:Nn,getRenameInfo:Wr,getSmartSelectionRange:qa,findRenameLocations:Be,getNavigationBarItems:Vn,getNavigationTree:Zn,getOutliningSpans:gt,getTodoComments:At,getBraceMatchingAtPosition:Fe,getIndentationAtPosition:Bn,getFormattingEditsForRange:K,getFormattingEditsForDocument:An,getFormattingEditsAfterKeystroke:Fn,getDocCommentTemplateAtPosition:it,isValidBraceCompletionAtPosition:ht,getJsxClosingTagAtPosition:Et,getSpanOfEnclosingComment:Xr,getCodeFixesAtPosition:ln,getCombinedCodeFix:Ln,applyCodeActionCommand:rn,organizeImports:Xe,getEditsForFileRename:Dn,getEmitOutput:ct,getNonBoundSourceFile:Gt,getProgram:Ne,getAutoImportProvider:je,getApplicableRefactors:eo,getEditsForRefactor:Va,toLineColumnOffset:la,getSourceMapper:function(){return Me},clearSourceMapperCache:function(){return Me.clearCache()},prepareCallHierarchy:wt,provideCallHierarchyIncomingCalls:rr,provideCallHierarchyOutgoingCalls:Wt,toggleLineComment:fr,toggleMultilineComment:br,commentSelection:Jt,uncommentSelection:mr,provideInlayHints:Pr};switch(Te){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:g.forEach(function(Lt){return ra[Lt]=function(){throw new Error("LanguageService Operation: "+Lt+" not allowed in LanguageServiceMode.PartialSemantic")}});break;case e.LanguageServiceMode.Syntactic:p.forEach(function(Lt){return ra[Lt]=function(){throw new Error("LanguageService Operation: "+Lt+" not allowed in LanguageServiceMode.Syntactic")}});break;default:e.Debug.assertNever(Te)}return ra}e.createLanguageService=d;function T(C){return C.nameTable||m(C),C.nameTable}e.getNameTable=T;function m(C){var we=C.nameTable=new e.Map;C.forEachChild(function Oe(te){if(e.isIdentifier(te)&&!e.isTagName(te)&&te.escapedText||e.isStringOrNumericLiteralLike(te)&&k(te)){var Te=e.getEscapedTextOfIdentifierOrLiteral(te);we.set(Te,we.get(Te)===void 0?te.pos:-1)}else if(e.isPrivateIdentifier(te)){var Te=te.escapedText;we.set(Te,we.get(Te)===void 0?te.pos:-1)}if(e.forEachChild(te,Oe),e.hasJSDocNodes(te))for(var be=0,Ce=te.jsDoc;be<Ce.length;be++){var Ue=Ce[be];e.forEachChild(Ue,Oe)}})}function k(C){return e.isDeclarationName(C)||C.parent.kind===275||q(C)||e.isLiteralComputedPropertyDeclarationName(C)}function N(C){var we=D(C);return we&&(e.isObjectLiteralExpression(we.parent)||e.isJsxAttributes(we.parent))?we:void 0}e.getContainingObjectLiteralElement=N;function D(C){switch(C.kind){case 10:case 14:case 8:if(C.parent.kind===160)return e.isObjectLiteralElement(C.parent.parent)?C.parent.parent:void 0;case 79:return e.isObjectLiteralElement(C.parent)&&(C.parent.parent.kind===203||C.parent.parent.kind===284)&&C.parent.name===C?C.parent:void 0}return}function R(C,we){var Oe=N(C);if(Oe){var te=we.getContextualType(Oe.parent),Te=te&&me(Oe,we,te,!1);if(Te&&Te.length===1)return e.first(Te)}return we.getSymbolAtLocation(C)}function me(C,we,Oe,te){var Te=e.getNameFromPropertyName(C.name);if(!Te)return e.emptyArray;if(!Oe.isUnion()){var be=Oe.getProperty(Te);return be?[be]:e.emptyArray}var Ce=e.mapDefined(Oe.types,function(Ue){return(e.isObjectLiteralExpression(C.parent)||e.isJsxAttributes(C.parent))&&we.isTypeInvalidDueToUnionDiscriminant(Ue,C.parent)?void 0:Ue.getProperty(Te)});if(te&&(Ce.length===0||Ce.length===Oe.types.length)){var be=Oe.getProperty(Te);if(be)return[be]}return Ce.length===0?e.mapDefined(Oe.types,function(Ue){return Ue.getProperty(Te)}):Ce}e.getPropertySymbolsFromContextualType=me;function q(C){return C&&C.parent&&C.parent.kind===205&&C.parent.argumentExpression===C}function J(C){return Ro+e.directorySeparator+e.getDefaultLibFileName(C)}e.getDefaultLibFilePath=J,e.setObjectAllocator($())})(mn||(mn={}));var mn;(function(e){var s;(function(ue){function ee(Y,V){if(Y.isDeclarationFile)return;var ne=e.getTokenAtPosition(Y,V),_e=Y.getLineAndCharacterOfPosition(V).line;if(Y.getLineAndCharacterOfPosition(ne.getStart(Y)).line>_e){var O=e.findPrecedingToken(ne.pos,Y);if(!O||Y.getLineAndCharacterOfPosition(O.getEnd()).line!==_e)return;ne=O}if(ne.flags&8388608)return;return Z(ne);function w(v,W){var x=v.decorators?e.skipTrivia(Y.text,v.decorators.end):v.getStart(Y);return e.createTextSpanFromBounds(x,(W||v).getEnd())}function b(v,W){return w(v,e.findNextToken(W,W.parent,Y))}function de(v,W){return v&&_e===Y.getLineAndCharacterOfPosition(v.getStart(Y)).line?Z(v):Z(W)}function fe(v){return e.createTextSpanFromBounds(e.skipTrivia(Y.text,v.pos),v.end)}function _(v){return Z(e.findPrecedingToken(v.pos,Y))}function U(v){return Z(e.findNextToken(v,v.parent,Y))}function Z(v){if(v){var W=v.parent;switch(v.kind){case 235:return le(v.declarationList.declarations[0]);case 252:case 165:case 164:return le(v);case 162:return I(v);case 254:case 167:case 166:case 170:case 171:case 169:case 211:case 212:return B(v);case 233:if(e.isFunctionBlock(v))return A(v);case 260:return f(v);case 290:return f(v.block);case 236:return w(v.expression);case 245:return w(v.getChildAt(0),v.expression);case 239:return b(v,v.expression);case 238:return Z(v.statement);case 251:return w(v.getChildAt(0));case 237:return b(v,v.expression);case 248:return Z(v.statement);case 244:case 243:return w(v.getChildAt(0),v.label);case 240:return g(v);case 241:return b(v,v.expression);case 242:return F(v);case 247:return b(v,v.expression);case 287:case 288:return Z(v.statements[0]);case 250:return f(v.tryBlock);case 249:return w(v,v.expression);case 269:return w(v,v.expression);case 263:return w(v,v.moduleReference);case 264:return w(v,v.moduleSpecifier);case 270:return w(v,v.moduleSpecifier);case 259:if(e.getModuleInstanceState(v)!==1)return;case 255:case 258:case 294:case 201:return w(v);case 246:return Z(v.statement);case 163:return fe(W.decorators);case 199:case 200:return p(v);case 256:case 257:return;case 26:case 1:return de(e.findPrecedingToken(v.pos,Y));case 27:return _(v);case 18:return T(v);case 19:return m(v);case 23:return k(v);case 20:return N(v);case 21:return D(v);case 58:return R(v);case 31:case 29:return me(v);case 115:return q(v);case 91:case 83:case 96:return U(v);case 158:return J(v);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(v))return d(v);if((v.kind===79||v.kind===223||v.kind===291||v.kind===292)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(W))return w(v);if(v.kind===219){var x=v,$=x.left,L=x.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern($))return d($);if(L.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent))return w(v);if(L.kind===27)return Z($)}if(e.isExpressionNode(v))switch(W.kind){case 238:return _(v);case 163:return Z(v.parent);case 240:case 242:return w(v);case 219:if(v.parent.operatorToken.kind===27)return w(v);break;case 212:if(v.parent.body===v)return w(v);break}switch(v.parent.kind){case 291:if(v.parent.name===v&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent.parent))return Z(v.parent.initializer);break;case 209:if(v.parent.type===v)return U(v.parent.type);break;case 252:case 162:{var E=v.parent,ae=E.initializer,X=E.type;if(ae===v||X===v||e.isAssignmentOperator(v.kind))return _(v);break}case 219:{var $=v.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern($)&&v!==$)return _(v);break}default:if(e.isFunctionLike(v.parent)&&v.parent.type===v)return _(v)}return Z(v.parent)}}function ie(C){return e.isVariableDeclarationList(C.parent)&&C.parent.declarations[0]===C?w(e.findPrecedingToken(C.pos,Y,C.parent),C):w(C)}function le(C){if(C.parent.parent.kind===241)return Z(C.parent.parent);var we=C.parent;if(e.isBindingPattern(C.name))return p(C.name);if(C.initializer||e.hasSyntacticModifier(C,1)||we.parent.kind===242)return ie(C);if(e.isVariableDeclarationList(C.parent)&&C.parent.declarations[0]!==C)return Z(e.findPrecedingToken(C.pos,Y,C.parent))}function P(C){return!!C.initializer||C.dotDotDotToken!==void 0||e.hasSyntacticModifier(C,4|8)}function I(C){if(e.isBindingPattern(C.name))return p(C.name);if(P(C))return w(C);var we=C.parent,Oe=we.parameters.indexOf(C);return e.Debug.assert(Oe!==-1),Oe!==0?I(we.parameters[Oe-1]):Z(we.body)}function re(C){return e.hasSyntacticModifier(C,1)||C.parent.kind===255&&C.kind!==169}function B(C){return C.body?re(C)?w(C):Z(C.body):void 0}function A(C){var we=C.statements.length?C.statements[0]:C.getLastToken();return re(C.parent)?de(C.parent,we):Z(we)}function f(C){switch(C.parent.kind){case 259:if(e.getModuleInstanceState(C.parent)!==1)return;case 239:case 237:case 241:return de(C.parent,C.statements[0]);case 240:case 242:return de(e.findPrecedingToken(C.pos,Y,C.parent),C.statements[0])}return Z(C.statements[0])}function F(C){if(C.initializer.kind===253){var we=C.initializer;if(we.declarations.length>0)return Z(we.declarations[0])}else return Z(C.initializer)}function g(C){if(C.initializer)return F(C);if(C.condition)return w(C.condition);if(C.incrementor)return w(C.incrementor)}function p(C){var we=e.forEach(C.elements,function(Oe){return Oe.kind!==225?Oe:void 0});return we?Z(we):C.parent.kind===201?w(C.parent):ie(C.parent)}function d(C){e.Debug.assert(C.kind!==200&&C.kind!==199);var we=C.kind===202?C.elements:C.properties,Oe=e.forEach(we,function(te){return te.kind!==225?te:void 0});return Oe?Z(Oe):w(C.parent.kind===219?C.parent:C)}function T(C){switch(C.parent.kind){case 258:var we=C.parent;return de(e.findPrecedingToken(C.pos,Y,C.parent),we.members.length?we.members[0]:we.getLastToken(Y));case 255:var Oe=C.parent;return de(e.findPrecedingToken(C.pos,Y,C.parent),Oe.members.length?Oe.members[0]:Oe.getLastToken(Y));case 261:return de(C.parent.parent,C.parent.clauses[0])}return Z(C.parent)}function m(C){switch(C.parent.kind){case 260:if(e.getModuleInstanceState(C.parent.parent)!==1)return;case 258:case 255:return w(C);case 233:if(e.isFunctionBlock(C.parent))return w(C);case 290:return Z(e.lastOrUndefined(C.parent.statements));case 261:var we=C.parent,Oe=e.lastOrUndefined(we.clauses);return Oe?Z(e.lastOrUndefined(Oe.statements)):void 0;case 199:var te=C.parent;return Z(e.lastOrUndefined(te.elements)||te);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent)){var Te=C.parent;return w(e.lastOrUndefined(Te.properties)||Te)}return Z(C.parent)}}function k(C){switch(C.parent.kind){case 200:var we=C.parent;return w(e.lastOrUndefined(we.elements)||we);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent)){var Oe=C.parent;return w(e.lastOrUndefined(Oe.elements)||Oe)}return Z(C.parent)}}function N(C){return C.parent.kind===238||C.parent.kind===206||C.parent.kind===207?_(C):C.parent.kind===210?U(C):Z(C.parent)}function D(C){switch(C.parent.kind){case 211:case 254:case 212:case 167:case 166:case 170:case 171:case 169:case 239:case 238:case 240:case 242:case 206:case 207:case 210:return _(C);default:return Z(C.parent)}}function R(C){return e.isFunctionLike(C.parent)||C.parent.kind===291||C.parent.kind===162?_(C):Z(C.parent)}function me(C){return C.parent.kind===209?U(C):Z(C.parent)}function q(C){return C.parent.kind===238?b(C,C.parent.expression):Z(C.parent)}function J(C){return C.parent.kind===242?U(C):Z(C.parent)}}}ue.spanInSourceFileAtLocation=ee})(s=e.BreakpointResolver||(e.BreakpointResolver={}))})(mn||(mn={}));var mn;(function(e){function s(ue,ee,Y){var V=[];Y=e.fixupCompilerOptions(Y,V);var ne=e.isArray(ue)?ue:[ue],_e=e.transformNodes(void 0,void 0,e.factory,Y,ne,ee,!0);return _e.diagnostics=e.concatenate(_e.diagnostics,V),_e}e.transform=s})(mn||(mn={}));var Nc=function(){return this}(),mn;(function(e){function s(v,W){v&&v.log("*INTERNAL ERROR* - Exception in typescript services: "+W.message)}var ue=function(){function v(W){this.scriptSnapshotShim=W}return v.prototype.getText=function(W,x){return this.scriptSnapshotShim.getText(W,x)},v.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},v.prototype.getChangeRange=function(W){var x=W,$=this.scriptSnapshotShim.getChangeRange(x.scriptSnapshotShim);if($===null)return null;var L=JSON.parse($);return e.createTextChangeRange(e.createTextSpan(L.span.start,L.span.length),L.newLength)},v.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},v}(),ee=function(){function v(W){var x=this;this.shimHost=W,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function($,L){var E=JSON.parse(x.shimHost.getModuleResolutionsForFile(L));return e.map($,function(ae){var X=e.getProperty(E,ae);return X?{resolvedFileName:X,extension:e.extensionFromPath(X),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function($){return x.shimHost.directoryExists($)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function($,L){var E=JSON.parse(x.shimHost.getTypeReferenceDirectiveResolutionsForFile(L));return e.map($,function(ae){return e.getProperty(E,ae)})})}return v.prototype.log=function(W){this.loggingEnabled&&this.shimHost.log(W)},v.prototype.trace=function(W){this.tracingEnabled&&this.shimHost.trace(W)},v.prototype.error=function(W){this.shimHost.error(W)},v.prototype.getProjectVersion=function(){return this.shimHost.getProjectVersion?this.shimHost.getProjectVersion():void 0},v.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},v.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},v.prototype.getCompilationSettings=function(){var W=this.shimHost.getCompilationSettings();if(W===null||W==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var x=JSON.parse(W);return x.allowNonTsExtensions=!0,x},v.prototype.getScriptFileNames=function(){var W=this.shimHost.getScriptFileNames();return JSON.parse(W)},v.prototype.getScriptSnapshot=function(W){var x=this.shimHost.getScriptSnapshot(W);return x&&new ue(x)},v.prototype.getScriptKind=function(W){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(W):0},v.prototype.getScriptVersion=function(W){return this.shimHost.getScriptVersion(W)},v.prototype.getLocalizedDiagnosticMessages=function(){var W=this.shimHost.getLocalizedDiagnosticMessages();if(W===null||W==="")return null;try{return JSON.parse(W)}catch(x){return this.log(x.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},v.prototype.getCancellationToken=function(){var W=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(W)},v.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},v.prototype.getDirectories=function(W){return JSON.parse(this.shimHost.getDirectories(W))},v.prototype.getDefaultLibFileName=function(W){return this.shimHost.getDefaultLibFileName(JSON.stringify(W))},v.prototype.readDirectory=function(W,x,$,L,E){var ae=e.getFileMatcherPatterns(W,$,L,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(W,JSON.stringify(x),JSON.stringify(ae.basePaths),ae.excludePattern,ae.includeFilePattern,ae.includeDirectoryPattern,E))},v.prototype.readFile=function(W,x){return this.shimHost.readFile(W,x)},v.prototype.fileExists=function(W){return this.shimHost.fileExists(W)},v}();e.LanguageServiceShimHostAdapter=ee;var Y=function(){function v(W){var x=this;this.shimHost=W,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function($){return x.shimHost.directoryExists($)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function($){return x.shimHost.realpath($)}:this.realpath=void 0}return v.prototype.readDirectory=function(W,x,$,L,E){var ae=e.getFileMatcherPatterns(W,$,L,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(W,JSON.stringify(x),JSON.stringify(ae.basePaths),ae.excludePattern,ae.includeFilePattern,ae.includeDirectoryPattern,E))},v.prototype.fileExists=function(W){return this.shimHost.fileExists(W)},v.prototype.readFile=function(W){return this.shimHost.readFile(W)},v.prototype.getDirectories=function(W){return JSON.parse(this.shimHost.getDirectories(W))},v}();e.CoreServicesShimHostAdapter=Y;function V(v,W,x,$){var L;$&&(v.log(W),L=e.timestamp());var E=x();if($){var ae=e.timestamp();if(v.log(W+" completed in "+(ae-L)+" msec"),e.isString(E)){var X=E;X.length>128&&(X=X.substring(0,128)+"..."),v.log(" result.length="+X.length+", result='"+JSON.stringify(X)+"'")}}return E}function ne(v,W,x,$){return _e(v,W,!0,x,$)}function _e(v,W,x,$,L){try{var E=V(v,W,$,L);return x?JSON.stringify({result:E}):E}catch(ae){return ae instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(s(v,ae),ae.description=W,JSON.stringify({error:ae}))}}var O=function(){function v(W){this.factory=W,W.registerShim(this)}return v.prototype.dispose=function(W){this.factory.unregisterShim(this)},v}();function w(v,W){return v.map(function(x){return b(x,W)})}e.realizeDiagnostics=w;function b(v,W){return{message:e.flattenDiagnosticMessageText(v.messageText,W),start:v.start,length:v.length,category:e.diagnosticCategoryName(v),code:v.code,reportsUnnecessary:v.reportsUnnecessary,reportsDeprecated:v.reportsDeprecated}}var de=function(v){Qo(W,v);function W(x,$,L){var E=v.call(this,x)||this;return E.host=$,E.languageService=L,E.logPerformance=!1,E.logger=E.host,E}return W.prototype.forwardJSONCall=function(x,$){return ne(this.logger,x,$,this.logPerformance)},W.prototype.dispose=function(x){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,Nc&&Nc.CollectGarbage&&(Nc.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,v.prototype.dispose.call(this,x)},W.prototype.refresh=function(x){this.forwardJSONCall("refresh("+x+")",function(){return null})},W.prototype.cleanupSemanticCache=function(){var x=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return x.languageService.cleanupSemanticCache(),null})},W.prototype.realizeDiagnostics=function(x){var $=e.getNewLineOrDefaultFromHost(this.host);return w(x,$)},W.prototype.getSyntacticClassifications=function(x,$,L){var E=this;return this.forwardJSONCall("getSyntacticClassifications('"+x+"', "+$+", "+L+")",function(){return E.languageService.getSyntacticClassifications(x,e.createTextSpan($,L))})},W.prototype.getSemanticClassifications=function(x,$,L){var E=this;return this.forwardJSONCall("getSemanticClassifications('"+x+"', "+$+", "+L+")",function(){return E.languageService.getSemanticClassifications(x,e.createTextSpan($,L))})},W.prototype.getEncodedSyntacticClassifications=function(x,$,L){var E=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+x+"', "+$+", "+L+")",function(){return fe(E.languageService.getEncodedSyntacticClassifications(x,e.createTextSpan($,L)))})},W.prototype.getEncodedSemanticClassifications=function(x,$,L){var E=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+x+"', "+$+", "+L+")",function(){return fe(E.languageService.getEncodedSemanticClassifications(x,e.createTextSpan($,L)))})},W.prototype.getSyntacticDiagnostics=function(x){var $=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+x+"')",function(){var L=$.languageService.getSyntacticDiagnostics(x);return $.realizeDiagnostics(L)})},W.prototype.getSemanticDiagnostics=function(x){var $=this;return this.forwardJSONCall("getSemanticDiagnostics('"+x+"')",function(){var L=$.languageService.getSemanticDiagnostics(x);return $.realizeDiagnostics(L)})},W.prototype.getSuggestionDiagnostics=function(x){var $=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+x+"')",function(){return $.realizeDiagnostics($.languageService.getSuggestionDiagnostics(x))})},W.prototype.getCompilerOptionsDiagnostics=function(){var x=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var $=x.languageService.getCompilerOptionsDiagnostics();return x.realizeDiagnostics($)})},W.prototype.getQuickInfoAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+x+"', "+$+")",function(){return L.languageService.getQuickInfoAtPosition(x,$)})},W.prototype.getNameOrDottedNameSpan=function(x,$,L){var E=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+x+"', "+$+", "+L+")",function(){return E.languageService.getNameOrDottedNameSpan(x,$,L)})},W.prototype.getBreakpointStatementAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+x+"', "+$+")",function(){return L.languageService.getBreakpointStatementAtPosition(x,$)})},W.prototype.getSignatureHelpItems=function(x,$,L){var E=this;return this.forwardJSONCall("getSignatureHelpItems('"+x+"', "+$+")",function(){return E.languageService.getSignatureHelpItems(x,$,L)})},W.prototype.getDefinitionAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getDefinitionAtPosition('"+x+"', "+$+")",function(){return L.languageService.getDefinitionAtPosition(x,$)})},W.prototype.getDefinitionAndBoundSpan=function(x,$){var L=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+x+"', "+$+")",function(){return L.languageService.getDefinitionAndBoundSpan(x,$)})},W.prototype.getTypeDefinitionAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+x+"', "+$+")",function(){return L.languageService.getTypeDefinitionAtPosition(x,$)})},W.prototype.getImplementationAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getImplementationAtPosition('"+x+"', "+$+")",function(){return L.languageService.getImplementationAtPosition(x,$)})},W.prototype.getRenameInfo=function(x,$,L){var E=this;return this.forwardJSONCall("getRenameInfo('"+x+"', "+$+")",function(){return E.languageService.getRenameInfo(x,$,L)})},W.prototype.getSmartSelectionRange=function(x,$){var L=this;return this.forwardJSONCall("getSmartSelectionRange('"+x+"', "+$+")",function(){return L.languageService.getSmartSelectionRange(x,$)})},W.prototype.findRenameLocations=function(x,$,L,E,ae){var X=this;return this.forwardJSONCall("findRenameLocations('"+x+"', "+$+", "+L+", "+E+", "+ae+")",function(){return X.languageService.findRenameLocations(x,$,L,E,ae)})},W.prototype.getBraceMatchingAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+x+"', "+$+")",function(){return L.languageService.getBraceMatchingAtPosition(x,$)})},W.prototype.isValidBraceCompletionAtPosition=function(x,$,L){var E=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+x+"', "+$+", "+L+")",function(){return E.languageService.isValidBraceCompletionAtPosition(x,$,L)})},W.prototype.getSpanOfEnclosingComment=function(x,$,L){var E=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+x+"', "+$+")",function(){return E.languageService.getSpanOfEnclosingComment(x,$,L)})},W.prototype.getIndentationAtPosition=function(x,$,L){var E=this;return this.forwardJSONCall("getIndentationAtPosition('"+x+"', "+$+")",function(){var ae=JSON.parse(L);return E.languageService.getIndentationAtPosition(x,$,ae)})},W.prototype.getReferencesAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getReferencesAtPosition('"+x+"', "+$+")",function(){return L.languageService.getReferencesAtPosition(x,$)})},W.prototype.findReferences=function(x,$){var L=this;return this.forwardJSONCall("findReferences('"+x+"', "+$+")",function(){return L.languageService.findReferences(x,$)})},W.prototype.getFileReferences=function(x){var $=this;return this.forwardJSONCall("getFileReferences('"+x+")",function(){return $.languageService.getFileReferences(x)})},W.prototype.getOccurrencesAtPosition=function(x,$){var L=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+x+"', "+$+")",function(){return L.languageService.getOccurrencesAtPosition(x,$)})},W.prototype.getDocumentHighlights=function(x,$,L){var E=this;return this.forwardJSONCall("getDocumentHighlights('"+x+"', "+$+")",function(){var ae=E.languageService.getDocumentHighlights(x,$,JSON.parse(L)),X=e.toFileNameLowerCase(e.normalizeSlashes(x));return e.filter(ae,function(ie){return e.toFileNameLowerCase(e.normalizeSlashes(ie.fileName))===X})})},W.prototype.getCompletionsAtPosition=function(x,$,L){var E=this;return this.forwardJSONCall("getCompletionsAtPosition('"+x+"', "+$+", "+L+")",function(){return E.languageService.getCompletionsAtPosition(x,$,L)})},W.prototype.getCompletionEntryDetails=function(x,$,L,E,ae,X,ie){var le=this;return this.forwardJSONCall("getCompletionEntryDetails('"+x+"', "+$+", '"+L+"')",function(){var P=E===void 0?void 0:JSON.parse(E);return le.languageService.getCompletionEntryDetails(x,$,L,P,ae,X,ie)})},W.prototype.getFormattingEditsForRange=function(x,$,L,E){var ae=this;return this.forwardJSONCall("getFormattingEditsForRange('"+x+"', "+$+", "+L+")",function(){var X=JSON.parse(E);return ae.languageService.getFormattingEditsForRange(x,$,L,X)})},W.prototype.getFormattingEditsForDocument=function(x,$){var L=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+x+"')",function(){var E=JSON.parse($);return L.languageService.getFormattingEditsForDocument(x,E)})},W.prototype.getFormattingEditsAfterKeystroke=function(x,$,L,E){var ae=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+x+"', "+$+", '"+L+"')",function(){var X=JSON.parse(E);return ae.languageService.getFormattingEditsAfterKeystroke(x,$,L,X)})},W.prototype.getDocCommentTemplateAtPosition=function(x,$,L){var E=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+x+"', "+$+")",function(){return E.languageService.getDocCommentTemplateAtPosition(x,$,L)})},W.prototype.getNavigateToItems=function(x,$,L){var E=this;return this.forwardJSONCall("getNavigateToItems('"+x+"', "+$+", "+L+")",function(){return E.languageService.getNavigateToItems(x,$,L)})},W.prototype.getNavigationBarItems=function(x){var $=this;return this.forwardJSONCall("getNavigationBarItems('"+x+"')",function(){return $.languageService.getNavigationBarItems(x)})},W.prototype.getNavigationTree=function(x){var $=this;return this.forwardJSONCall("getNavigationTree('"+x+"')",function(){return $.languageService.getNavigationTree(x)})},W.prototype.getOutliningSpans=function(x){var $=this;return this.forwardJSONCall("getOutliningSpans('"+x+"')",function(){return $.languageService.getOutliningSpans(x)})},W.prototype.getTodoComments=function(x,$){var L=this;return this.forwardJSONCall("getTodoComments('"+x+"')",function(){return L.languageService.getTodoComments(x,JSON.parse($))})},W.prototype.prepareCallHierarchy=function(x,$){var L=this;return this.forwardJSONCall("prepareCallHierarchy('"+x+"', "+$+")",function(){return L.languageService.prepareCallHierarchy(x,$)})},W.prototype.provideCallHierarchyIncomingCalls=function(x,$){var L=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+x+"', "+$+")",function(){return L.languageService.provideCallHierarchyIncomingCalls(x,$)})},W.prototype.provideCallHierarchyOutgoingCalls=function(x,$){var L=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+x+"', "+$+")",function(){return L.languageService.provideCallHierarchyOutgoingCalls(x,$)})},W.prototype.provideInlayHints=function(x,$,L){var E=this;return this.forwardJSONCall("provideInlayHints('"+x+"', '"+JSON.stringify($)+"', "+JSON.stringify(L)+")",function(){return E.languageService.provideInlayHints(x,$,L)})},W.prototype.getEmitOutput=function(x){var $=this;return this.forwardJSONCall("getEmitOutput('"+x+"')",function(){var L=$.languageService.getEmitOutput(x),E=L.diagnostics,ae=Yo(L,["diagnostics"]);return pr(pr({},ae),{diagnostics:$.realizeDiagnostics(E)})})},W.prototype.getEmitOutputObject=function(x){var $=this;return _e(this.logger,"getEmitOutput('"+x+"')",!1,function(){return $.languageService.getEmitOutput(x)},this.logPerformance)},W.prototype.toggleLineComment=function(x,$){var L=this;return this.forwardJSONCall("toggleLineComment('"+x+"', '"+JSON.stringify($)+"')",function(){return L.languageService.toggleLineComment(x,$)})},W.prototype.toggleMultilineComment=function(x,$){var L=this;return this.forwardJSONCall("toggleMultilineComment('"+x+"', '"+JSON.stringify($)+"')",function(){return L.languageService.toggleMultilineComment(x,$)})},W.prototype.commentSelection=function(x,$){var L=this;return this.forwardJSONCall("commentSelection('"+x+"', '"+JSON.stringify($)+"')",function(){return L.languageService.commentSelection(x,$)})},W.prototype.uncommentSelection=function(x,$){var L=this;return this.forwardJSONCall("uncommentSelection('"+x+"', '"+JSON.stringify($)+"')",function(){return L.languageService.uncommentSelection(x,$)})},W}(O);function fe(v){return{spans:v.spans.join(","),endOfLineState:v.endOfLineState}}var _=function(v){Qo(W,v);function W(x,$){var L=v.call(this,x)||this;return L.logger=$,L.logPerformance=!1,L.classifier=e.createClassifier(),L}return W.prototype.getEncodedLexicalClassifications=function(x,$,L){var E=this;return L===void 0&&(L=!1),ne(this.logger,"getEncodedLexicalClassifications",function(){return fe(E.classifier.getEncodedLexicalClassifications(x,$,L))},this.logPerformance)},W.prototype.getClassificationsForLine=function(x,$,L){L===void 0&&(L=!1);for(var E=this.classifier.getClassificationsForLine(x,$,L),ae="",X=0,ie=E.entries;X<ie.length;X++){var le=ie[X];ae+=le.length+`
|
|
|
`,ae+=le.classification+`
|
|
|
`}return ae+=E.finalLexState,ae},W}(O),U=function(v){Qo(W,v);function W(x,$,L){var E=v.call(this,x)||this;return E.logger=$,E.host=L,E.logPerformance=!1,E}return W.prototype.forwardJSONCall=function(x,$){return ne(this.logger,x,$,this.logPerformance)},W.prototype.resolveModuleName=function(x,$,L){var E=this;return this.forwardJSONCall("resolveModuleName('"+x+"')",function(){var ae=JSON.parse(L),X=e.resolveModuleName($,e.normalizeSlashes(x),ae,E.host),ie=X.resolvedModule?X.resolvedModule.resolvedFileName:void 0;return X.resolvedModule&&X.resolvedModule.extension!==".ts"&&X.resolvedModule.extension!==".tsx"&&X.resolvedModule.extension!==".d.ts"&&(ie=void 0),{resolvedFileName:ie,failedLookupLocations:X.failedLookupLocations}})},W.prototype.resolveTypeReferenceDirective=function(x,$,L){var E=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+x+")",function(){var ae=JSON.parse(L),X=e.resolveTypeReferenceDirective($,e.normalizeSlashes(x),ae,E.host);return{resolvedFileName:X.resolvedTypeReferenceDirective?X.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:X.resolvedTypeReferenceDirective?X.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:X.failedLookupLocations}})},W.prototype.getPreProcessedFileInfo=function(x,$){var L=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+x+"')",function(){var E=e.preProcessFile(e.getSnapshotText($),!0,!0);return{referencedFiles:L.convertFileReferences(E.referencedFiles),importedFiles:L.convertFileReferences(E.importedFiles),ambientExternalModules:E.ambientExternalModules,isLibFile:E.isLibFile,typeReferenceDirectives:L.convertFileReferences(E.typeReferenceDirectives),libReferenceDirectives:L.convertFileReferences(E.libReferenceDirectives)}})},W.prototype.getAutomaticTypeDirectiveNames=function(x){var $=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+x+"')",function(){var L=JSON.parse(x);return e.getAutomaticTypeDirectiveNames(L,$.host)})},W.prototype.convertFileReferences=function(x){if(!x)return;for(var $=[],L=0,E=x;L<E.length;L++){var ae=E[L];$.push({path:e.normalizeSlashes(ae.fileName),position:ae.pos,length:ae.end-ae.pos})}return $},W.prototype.getTSConfigFileInfo=function(x,$){var L=this;return this.forwardJSONCall("getTSConfigFileInfo('"+x+"')",function(){var E=e.parseJsonText(x,e.getSnapshotText($)),ae=e.normalizeSlashes(x),X=e.parseJsonSourceFileConfigFileContent(E,L.host,e.getDirectoryPath(ae),{},ae);return{options:X.options,typeAcquisition:X.typeAcquisition,files:X.fileNames,raw:X.raw,errors:w(Mt(Mt([],E.parseDiagnostics,!0),X.errors,!0),`\r
|
|
|
`)}})},W.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},W.prototype.discoverTypings=function(x){var $=this,L=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var E=JSON.parse(x);return $.safeList===void 0&&($.safeList=e.JsTyping.loadSafeList($.host,e.toPath(E.safeListPath,E.safeListPath,L))),e.JsTyping.discoverTypings($.host,function(ae){return $.logger.log(ae)},E.fileNames,e.toPath(E.projectRootPath,E.projectRootPath,L),$.safeList,E.packageNameToTypingLocation,E.typeAcquisition,E.unresolvedImports,E.typesRegistry)})},W}(O),Z=function(){function v(){this._shims=[]}return v.prototype.getServicesVersion=function(){return e.servicesVersion},v.prototype.createLanguageServiceShim=function(W){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(W.useCaseSensitiveFileNames&&W.useCaseSensitiveFileNames(),W.getCurrentDirectory()));var x=new ee(W),$=e.createLanguageService(x,this.documentRegistry,!1);return new de(this,W,$)}catch(L){throw s(W,L),L}},v.prototype.createClassifierShim=function(W){try{return new _(this,W)}catch(x){throw s(W,x),x}},v.prototype.createCoreServicesShim=function(W){try{var x=new Y(W);return new U(this,W,x)}catch($){throw s(W,$),$}},v.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},v.prototype.registerShim=function(W){this._shims.push(W)},v.prototype.unregisterShim=function(W){for(var x=0;x<this._shims.length;x++)if(this._shims[x]===W){delete this._shims[x];return}throw new Error("Invalid operation")},v}();e.TypeScriptServicesFactory=Z})(mn||(mn={})),function(){if(typeof globalThis=="object")return;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis=="undefined"&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),(typeof io=="undefined"||io.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=mn.TypeScriptServicesFactory,globalThis.toolsVersion=mn.versionMajorMinor),Ps.exports&&(Ps.exports=mn);var mn;(function(e){var s={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,s),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,s),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,s),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,s),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,s),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,s),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,s),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,s),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,s),e.createSuper=e.Debug.deprecate(e.factory.createSuper,s),e.createThis=e.Debug.deprecate(e.factory.createThis,s),e.createNull=e.Debug.deprecate(e.factory.createNull,s),e.createTrue=e.Debug.deprecate(e.factory.createTrue,s),e.createFalse=e.Debug.deprecate(e.factory.createFalse,s),e.createModifier=e.Debug.deprecate(e.factory.createModifier,s),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,s),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,s),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,s),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,s),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,s),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,s),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,s),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,s),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,s),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,s),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,s),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,s),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,s),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,s),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,s),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,s),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,s),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,s),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,s),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,s),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,s),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,s),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,s),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,s),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,s),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,s),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,s),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,s),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,s),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,s),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,s),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,s),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,s),e.createConstructorTypeNode=e.Debug.deprecate(function(ue,ee,Y){return e.factory.createConstructorTypeNode(void 0,ue,ee,Y)},s),e.updateConstructorTypeNode=e.Debug.deprecate(function(ue,ee,Y,V){return e.factory.updateConstructorTypeNode(ue,ue.modifiers,ee,Y,V)},s),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,s),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,s),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,s),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,s),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,s),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,s),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,s),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,s),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,s),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,s),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,s),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,s),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,s),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,s),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,s),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,s),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,s),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,s),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,s),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,s),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,s),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,s),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,s),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,s),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,s),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,s),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,s),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,s),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,s),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,s),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,s),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,s),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,s),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,s),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,s),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,s),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,s),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,s),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,s),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,s),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,s),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,s),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,s),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,s),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,s),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,s),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,s),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,s),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,s),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,s),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,s),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,s),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,s),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,s),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,s),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,s),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,s),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,s),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,s),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,s),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,s),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,s),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,s),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,s),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,s),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,s),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,s),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,s),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,s),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,s),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,s),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,s),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,s),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,s),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,s),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,s),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,s),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,s),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,s),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,s),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,s),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,s),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,s),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,s),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,s),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,s),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,s),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,s),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,s),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,s),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,s),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,s),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,s),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,s),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,s),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,s),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,s),e.createBlock=e.Debug.deprecate(e.factory.createBlock,s),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,s),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,s),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,s),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,s),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,s),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,s),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,s),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,s),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,s),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,s),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,s),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,s),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,s),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,s),e.createFor=e.Debug.deprecate(e.factory.createForStatement,s),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,s),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,s),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,s),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,s),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,s),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,s),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,s),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,s),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,s),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,s),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,s),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,s),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,s),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,s),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,s),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,s),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,s),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,s),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,s),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,s),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,s),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,s),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,s),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,s),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,s),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,s),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,s),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,s),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,s),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,s),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,s),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,s),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,s),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,s),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,s),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,s),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,s),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,s),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,s),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,s),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,s),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,s),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,s),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,s),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,s),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,s),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,s),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,s),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,s),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,s),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,s),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,s),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,s),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,s),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,s),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,s),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,s),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,s),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,s),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,s),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,s),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,s),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,s),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,s),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,s),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,s),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,s),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,s),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,s),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,s),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,s),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,s),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,s),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,s),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,s),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,s),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,s),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,s),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,s),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,s),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,s),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,s),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,s),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,s),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,s),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,s),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,s),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,s),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,s),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,s),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,s),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,s),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,s),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,s),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,s),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,s),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,s),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,s),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,s),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,s),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,s),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,s),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,s),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,s),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,s),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,s),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,s),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,s),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,s),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,s),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,s),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,s),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,s),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,s),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,s),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,s),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,s),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,s),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,s),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,s),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,s),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,s),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,s),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,s),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,s),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,s),e.createBundle=e.Debug.deprecate(e.factory.createBundle,s),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,s),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,s),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,s),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,s),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,s),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,s),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,s),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,s),e.createToken=e.Debug.deprecate(function(ee){return e.factory.createToken(ee)},s),e.createIdentifier=e.Debug.deprecate(function(ee){return e.factory.createIdentifier(ee,void 0,void 0)},s),e.createTempVariable=e.Debug.deprecate(function(ee){return e.factory.createTempVariable(ee,void 0)},s),e.getGeneratedNameForNode=e.Debug.deprecate(function(ee){return e.factory.getGeneratedNameForNode(ee,void 0)},s),e.createOptimisticUniqueName=e.Debug.deprecate(function(ee){return e.factory.createUniqueName(ee,16)},s),e.createFileLevelUniqueName=e.Debug.deprecate(function(ee){return e.factory.createUniqueName(ee,16|32)},s),e.createIndexSignature=e.Debug.deprecate(function(ee,Y,V,ne){return e.factory.createIndexSignature(ee,Y,V,ne)},s),e.createTypePredicateNode=e.Debug.deprecate(function(ee,Y){return e.factory.createTypePredicateNode(void 0,ee,Y)},s),e.updateTypePredicateNode=e.Debug.deprecate(function(ee,Y,V){return e.factory.updateTypePredicateNode(ee,void 0,Y,V)},s),e.createLiteral=e.Debug.deprecate(function(ee){return typeof ee=="number"?e.factory.createNumericLiteral(ee):typeof ee=="object"&&"base10Value"in ee?e.factory.createBigIntLiteral(ee):typeof ee=="boolean"?ee?e.factory.createTrue():e.factory.createFalse():typeof ee=="string"?e.factory.createStringLiteral(ee,void 0):e.factory.createStringLiteralFromNode(ee)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(ee,Y,V,ne,_e){return e.factory.createMethodSignature(void 0,ne,_e,ee,Y,V)},s),e.updateMethodSignature=e.Debug.deprecate(function(ee,Y,V,ne,_e,O){return e.factory.updateMethodSignature(ee,ee.modifiers,_e,O,Y,V,ne)},s),e.createTypeOperatorNode=e.Debug.deprecate(function(ee,Y){var V;return Y?V=ee:(Y=ee,V=139),e.factory.createTypeOperatorNode(V,Y)},s),e.createTaggedTemplate=e.Debug.deprecate(function(ee,Y,V){var ne;return V?ne=Y:V=Y,e.factory.createTaggedTemplateExpression(ee,ne,V)},s),e.updateTaggedTemplate=e.Debug.deprecate(function(ee,Y,V,ne){var _e;return ne?_e=V:ne=V,e.factory.updateTaggedTemplateExpression(ee,Y,_e,ne)},s),e.updateBinary=e.Debug.deprecate(function(ee,Y,V,ne){return ne===void 0&&(ne=ee.operatorToken),typeof ne=="number"&&(ne=ne===ee.operatorToken.kind?ee.operatorToken:e.factory.createToken(ne)),e.factory.updateBinaryExpression(ee,Y,ne,V)},s),e.createConditional=e.Debug.deprecate(function(ee,Y,V,ne,_e){return arguments.length===5?e.factory.createConditionalExpression(ee,Y,V,ne,_e):arguments.length===3?e.factory.createConditionalExpression(ee,e.factory.createToken(57),Y,e.factory.createToken(58),V):e.Debug.fail("Argument count mismatch")},s),e.createYield=e.Debug.deprecate(function(ee,Y){var V;return Y?V=ee:Y=ee,e.factory.createYieldExpression(V,Y)},s),e.createClassExpression=e.Debug.deprecate(function(ee,Y,V,ne,_e){return e.factory.createClassExpression(void 0,ee,Y,V,ne,_e)},s),e.updateClassExpression=e.Debug.deprecate(function(ee,Y,V,ne,_e,O){return e.factory.updateClassExpression(ee,void 0,Y,V,ne,_e,O)},s),e.createPropertySignature=e.Debug.deprecate(function(ee,Y,V,ne,_e){var O=e.factory.createPropertySignature(ee,Y,V,ne);return O.initializer=_e,O},s),e.updatePropertySignature=e.Debug.deprecate(function(ee,Y,V,ne,_e,O){var w=e.factory.updatePropertySignature(ee,Y,V,ne,_e);return ee.initializer!==O&&(w===ee&&(w=e.factory.cloneNode(ee)),w.initializer=O),w},s),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(ee,Y){return e.factory.createExpressionWithTypeArguments(Y,ee)},s),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(ee,Y,V){return e.factory.updateExpressionWithTypeArguments(ee,V,Y)},s),e.createArrowFunction=e.Debug.deprecate(function(ee,Y,V,ne,_e,O){return arguments.length===6?e.factory.createArrowFunction(ee,Y,V,ne,_e,O):arguments.length===5?e.factory.createArrowFunction(ee,Y,V,ne,void 0,_e):e.Debug.fail("Argument count mismatch")},s),e.updateArrowFunction=e.Debug.deprecate(function(ee,Y,V,ne,_e,O,w){return arguments.length===7?e.factory.updateArrowFunction(ee,Y,V,ne,_e,O,w):arguments.length===6?e.factory.updateArrowFunction(ee,Y,V,ne,_e,ee.equalsGreaterThanToken,O):e.Debug.fail("Argument count mismatch")},s),e.createVariableDeclaration=e.Debug.deprecate(function(ee,Y,V,ne){return arguments.length===4?e.factory.createVariableDeclaration(ee,Y,V,ne):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(ee,void 0,Y,V):e.Debug.fail("Argument count mismatch")},s),e.updateVariableDeclaration=e.Debug.deprecate(function(ee,Y,V,ne,_e){return arguments.length===5?e.factory.updateVariableDeclaration(ee,Y,V,ne,_e):arguments.length===4?e.factory.updateVariableDeclaration(ee,Y,ee.exclamationToken,V,ne):e.Debug.fail("Argument count mismatch")},s),e.createImportClause=e.Debug.deprecate(function(ee,Y,V){return V===void 0&&(V=!1),e.factory.createImportClause(V,ee,Y)},s),e.updateImportClause=e.Debug.deprecate(function(ee,Y,V,ne){return e.factory.updateImportClause(ee,ne,Y,V)},s),e.createExportDeclaration=e.Debug.deprecate(function(ee,Y,V,ne,_e){return _e===void 0&&(_e=!1),e.factory.createExportDeclaration(ee,Y,_e,V,ne)},s),e.updateExportDeclaration=e.Debug.deprecate(function(ee,Y,V,ne,_e,O){return e.factory.updateExportDeclaration(ee,Y,V,O,ne,_e)},s),e.createJSDocParamTag=e.Debug.deprecate(function(ee,Y,V,ne){return e.factory.createJSDocParameterTag(void 0,ee,Y,V,!1,ne?e.factory.createNodeArray([e.factory.createJSDocText(ne)]):void 0)},s),e.createComma=e.Debug.deprecate(function(ee,Y){return e.factory.createComma(ee,Y)},s),e.createLessThan=e.Debug.deprecate(function(ee,Y){return e.factory.createLessThan(ee,Y)},s),e.createAssignment=e.Debug.deprecate(function(ee,Y){return e.factory.createAssignment(ee,Y)},s),e.createStrictEquality=e.Debug.deprecate(function(ee,Y){return e.factory.createStrictEquality(ee,Y)},s),e.createStrictInequality=e.Debug.deprecate(function(ee,Y){return e.factory.createStrictInequality(ee,Y)},s),e.createAdd=e.Debug.deprecate(function(ee,Y){return e.factory.createAdd(ee,Y)},s),e.createSubtract=e.Debug.deprecate(function(ee,Y){return e.factory.createSubtract(ee,Y)},s),e.createLogicalAnd=e.Debug.deprecate(function(ee,Y){return e.factory.createLogicalAnd(ee,Y)},s),e.createLogicalOr=e.Debug.deprecate(function(ee,Y){return e.factory.createLogicalOr(ee,Y)},s),e.createPostfixIncrement=e.Debug.deprecate(function(ee){return e.factory.createPostfixIncrement(ee)},s),e.createLogicalNot=e.Debug.deprecate(function(ee){return e.factory.createLogicalNot(ee)},s),e.createNode=e.Debug.deprecate(function(ee,Y,V){return Y===void 0&&(Y=0),V===void 0&&(V=0),e.setTextRangePosEnd(ee===300?e.parseBaseNodeFactory.createBaseSourceFileNode(ee):ee===79?e.parseBaseNodeFactory.createBaseIdentifierNode(ee):ee===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(ee):e.isNodeKind(ee)?e.parseBaseNodeFactory.createBaseNode(ee):e.parseBaseNodeFactory.createBaseTokenNode(ee),Y,V)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(ee){var Y=e.factory.cloneNode(ee);return e.setTextRange(Y,ee),e.setParent(Y,ee.parent),Y},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function(ee){return ee.kind===209},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(ee){return e.isMemberName(ee)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(mn||(mn={}));var ru=mn.createClassifier,Gc=mn.createLanguageService,Pp=mn.displayPartsToString,fl=mn.EndOfLineState,Oc=mn.flattenDiagnosticMessageText,hl=mn.IndentStyle,km=mn.ScriptKind,Rp=mn.ScriptTarget,Ug=mn.TokenClass}.call(this,Do("Q2Ig"),"/",Do("Vg/k")(lf))},wxcJ:function(lf,to,Do){"use strict";(function(io){Do.d(to,"a",function(){return Mt}),Do.d(to,"b",function(){return pr}),Do.d(to,"c",function(){return Ma});var Ro=Do("MNsG");let Ps;if(typeof Ro.a.vscode!="undefined"&&typeof Ro.a.vscode.process!="undefined"){const Bi=Ro.a.vscode.process;Ps={get platform(){return Bi.platform},get arch(){return Bi.arch},get env(){return Bi.env},cwd(){return Bi.cwd()},nextTick(Yo){return Object(Ro.e)(Yo)}}}else typeof io!="undefined"?Ps={get platform(){return io.platform},get arch(){return io.arch},get env(){return Object({NODE_ENV:"production"})},cwd(){return Object({NODE_ENV:"production"}).VSCODE_CWD||io.cwd()},nextTick(Bi){return io.nextTick(Bi)}}:Ps={get platform(){return Ro.d?"win32":Ro.b?"darwin":"linux"},get arch(){return},nextTick(Bi){return Object(Ro.e)(Bi)},get env(){return{}},cwd(){return"/"}};const Mt=Ps.cwd,pr=Ps.env,Ma=Ps.platform}).call(this,Do("Q2Ig"))}});
|